| 1 |
export default class DoughnutController extends DatasetController { |
| 2 |
static id: string; |
| 3 |
static descriptors: { |
| 4 |
_scriptable: (name: any) => boolean; |
| 5 |
_indexable: (name: any) => boolean; |
| 6 |
}; |
| 7 |
/** |
| 8 |
* @type {any} |
| 9 |
*/ |
| 10 |
static overrides: any; |
| 11 |
constructor(chart: any, datasetIndex: any); |
| 12 |
innerRadius: number; |
| 13 |
outerRadius: number; |
| 14 |
offsetX: number; |
| 15 |
offsetY: number; |
| 16 |
/** |
| 17 |
* Override data parsing, since we are not using scales |
| 18 |
*/ |
| 19 |
parse(start: any, count: any): void; |
| 20 |
/** |
| 21 |
* @private |
| 22 |
*/ |
| 23 |
private _getRotation; |
| 24 |
/** |
| 25 |
* @private |
| 26 |
*/ |
| 27 |
private _getCircumference; |
| 28 |
/** |
| 29 |
* Get the maximal rotation & circumference extents |
| 30 |
* across all visible datasets. |
| 31 |
*/ |
| 32 |
_getRotationExtents(): { |
| 33 |
rotation: number; |
| 34 |
circumference: number; |
| 35 |
}; |
| 36 |
/** |
| 37 |
* @private |
| 38 |
*/ |
| 39 |
private _circumference; |
| 40 |
calculateTotal(): number; |
| 41 |
calculateCircumference(value: any): number; |
| 42 |
getLabelAndValue(index: any): { |
| 43 |
label: any; |
| 44 |
value: string; |
| 45 |
}; |
| 46 |
getMaxBorderWidth(arcs: any): number; |
| 47 |
getMaxOffset(arcs: any): number; |
| 48 |
/** |
| 49 |
* Get radius length offset of the dataset in relation to the visible datasets weights. This allows determining the inner and outer radius correctly |
| 50 |
* @private |
| 51 |
*/ |
| 52 |
private _getRingWeightOffset; |
| 53 |
/** |
| 54 |
* @private |
| 55 |
*/ |
| 56 |
private _getRingWeight; |
| 57 |
/** |
| 58 |
* Returns the sum of all visible data set weights. |
| 59 |
* @private |
| 60 |
*/ |
| 61 |
private _getVisibleDatasetWeightTotal; |
| 62 |
} |
| 63 |
export type Chart = import('../core/core.controller.js').default; |
| 64 |
import DatasetController from "../core/core.datasetController.js"; |