labelBackgroundColor: String

Sets the background color of stripLine’s label.

Default: “transparent”
Example: “red”,”#fabd76″
  1. var chart = new CanvasJS.Chart("container",
  2. {
  3. .
  4. .
  5. axisY:{
  6. stripLines: [{
  7. .
  8. labelBackgroundColor:"black",
  9. .
  10. }]
  11. },
  12. .
  13. .
  14. });
  15. chart.render();

Try Editing The Code

  Also See:    


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