Javascript examples for highcharts:Column Chart
Column Range chart to set height of bar the same as the height of interval in y Axis
<html> <head> <title>Highcharts Demo</title> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/highcharts-more.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> <script src="https://code.highcharts.com/modules/export-data.js"></script> <div id="container" style="min-width: 310px; height: 900px; margin: 0 auto"></div> <script type="text/javascript"> Highcharts.chart('container', { chart: {//from w ww.j av a 2 s. c o m 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], ], pointRange: 2 }] }); </script> </body> </html>