labelBorderColor: String

Sets the border color of axisY crosshair label. Values of labelBorderColor can be “HTML Color Name”, “hex code”, or “rgba values”.

Default: “grey”
Example: “red”,”#FABD76″
Notes
  • labelBorderColor works when border thickness is set to some value greater than zero.
var  chart =  new  CanvasJS.Chart("container", {
 .
 .
 axisY:{
	crosshair:{
		enabled: true,
		labelBorderColor: "#ff9a31",
		labelBorderThickness: 1
	}
 },
 .
 . 
});
chart.render();

Try Editing The Code


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