| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>Highstock Example</title>
- <style type="text/css">
- </style>
- </head>
- <body>
- <script src="../../code/highstock.js"></script>
- <script src="../../code/modules/data.js"></script>
- <script src="../../code/modules/exporting.js"></script>
- <script src="../../code/modules/export-data.js"></script>
- <div id="container" style="height: 400px"></div>
- <script type="text/javascript">
- Highcharts.getJSON('https://www.highcharts.com/samples/data/aapl-v.json', function (data) {
- // create the chart
- Highcharts.stockChart('container', {
- chart: {
- alignTicks: false
- },
- rangeSelector: {
- selected: 1
- },
- title: {
- text: 'AAPL Stock Volume'
- },
- series: [{
- type: 'column',
- name: 'AAPL Stock Volume',
- data: data,
- dataGrouping: {
- units: [[
- 'week', // unit name
- [1] // allowed multiples
- ], [
- 'month',
- [1, 2, 3, 4, 6]
- ]]
- }
- }]
- });
- });
- </script>
- </body>
- </html>
|