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 chartvar chart = new CanvasJS.Chart("container",
{
.
.
data:[{
markerSize: 10,
},
]
.
.
});
chart.render();
Also See:
2 Comments
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?
Matt,
You can set highlightEnabled to false along with markerSize as 0 to achieve this.