import type { PieSeries } from "./PieSeries"; import { Percent } from "../../core/util/Percent"; import { PercentChart, IPercentChartPrivate, IPercentChartSettings } from "../percent/PercentChart"; export interface IPieChartSettings extends IPercentChartSettings { /** * Outer radius of the pie, in pixels or percent. A percent is of the * largest radius that fits the chart for its `startAngle` and `endAngle`. * * @see {@link https://www.amcharts.com/docs/v5/charts/percent-charts/pie-chart/#Pie_radius} for more info * @default 80% */ radius?: number | Percent; /** * Inner radius of the pie, in pixels or percent of `radius`; any non-zero * value makes a donut. A negative number is pixels in from the outer * radius. * * @see {@link https://www.amcharts.com/docs/v5/charts/percent-charts/pie-chart/#Pie_radius} for more info */ innerRadius?: number | Percent; /** * Angle where the pie starts, in degrees: `0` is at the right, `-90` at the * top, and angles grow clockwise. The chart uses it to fit and center the * pie; the series' own `startAngle` sets where its slices start, so set * both. * * @see {@link https://www.amcharts.com/docs/v5/charts/percent-charts/pie-chart/#Start_end_angles} for more info * @default -90 */ startAngle?: number; /** * Angle where the pie ends, in degrees. Like `startAngle`, it fits and * centers the pie; set the series' `endAngle` to match. * * @see {@link https://www.amcharts.com/docs/v5/charts/percent-charts/pie-chart/#Start_end_angles} for more info * @default 270 */ endAngle?: number; } export interface IPieChartPrivate extends IPercentChartPrivate { /** * @ignore */ irModifyer?: number; } /** * A pie or donut chart. Several [[PieSeries]] in one chart split the space * between `innerRadius` and `radius` into concentric rings, unless they set * their own radii. * * @see {@link https://www.amcharts.com/docs/v5/charts/percent-charts/pie-chart/} for more info * @important */ export declare class PieChart extends PercentChart { static className: string; static classNames: Array; _settings: IPieChartSettings; _privateSettings: IPieChartPrivate; _seriesType: PieSeries; _maxRadius: number; protected _afterNew(): void; protected _processSeries(series: this["_seriesType"]): void; _prepareChildren(): void; /** * Returns the outer radius in pixels, of the whole pie or of one series. * * @param series Series to get the radius of * @return Radius in pixels */ radius(series?: PieSeries): number; /** * Returns the inner radius in pixels, of the whole pie or of one series. * * @param series Series to get the inner radius of * @return Radius in pixels */ innerRadius(series?: PieSeries): number; _updateSize(): void; } //# sourceMappingURL=PieChart.d.ts.map