@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.
61 lines (59 loc) • 1.47 kB
TypeScript
import { Font } from '@nativescript/core/ui/styling/font';
/**
* This class encapsulates everything both Axis, Legend and LimitLines have in common.
*
*/
export declare abstract class ComponentBase {
/**
* flag that indicates if this axis / legend is enabled or not
*/
enabled: boolean;
/**
* the offset in pixels this component has on the x-axis
*/
xOffset: number;
/**
* the offset in pixels this component has on the Y-axis
*/
yOffset: number;
/**
* the typeface used for the labels
*/
typeface: Font;
/**
* the text size of the labels
*/
protected mTextSize: number;
/**
* the text color to use for the labels
*/
textColor: string;
ComponentBase(): void;
/**
* returns the Typeface used for the labels, returns null if none is set
*
* @return {@link Font}
*/
get font(): Font;
/**
* sets a specific Typeface for the labels
*
* @param tf
*/
set font(tf: Font);
/**
* sets the size of the label text in density pixels min = 6f, max = 24f, default
* 10
*
* @param size the text size, in DP
*/
set textSize(size: number);
/**
* returns the text size that is currently set for the labels, in pixels
*/
get textSize(): number;
/**
* Defines if the renderer should ensure we always see the component fully
*/
ensureVisible: boolean;
}