import { IAnimator } from "../animators/animator"; import { Dataset } from "../core/dataset"; import { AttributeToProjector, IAccessor, Point, Projector } from "../core/interfaces"; import { QuantitativeScale } from "../scales/quantitativeScale"; import { Scale } from "../scales/scale"; import * as Utils from "../utils"; import * as Plots from "./"; import { Area } from "./areaPlot"; export declare class StackedArea extends Area { private _stackingOrder; private _stackingResult; private _stackedExtent; private _baseline; private _baselineValue; private _baselineValueProvider; /** * @constructor */ constructor(); croppedRenderingEnabled(): boolean; croppedRenderingEnabled(croppedRendering: boolean): this; protected _getAnimator(key: string): IAnimator; protected _setup(): void; x(): Plots.ITransformableAccessorScaleBinding; x(x: number | IAccessor): this; x(x: X | IAccessor, xScale: Scale): this; y(): Plots.ITransformableAccessorScaleBinding; y(y: number | IAccessor): this; y(y: number | IAccessor, yScale: QuantitativeScale): this; /** * Gets the offset of the y value corresponding to an x value of a given dataset. This allows other plots to plot * points corresponding to their stacked value in the graph. * @param dataset The dataset from which to retrieve the y value offset * @param x The x value corresponding to the y-value of interest. */ yOffset(dataset: Dataset, x: any): number; /** * Gets the stacking order of the plot. */ stackingOrder(): Utils.Stacking.IStackingOrder; /** * Sets the stacking order of the plot. * * By default, stacked plots are "bottomup", meaning for positive data, the * first series will be placed at the bottom of the scale and subsequent * data series will by stacked on top. This can be reveresed by setting * stacking order to "topdown". * * @returns {Plots.StackedArea} This plot */ stackingOrder(stackingOrder: Utils.Stacking.IStackingOrder): this; /** * Gets if downsampling is enabled * * When downsampling is enabled, two consecutive lines with the same slope will be merged to one line. */ downsamplingEnabled(): boolean; /** * Sets if downsampling is enabled * * For now, downsampling is always disabled in stacked area plot * @returns {Plots.StackedArea} The calling Plots.StackedArea */ downsamplingEnabled(downsampling: boolean): this; protected _additionalPaint(): void; protected _updateYScale(): void; protected _onDatasetUpdate(): this; protected getExtentsForProperty(attr: string): any[][]; private _checkSameDomain(); /** * Given an array of Datasets and the accessor function for the key, computes the * set reunion (no duplicates) of the domain of each Dataset. The keys are stringified * before being returned. * * @param {Dataset[]} datasets The Datasets for which we extract the domain keys * @param {Accessor} keyAccessor The accessor for the key of the data * @return {string[]} An array of stringified keys */ private static _domainKeys(datasets, keyAccessor); protected _coordinateProjectors(): [Projector, Projector, Projector]; protected _propertyProjectors(): AttributeToProjector; protected _pixelPoint(datum: any, index: number, dataset: Dataset): Point; }