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.

21 lines (20 loc) 1.04 kB
import { Canvas, Paint, RectF } from '@nativescript-community/ui-canvas'; import { Highlight } from '../highlight/Highlight'; import { ChartInterface } from '../interfaces/dataprovider/ChartInterface'; import { IBarDataSet } from '../interfaces/datasets/IBarDataSet'; import { Transformer } from '../utils/Transformer'; import { BarChartRenderer } from './BarChartRenderer'; export declare class HorizontalBarChartRenderer extends BarChartRenderer { get valuePaint(): Paint; initBuffers(): void; protected drawDataSet(c: Canvas, dataSet: IBarDataSet, index: number): boolean; drawValues(c: Canvas): void; protected prepareBarHighlight(x: number, y1: number, y2: number, barWidthHalf: number, trans: Transformer, barRect: RectF): void; /** * Sets the drawing position of the highlight object based on the riven bar-rect. * @param high * @param bar */ protected setHighlightDrawPos(high: Highlight, bar: RectF): void; protected isDrawingValuesAllowed(chart: ChartInterface): boolean; }