visjs / angular-visjs

AngularJS directive module for vis.js components
http://visjs.github.io/angular-visjs
MIT License
133 stars 64 forks source link

how to set vis-network background color? #44

Open richardxy opened 8 years ago

richardxy commented 8 years ago

Hi,

I tried to define the background color of my network graph to be lightgrey. I tried

But it didn't work. Would you please advise?

thanks, Richard

cdjackson commented 8 years ago

You need to set the Css classes. I forget which one but have a look with firebug. this is more of a vis question than for the angular directive I think...

Sent from my iPhone

On 30 Nov 2015, at 20:26, richardxy notifications@github.com wrote:

Hi,

I tried to define the background color of my network graph to be lightgrey. I tried

But it didn't work. Would you please advise?

thanks, Richard

— Reply to this email directly or view it on GitHub.

richardxy commented 8 years ago

Thanks. I've set the class for vis-network, and defined the style of that class in the css file. Still no luck. Would you, or anyone, please give an example snippet? Many thanks!

josdejong commented 8 years ago
div.vis-network {
  background-color: red;
}