MAIDR JavaScript API
    Preparing search index...

    A rendered Frappe Charts instance. Only the fields the adapter reads are declared here.

    interface FrappeChart {
        data: FrappeData;
        config?: { maxSlices?: number; startAngle?: number };
        clockWise?: boolean;
        lineOptions?: { regionFill?: number };
    }
    Index

    Properties

    config?: { maxSlices?: number; startAngle?: number }

    The chart's resolved configuration, read only for pie / donut charts.

    maxSlices: Frappe collapses everything past that many slices into a single "Rest" wedge, and the conversion has to collapse the same way to stay aligned with the wedges it draws. startAngle: where the first slice begins, in degrees clockwise from 12 o'clock — Frappe's own convention is the grammar's. Absent on a plain { data } object, in which case Frappe's own defaults (20 slices, from 12 o'clock) are assumed.

    clockWise?: boolean

    Whether a pie or donut lays its slices out clockwise. Frappe keeps the clockWise option on the instance rather than in config, and its default is counterclockwise: without it, the first slice runs from 12 o'clock round to the left. Absent on a plain { data } object, in which case that default is assumed.

    lineOptions?: { regionFill?: number }

    The chart's line rendering options, an instance field on Frappe's AxisChart rather than part of config. Only regionFill is read: it is what fills the band between the line and the baseline, which makes the chart an area chart rather than a line chart, and reading it here means an author cannot mislabel one as the other. Absent on a plain { data } object — pass chartType: 'area' in that case.