A custom formatter function that returns Crosshair’s label.
Notesvar chart = new CanvasJS.Chart("container", { . . axisX:{ crosshair: { enabled: true, labelFormatter: function ( e ) { return "Custom Point" + e.value; } } }, . . }); chart.render();
e: { // parameter sent to function chart, axis, crosshair, value }
Also See: