var chart = new CanvasJS.Chart(“chartContainer1”,
{
title:{
text: “Basic Scatter Chart”
},
axisX:{
minimum: -1,
maximum: 50
},
data: [
{
type: “scatter”,
dataPoints: [
{ y: 23, x: 0 },
{ y: 54, x: 1 },
{ y: 10, x: 2 },
{ y: 42, x: 1 },
{ y: 50, x: 50 }
]
}
]
});
chart.render();