angular-visjs icon indicating copy to clipboard operation
angular-visjs copied to clipboard

how to set vis-network background color?

Open richardxy opened this issue 9 years ago • 3 comments

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

richardxy avatar Nov 30 '15 20:11 richardxy

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 [email protected] 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.

cdjackson avatar Nov 30 '15 20:11 cdjackson

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!

richardxy avatar Nov 30 '15 20:11 richardxy

div.vis-network {
  background-color: red;
}

josdejong avatar Dec 02 '15 09:12 josdejong