Two marker symbol for the same point in line chart - Javascript highcharts

Javascript examples for highcharts:Line Chart

Description

Two marker symbol for the same point 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"> 
      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
      <script type="text/javascript">
$(function () {//from  ww w .j av  a2  s .  c o  m
    $('#container').highcharts({
        title: {
            text: ''
        },
        xAxis: {
            categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
        },
        series: [{
            name: 'One',
            data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 316.4, 294.1, 195.6, 154.4],
            marker: {
                symbol: 'triangle',
                radius: 8
            }
        }]
    }, function(chart){
        // add another symbol to point
        var pointIdx = 5;
        var point = chart.series[0].points[pointIdx];
        var img = chart.renderer.image('http://highcharts.com/demo/gfx/sun.png', point.plotX + chart.plotLeft-15, point.plotY + chart.plotTop - 15, 30, 30)
        img.attr({'zIndex':10}).add();
    });
});

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

Related Tutorials