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 (24 loc) 1.18 kB
import { Entry } from '../data/Entry'; /** * Interface to format all values before they are drawn as labels. * * Extend {@link ValueFormatter} instead */ export interface IValueFormatter { /** * Called when a value (from labels inside the chart) is formatted * before being drawn. For performance reasons, avoid excessive calculations * and memory allocations inside this method. * * @param value the value to be formatted * @param entry the entry the value belongs to - in e.g. BarChart, this is of class BarEntry * @param index index of the drawn value * @param count total number of values drawn (useful to draw first or last) * @param dataSetIndex the index of the DataSet the entry in focus belongs to * @param viewPortHandler provides information about the current chart state (scale, translation, ...) * @return the formatted label ready for being drawn * * @deprecated Extend {@link ValueFormatter} and override an appropriate method */ getFormattedValue(value: number, entry: Entry, index: any, count: any, dataSetIndex: any, viewPortHandler: any): string; }