Sets the Legend Marker to one of the options below. This property is used to override the default marker in legend, which is same as dataSeries Marker Type.
Default: same as markerTypevar chart = new CanvasJS.Chart("container", { . . data:[{ legendMarkerType: "square", }, ] . . }); chart.render();