| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <!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; min-width: 310px"></div>
- <script type="text/javascript">
- Highcharts.getJSON('https://www.highcharts.com/samples/data/aapl-c.json', function (data) {
- // Create the chart
- Highcharts.stockChart('container', {
- rangeSelector: {
- selected: 1
- },
- title: {
- text: 'AAPL Stock Price'
- },
- series: [{
- name: 'AAPL',
- data: data,
- tooltip: {
- valueDecimals: 2
- }
- }]
- });
- });
- </script>
- </body>
- </html>
|