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.

26 lines (25 loc) 1.05 kB
import { Highlight } from './Highlight'; import { IHighlighter } from './IHighlighter'; import { PieRadarChartBase } from '../charts/PieRadarChartBase'; import { Entry } from '../data/Entry'; import { DataSet } from '../data/DataSet'; import { ChartData } from '../data/ChartData'; export declare abstract class PieRadarHighlighter<E extends Entry, D extends DataSet<E>, T extends PieRadarChartBase<E, DataSet<E>, ChartData<E, D>>> implements IHighlighter { protected mChart: T; /** * buffer for storing previously highlighted values */ protected mHighlightBuffer: Highlight[]; constructor(chart: T); getHighlightsAtXValue(xVal: any, x?: any, y?: any): Highlight[]; getHighlight(x: number, y: number): Highlight<Entry>[]; /** * Returns the closest Highlight object of the given objects based on the touch position inside the chart. * * @param index * @param x * @param y * @return */ protected abstract getClosestHighlight(index: any, x: number, y: number): Highlight; }