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″
  1. var chart = new CanvasJS.Chart("container",
  2. {
  3. .
  4. .
  5. axisX:{
  6. .
  7. labelBackgroundColor:"black",
  8. .
  9. },
  10. .
  11. .
  12. });
  13. chart.render();

Try Editing The Code

  Also See:    


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