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.

31 lines (29 loc) 1.08 kB
import { ILineDataSet } from '../interfaces/datasets/ILineDataSet'; import { LineDataProvider } from '../interfaces/dataprovider/LineDataProvider'; import { Path } from '@nativescript-community/ui-canvas'; /** * Interface for providing a custom logic to where the filling line of a LineDataSet * should end. This of course only works if setFillEnabled(...) is set to true. * */ export interface IFillFormatter { /** * Returns the vertical (y-axis) position where the filled-line of the * LineDataSet should end. * * @param dataSet the ILineDataSet that is currently drawn * @param dataProvider * @return */ getFillLinePosition(dataSet: ILineDataSet, dataProvider: LineDataProvider): any; /** * update the fill line Path for the dataset * * @param dataSet the ILineDataSet that is currently drawn * @param dataProvider * @param linePath * @param lastLinePath * @return */ getFillLinePath?(dataSet: ILineDataSet, dataProvider: LineDataProvider, linePath: Path, lastLinePath: Path): any; }