Sets the dataPoint Name. dataPoint name is shown in various places like toolTip & legend unless overridden.
Default: Automatically Named (“dataPoint 1”, “dataPoint 2” .. )var chart = new CanvasJS.Chart("container", { . . data: [{ dataPoints: [ {x: 5, y: 24, name: "apple"} ] }], . . }); chart.render();
Also See: