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

colourScale documentation needs updating #10

Open
ellisp opened this issue May 20, 2017 · 1 comment
Open

colourScale documentation needs updating #10

ellisp opened this issue May 20, 2017 · 1 comment

Comments

@ellisp
Copy link

ellisp commented May 20, 2017

This may be as simple as changing https://github.com/mbostock/d3/wiki/Ordinal-Scales in the current helpfile to point to somewhere else, but I'm not sure exactly where.

Meanwhile, the Stack Overflow answer I used in the past to remind me how to control colours doesn't work any more.

I think this is just a matter of updating documentation and examples but don't know enough about the changes in D3 to know quickly how to do it myself.

@ellisp
Copy link
Author

ellisp commented May 20, 2017

Noting, old code I had like:

colourScale = JS('d3.scale.ordinal().range(["#7d3945","#e0677b", "#244457"])')

now works if it is changed to:

colourScale = JS('d3.scaleOrdinal().range(["#7d3945","#e0677b", "#244457"])')

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

1 participant