indexLabelBackgroundColor: String

Sets the Background color of Index Labels. The value of indexLabelBackgroundColor can be a “HTML Color Name” or “Hex Code”.

Default: null
Example: “red”, “#FAC003” ..

  • Supported in all Chart Types.

var  chart =  new  CanvasJS.Chart("container",
  indexLabelBackgroundColor: "yellow",


Try it Yourself by Editing the Code below.

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.