I have some data on European countries. I'm trying to create a visualization in Altair / Vega-Lite using the world-110m data. Everything technically works fine, except that coded boundaries of the countries also include far-away territories, producing a terrible map that looks like this:
Here is my code:
countries = alt.topo_feature(data.world_110m.url, 'countries')
source = df.copy()
map = alt.Chart(countries).mark_geoshape(
stroke='black'
).encode(
color=alt.Color('SomeStat:Q', sort="descending", scale=alt.Scale(
scheme='inferno', domain=(min_value,max_value)), legend=alt.Legend(title="", tickCount=6))
).transform_lookup(
lookup='id',
from_=alt.LookupData(source, 'CountryId', ['SomeStat', 'CountryName'])
).project(
type='mercator'
)
Is there a way to crop this map or center it so that I'm only getting Europe and not far-flung territories all over the world?
Alternatively, is there a better public dataset I should be using that only includes Europe?

