@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.
77 lines (76 loc) • 2.31 kB
TypeScript
import { CandleEntry } from './CandleEntry';
import { ICandleDataSet } from '../interfaces/datasets/ICandleDataSet';
import { LineScatterCandleRadarDataSet } from './LineScatterCandleRadarDataSet';
import { Color } from '@nativescript/core';
export declare class CandleDataSet extends LineScatterCandleRadarDataSet<CandleEntry> implements ICandleDataSet {
/**
* property to access the "high" value of an entry for this set
*
*/
highProperty: string;
/**
* property to access the "low" value of an entry for this set
*
*/
lowProperty: string;
/**
* property to access the "close" value of an entry for this set
*
*/
closeProperty: string;
/**
* property to access the "open" value of an entry for this set
*
*/
openProperty: string;
/**
* the width of the shadow of the candle
*/
shadowWidth: number;
/**
* should the candle bars show?
* when false, only "ticks" will show
* <p/>
* - default: true
*/
showCandleBar: boolean;
/**
* the space between the candle entries, default 0.1 (10%)
*/
barSpace: number;
/**
* use candle color for the shadow
*/
shadowColorSameAsCandle: boolean;
/**
* palet style when open < close
* increasing candlesticks are traditionally hollow
*/
increasingPaintStyle: globalAndroid.graphics.Paint.Style;
/**
* palet style when open > close
* descreasing candlesticks are traditionally filled
*/
decreasingPaintStyle: globalAndroid.graphics.Paint.Style;
/**
* color for open === close
*/
neutralColor: Color | string;
/**
* color for open < close
*/
increasingColor: Color | string;
/**
* color for open > close
*/
decreasingColor: Color | string;
/**
* shadow line color, set -1 for backward compatibility and uses default
* color
*/
shadowColor: Color | string;
constructor(yVals: any, label: any, xProperty?: any, yProperty?: any, highProperty?: any, lowProperty?: any, openProperty?: any, closeProperty?: any);
getEntryYValue(e: CandleEntry): number;
protected calcMinMaxForEntry(e?: CandleEntry, index?: number): void;
protected calcMinMaxY(e: CandleEntry): void;
}