Change line color between points in line chart - Javascript highcharts

Javascript examples for highcharts:Chart Color

Description

Change line color between points in line chart

Demo Code

ResultView the demo in separate window

<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> 
      <div id="container" style="height: 400px"></div> 
      <script type="text/javascript">
Highcharts.chart('container', {
    plotOptions: {/*  w  ww  . java2  s. com*/
        series: {
            color: 'purple'
        }
    },
    series: [{
        data: [{x: 1, y: 435, color:'blue'}, {x: 2, y: 437, color:'blue'}, {x: 3, y: 455, color:'blue'}, {x: 4, y: 475, color:'blue'}, {x: 5, y: 555, color:'blue'},{x: 6, y: 435, color:'blue'}],
        zoneAxis: 'x',
        zones: [{value: 3}, {value: 5, color: 'red'}]
    }]
});

      </script>  
   </body>
</html>

Related Tutorials