Skip to content
New issue

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

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

Already on GitHub? # to your account

Improved default ordinal palette #831

Closed
wants to merge 1 commit into from
Closed

Conversation

tttp
Copy link
Contributor

@tttp tttp commented Jan 7, 2015

better palette IMO - fixes #827. Still not super happy, the palettes I found didn't work with all colors with the text in white (was it a reason to use white as the text?)

@mtraynham
Copy link
Contributor

Take a look at colorbrewer for some nice pre-canned color schemes.
https://github.com/alexmasselot/colorbrewer
http://colorbrewer2.org/

@gordonwoodhull
Copy link
Contributor

That's what this patch contains, some selected colors from colorbrewer.

Another breaking change but a good idea IMO. The default colors we have been using may be optimally distinguishable, but unsightly, and as Xavier points out in #827, too consecutive.

@gordonwoodhull gordonwoodhull added this to the v2.1 milestone Jan 13, 2015
@gordonwoodhull gordonwoodhull changed the title Color #827 Improved ordinal palette Apr 19, 2015
@gordonwoodhull gordonwoodhull changed the title Improved ordinal palette Improved default ordinal palette Apr 19, 2015
@gordonwoodhull gordonwoodhull modified the milestones: v2.1, 3.0 Apr 2, 2018
@gordonwoodhull
Copy link
Contributor

We've deprecated schemeCategory20c in dc.js 3.0, and added dc.config.defaultColors as a way to provide a consistent set of ordinal colors for all charts. d3-scale-chromatic provides some good palettes, and we'll move to one of those in 3.1

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

default color scale (for pie) "doesn't work"
3 participants