Choropleth
Two keys in, a publishable map out
Equal Earth. Quantile breaks, printed in the legend rather than hidden. A ramp sampled in OkLab so no class is a dead step. None of it was configured: that is what a default is for.
Illustrative data. A smooth field over the globe, identical on every load. Geometry Natural Earth 1:110m, built-in registry Projection Equal Earth, cropped below 58°S
What was passed
The whole configuration
Everything the map decided beyond this, it decided because a default that needs styling before it can be shown is not a default.
new ApexMaps(element, {
geo: { map: 'world/countries@110m' },
series: [{ name: 'Index', joinBy: 'name', data }],
})
What the demo adds
Four editorial choices
Presentation, not capability. Each one is the difference between output and a published graphic, and each is a single option.
view: { fit: [-180, -58, 180, 84] } // crop Antarctica
labels: { formatter: featuredOnly } // 14 names, not 177
legend: { title: 'Composite index', // say what the number is
align: 'center',
style: 'gradient', // one banded bar, not five swatches
marker: true } // arrow tracks the hovered country