-
Notifications
You must be signed in to change notification settings - Fork 31
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
Axis scale includes null value counts #222
Comments
The aggregate (bin/count) query must be returning an entry corresponding to the null values. I'm guessing the resulting The question is where we might want null filtering/suppression to kick in. Should the underlying query suppress nulls? In general I don't think so, as your |
I think it would be nice to have a separate bar for nulls or an indicator how many nulls there are nulls in a histogram similar to tableau. Then the right things would probably be to remove the nulls before passing to plot but still query for them. |
@domoritz we can already do this with an ordinal domain, but with rectX/Y here we have a solely continuous domain. But the bin transform should already work with barX/Y for an ordinal scale including nulls. |
I'm thinking of something like https://vega.github.io/vega/examples/histogram-null-values/. |
When plotting a binned bar chart, I noticed that the y axis scale is affected by the presence of nulls. Is this expected?
For example, the following chart does not include null values and the y axis has a max of 1:
Whereas this data has null values and the y axis max is 6
I would expect these two plots to look the same, however it seems the presence of nulls is affecting the axis scale. One workaround I've found is to first create a view that filters out nulls before plotting but curious if this should not be the default behavior?
The text was updated successfully, but these errors were encountered: