@syncfusion/ej2-charts
Version:
Feature-rich chart control with built-in support for over 25 chart types, technical indictors, trendline, zooming, tooltip, selection, crosshair and trackball.
60 lines (59 loc) • 1.53 kB
TypeScript
import { Chart } from '../chart';
import { Series } from './chart-series';
import { Mean } from '../../common/utils/helper';
import { ErrorBarMode } from '../../chart/utils/enum';
/**
* The `ErrorBar` module is used to render the error bar for series.
*/
export declare class ErrorBar {
private chart;
errorHeight: number;
error: number;
positiveHeight: number;
negativeHeight: number;
/**
* Constructor for the error bar module.
*
* @private
*/
constructor(chart: Chart);
/**
* Render the error bar for series.
*
* @returns {void}
* @private
*/
render(series: Series): void;
private renderErrorBar;
private findLocation;
private calculateFixedValue;
private calculatePercentageValue;
private calculateStandardDeviationValue;
private calculateStandardErrorValue;
private calculateCustomValue;
private getHorizontalDirection;
private getVerticalDirection;
private getBothDirection;
private getErrorDirection;
meanCalculation(series: Series, mode: ErrorBarMode): Mean;
private createElement;
/**
* Animates the series.
*
* @param {Series} series - Defines the series to animate.
* @returns {void}
* @private
*/
doErrorBarAnimation(series: Series): void;
/**
* Get module name.
*/
protected getModuleName(): string;
/**
* To destroy the errorBar for series.
*
* @returns {void}
* @private
*/
destroy(): void;
}