Setting this property to true makes dataPoints to appear in legend.
Default: falsevar chart = new CanvasJS.Chart("container",
{
.
.
data: [
{
type: "pie",
dataPoints: [
{ y : 10, showInLegend: true},
]
}
]
.
.
});
chart.render();
Also See: