legend symbol for holo column chart - Javascript highcharts

Javascript examples for highcharts:Chart Legend

Description

legend symbol for holo column 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"> 
      <style id="compiled-css" type="text/css">

.highcharts-legend-item * {
   fill: black !important;/*from  ww  w .  ja  v a  2 s.  c  o  m*/
}
.highcharts-legend-item-hidden * {
   fill: gray !important;
}


      </style> 
   </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: {
        type: 'column'
    },
    legend: {
        //symbolWidth: 80
    },
    plotOptions: {
        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