manipulate with points on the chart - Javascript highcharts

Javascript examples for highcharts:Chart Point

Description

manipulate with points on the chart

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <title>Jugal | Mark Individual Points in different color | Highcharts</title> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <style id="compiled-css" type="text/css">

#container{/*from  w w w  .  j a v  a  2 s.  c  om*/
   min-width:500px;
}


      </style> 
      <script type="text/javascript">
    var VanillaRunOnDomReady = function() {
$(function () {
    var chart = new Highcharts.Chart({
        chart: {
            renderTo: 'container',
            type: 'line'
        },
        xAxis: {
            categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
        },
        series: [{
            data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, {
                y: 216.4,
                color: '#BF0B23',
                marker:{
                    fillColor:'red'
                }
            }, 194.1, 95.6, 54.4]
        }]
    });
});
    }
var alreadyrunflag = 0;
if (document.addEventListener)
    document.addEventListener("DOMContentLoaded", function(){
        alreadyrunflag=1;
        VanillaRunOnDomReady();
    }, false);
else if (document.all && !window.opera) {
    document.write('<script type="text/javascript" id="contentloadtag" defer="defer" src="javascript:void(0)"><\/script>');
    var contentloadtag = document.getElementById("contentloadtag")
    contentloadtag.onreadystatechange=function(){
        if (this.readyState=="complete"){
            alreadyrunflag=1;
            VanillaRunOnDomReady();
        }
    }
}
window.onload = function(){
  setTimeout("if (!alreadyrunflag){VanillaRunOnDomReady}", 0);
}

      </script> 
   </head> 
   <body> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.7.2.js"></script> 
      <script type="text/javascript" src="http://code.jugal.me/js/jugalsLib.js"></script> 
      <script type="text/javascript" src="https://code.highcharts.com/stock/highstock.src.js"></script> 
      <script type="text/javascript" src="https://code.highcharts.com/stock/modules/exporting.src.js"></script> 
      <div id="container"></div>  
   </body>
</html>

Related Tutorials