@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.
32 lines (31 loc) • 1.41 kB
TypeScript
import { Canvas, Paint, RectF } from '@nativescript-community/ui-canvas';
import { BarChart } from '../charts/BarChart';
import { XAxis } from '../components/XAxis';
import { MPPointF } from '../utils/MPPointF';
import { Transformer } from '../utils/Transformer';
import { ViewPortHandler } from '../utils/ViewPortHandler';
import { CustomRendererGridLineFunction } from './AxisRenderer';
import { XAxisRenderer } from './XAxisRenderer';
export declare class XAxisRendererHorizontalBarChart extends XAxisRenderer {
protected mChart: BarChart;
mForceLongestLabelComputation: boolean;
constructor(viewPortHandler: ViewPortHandler, xAxis: XAxis, trans: Transformer, chart: BarChart);
computeAxis(min: any, max: any, inverted: any): void;
protected computeSize(): void;
renderAxisLabels(c: Canvas): void;
/**
* Draws the x-labels on the specified y-position.
*
* @param pos
*/
protected drawLabels(c: Canvas, pos: any, anchor: MPPointF): void;
protected drawGridLine(c: Canvas, rect: RectF, x: any, y: any, axisValue: any, paint: Paint, customRendererFunc: CustomRendererGridLineFunction): void;
renderAxisLine(c: Canvas): void;
/**
* Draws the LimitLines associated with this axis to the screen.
* This is the standard YAxis renderer using the XAxis limit lines.
*
* @param c
*/
renderLimitLines(c: Canvas): void;
}