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 concatenating two geoshape charts it is not possible to independently resolve the latitude and longitude when the same projection is used. As an example, consider a chart showing two US states side by side.
If we plot them separately, we get results exactly as we would expect, with the chart automatically adjusting the extent to the size of the data.
However, if we concatenate them the extent in each changes as if it were showing both states. I have attempted to set all of the resolve settings to independent, but none of them had any affect.
If we additionally change the projection of each chart to something different, we get the expected behavior where each chart's extent is only for its data.
As users will generally want all maps in the same projection it would be desirable for each chart to independently resolve the extent without changing the projection.
I previously posted this on stack overflow as an Altair question and was asked to repost this here as an issue by @joelostblom.
Thanks!
Checklist
I checked for duplicate issues.
The text was updated successfully, but these errors were encountered:
I've identified a generic workaround that works for any projection and has minimal/no side effects. If one changes the precision of one of the projections it will treat them as separate projections and plot as desired
Bug Description
When concatenating two geoshape charts it is not possible to independently resolve the latitude and longitude when the same projection is used. As an example, consider a chart showing two US states side by side.
If we plot them separately, we get results exactly as we would expect, with the chart automatically adjusting the extent to the size of the data.
State A:
Open the Chart in the Vega Editor
State B:
Open the Chart in the Vega Editor
However, if we concatenate them the extent in each changes as if it were showing both states. I have attempted to set all of the resolve settings to independent, but none of them had any affect.
Open the Chart in the Vega Editor
If we additionally change the projection of each chart to something different, we get the expected behavior where each chart's extent is only for its data.
Open the Chart in the Vega Editor
As users will generally want all maps in the same projection it would be desirable for each chart to independently resolve the extent without changing the projection.
I previously posted this on stack overflow as an Altair question and was asked to repost this here as an issue by @joelostblom.
Thanks!
Checklist
The text was updated successfully, but these errors were encountered: