Interface: PolarAreaController
-
↳
• Readonly
_cachedMeta: ChartMeta<<AnyObject
, AnyObject
>, Element<AnyObject
, AnyObject
>, keyof >
Inherited from
DoughnutController._cachedMeta
Defined in
index.esm.d.ts:576 (opens new window)
chart
• Readonly
chart: Chart<keyof , (number
| ScatterDataPoint | )[], unknown
>
Inherited from
DoughnutController.chart
Defined in
index.esm.d.ts:574 (opens new window)
enableOptionSharing
• enableOptionSharing: boolean
Inherited from
DoughnutController.enableOptionSharing
Defined in
index.esm.d.ts:577 (opens new window)
index
• Readonly
index: number
Inherited from
DoughnutController.index
Defined in
index.esm.d.ts:575 (opens new window)
innerRadius
• Readonly
innerRadius: number
Inherited from
DoughnutController.innerRadius
Defined in
index.esm.d.ts:329 (opens new window)
offsetX
• Readonly
offsetX: number
Inherited from
DoughnutController.offsetX
Defined in
index.esm.d.ts:331 (opens new window)
offsetY
• Readonly
offsetY: number
Inherited from
DoughnutController.offsetY
Defined in
index.esm.d.ts:332 (opens new window)
outerRadius
• Readonly
outerRadius: number
Inherited from
DoughnutController.outerRadius
Defined in
index.esm.d.ts:330 (opens new window)
addElements
▸ addElements(): void
Returns
void
Inherited from
DoughnutController.addElements
Defined in
applyStack
▸ Protected
applyStack(scale
, parsed
): number
Parameters
Returns
number
Inherited from
DoughnutController.applyStack
Defined in
buildOrUpdateElements
▸ buildOrUpdateElements(resetNewElements?
): void
Parameters
Name | Type |
---|---|
resetNewElements? | boolean |
Returns
void
Inherited from
DoughnutController.buildOrUpdateElements
Defined in
calculateCircumference
▸ calculateCircumference(value
): number
Parameters
Name | Type |
---|---|
value | number |
Returns
number
Inherited from
DoughnutController.calculateCircumference
Defined in
calculateTotal
▸ calculateTotal(): number
Returns
number
Inherited from
DoughnutController.calculateTotal
Defined in
index.esm.d.ts:334 (opens new window)
configure
▸ configure(): void
Returns
void
Inherited from
DoughnutController.configure
Defined in
▸ countVisibleElements(): number
Returns
number
Defined in
index.esm.d.ts:381 (opens new window)
draw
▸ draw(): void
Returns
void
Inherited from
DoughnutController.draw
Defined in
getAllParsedValues
Parameters
Name | Type |
---|---|
scale | Scale<> |
Returns
number
[]
Inherited from
DoughnutController.getAllParsedValues
Defined in
getDataset
▸ getDataset(): <keyof ChartTypeRegistry, (number
| | BubbleDataPoint)[]>
Returns
ChartDataset<keyof , (number
| ScatterDataPoint | )[]>
Inherited from
DoughnutController.getDataset
Defined in
index.esm.d.ts:588 (opens new window)
getLabelAndValue
▸ Protected
getLabelAndValue(index
): Object
Parameters
Name | Type |
---|---|
index | number |
Returns
Object
Name | Type |
---|---|
label | string |
value | string |
Inherited from
DoughnutController.getLabelAndValue
Defined in
index.esm.d.ts:581 (opens new window)
getMaxOverflow
▸ Protected
getMaxOverflow(): number
| boolean
Returns
number
| boolean
Inherited from
DoughnutController.getMaxOverflow
Defined in
getMeta
▸ getMeta(): <Element<AnyObject
, AnyObject
>, <AnyObject
, AnyObject
>, keyof ChartTypeRegistry>
Returns
ChartMeta<<AnyObject
, AnyObject
>, Element<AnyObject
, AnyObject
>, keyof >
Inherited from
DoughnutController.getMeta
Defined in
index.esm.d.ts:589 (opens new window)
getMinMax
▸ Protected
getMinMax(scale
, canStack?
): Object
Parameters
Name | Type |
---|---|
scale | <CoreScaleOptions> |
canStack? | boolean |
Returns
Object
Name | Type |
---|---|
max | number |
min | number |
Inherited from
DoughnutController.getMinMax
Defined in
index.esm.d.ts:636 (opens new window)
getParsed
▸ Protected
getParsed(index
): number
| BarParsedData
| CartesianParsedData
| BubbleParsedData
| RadialParsedData
Parameters
Name | Type |
---|---|
index | number |
Returns
number
| BarParsedData
| CartesianParsedData
| BubbleParsedData
| RadialParsedData
Inherited from
DoughnutController.getParsed
Defined in
index.esm.d.ts:628 (opens new window)
getScaleForId
▸ getScaleForId(scaleID
): Scale<>
Parameters
Returns
Scale<>
Inherited from
DoughnutController.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
Name | Type |
---|---|
options | AnyObject |
Returns
AnyObject
Inherited from
DoughnutController.getSharedOptions
Defined in
index.esm.d.ts:603 (opens new window)
getStyle
▸ getStyle(index
, active
): AnyObject
Parameters
Name | Type |
---|---|
index | number |
boolean |
Returns
AnyObject
Inherited from
DoughnutController.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
Name | Type |
---|---|
mode | “resize” | “reset” | “none” | “hide” | “show” | “normal” | “active” |
sharedOptions | AnyObject |
Returns
boolean
Inherited from
DoughnutController.includeOptions
Defined in
index.esm.d.ts:608 (opens new window)
initialize
▸ initialize(): void
Returns
void
Inherited from
DoughnutController.initialize
Defined in
▸ linkScales(): void
Returns
void
Inherited from
DoughnutController.linkScales
Defined in
parse
▸ parse(start
, count
): void
Parameters
Name | Type |
---|---|
start | number |
count | number |
Returns
void
Inherited from
DoughnutController.parse
Defined in
parseArrayData
▸ Protected
parseArrayData(meta
, data
, start
, count
): AnyObject
[]
Parameters
Name | Type |
---|---|
meta | <Element<AnyObject , AnyObject >, <AnyObject , AnyObject >, keyof ChartTypeRegistry> |
data | AnyObject [] |
start | number |
count | number |
Returns
AnyObject
[]
Inherited from
DoughnutController.parseArrayData
Defined in
index.esm.d.ts:626 (opens new window)
parseObjectData
▸ Protected
parseObjectData(meta
, data
, start
, count
): AnyObject
[]
Parameters
Name | Type |
---|---|
meta | <Element<AnyObject , AnyObject >, <AnyObject , AnyObject >, keyof ChartTypeRegistry> |
data | AnyObject [] |
start | number |
count | number |
Returns
AnyObject
[]
Inherited from
DoughnutController.parseObjectData
Defined in
index.esm.d.ts:627 (opens new window)
parsePrimitiveData
▸ Protected
parsePrimitiveData(meta
, data
, start
, count
): AnyObject
[]
Parameters
Name | Type |
---|---|
meta | <Element<AnyObject , AnyObject >, <AnyObject , AnyObject >, keyof ChartTypeRegistry> |
data | AnyObject [] |
start | number |
count | number |
Returns
AnyObject
[]
Inherited from
DoughnutController.parsePrimitiveData
Defined in
index.esm.d.ts:625 (opens new window)
removeHoverStyle
▸ removeHoverStyle(element
, datasetIndex
, index
): void
Parameters
Name | Type |
---|---|
element | <AnyObject , AnyObject > |
datasetIndex | number |
index | number |
Returns
void
Inherited from
DoughnutController.removeHoverStyle
Defined in
reset
▸ reset(): void
Returns
void
Inherited from
DoughnutController.reset
Defined in
index.esm.d.ts:587 (opens new window)
resolveDataElementOptions
▸ Protected
resolveDataElementOptions(index
, mode
): AnyObject
Parameters
Returns
AnyObject
Inherited from
DoughnutController.resolveDataElementOptions
Defined in
index.esm.d.ts:598 (opens new window)
resolveDatasetElementOptions
▸ Protected
resolveDatasetElementOptions(mode
): AnyObject
Parameters
Name | Type |
---|---|
“resize” | “reset” | “none” | “hide” | “show” | “normal” | “active” |
Returns
AnyObject
Inherited from
DoughnutController.resolveDatasetElementOptions
Defined in
index.esm.d.ts:597 (opens new window)
setHoverStyle
▸ setHoverStyle(element
, datasetIndex
, index
): void
Parameters
Name | Type |
---|---|
element | <AnyObject , AnyObject > |
datasetIndex | number |
index | number |
Returns
void
Inherited from
DoughnutController.setHoverStyle
Defined in
update
▸ update(mode
): void
Parameters
Name | Type |
---|---|
mode | “resize” | “reset” | “none” | “hide” | “show” | “normal” | “active” |
Returns
void
Inherited from
DoughnutController.update
Defined in
updateElement
▸ Protected
updateElement(element
, index
, properties
, mode
): void
Utility for updating an element with new properties, using animations when appropriate.
Parameters
Name | Type |
---|---|
element | Element<AnyObject , AnyObject > |
index | number |
properties | AnyObject |
mode | “resize” | “reset” | “none” | “hide” | “show” | “normal” | “active” |
Returns
void
Inherited from
DoughnutController.updateElement
Defined in
index.esm.d.ts:614 (opens new window)
updateElements
▸ updateElements(elements
, start
, count
, mode
): void
Parameters
Name | Type |
---|---|
elements | <AnyObject , AnyObject >[] |
start | number |
count | number |
mode | “resize” | “reset” | “none” | “hide” | “show” | “normal” | “active” |
Returns
void
Inherited from
DoughnutController.updateElements
Defined in
updateIndex
▸ updateIndex(datasetIndex
): void
Parameters
Name | Type |
---|---|
datasetIndex | number |
Returns
void
Inherited from
DoughnutController.updateIndex
Defined in
▸ Protected
updateRangeFromParsed(range
, scale
, parsed
, stack
): void
Parameters
Name | Type |
---|---|
range | Object |
range.max | number |
range.min | number |
scale | <CoreScaleOptions> |
parsed | unknown [] |
stack | string | boolean |
Returns
void
Inherited from
DoughnutController.updateRangeFromParsed
Defined in
index.esm.d.ts:630 (opens new window)
updateSharedOptions
▸ Protected
updateSharedOptions(sharedOptions
, mode
, newOptions
): void
Utility to animate the shared options, that are potentially affecting multiple elements.
Parameters
Name | Type |
---|---|
sharedOptions | AnyObject |
mode | “resize” | “reset” | “none” | “hide” | “show” | “normal” | “active” |
newOptions | AnyObject |
Returns
void