We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Originally reported at SO: https://stackoverflow.com/questions/79101599/how-to-solve-strange-plotting-error-in-altair
One of the weirdest bugs I've seen lately..
This specification gives a sad-face (Open the Chart in the Vega Editor):
{ "$schema": "https://vega.github.io/schema/vega-lite/v5.20.1.json", "data": {"name": "ref"}, "mark": {"type": "circle", "size": 500}, "encoding": { "latitude": {"field": "lat", "type": "quantitative"}, "longitude": {"field": "lon", "type": "quantitative"} }, "datasets": { "ref": [ {"lat": 51.4, "lon": 1.1}, {"lat": 51.5, "lon": 1.2}, {"lat": 51.31, "lon": 1.3}, {"lat": null, "lon": null} ] } }
When rounding the latitude value 51.31 to 51.3 there is no sad-face anymore, but only a very large white space (Open the Chart in the Vega Editor):
51.31
51.3
Removing the rows that contain null values can resolve the issue (Open the Chart in the Vega Editor):
null
Or by changing the latitude value 51.4 to a lower value like 51.2 and keep the null values in the dataset (Open the Chart in the Vega Editor):
51.4
51.2
But then there is again a strange white space area on the left. Weird, weird.
The text was updated successfully, but these errors were encountered:
I see a few differences from what you observe.
Your first spec in Chrome with canvas render shows sad face. Switching to SVG render shows the dots.
Your first spec in FF with canvas render shows no sad face and just white space. Switching to SVG render shows the dots.
Sorry, something went wrong.
No branches or pull requests
One of the weirdest bugs I've seen lately..
This specification gives a sad-face (Open the Chart in the Vega Editor):
When rounding the latitude value
51.31
to51.3
there is no sad-face anymore, but only a very large white space (Open the Chart in the Vega Editor):Removing the rows that contain
null
values can resolve the issue (Open the Chart in the Vega Editor):Or by changing the latitude value
51.4
to a lower value like51.2
and keep thenull
values in the dataset (Open the Chart in the Vega Editor):But then there is again a strange white space area on the left. Weird, weird.
The text was updated successfully, but these errors were encountered: