individual series styling - Javascript highcharts

Javascript examples for highcharts:Chart Series

Description

individual series styling

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
      <script type="text/javascript">
    $(window).load(function(){//from w  w w.j  a  v  a  2s  .c o  m
var chart = new Highcharts.Chart({
    chart: {
        renderTo: 'container'
    },
    xAxis: {
        type: 'linear'
    },
    series: [{
        name: 'A',
        color: '#0066FF',
        data: [11,22,13,4,7]
    },{
        name: 'B',
        dashStyle: 'ShortDash',
        data: [null,null,null,null,6,11,45,7]
    }]
});
    });

      </script> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <div id="container" style="height: 400px"></div>  
   </body>
</html>

Related Tutorials