Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the background color of a plot

I am using Plotly.js for plots on my website. I can't for the life of me figure out how to change the background color to anything besides white. Can that be done, or am I just missing something? Space isn't white, it is black, it would be nice to see it as such...

enter image description here

like image 362
PearsonArtPhoto Avatar asked Feb 15 '18 00:02

PearsonArtPhoto


1 Answers

layout= {
      plot_bgcolor:"black",
      paper_bgcolor:"#FFF3"
}
like image 132
PearsonArtPhoto Avatar answered Oct 08 '22 11:10

PearsonArtPhoto