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.

41 lines (40 loc) 1.49 kB
import { ChartAnimator } from '../animation/ChartAnimator'; import { CombinedChart } from '../charts/CombinedChart'; import { ViewPortHandler } from '../utils/ViewPortHandler'; import { DataRenderer } from './DataRenderer'; import { Canvas } from '@nativescript-community/ui-canvas'; import { Highlight } from '../highlight/Highlight'; /** * Renderer class that is responsible for rendering multiple different data-types. */ export declare class CombinedChartRenderer extends DataRenderer { /** * all rederers for the different kinds of data this combined-renderer can draw */ renderers: DataRenderer[]; protected mChart: WeakRef<CombinedChart>; protected mHighlightBuffer: Highlight[]; constructor(chart: CombinedChart, animator: ChartAnimator, viewPortHandler: ViewPortHandler); /** * Creates the renderers needed for this combined-renderer in the required order. Also takes the DrawOrder into * consideration. */ createRenderers(): void; initBuffers(): void; drawData(c: Canvas): void; drawValues(c: Canvas): void; drawExtras(c: Canvas): void; drawHighlighted(c: Canvas, indices: Highlight[]): void; /** * Returns the sub-renderer object at the specified index. * * @param index * @return */ getSubRenderer(index: any): DataRenderer; /** * Returns all sub-renderers. */ getSubRenderers(): DataRenderer[]; setSubRenderers(renderers: DataRenderer[]): void; }