@nativescript-community/ui-chart
Version:
A powerful chart / graph plugin, supporting line, bar, pie, radar, bubble, and candlestick charts as well as scaling, panning and animations.
55 lines (54 loc) • 1.97 kB
TypeScript
import { RectF } from '@nativescript-community/ui-canvas';
import { AxisDependency } from '../components/YAxis';
import { BarEntry } from '../data/BarEntry';
import { Entry } from '../data/Entry';
import { Highlight } from '../highlight/Highlight';
import { HorizontalBarChartRenderer } from '../renderer/HorizontalBarChartRenderer';
import { BarChart } from './BarChart';
export declare class HorizontalBarChart extends BarChart {
mRenderer: HorizontalBarChartRenderer;
protected init(): void;
get axisRight(): import("../components/YAxis").YAxis;
calculateOffsets(): void;
protected prepareValuePxMatrix(): void;
protected getMarkerPosition(high: Highlight): number[];
/**
* Returns the bounding box of the specified Entry in the specified DataSet. Returns null if the Entry could not be
* found in the charts data.
*
* @param e
* @return
*/
getBarBounds(e: BarEntry): RectF;
/**
* Returns position for given entry according to given axis.
*
* @param e
* @param axis
* @return
*/
getPosition(e: Entry, axis: AxisDependency): {
x: number;
y: number;
};
/**
* Returns the Highlight object (contains x-index and DataSet index) of the selected value at the given touch point
* inside the BarChart.
*
* @param x
* @param y
* @return
*/
getHighlightByTouchPoint(x: any, y: any): Highlight<Entry>;
get lowestVisibleX(): number;
get highestVisibleX(): number;
/**
* ###### VIEWPORT METHODS BELOW THIS ######
*/
set visibleXRangeMaximum(maxXRange: any);
set visibleXRangeMinimum(minXRange: any);
setVisibleXRange(minXRange: any, maxXRange: any): void;
setVisibleYRangeMaximum(maxYRange: any, axis: AxisDependency): void;
setVisibleYRangeMinimum(minYRange: any, axis: AxisDependency): void;
setVisibleYRange(minYRange: any, maxYRange: any, axis: AxisDependency): void;
}