Javascript examples for highcharts:Column Chart
Highlighting last column in bar chart
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.js"></script> <script type="text/javascript"> $(function() {/*w ww .j a v a2 s. co m*/ var histSuccess = [100, 99, 100, 98, 98, 99.9, 97.5, 100, 95, 90]; Highcharts.chart('container', { chart: { type: 'column' }, title: { text: 'Column chart with last column different color' }, yAxis: { min: 0, title: { text: 'Total' } }, series: [{ name: 'Test', color: 'grey', data: histSuccess, zoneAxis: 'x', zones: [{ value: histSuccess.length - 1.5, color: 'grey' },{ color: '#66ff33' }] }] }); }); </script> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div> </body> </html>