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

Why all the nodes and relations are black #5

Open
meperdine opened this issue Sep 10, 2019 · 4 comments
Open

Why all the nodes and relations are black #5

meperdine opened this issue Sep 10, 2019 · 4 comments

Comments

@meperdine
Copy link

Opening ctm-query.html, all nodes and relationship displays are black, where is the configuration required?

@pezzo98
Copy link

pezzo98 commented Sep 26, 2019

Hi, to change the color of the nodes you have to:

-Add these functions (you can find them in the query.html file): getItemColor(d){}, getColorBrighter(targetColor){} and getColorDarker(targetColor){}

-Add this when you create the circle:
circles = circles.enter().append('circle').attr('r', circleSize).attr('fill', getItemColor).attr('stroke',function(d) {return getColorDarker(getItemColor(d));})

I hope i was of help

@meperdine
Copy link
Author

I have solved this problem, thank you very much for your help.

@micwan88
Copy link
Owner

Oh, Sorry. I just realized I have missed you guys comments.

For the color on nodes & relationship, actually the html page has included the css file under css folder. Inside the css, you can change the node and path color.

There is not necessary to update the js inside.
Please let me know if you still cannot use the css file.
Thanks.

@meperdine
Copy link
Author

I noticed that every time I have to go through the login interface, is this necessary? Is there any way to keep it logged in?

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