123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <!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>Highcharts Example</title>
- <style type="text/css">
- </style>
- </head>
- <body>
- <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
- <script src="../../code/highcharts.js"></script>
- <script src="../../code/highcharts-more.js"></script>
- <script src="../../code/modules/exporting.js"></script>
- <script src="../../code/modules/export-data.js"></script>
- <div id="container" style="min-width: 310px; max-width: 800px; height: 400px; margin: 0 auto"></div>
- <script type="text/javascript">
- $.getJSON(
- 'https://cdn.rawgit.com/highcharts/highcharts/057b672172ccc6c08fe7dbb27fc17ebca3f5b770/samples/data/range.json',
- function (data) {
- Highcharts.chart('container', {
- chart: {
- type: 'arearange',
- zoomType: 'x',
- scrollablePlotArea: {
- minWidth: 600,
- scrollPositionX: 1
- }
- },
- title: {
- text: 'Temperature variation by day'
- },
- xAxis: {
- type: 'datetime'
- },
- yAxis: {
- title: {
- text: null
- }
- },
- tooltip: {
- crosshairs: true,
- shared: true,
- valueSuffix: '°C'
- },
- legend: {
- enabled: false
- },
- series: [{
- name: 'Temperatures',
- data: data
- }]
- });
- }
- );
- </script>
- </body>
- </html>
|