Interface: DoughnutController

    Readonly _cachedMeta: ChartMeta<<AnyObject, AnyObject>, Element<AnyObject, AnyObject>, keyof >

    Inherited from

    ._cachedMeta

    Defined in

    index.esm.d.ts:576 (opens new window)


    chart

    Readonly chart: Chart<keyof , (number | ScatterDataPoint | )[], unknown>

    Inherited from

    .chart

    Defined in

    index.esm.d.ts:574DoughnutController - 图2 (opens new window)


    enableOptionSharing

    enableOptionSharing: boolean

    Inherited from

    .enableOptionSharing

    Defined in

    index.esm.d.ts:577 (opens new window)


    index

    Readonly index: number

    Inherited from

    .index

    Defined in

    index.esm.d.ts:575DoughnutController - 图4 (opens new window)


    innerRadius

    Readonly innerRadius: number

    Defined in


    offsetX

    Readonly offsetX: number

    Defined in

    index.esm.d.ts:331DoughnutController - 图6 (opens new window)


    offsetY

    Readonly offsetY: number

    Defined in


    outerRadius

    Readonly outerRadius: number

    Defined in

    index.esm.d.ts:330DoughnutController - 图8 (opens new window)

    addElements

    addElements(): void

    Returns

    void

    Inherited from

    DatasetController.

    Defined in


    applyStack

    Protected applyStack(scale, parsed): number

    Parameters

    Returns

    number

    Inherited from

    DatasetController.

    Defined in


    buildOrUpdateElements

    buildOrUpdateElements(resetNewElements?): void

    Parameters

    NameType
    resetNewElements?boolean

    Returns

    void

    Inherited from

    DatasetController.

    Defined in


    calculateCircumference

    calculateCircumference(value): number

    Parameters

    NameType
    valuenumber

    Returns

    number

    Defined in

    index.esm.d.ts:335DoughnutController - 图12 (opens new window)


    calculateTotal

    calculateTotal(): number

    Returns

    number

    Defined in

    index.esm.d.ts:334 (opens new window)


    configure

    configure(): void

    Returns

    void

    Inherited from

    DatasetController.

    Defined in


    draw(): void

    Returns

    void

    Inherited from

    DatasetController.

    Defined in


    getAllParsedValues

    getAllParsedValues(scale): number[]

    Parameters

    NameType
    scaleScale<>

    Returns

    number[]

    Inherited from

    DatasetController.

    Defined in


    getDataset

    getDataset(): <keyof ChartTypeRegistry, (number | | BubbleDataPoint)[]>

    Returns

    ChartDataset<keyof , (number | ScatterDataPoint | )[]>

    Inherited from

    Defined in

    index.esm.d.ts:588 (opens new window)


    getLabelAndValue

    Protected getLabelAndValue(index): Object

    Parameters

    NameType
    indexnumber

    Returns

    Object

    NameType
    labelstring
    valuestring

    Inherited from

    .getLabelAndValue

    Defined in

    index.esm.d.ts:581DoughnutController - 图18 (opens new window)


    getMaxOverflow

    Protected getMaxOverflow(): number | boolean

    Returns

    number | boolean

    Inherited from

    DatasetController.

    Defined in


    getMeta

    getMeta(): <Element<AnyObject, AnyObject>, <AnyObject, AnyObject>, keyof ChartTypeRegistry>

    Returns

    ChartMeta<<AnyObject, AnyObject>, Element<AnyObject, AnyObject>, keyof >

    Inherited from

    .getMeta

    Defined in

    index.esm.d.ts:589DoughnutController - 图20 (opens new window)


    getMinMax

    Protected getMinMax(scale, canStack?): Object

    Parameters

    NameType
    scale<CoreScaleOptions>
    canStack?boolean

    Returns

    Object

    NameType
    maxnumber
    minnumber

    Inherited from

    .getMinMax

    Defined in

    index.esm.d.ts:636 (opens new window)


    getParsed

    Protected getParsed(index): number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData

    Parameters

    NameType
    indexnumber

    Returns

    number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData

    Inherited from

    .getParsed

    Defined in

    index.esm.d.ts:628DoughnutController - 图22 (opens new window)


    getScaleForId

    getScaleForId(scaleID): Scale<>

    Parameters

    Returns

    Scale<>

    Inherited from

    .getScaleForId

    Defined in

    index.esm.d.ts:590 (opens new window)


    getSharedOptions

    Protected getSharedOptions(options): AnyObject

    Utility for checking if the options are shared and should be animated separately.

    Parameters

    NameType
    optionsAnyObject

    Returns

    AnyObject

    Inherited from

    .getSharedOptions

    Defined in

    index.esm.d.ts:603DoughnutController - 图24 (opens new window)


    getStyle

    getStyle(index, active): AnyObject

    Parameters

    NameType
    indexnumber
    active

    Returns

    AnyObject

    Inherited from

    .getStyle

    Defined in

    index.esm.d.ts:596 (opens new window)


    includeOptions

    Protected includeOptions(mode, sharedOptions): boolean

    Utility for determining if options should be included in the updated properties

    Parameters

    NameType
    mode“resize” | “reset” | “none” | “hide” | “show” | “normal” | “active”
    sharedOptionsAnyObject

    Returns

    boolean

    Inherited from

    .includeOptions

    Defined in

    index.esm.d.ts:608DoughnutController - 图26 (opens new window)


    initialize

    initialize(): void

    Returns

    void

    Inherited from

    DatasetController.

    Defined in


    linkScales

    linkScales(): void

    Returns

    void

    Inherited from

    .linkScales

    Defined in

    index.esm.d.ts:579DoughnutController - 图28 (opens new window)


    parse(start, count): void

    Parameters

    NameType
    startnumber
    countnumber

    Returns

    void

    Inherited from

    DatasetController.

    Defined in


    parseArrayData

    Protected parseArrayData(meta, data, start, count): AnyObject[]

    Parameters

    NameType
    metaChartMeta<<AnyObject, AnyObject>, Element<AnyObject, AnyObject>, keyof >
    dataAnyObject[]
    startnumber
    countnumber

    Returns

    AnyObject[]

    Inherited from

    Defined in


    parseObjectData

    Protected parseObjectData(meta, data, start, count): AnyObject[]

    Parameters

    NameType
    metaChartMeta<<AnyObject, AnyObject>, Element<AnyObject, AnyObject>, keyof >
    dataAnyObject[]
    startnumber
    countnumber

    Returns

    AnyObject[]

    Inherited from

    DatasetController.

    Defined in


    parsePrimitiveData

    Protected parsePrimitiveData(meta, data, start, count): AnyObject[]

    Parameters

    NameType
    metaChartMeta<<AnyObject, AnyObject>, Element<AnyObject, AnyObject>, keyof >
    dataAnyObject[]
    startnumber
    countnumber

    Returns

    AnyObject[]

    Inherited from

    DatasetController.

    Defined in


    removeHoverStyle

    removeHoverStyle(element, datasetIndex, index): void

    Parameters

    NameType
    elementElement<AnyObject, AnyObject>
    datasetIndexnumber
    indexnumber

    Returns

    void

    Inherited from

    .removeHoverStyle

    Defined in

    index.esm.d.ts:621 (opens new window)


    reset

    reset(): void

    Returns

    void

    Inherited from

    DatasetController.

    Defined in


    resolveDataElementOptions

    Protected resolveDataElementOptions(index, mode): AnyObject

    Parameters

    Returns

    AnyObject

    Inherited from

    DatasetController.

    Defined in


    resolveDatasetElementOptions

    Protected resolveDatasetElementOptions(mode): AnyObject

    Parameters

    NameType
    “resize” | “reset” | “none” | “hide” | “show” | “normal” | “active”

    Returns

    AnyObject

    Inherited from

    DatasetController.

    Defined in


    setHoverStyle

    setHoverStyle(element, datasetIndex, index): void

    Parameters

    NameType
    elementElement<AnyObject, AnyObject>
    datasetIndexnumber
    indexnumber

    Returns

    void

    Inherited from

    .setHoverStyle

    Defined in

    index.esm.d.ts:622 (opens new window)


    update

    update(mode): void

    Parameters

    NameType
    mode“resize” | “reset” | “none” | “hide” | “show” | “normal” | “active”

    Returns

    void

    Inherited from

    .update

    Defined in

    index.esm.d.ts:583DoughnutController - 图38 (opens new window)


    updateElement

    Protected updateElement(element, index, properties, mode): void

    Utility for updating an element with new properties, using animations when appropriate.

    Parameters

    NameType
    element<AnyObject, AnyObject>
    indexnumber
    propertiesAnyObject
    mode“resize” | “reset” | “none” | “hide” | “show” | “normal” | “active”

    Returns

    void

    Inherited from

    DatasetController.

    Defined in


    updateElements

    updateElements(elements, start, count, mode): void

    Parameters

    NameType
    elementsElement<AnyObject, AnyObject>[]
    startnumber
    countnumber
    mode“resize” | “reset” | “none” | “hide” | “show” | “normal” | “active”

    Returns

    void

    Inherited from

    .updateElements

    Defined in

    index.esm.d.ts:582DoughnutController - 图40 (opens new window)


    updateIndex

    updateIndex(datasetIndex): void

    Parameters

    NameType
    datasetIndexnumber

    Returns

    void

    Inherited from

    .updateIndex

    Defined in

    index.esm.d.ts:584 (opens new window)


    updateRangeFromParsed

    Protected updateRangeFromParsed(range, scale, parsed, stack): void

    Parameters

    NameType
    rangeObject
    range.maxnumber
    range.minnumber
    scale<CoreScaleOptions>
    parsedunknown[]
    stackstring | boolean

    Returns

    void

    Inherited from

    .updateRangeFromParsed

    Defined in

    index.esm.d.ts:630DoughnutController - 图42 (opens new window)


    Protected updateSharedOptions(sharedOptions, mode, newOptions): void

    Utility to animate the shared options, that are potentially affecting multiple elements.

    Parameters

    NameType
    sharedOptionsAnyObject
    mode“resize” | “reset” | “none” | “hide” | “show” | “normal” | “active”
    newOptionsAnyObject

    Returns

    Inherited from

    Defined in