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” ..
Notes
  • Supported in all Chart Types.
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data:[{
  indexLabelBackgroundColor: "yellow",

  },
 ]
 .
 .
});
chart.render();

Try Editing The Code


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