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..

Notes
  • 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 it Yourself by Editing the Code below.

  Also See:    



In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.

Comments 2

  1. 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?

In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.