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

Deprecating schemeCategory20* #96

Closed

Conversation

nicolaskruchten
Copy link

schemeCategory10 is appropriate for encoding categorical variables with 10 values or less, and in general it is difficult to make effective visualizations which encode more than 10 categorical values using color. schemeCategory20, schemeCategory20b and schemeCategory20c are deprecated, as using them to visualize categorical data runs the risk of falsely implying non-existent relationships in the data. For example, graphical elements sharing a hue can imply that the data they represent share some value, and the relative lightness of graphical elements can imply an ordinal relationship in the data.

@mbostock
Copy link
Member

mbostock commented Feb 9, 2017

I would put the deprecation notice in index.js, since that’s the public entry point.

@nicolaskruchten
Copy link
Author

Right, sorry, that's what you asked for earlier as well. Done.

@nicolaskruchten
Copy link
Author

(bump :)

mbostock added a commit that referenced this pull request Jan 28, 2018
They now reside in d3-scale-chromatic. (Except for the category20* color
schemes, which are removed entirely #88 #96.)
@mbostock
Copy link
Member

Finally getting back to this; sorry for the delay! I’ve moved all the color schemes from this repo to d3-scale-chromatic, and in the process, I’ve removed the deprecated category20* schemes. This will be released in d3-scale@2 (d3@5) in the near future. Thank you for your patience!

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

Successfully merging this pull request may close these issues.

None yet

2 participants