Highcharts: How to set unique images on top of bar chart series - Javascript highcharts

Javascript examples for highcharts:Bar Chart

Description

Highcharts: How to set unique images on top of bar chart series

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">

#container {// w  w w . j a  va2  s  .  c om
   min-width: 310px;
   max-width: 800px;
   height: 400px;
   margin: 0 auto
}


      </style> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <div id="container"></div> 
      <script type="text/javascript">
Highcharts.chart('container', {
    xAxis: {
        type: 'category'
    },
    plotOptions: {
        series: {
            grouping: false
        }
    },
    series: [{
        type: 'column',
        data: [
            [0, 1],
            [1, 2],
            [2, 3]
        ]
    }, {
        type: 'column',
        data: [
            [4, 1],
            [5, 2],
            [6, 3]
        ]
    }, {
        type: 'scatter',
        data: [{
            y: 1,
            marker: {
                symbol: 'url(https://www.highcharts.com/samples/graphics/sun.png)'
            }
        }, 2, {
            y: 0,
            marker: {
                symbol: 'url(https://www.highcharts.com/samples/graphics/sun.png)'
            }
        }, 4, 5]
    }]
});

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

Related Tutorials