label : String

Sets the label for crosshair. These are shown on top of Axis Labels.

Default: “” (empty string)
Example: “Label”, “1940”, etc.
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
axisX:{
    crosshair:{
        enabled: true,
        label: "Custom Label",
	.
	.
    }
},
 .
 . 
});
chart.render();


Try Editing The Code

  Also See:    


If you have any questions, please feel free to ask in our forums.Ask Question