markerSize: Number

Sets the Size of the marker that is drawn. To display marker in area Chart, set markerSize to a value greater than zero. For line, scatter chart, size it is automatically set unless overridden.

Default: auto. Zero for area chart
Example: 5, 10..
Note
  • In line Charts, Markers are automatically disabled when there are large number of dataPoints. You can override this behaviour by manually setting markerSize to a value greater than zero.
  • You can also set this property at dataPoint level- to highlight that dataPoint.
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data:[{
   markerSize: 10,

  },
 ]
 .
 .
});
chart.render();

Try Editing The Code

  Also See:    


If you have any questions, please feel free to ask in our forums.Ask Question

2 Comments

  1. Matt says:

    If I have set my markersize to 0, when I hover over the graph the markers still popup. Is there a way to disable this mouseover event?

If you have any questions, please feel free to ask in our forums. Ask Question