@kkoroleva,
Setting legendMarkerType as ‘triangle’, and legendMarkerColor as ‘white’ seems to be working fine, and creates a dashed line legend marker. You can take a look this JSFiddle for the complete example.

If you are still facing any issue, please share a JSFiddle reproducing your use case, so that we can look into it and help you out.
—
Ananya Deka
Team CanvasJS
-
This reply was modified 9 months ago by
Vishwas R.
-
This reply was modified 9 months ago by
Ananya.