@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.
89 lines (88 loc) • 2.71 kB
TypeScript
import { BulletChart } from '../bullet-chart';
import { IFeatureBarBounds } from '../model/bullet-interface';
/**
* class for Bullet chart Scale Group
*/
export declare class ScaleGroup {
private dataSource;
private labelOffset;
private location;
featureBarBounds: IFeatureBarBounds[];
private labelSize;
private isHorizontal;
private isVertical;
private isTicksInside;
private isLabelsInside;
private isTop;
private majorTickSize;
private rangeColor;
bulletChart: BulletChart;
private isLabelBelow;
private scaleSettingsGroup;
private scaleOrientation;
private comparative;
private feature;
private isLeft;
private isRight;
constructor(bulletChart: BulletChart);
/**
* To render range scale of the bulletChart graph.
*
* @param {Element} scaleGroup - The group element to contain the scale.
* @returns {number[]} - Array representing the range scale.
*/
drawScaleGroup(scaleGroup: Element): number[];
protected sortRangeCollection(a: number, b: number): number;
/**
* To render the feature bar of the bulletChart chart.
*
* @param {number} dataCount - Count of the bars.
* @returns {void}
*/
renderFeatureBar(dataCount: number): void;
/**
* To render the horizontal feature bar of the bulletChart chart.
*
* @param {number} dataCount - Count of the bars.
* @param {boolean} isHorizontal - Indicates whether the bars are horizontal.
* @returns {void}
*/
private renderCommonFeatureBar;
private featureBar;
private verticalFeatureBar;
private drawcategory;
/**
* To render comparative symbol of the bulletChart chart.
*
* @param {number} dataCount - Data count value.
* @returns {void}
*/
renderComparativeSymbol(dataCount: number): void;
private renderCommonComparativeSymbol;
private getTargetElement;
private compareMeasure;
private compareVMeasure;
/**
* To calculate the bounds on vertical and horizontal orientation changes
*
* @param {number} value Value of the scale.
* @param {string} categoryValue Value of the category.
* @param {boolean} isHorizontal Boolean value.
* @returns {IFeatureMeasureType} calculateFeatureMeasureBounds
*/
private calculateFeatureMeasureBounds;
/**
* Animates the feature bar.
*
* @returns {void}
*/
doValueBarAnimation(): void;
/**
* Animates the comparative bar.
*
* @param {number} index Defines the feature bar to animate.
* @returns {void}
*/
doTargetBarAnimation(index: number): void;
private animateRect;
}