When displaying a line style chart and using a legend with a legendMarkerType set, the legend marker reverts to a simple line if the number of points rendered causes the markers on the actual chart line to disappear.
You can see this in action by adding legendMarkerType: “square”, showInLegend:true to your Basic Line Example
https://canvasjs.com/docs/charts/chart-types/html5-line-chart/
and resizing the web page to be very narrow. When the line markers disappear, so does the legend marker.
In my case I’m rendering several thousand data points in several chart lines and so the legend is always a simple line which is hard to see. I want to make them a square.
Other chart types don’t exhibit this property, for example, setting the type to scatter will always render the legendMarkerType regardless of the number of points displayed.
-
This topic was modified 9 years, 10 months ago by Robert.
-
This topic was modified 9 years, 10 months ago by Robert.