Home Forums Chart Support Changing background color using my own CSS Reply To: Changing background color using my own CSS

#41844

@colibrisan,

In order to change the background color of the chart using CSS, you will have to first set the chart backgroundColor property to transparent. You can then, apply CSS styles to the chart container using the chart id.

Please check this JSFiddle for a working example similar to your requirement, which shows how to set gradient as chart background using CSS.

Set chart background using CSS


Thangaraj Raman
Team CanvasJS