Skip to content

API reference

Enumerations

Enumeration Description
ColumnTypeNames -
DimensionProperty -

Classes

Class Description
OwidTable -
Grapher -
GrapherLoader Builder for rendering a Grapher chart into a DOM container.

Interfaces

Interface Description
OwidColumnDef -
GrapherInterface -
GrapherState -
GrapherProgrammaticInterface A Grapher config plus options that aren't part of the persisted config schema: they control how a chart is embedded and which parts of its interface are shown, rather than what the chart shows. Authors never set these in the chart editor; developers pass them in code, e.g. as the config of a GrapherLoader.
FromTableOptions Options for GrapherLoader.fromTable.
FromApiOptions Options for GrapherLoader.fromApi.

Type Aliases

Type Alias Description
OwidChartDimensionInterface -
FromCsvOptions Options for GrapherLoader.fromCsv. Provide the CSV either inline (csv) or as a URL to fetch (csvUrl). It must have an entityName column and a year (or day) column, plus one or more value columns; entityCode and entityId columns are optional.

Functions

Function Description
FetchingGrapher -