-
Notifications
You must be signed in to change notification settings - Fork 119
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
Handling colors #492
Labels
Comments
markov00
added
enhancement
New feature or request
meta
...meta issue
wip
work in progress
labels
Dec 10, 2019
5 tasks
11 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
This ticket try to resume the enhancement requests about colors in our charting library.
The main idea is to provide a set of color schemes to be used in our charts depending on the chart use case.
There are two main color scheme types:
Qualitative
Also known as categorical, needs a set of colors that use differences in hue to represent nominal differences, or differences in kind.
Quantitative
can be distinguished into two sub-categories, and can be represented as a continuous scale with an infinite number of colors or discrete scale with a finite number of colors.
continuous:
discrete:
continuous:
discrete:
Important aspect to consider:
Possible color schema:
The possible color schemas are in the form:
These can be applied to elastic-charts
theme
asInternally, when we are ready to apply a color to a specific series, we can call a set of functions (see #459) to compute the right amount of steps to be used.
We should apply the schema using the following conventions:
cyclical
configuration when cycling again through the colors arraycyclical
configuration should not be considered, and the number of steps is determined by the number of series. Ifcyclical
is configured and thescale
isdiscrete
, than we can assume that we want a cyclical sequential color array, that hasmaxSteps
as the max number of steps on the discrete scale, and than cycle back if the number of series is higher than the maxSteps value.linked issues:
references:
TODOs
The text was updated successfully, but these errors were encountered: