@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 (50 loc) • 1.72 kB
TypeScript
import { LegendForm } from './Legend';
import { DashPathEffect } from '@nativescript-community/ui-canvas';
import { Color } from '@nativescript/core/color';
export declare 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: string, form: LegendForm, formSize?: any, formLineWidth?: any, formLineDashEffect?: DashPathEffect, formColor?: string | number | Color);
/**
* The legend entry text.
* A `null` label will start a group.
*/
label: string;
/**
* 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.
*/
form: LegendForm;
/**
* Form size will be considered except for when .None is used
*
* Set as NaN to use the legend's default
*/
formSize: number;
/**
* Line width used for shapes that consist of lines.
*
* Set as NaN to use the legend's default
*/
formLineWidth: number;
/**
* Line dash path effect used for shapes that consist of lines.
*
* Set to null to use the legend's default
*/
formLineDashEffect: DashPathEffect;
/**
* The color for drawing the form
*/
formColor: string | number | Color;
}