UNPKG

@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.

34 lines (33 loc) 1.34 kB
import { ChartHighlighter } from './ChartHighlighter'; import { Highlight } from './Highlight'; import { BarData } from '../data/BarData'; import { BarDataProvider } from '../interfaces/dataprovider/BarDataProvider'; import { IBarDataSet } from '../interfaces/datasets/IBarDataSet'; export declare class BarHighlighter extends ChartHighlighter<BarDataProvider> { constructor(chart: BarDataProvider); protected getChartData(): BarData; getHighlight(x: number, y: number): Highlight<import("../data/Entry").Entry>[]; /** * This method creates the Highlight object that also indicates which value of a stacked BarEntry has been * selected. * * @param high the Highlight to work with looking for stacked values * @param set * @param xVal * @param yVal * @return */ getStackedHighlight(high: Highlight, set: IBarDataSet, touchX: any, touchY: any, xVal: any, yVal: any): Highlight; /** * Returns the index of the closest value inside the values array / ranges (stacked barchart) to the value * given as * a parameter. * * @param ranges * @param value * @return */ protected getClosestStackIndex(ranges: any[], value: any): number; protected getDistance(x1: any, y1: any, x2: any, y2: any): number; protected getData(): BarData; }