12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- export default class DoughnutController extends DatasetController {
- static id: string;
- static descriptors: {
- _scriptable: (name: any) => boolean;
- _indexable: (name: any) => boolean;
- };
- /**
- * @type {any}
- */
- static overrides: any;
- constructor(chart: any, datasetIndex: any);
- innerRadius: number;
- outerRadius: number;
- offsetX: number;
- offsetY: number;
- /**
- * Override data parsing, since we are not using scales
- */
- parse(start: any, count: any): void;
- /**
- * @private
- */
- private _getRotation;
- /**
- * @private
- */
- private _getCircumference;
- /**
- * Get the maximal rotation & circumference extents
- * across all visible datasets.
- */
- _getRotationExtents(): {
- rotation: number;
- circumference: number;
- };
- /**
- * @private
- */
- private _circumference;
- calculateTotal(): number;
- calculateCircumference(value: any): number;
- getLabelAndValue(index: any): {
- label: any;
- value: string;
- };
- getMaxBorderWidth(arcs: any): number;
- getMaxOffset(arcs: any): number;
- /**
- * Get radius length offset of the dataset in relation to the visible datasets weights. This allows determining the inner and outer radius correctly
- * @private
- */
- private _getRingWeightOffset;
- /**
- * @private
- */
- private _getRingWeight;
- /**
- * Returns the sum of all visible data set weights.
- * @private
- */
- private _getVisibleDatasetWeightTotal;
- }
- export type Chart = import('../core/core.controller.js').default;
- import DatasetController from "../core/core.datasetController.js";
|