Javascript examples for highcharts:Bar Chart
Amplify range of selection into error bar chart series
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> <script type="text/javascript"> x = null;//ww w . j av a 2s.c om $(function() { $('#container').highcharts({ xAxis: { categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ] }, tooltip: { valueSuffix: '?C', enabled: false, snap: 50 }, chart: { events: { load: function() { this.myTooltip = new Highcharts.Tooltip(this, this.options.tooltip); } } }, plotOptions: { series: { stickyTracking: false, events: { click: function(evt) { this.chart.myTooltip.refresh(evt.point, evt); }, mouseOut: function() { this.chart.myTooltip.hide(); } } } }, series: [{ name: 'Temperature error', type: 'errorbar', data: [ [6, 8], [5.9, 7.6], [9.4, 10.4], [14.1, 15.9], [18.0, 20.1], [21.0, 24.0], [23.2, 25.3], [26.1, 27.8], [23.2, 23.9], [18.0, 21.1], [12.9, 14.0] ] }, { name: 'Temperature error', type: 'errorbar', color: 'rgba(0,0,0,0)', lineWidth: 20, data: [ [6, 8], [5.9, 7.6], [9.4, 10.4], [14.1, 15.9], [18.0, 20.1], [21.0, 24.0], [23.2, 25.3], [26.1, 27.8], [23.2, 23.9], [18.0, 21.1], [12.9, 14.0] ] }] }); }); </script> </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> <div id="container" style="height: 400px; margin: auto; min-width: 310px; max-width: 600px"></div> </body> </html>