import type { DataItem } from "../../core/render/Component"; import type { SlicedChart } from "./SlicedChart"; import type { Bullet } from "../../core/render/Bullet"; import { PercentSeries, IPercentSeriesSettings, IPercentSeriesDataItem, IPercentSeriesPrivate } from "../percent/PercentSeries"; import { ListTemplate } from "../../core/util/List"; import { FunnelSlice } from "./FunnelSlice"; import { Tick } from "../../core/render/Tick"; import { Label } from "../../core/render/Label"; export interface IFunnelSeriesDataItem extends IPercentSeriesDataItem { /** * The slice element. */ slice: FunnelSlice; /** * The link element that joins this slice to the next one. */ link: FunnelSlice; /** * Data item's index. */ index: number; } export interface IFunnelSeriesSettings extends IPercentSeriesSettings { /** * Narrows the bottom edge of each slice toward the width of the next * slice: `0` keeps it as wide as the top, making a rectangle, `1` makes it * as wide as the next slice, making a trapezoid. * * @see {@link https://www.amcharts.com/docs/v5/charts/percent-charts/sliced-chart/funnel-series/#Slice_bottom_width} for more info * @default 0 */ bottomRatio?: number; /** * Orientation of the series. * * @see {@link https://www.amcharts.com/docs/v5/charts/percent-charts/sliced-chart/#Series_orientation} for more info * @default "vertical" */ orientation: "horizontal" | "vertical"; /** * Leaves out items with a zero value: no slice, label or tick, and no * space for them. * * @default false */ ignoreZeroValues?: boolean; /** * Lines the labels up in a column to the right of the slices (a row below * them when horizontal), joined to them by ticks. `false` puts each label * over its slice. * * @default true */ alignLabels?: boolean; /** * Relative location within area available to series where it should start. * * `0` - beginning, `1` - end, or any intermediate value. * * @see {@link https://www.amcharts.com/docs/v5/charts/percent-charts/sliced-chart/funnel-series/#Start_end_locations} for more info * @default 0 */ startLocation?: number; /** * Relative location within area available to series where it should end. * * `0` - beginning, `1` - end, or any intermediate value. * * @see {@link https://www.amcharts.com/docs/v5/charts/percent-charts/sliced-chart/funnel-series/#Start_end_locations} for more info * @default 1 */ endLocation?: number; } export interface IFunnelSeriesPrivate extends IPercentSeriesPrivate { } /** * A funnel series for a [[SlicedChart]]: slices of equal height, each as wide * as its value relative to the largest one. * * @see {@link https://www.amcharts.com/docs/v5/charts/percent-charts/sliced-chart/funnel-series/} for more info * @important */ export declare class FunnelSeries extends PercentSeries { /** * The chart the series belongs to. */ chart: SlicedChart | undefined; protected _tag: string; _sliceType: FunnelSlice; _labelType: Label; _tickType: Tick; protected _makeSlices(): ListTemplate; protected _makeLabels(): ListTemplate; protected _makeTicks(): ListTemplate; /** * A [[ListTemplate]] of all slice links in series. * * `links.template` can also be used to configure slice links. * * @see {@link https://www.amcharts.com/docs/v5/charts/percent-charts/sliced-chart/funnel-series/#Slice_links} for more info */ readonly links: ListTemplate; protected _makeLinks(): ListTemplate; /** * @ignore */ makeLink(dataItem: DataItem): this["_sliceType"]; static className: string; static classNames: Array; _settings: IFunnelSeriesSettings; _privateSettings: IFunnelSeriesPrivate; _dataItemSettings: IFunnelSeriesDataItem; protected _total: number; protected _count: number; protected _nextCoord: number; protected _opposite: boolean; protected _afterNew(): void; protected processDataItem(dataItem: DataItem): void; _updateChildren(): void; protected _fixLayout(): void; protected getNextValue(dataItem: DataItem): number; protected isLast(dataItem: DataItem): boolean; protected decorateSlice(dataItem: DataItem): void; /** * Hides a slice, with its label, tick and link. * * @param dataItem Data item * @param duration Animation duration in milliseconds * @return Promise */ hideDataItem(dataItem: DataItem, duration?: number): Promise; /** * Shows a hidden slice, with its label, tick and link. * * @param dataItem Data item * @param duration Animation duration in milliseconds * @return Promise */ showDataItem(dataItem: DataItem, duration?: number): Promise; protected _updateTick(dataItem: DataItem): void; /** * @ignore */ disposeDataItem(dataItem: DataItem): void; _positionBullet(bullet: Bullet): void; } //# sourceMappingURL=FunnelSeries.d.ts.map