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