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.

51 lines 1.8 kB
import { LegendForm } from './Legend'; export class LegendEntry { /** * * @param label The legend entry text. A `null` label will start a group. * @param form The form to draw for this entry. * @param formSize Set to NaN to use the legend's default. * @param formLineWidth Set to NaN to use the legend's default. * @param formLineDashEffect Set to nil to use the legend's default. * @param formColor The color for drawing the form. */ constructor(label, form, formSize, formLineWidth, formLineDashEffect, formColor) { /** * The form to draw for this entry. * * `NONE` will avoid drawing a form, and any related space. * `EMPTY` will avoid drawing a form, but keep its space. * `DEFAULT` will use the Legend's default. */ this.form = LegendForm.DEFAULT; /** * Form size will be considered except for when .None is used * * Set as NaN to use the legend's default */ this.formSize = NaN; /** * Line width used for shapes that consist of lines. * * Set as NaN to use the legend's default */ this.formLineWidth = NaN; /** * Line dash path effect used for shapes that consist of lines. * * Set to null to use the legend's default */ this.formLineDashEffect = null; /** * The color for drawing the form */ this.formColor = null; this.label = label; this.form = form; this.formSize = formSize; this.formLineWidth = formLineWidth; this.formLineDashEffect = formLineDashEffect; this.formColor = formColor; } } //# sourceMappingURL=LegendEntry.js.map