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.

79 lines (77 loc) 3.21 kB
import { Canvas } from '@nativescript-community/ui-canvas'; import { BarLineScatterCandleBubbleDataSet } from '../data/BarLineScatterCandleBubbleDataSet'; import { CombinedData } from '../data/CombinedData'; import { Entry } from '../data/Entry'; import { CombinedDataProvider } from '../interfaces/dataprovider/CombinedDataProvider'; import { BarLineChartBase } from './BarLineChartBase'; import { CombinedChartRenderer } from '../renderer/CombinedChartRenderer'; import type { CustomRenderer as BBCustomRenderer } from './BubbleChart'; import type { CustomRenderer as CSCustomRenderer } from './CandleStickChart'; import type { CustomRenderer as BCustomRenderer } from './BarChart'; import type { CustomRenderer as LCustomRenderer } from './LineChart'; import type { CustomRenderer as SCustomRenderer } from './ScatterChart'; export type CustomRenderer = BBCustomRenderer & CSCustomRenderer & BCustomRenderer & LCustomRenderer & SCustomRenderer; /** * enum that allows to specify the order in which the different data objects * for the combined-chart are drawn */ export declare enum DrawOrder { BAR = 0, BUBBLE = 1, LINE = 2, CANDLE = 3, SCATTER = 4 } /** * This chart class allows the combination of lines, bars, scatter and candle * data all displayed in one chart area. * */ export declare class CombinedChart extends BarLineChartBase<Entry, BarLineScatterCandleBubbleDataSet<Entry>, CombinedData> implements CombinedDataProvider { renderer: CombinedChartRenderer; /** * if set to true, all values are drawn above their bars, instead of below * their top */ drawValueAboveBarEnabled: boolean; /** * flag that indicates whether the highlight should be full-bar oriented, or single-value? */ highlightFullBarEnabled: boolean; /** * if set to true, a grey area is drawn behind each bar that indicates the * maximum value */ drawBarShadowEnabled: boolean; /** * Sets the order in which the provided data objects should be drawn. The * earlier you place them in the provided array, the further they will be in * the background. e.g. if you provide new DrawOrer[] { DrawOrder.BAR, * DrawOrder.LINE }, the bars will be drawn behind the lines. */ drawOrder: DrawOrder[]; protected init(): void; get combinedData(): CombinedData; set data(data: CombinedData); get data(): CombinedData; /** * Returns the Highlight object (contains x-index and DataSet index) of the selected value at the given touch * point * inside the CombinedChart. * * @param x * @param y * @return */ getHighlightByTouchPoint(x: any, y: any): import("../highlight/Highlight").Highlight<Entry>; get lineData(): import("../data/LineData").LineData; get barData(): import("../data/BarData").BarData; get scatterData(): import("../data/ScatterData").ScatterData; get candleData(): import("../data/CandleData").CandleData; get bubbleData(): import("../data/BubbleData").BubbleData; /** * draws all MarkerViews on the highlighted positions */ protected drawMarkers(c: Canvas): void; customRenderer: CustomRenderer; }