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

Add Color to Force Directed Graph #1992

Closed
wants to merge 1 commit into from
Closed

Add Color to Force Directed Graph #1992

wants to merge 1 commit into from

Conversation

ddol
Copy link
Contributor

@ddol ddol commented Jan 17, 2017

Issue: #1991

  • Adds Color to the Force Directed Graph.
  • Uses the d3 category20() scale.
  • Updates to the sample energy.json dataset with a cluster field denoting Agriculture/Industry.

screen shot 2017-01-17 at 01 01 53

@mistercrunch

@mistercrunch
Copy link
Member

mistercrunch commented Jan 18, 2017

img

node.append('circle')
.attr('r', function (d) {
return circleScale(Math.sqrt(d.total));
})
.style('fill', function (d) {
return color(d.color);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will that change the default color?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, from gray to blue.

@ddol
Copy link
Contributor Author

ddol commented Jan 25, 2017

I incorporated the rebase from #2005 . PTAL

@mistercrunch
Copy link
Member

Closing old PRs with broken build or merge conflict, feel free to re-open once merge conflicts are sorted out.

@pirate
Copy link

pirate commented Apr 9, 2020

any chance of this getting reopened and merged someday? I'd love to see this added

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

Successfully merging this pull request may close these issues.

3 participants