You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a chart is created with a single x encoding, 5 values, and a size of width=250 and height=40, adding a selector with the nearest mode enabled does not allow the 2nd element to be selected. This works fine if wither the height or width are increased/decreased by 1. It also works if one changes the x encoding to y and swaps the width and height.
Here is a working example vega-editor. It is possible to select all points by clicking except the 2nd one.
A workaround for this is to use encodings=["x"], but I think it's possible that whatever is causing this could cause other bugs, so worth looking into.
Checklist
I checked for duplicate issues.
The text was updated successfully, but these errors were encountered:
This appears to be caused by a bug while creating the Voroni diagram. If you make the stroke visible in the compiled Vega you can see that there is a line through the 2nd point when the width is 250.
However, if you change the width to 251 the diagram looks reasonable:
Given this I believe that the bug is in Vega, not Vega-Lite, so I have opened another issue in that repository.
Bug Description
When a chart is created with a single x encoding, 5 values, and a size of width=250 and height=40, adding a selector with the nearest mode enabled does not allow the 2nd element to be selected. This works fine if wither the height or width are increased/decreased by 1. It also works if one changes the x encoding to y and swaps the width and height.
Here is a working example vega-editor. It is possible to select all points by clicking except the 2nd one.
A workaround for this is to use
encodings=["x"]
, but I think it's possible that whatever is causing this could cause other bugs, so worth looking into.Checklist
The text was updated successfully, but these errors were encountered: