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.

40 lines (38 loc) 1.33 kB
import { ChartData } from './ChartData'; import { Entry } from './Entry'; import { PieEntry } from './PieEntry'; import { PieDataSet } from './PieDataSet'; import { Highlight } from '../highlight/Highlight'; /** * A PieData object can only represent one DataSet. Unlike all other charts, the * legend labels of the PieChart are created from the x-values array, and not * from the DataSet labels. Each PieData object can only represent one * PieDataSet (multiple PieDataSets inside a single PieChart are not possible). * */ export declare class PieData extends ChartData<PieEntry, PieDataSet> { /** * Sets the PieDataSet this data object should represent. * * @param dataSet */ setDataSet(dataSet: PieDataSet): void; /** * Returns the DataSet this PieData object represents. A PieData object can * only contain one DataSet. */ getDataSet(): PieDataSet; /** * The PieData object can only have one DataSet. Use getDataSet() method instead. * * @param index * @return */ getDataSetByIndex(index: any): PieDataSet; getDataSetByLabel(label: string, ignoreCase: any): PieDataSet; getEntryForHighlight(highlight: Highlight): Entry; /** * Returns the sum of all values in this PieData object. */ getYValueSum(): number; }