MAIDR Documentation - v4.4.0
    Preparing search index...

    One pie or doughnut slice, in CSS pixels relative to the canvas top-left.

    Angles are radians as Chart.js stores them on an ArcElement: measured from 3 o'clock and increasing clockwise, with the chart's rotation already folded in. Both <canvas> and SVG put +y downwards, so the same angle maps to the same point in either — no conversion is needed here.

    interface OverlayWedge {
        kind: "wedge";
        x: number;
        y: number;
        innerRadius: number;
        outerRadius: number;
        startAngle: number;
        endAngle: number;
    }
    Index

    Properties

    kind: "wedge"
    x: number

    Centre of the circle the slice belongs to.

    y: number
    innerRadius: number

    Zero for a pie; the cutout radius for a doughnut.

    outerRadius: number
    startAngle: number
    endAngle: number