Sets the Legend Marker to one of the options below. At dataPoint level, this property works only with Pie and Doughnut charts.
Default: “circle”var chart = new CanvasJS.Chart("container",
{
.
.
data:[ {
dataPoints: [
{x: 10 , y: 50 , legendText: "Apple", legendMarkerType: "square" },
],
},
]
.
.
});
chart.render();