Sets the updated event handler for crosshair which is triggered whenever axisX crosshair is updated.
Default: nullvar chart = new CanvasJS.Chart("container",
{
.
.
axisX: {
.
.
crosshair: {
enabled: true,
updated: function ( e ) {
console.log("Crosshair value: " + e.value);
}
},
.
.
},
.
.
});
chart.render();
e: {
chart: {},
crosshair: {options},
axis: parent axis,
value
}
Also See: