Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set vis-network background color? #44

Open
richardxy opened this issue Nov 30, 2015 · 3 comments
Open

how to set vis-network background color? #44

richardxy opened this issue Nov 30, 2015 · 3 comments

Comments

@richardxy
Copy link

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants