create chart with only an array of integers - Javascript highcharts

Javascript examples for highcharts:Chart Creation

Description

create chart with only an array of integers

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

#container2 {/* ww w  .  j av a2s  . c o m*/
   width: 400px;
   height: 200px;
   border: 2px solid red;
   overflow: hidden;
}


      </style> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <div id="container2"> 
         <div id="container"></div> 
      </div> 
      <script type="text/javascript">
Highcharts.chart('container', {
    series: [{
        data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
    }]
});

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

Related Tutorials