-
Notifications
You must be signed in to change notification settings - Fork 612
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
Support gradientLength for quantile
and quantize
color scales
#9399
Comments
From a code dive, it looks like This FR could be reclassified as a |
quantile
and quantize
color scalesquantile
and quantize
color scales
Yeah, sounds like a bug fix. |
I figured out a runtime fix, which I'll push shortly. The deeper conceptual question which might lead to a change back in should be exported as a 3rd LegendType, or if |
Motivation
For continuous (linear) scales on a color encoding, the
gradientLength
config can be used to control legend length.Unfortunately, this property has no effect when using discrete color scales, like
quantile
orquantize
. As far as I could tell, the symbol config options don't control height either.This can lead to legends that are much taller than their graph (see below: the
gradientLength
param is set, but it appears to have no effect.)Proposed solution
discrete color scales
, perhaps setting the overall legend height (since the quantile mode won't have even tick sizes), in the direction ofdiscreteColorLegendLength
.Related PRs
legend
issues, I founddiscrete gradient legend
The text was updated successfully, but these errors were encountered: