-
Notifications
You must be signed in to change notification settings - Fork 75
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
Conversation
matthewma7
commented
Apr 19, 2018
df5749a
to
ded96ae
Compare
tests/cases/colorLegend.js
Outdated
name: 'Continuous multicolor', | ||
type: 'continuous', | ||
scale: 'pow', | ||
domain: [100, 1000], |
There was a problem hiding this comment.
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]
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
… an option to only show left most and right most axis label
80c6f4a
to
cadfa39
Compare