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.

44 lines 1.86 kB
import { DashPathEffect } from '@nativescript-community/ui-canvas'; import { BarLineScatterCandleBubbleDataSet } from './BarLineScatterCandleBubbleDataSet'; /** * Created by Philipp Jahoda on 11/07/15. */ export class LineScatterCandleRadarDataSet extends BarLineScatterCandleBubbleDataSet { constructor(yVals, label, xProperty, yProperty) { super(yVals, label, xProperty, yProperty); /** * Enables / disables the vertical highlight-indicator. If disabled, the indicator is not drawn. * @param enabled */ this.drawVerticalHighlightIndicator = true; /** * Enables / disables the horizontal highlight-indicator. If disabled, the indicator is not drawn. * @param enabled */ this.drawHorizontalHighlightIndicator = true; /** the width of the highlight indicator lines */ this.highlightLineWidth = 0.5; /** the path effect for dashed highlight-lines */ this.highlightDashPathEffect = null; this.highlightLineWidth = 0.5; } /** * Enables / disables both vertical and horizontal highlight-indicators. * @param enabled */ set drawHighlightIndicators(enabled) { this.drawVerticalHighlightIndicator = enabled; this.drawHorizontalHighlightIndicator = enabled; } /** * Enables the highlight-line to be drawn in dashed mode, e.g. like this "- - - - - -" * * @param lineLength the length of the line pieces * @param spaceLength the length of space inbetween the line-pieces * @param phase offset, in degrees (normally, use 0) */ enableHighlightDashPathEffect(lineLength, spaceLength, phase) { this.highlightDashPathEffect = new DashPathEffect([lineLength, spaceLength], phase); } } //# sourceMappingURL=LineScatterCandleRadarDataSet.js.map