MAIDR JavaScript API
    Preparing search index...

    Type Alias ChartJsDataValue

    ChartJsDataValue:
        | number
        | null
        | [ChartJsRangeBound, ChartJsRangeBound]
        | ChartJsPointValue
        | { x: number | string; o: number; h: number; l: number; c: number }
        | {
            min: number;
            q1: number;
            median: number;
            q3: number;
            max: number;
            outliers?: number[];
        }
        | { x: string
        | number; y: string | number; v: number }
        | ChartJsTreemapValue
        | ChartJsSankeyValue
        | ChartJsGeoValue
        | ChartJsGraphValue

    Union of data value shapes found in Chart.js datasets. Covers native chart types and popular plugins (boxplot, financial, matrix).

    Type Declaration

    • number
    • null
    • [ChartJsRangeBound, ChartJsRangeBound]

      A floating bar: [start, end] rather than a magnitude from the baseline. Chart.js draws gantt lanes, range bars and waterfall steps this way.

    • ChartJsPointValue
    • { x: number | string; o: number; h: number; l: number; c: number }
    • {
          min: number;
          q1: number;
          median: number;
          q3: number;
          max: number;
          outliers?: number[];
      }
    • { x: string | number; y: string | number; v: number }
    • ChartJsTreemapValue

      A rectangle the treemap plugin laid out. It replaces the caller's tree in dataset.data during chart.update(), so this union has to admit it for the dataset to be read at all.

    • ChartJsSankeyValue

      One weighted flow of a sankey dataset.

    • ChartJsGeoValue

      One region of a choropleth, or one bubble of a bubble map.

    • ChartJsGraphValue

      One node of a tree, dendrogram or force-directed graph.