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

The opacity and fillOpacity channels do not faithfully render the opacity value in the column #9163

Closed
quantoid opened this issue Nov 2, 2023 · 0 comments · Fixed by #9238
Labels

Comments

@quantoid
Copy link

quantoid commented Nov 2, 2023

When using the fillOpacity channel (via Altair), a value of 0.0 in the column actually gets rendered at around 0.38 opacity. Perhaps this is so that marks don't disappear completely, but it seems to be undocumented and it's not obvious how to make opacity exactly match the column values.

In the end I had to specify a domain starting from 0.3:

"fillOpacity": {"field": "opacity", "type": "quantitative", "scale": {"domain": [0.4, 1.0]}}

Now an opacity of 0.0 will disappear (if that's what you want).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant