Class MockDataProvider

Simple mock data provider that provides mock data for all regions. Mostly only useful for testing / demos.

Example

dataReference: {
providerId: "mock",
minValue: 0,
maxValue: 100,
startDate: "2022-01-02",
endDate: "2022-06-01",
},

Hierarchy

Constructors

Properties

cachedData: {
    [key: string]: MetricData<number>;
} = {}

Type declaration

id: string

A unique provider id to associate with the provider (e.g. "mock"). This ID can be used from a MetricDataReference in a metric to reference the data from this provider.

Methods

Generated using TypeDoc