123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <!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="../../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; height: 400px; margin: 0 auto"></div>
- <script type="text/javascript">
- Highcharts.chart('container', {
- chart: {
- type: 'columnrange',
- inverted: true
- },
- title: {
- text: 'Temperature variation by month'
- },
- subtitle: {
- text: 'Observed in Vik i Sogn, Norway, 2017'
- },
- xAxis: {
- categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
- 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
- },
- yAxis: {
- title: {
- text: 'Temperature ( °C )'
- }
- },
- tooltip: {
- valueSuffix: '°C'
- },
- plotOptions: {
- columnrange: {
- dataLabels: {
- enabled: true,
- format: '{y}°C'
- }
- }
- },
- legend: {
- enabled: false
- },
- series: [{
- name: 'Temperatures',
- data: [
- [-9.9, 10.3],
- [-8.6, 8.5],
- [-10.2, 11.8],
- [-1.7, 12.2],
- [-0.6, 23.1],
- [3.7, 25.4],
- [6.0, 26.2],
- [6.7, 21.4],
- [3.5, 19.5],
- [-1.3, 16.0],
- [-8.7, 9.4],
- [-9.0, 8.6]
- ]
- }]
- });
- </script>
- </body>
- </html>
|