meo-canvas
    Preparing search index...

    Interface ChartProps<T>

    What a chart is asked for.

    interface ChartProps<T extends ChartType> {
        data: T extends "bar"
        | "line"
            ? CartesianChartData
            : readonly PieChartDataPoint[];
        fontFamily?: string;
        height?: string | number;
        options?: BaseChartOptions;
        type: T;
        width?: string | number;
    }

    Type Parameters

    Index
    data: T extends "bar"
    | "line"
        ? CartesianChartData
        : readonly PieChartDataPoint[]

    The values, in the shape type selects.

    fontFamily?: string

    The face every piece of text in the chart is set in.

    height?: string | number

    The chart's height, on the same terms.

    What to draw besides the data itself, and in what colours.

    type: T

    Which chart to draw.

    It also decides what data must be: this is the discriminant, so a bar chart handed pie data is a type error rather than an empty plot.

    width?: string | number

    The chart's width. Absent lets layout decide, as for any other node.