PearsonArtPhoto
PearsonArtPhoto

Reputation: 39698

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

Upvotes: 12

Views: 19802

Answers (1)

PearsonArtPhoto
PearsonArtPhoto

Reputation: 39698

layout= {
      plot_bgcolor:"black",
      paper_bgcolor:"#FFF3"
}

Upvotes: 32

Related Questions