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.

56 lines (54 loc) 1.76 kB
import { AxisBase } from './AxisBase'; import { Chart } from '../charts/Chart'; /** * enum for the position of the x-labels relative to the chart */ export declare enum XAxisPosition { TOP = 0, BOTTOM = 1, BOTH_SIDED = 2, TOP_INSIDE = 3, BOTTOM_INSIDE = 4 } /** * Class representing the x-axis labels settings. Only use the setter methods to * modify it. Do not access public variables directly. Be aware that not all * features the XLabels class provides are suitable for the RadarChart. * */ export declare class XAxis extends AxisBase { /** * width of the x-axis labels in pixels - this is automatically * calculated by the computeSize() methods in the renderers */ mLabelWidth: number; /** * height of the x-axis labels in pixels - this is automatically * calculated by the computeSize() methods in the renderers */ mLabelHeight: number; /** * width of the (rotated) x-axis labels in pixels - this is automatically * calculated by the computeSize() methods in the renderers */ mLabelRotatedWidth: number; /** * height of the (rotated) x-axis labels in pixels - this is automatically * calculated by the computeSize() methods in the renderers */ mLabelRotatedHeight: number; /** * This is the angle for drawing the X axis labels (in degrees) */ labelRotationAngle: number; /** * if set to true, the chart will avoid that the first and last label entry * in the chart "clip" off the edge of the chart */ avoidFirstLastClipping: boolean; /** * the position of the x-labels relative to the chart */ position: XAxisPosition; constructor(chart: WeakRef<Chart<any, any, any>>); }