Skip to content

FromApiOptions

Options for GrapherLoader.fromApi.

Extends

  • GrapherApiOptionsBase

Properties

Property Type Description
config GrapherInterface & { dimensions: OwidChartDimensionInterface[]; } The config must say which indicators to fetch: a dimensions array with at least a y entry (e.g. { property: "y", variableId: 1118466 }).
dataApiUrl? string Base URL for the OWID data API. Defaults to "https://api.ourworldindata.org/v1/indicators/"