.addPoint to multiple yAxis in line chart - Javascript highcharts

Javascript examples for highcharts:Line Chart

Description

.addPoint to multiple yAxis 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"> 
      <style id="compiled-css" type="text/css">

#container {//from   w w w.ja va2 s  .c  o m
   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">
var chart = Highcharts.chart('container', {
    series: [{
        data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
    }, {
        data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175].reverse(),
        yAxis: 1
    }],
    yAxis: [{}, {}]
});
chart.series[1].addPoint(2222);

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

Related Tutorials