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.

36 lines 1.09 kB
import { BarLineScatterCandleBubbleDataSet } from './BarLineScatterCandleBubbleDataSet'; export class BubbleDataSet extends BarLineScatterCandleBubbleDataSet { constructor(yVals, label, xProperty, yProperty, sizeProperty) { super(yVals, label, xProperty, yProperty); this.highlightCircleWidth = 2.5; /** * property to access the "high" value of an entry for this set * */ this.sizeProperty = 'size'; if (sizeProperty) { this.sizeProperty = sizeProperty; } this.init(); } init() { // ! init is called before init of class vars this.mMaxSize = -Infinity; this.normalizeSizeEnabled = true; super.init(); } calcMinMax() { super.calcMinMax(); } calcMinMaxForEntry(e, index) { super.calcMinMaxForEntry(e, index); const size = e.size; if (size > this.mMaxSize) { this.mMaxSize = size; } } get maxSize() { return this.mMaxSize; } } //# sourceMappingURL=BubbleDataSet.js.map