Shows crosshair at the specified value on respective axis, when crosshair is enabled.
Parameters:var chart = new CanvasJS.Chart("container",
{
.
.
axisX: {
crosshair: {
enabled: true
},
.
},
.
.
});
chart.render();
chart.axisX[0].crosshair.showAt(20);
Below is an example showing synchronizing crosshair across multiple charts.
Also See: