cloud Scatter plot with data array - Javascript highcharts

Javascript examples for highcharts:Scatter Chart

Description

cloud Scatter plot with data array

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript">
    window.onload=function(){//  www . j  a  v a 2s. c o  m
const csv = `Date, stock A,stock B
2021/1/01,10,15
2021/2/01,12,10`
const options = {
   tooltip: {
     shared: true
  },
  data: {
     csv,
    seriesMapping: [{ x: 0, y: 1, name: 1 }, { x: 0, y: 2, name: 2 }]
  }
}
const chart = Highcharts.chart('container', options)
    }

      </script> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <script src="https://code.highcharts.com/modules/data.js"></script> 
      <div id="container"></div>  
   </body>
</html>

Related Tutorials