Sets the hidden event handler for axisX crosshair, which is triggered whenever axisX crosshair gets hidden.
Default: null
- var chart = new CanvasJS.Chart("container",
- {
- .
- .
- axisX: {
- .
- .
- crosshair: {
- enabled: true,
- hidden: function ( e ) {
- console.log("Crosshair has been hidden");
- }
- },
- .
- .
- },
- .
- .
- });
- chart.render();
- e:{
- chart: {},
- axis: {options}
- }
Also See: