var chart = new CanvasJS.Chart(“chartContainer”, {
title:{
text: “Fruits sold in First Quarter”
},
data: [//array of dataSeries
{ //dataSeries object
/*** Change type “column” to “bar”, “area”, “line” or “pie”***/
type: “column”,
dataPoints: [
{ label: “banana”, y: 18 },
{ label: “orange”, y: 29 },
{ label: “apple”, y: 40 },
{ label: “mango”, y: 34 },
{ label: “grape”, y: 24 }
]
}
]
});
chart.render();
here orange,apple are not dynamically buliding, if i want some dynamical data in chart how can i pass