Pebble App Framework: Phone API
    Preparing search index...

    Function seriesValue

    • Reads one point of a series.

      A null point is a reading the plugin did not have, so it counts as missing like any other gap.

      Parameters

      • series: SeriesShape | undefined

        The series off a property, which may be missing.

      • shape: "numericValue"

        Which shape inside the series to read.

      • index: number | undefined

        The point, normally from seriesIndex.

      Returns NumericReading | undefined

      The number and its unit, the text, or the moment, by shape. Undefined for a missing point.

    • Reads one point of a series.

      A null point is a reading the plugin did not have, so it counts as missing like any other gap.

      Parameters

      • series: SeriesShape | undefined

        The series off a property, which may be missing.

      • shape: "shortText" | "longText"

        Which shape inside the series to read.

      • index: number | undefined

        The point, normally from seriesIndex.

      Returns string | undefined

      The number and its unit, the text, or the moment, by shape. Undefined for a missing point.

    • Reads one point of a series.

      A null point is a reading the plugin did not have, so it counts as missing like any other gap.

      Parameters

      • series: SeriesShape | undefined

        The series off a property, which may be missing.

      • shape: "timestamp"

        Which shape inside the series to read.

      • index: number | undefined

        The point, normally from seriesIndex.

      Returns number | undefined

      The number and its unit, the text, or the moment, by shape. Undefined for a missing point.