Interface TrendType

Interface used for generating trends

interface TrendType {
    createTrend: ((yValues, key, blankInterval, totalCount) => TrendForecast);
    getKey(value): string;
}

Properties

Methods

Properties

createTrend: ((yValues, key, blankInterval, totalCount) => TrendForecast)

This will be called for all values that are found in a set that have the same return from getType.

Type declaration

    • (yValues, key, blankInterval, totalCount): TrendForecast
    • Parameters

      • yValues: any[]
      • key: string
      • blankInterval: number
      • totalCount: number

      Returns TrendForecast

Methods

  • called with the value to see if the value is this type.

    Parameters

    • value: any

    Returns string

    null if the value is not of this type.