Adds a new element of given type to the specified array. For example, it can be used to add new dataPoint to datPoints array.
Parameters:var chart = new CanvasJS.Chart("container", { . . . }); chart.render(); chart.data[0].addTo("dataPoints", {y: 29, label: "Apple" });
Also See: