Skip to content

Variable: scatterGeo ​

ts
const scatterGeo: ExpressFunction<ScatterGeoOptions>;

Experimental

Markers on a map (px.scatter_geo): one scattergeo trace (mode: 'markers') per group of color / symbol values, per facet and per frame, at lat / lon or at the places locations name. A numeric color is a colorscale on coloraxis instead; size scales marker areas. Drawing the figure needs the geo package: import '@mk7s/holochart/geo'.

Example ​

ts
const figure = scatterGeo(countries, {
  locations: 'iso',
  color: 'continent',
  size: 'pop',
  projection: 'natural earth',
});

Released under the MIT License.