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

Add multi color support to continuous color legend #810

Merged
merged 3 commits into from
Apr 23, 2018

Conversation

matthewma7
Copy link

image

@matthewma7 matthewma7 force-pushed the multi_color_linear_legend branch 3 times, most recently from df5749a to ded96ae Compare April 20, 2018 15:16
name: 'Continuous multicolor',
type: 'continuous',
scale: 'pow',
domain: [100, 1000],
Copy link
Member

Choose a reason for hiding this comment

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

@matthewma7 we want domain to be piecewise so we should test if this works:

So domain: [100, 500, 1000]
Colors: [red, blue, green]

Copy link
Author

Choose a reason for hiding this comment

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

The current code doesn't support piecewise function, the workaround is creating multiple color ranges. Do we need piecewise support?

Copy link
Member

Choose a reason for hiding this comment

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

@matthewma7 I think we want piecewise support in GeoJS. I am assuming that it just request the JavaScript code, the SVG can use the result of the piecewise function.

Copy link
Author

Choose a reason for hiding this comment

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

I see, I'll add piecewise function support to this PR.

@matthewma7 matthewma7 force-pushed the multi_color_linear_legend branch from 80c6f4a to cadfa39 Compare April 20, 2018 21:11
@matthewma7 matthewma7 merged commit e70f6e4 into master Apr 23, 2018
@matthewma7 matthewma7 deleted the multi_color_linear_legend branch April 23, 2018 20:10
@aashish24
Copy link
Member

@kkola

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