Javascript examples for highcharts:Line Chart
Change the color of horizontal bar in coloredline chart
<html> <head> <title>Highcharts Demo</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #container {/*from ww w .j a va 2 s. co m*/ min-width: 310px; max-width: 800px; height: 400px; margin: 0 auto } </style> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/modules/series-label.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> <script src="https://code.highcharts.com/modules/export-data.js"></script> <script src="https://blacklabel.github.io/multicolor_series/js/multicolor_series.js"></script> <div id="container"></div> <script type="text/javascript"> Highcharts.chart('container', { chart: { type: 'coloredline', }, plotOptions: { line: { marker: { enabled: false } } }, series: [{ data: [{ x: 1, y: 2, segmentColor: 'blue' }, { x: 6, y: 2 }, { //null point x: 6, y: null }, { x: 9, y: 2, segmentColor: 'red' }, { x: 10, y: 2 }] }] }); </script> </body> </html>