Skip to main content

Map

A geographic map which can be either supplied location names or longitude/latitude values.

Options

  • data | object (required): object of value arrays for each variable. Default: none.
  • scope | string: scope of map to be displayed. Default: 'world'.
  • locations | string: name of variable in data holding location names. Default: none.
  • locationmode | string: either ISO-3, USA-states, or country names denoting how values in locations are encoded. Default: 'country names'.
  • longitude | string: name of variable in data holding longitude values. Default: none.
  • latitude | string: name of variable in data holding latitude values. Default: none.
  • showLand | boolean: whether to show geographic features on map. Default: false.
  • aggregation | string: string indicating how to aggregate values for each location (either sum, avg, min, max, mode, median, count, first, or last). Default: 'sum'.

Examples