@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Function extractSeriesData

    • Build ChartSeriesData array from ChartLayer descriptors.

      Each layer is resolved against the component-level defaultData and defaultValueProperty, then colour-assigned from the palette. In multi-series mode every point within a series receives the same colour (the series colour).

      Type Parameters

      • T

      Parameters

      • layers: readonly ChartLayer<T>[]
      • defaultData: readonly T[]
      • labelProperty: keyof T
      • defaultValueProperty: keyof T
      • palette: readonly string[] = DEFAULT_CHART_PALETTE

      Returns ChartSeriesData[]