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.

53 lines (52 loc) 1.77 kB
import { Color } from '@nativescript/core/color'; import { DataSet } from './DataSet'; import { PieEntry } from './PieEntry'; import { IPieDataSet } from '../interfaces/datasets/IPieDataSet'; export declare enum ValuePosition { INSIDE_SLICE = 0, OUTSIDE_SLICE = 1 } export declare class PieDataSet extends DataSet<PieEntry> implements IPieDataSet { /** * the space in pixels between the chart-slices, default 0 */ sliceSpace: number; /** * When enabled, slice spacing will be 0.0 when the smallest value is going to be * smaller than the slice spacing itself. */ automaticallyDisableSliceSpacing: any; /** * indicates the selection distance of a pie slice */ selectionShift: number; xValuePosition: ValuePosition; yValuePosition: ValuePosition; usingSliceColorAsValueLineColor: boolean; /** * When valuePosition is OutsideSlice, indicates line color */ valueLineColor: Color; /** * When valuePosition is OutsideSlice, indicates line width */ valueLineWidth: number; /** * When valuePosition is OutsideSlice, indicates offset as percentage out of the slice size */ valueLinePart1OffsetPercentage: number; /** * When valuePosition is OutsideSlice, indicates length of first half of the line */ valueLinePart1Length: number; /** * When valuePosition is OutsideSlice, indicates length of second half of the line */ valueLinePart2Length: number; /** * When valuePosition is OutsideSlice, this allows variable line length */ valueLineVariableLength: boolean; constructor(yVals: any, label: any, yProperty?: any); protected calcMinMaxForEntry(e?: PieEntry, index?: number): void; }