Skip to content

Per-channel scale overrides cannot be used in conjunction with bin and group transforms #1309

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

Closed
mbostock opened this issue Mar 2, 2023 · 0 comments · Fixed by #1310
Closed
Labels
enhancement New feature or request

Comments

@mbostock
Copy link
Member

mbostock commented Mar 2, 2023

For example, consider this snippet:

Plot.rectX(penguins, Plot.binX({fillOpacity: "proportion"}, {x: "body_mass_g", thresholds: 20}))

If whether or not the fillOpacity channel is bound to the opacity scale is inferred automatically by the values (per #1308), how would you tell Plot that you want (or don’t want) the opacity scale? The following syntax errors:

Plot.rectX(penguins, Plot.binX({fillOpacity: {value: "proportion", scale: null}}, {x: "body_mass_g", thresholds: 20}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant