labelBackgroundColor: String

Sets the Axis Label background color. The value of labelBackgroundColor can be a “HTML Color Name” or “hex” code.


Default: “transparent”
Example: “red”,”#fabd76″

var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
axisX:{
    .
    labelBackgroundColor:"black",
    .
},
 .
 .
});
chart.render();


Try it Yourself by Editing the Code below.

  Also See:    



In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.