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

Theme chart series from CSS and theme file #114

Merged
merged 1 commit into from
Mar 25, 2019

Conversation

andy-lee-eng
Copy link
Collaborator

Initialise by briefly creating svg elements to get the css styles for all series. Then use those styles for the colour ranges.

Colour ranges now always have a default, so no need to fall back on hard-coded or un-styled.

Get "opacity" level (for fill areas etc) from the base "series" setting, so it can be applied at runtime. This allows the themes to set different opacity levels.

Initialise by briefly creating svg elements to get the css styles for all series. Then use those styles for the colour ranges.

Colour ranges now always have a default, so no need to fall back on hard-coded or un-styled.

Get "opacity" level (for fill areas etc) from the base "series" setting, so it can be applied at runtime. This allows the themes to set different opacity levels.
Copy link
Collaborator

@matt-hooper matt-hooper left a comment

Choose a reason for hiding this comment

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

Looks really good.
If you know the order of the values you are using (and you are not doing a split-by etc). It makes it really easy to style the elements:

image

Copy link
Owner

@redbearsam redbearsam left a comment

Choose a reason for hiding this comment

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

Massive fan of the elimination of "if (color)" all over the place, as well as the actual feature.

@andy-lee-eng andy-lee-eng merged commit 5e7ff57 into develop Mar 25, 2019
@andy-lee-eng andy-lee-eng deleted the feature/theme-series branch March 25, 2019 14:01
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