Set series dash style - Javascript highcharts

Javascript examples for highcharts:Chart Series

Description

Set series dash style

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', {
    chart: {/*from  w w  w. jav a  2 s.  c o  m*/
        type: 'column'
    },
    legend: {
             symbolPadding: 0,
            symbolWidth: 0.001,
            symbolHeight: 0.001,
            symbolRadius: 0,
            labelFormatter: function () {
                  return "? " + this.name;
        }
    },
    plotOptions: {
    column: {
    marker: {
            enabled: false
        },
        },
        series: {
            color: Highcharts.Color('#000000').setOpacity(0).get('rgba'),//'#000000'
            borderColor: '#000000'
        }
    },
    series: [{
        data: [1, 3, 2, 4, 5, 4, 6, 2, 3, 5, 6],
        dashStyle: 'longdash'
    }, {
        data: [2, 4, 1, 3, 4, 2, 9, 1, 2, 3, 4, 5],
        dashStyle: 'dot'
    }]
});

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

Related Tutorials