Sets the dataSeries name. dataSeries name is shown in various places like toolTip & legend unless overridden.
Default: Automatically Namedvar chart = new CanvasJS.Chart("container",
{
.
.
data: [{
name: "year 2005",
}],
.
.
});
chart.render();
Also See:
2 Comments
Hello,
Is there any workaround to add line break to the name as we add in toolTip?
I tried and \n but they don’t work.
Thanks