igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
386 lines (381 loc) • 14.5 kB
TypeScript
import { IgRect } from "igniteui-angular-core";
import { IgPoint } from "igniteui-angular-core";
import { TrendLineType } from "igniteui-angular-core";
import { PriceDisplayType } from "./PriceDisplayType";
import { CategoryCollisionMode } from "./CategoryCollisionMode";
import { ValueLayerValueMode } from "./ValueLayerValueMode";
import { IgxFinancialSeriesComponent } from "./igx-financial-series-component";
import { FinancialPriceSeries } from "./FinancialPriceSeries";
import * as i0 from "@angular/core";
/**
* Represents a IgxDataChartComponent financial price series that renders as Candlestick or OHLC representations.
* Default required members: Open, Low, High, Close
*
* The `FinancialPriceSeries` class represents a IgxDataChartComponent financial price series that renders as Candlestick or OHLC representations.
*
* ```html
* <igx-data-chart
* #chart
* [dataSource]="data" >
* <igx-ordinal-time-x-axis
* dateTimeMemberPath="TimeStamp"
* #xAxis >
* </igx-ordinal-time-x-axis>
* <igx-numeric-y-axis
* minimumValue="0"
* #yAxis>
* </igx-numeric-y-axis>
* <igx-financial-price-series
* [xAxis]="xAxis"
* [yAxis]="yAxis"
* openMemberPath="open"
* highMemberPath="high"
* lowMemberPath="low"
* closeMemberPath="close"
* volumeMemberPath="volume"
* >
* </igx-financial-price-series>
* </igx-data-chart>
* ```
*
* ```ts
* let series = new IgxFinancialPriceSeriesComponent();
* series.xAxis = this.xAxis;
* series.yAxis = this.yAxis;
* series.openMemberPath = "open";
* series.highMemberPath = "high";
* series.lowMemberPath = "low";
* series.closeMemberPath = "close";
* series.volumeMemberPath="volume";
* this.chart.series.add(series);
* ```
*/
export declare class IgxFinancialPriceSeriesComponent extends IgxFinancialSeriesComponent {
protected createImplementation(): FinancialPriceSeries;
/**
* @hidden
*/
get i(): FinancialPriceSeries;
constructor();
/**
* Gets whether the series has financial OHLC/candlestick visuals
*/
get isFinancialSeries(): boolean;
static ngAcceptInputType_isFinancialSeries: boolean | string;
/**
* Gets or sets the trend type for the current financial series.
*
* Use the `TrendLineType` property for the trend type of the current financial series.
*
* ```ts
* series.trendLineType= "CubicFit";
* ```
*
* ```html
* <igx-data-chart
* #chart
* [dataSource]="data" >
* <igx-ordinal-time-x-axis
* dateTimeMemberPath="TimeStamp"
* #xAxis >
* </igx-ordinal-time-x-axis>
* <igx-numeric-y-axis
* minimumValue="0"
* #yAxis>
* </igx-numeric-y-axis>
* <igx-financial-price-series
* [xAxis]="xAxis"
* [yAxis]="yAxis"
* openMemberPath="open"
* highMemberPath="high"
* lowMemberPath="low"
* closeMemberPath="close"
* volumeMemberPath="volume"
* trendLineType="CubicFit">
* </igx-financial-price-series>
* </igx-data-chart>
* ```
*/
get trendLineType(): TrendLineType;
set trendLineType(v: TrendLineType);
static ngAcceptInputType_trendLineType: TrendLineType | string;
/**
* Gets or sets the brush to use to draw the trend line.
*
* Use the `TrendLineBrush` property to brush the the trend line.
*
* ```ts
* series.trendLineBrush="red";
* ```
*
* ```html
* <igx-data-chart
* #chart
* [dataSource]="data" >
* <igx-ordinal-time-x-axis
* dateTimeMemberPath="TimeStamp"
* #xAxis >
* </igx-ordinal-time-x-axis>
* <igx-numeric-y-axis
* minimumValue="0"
* #yAxis>
* </igx-numeric-y-axis>
* <igx-financial-price-series
* [xAxis]="xAxis"
* [yAxis]="yAxis"
* openMemberPath="open"
* highMemberPath="high"
* lowMemberPath="low"
* closeMemberPath="close"
* volumeMemberPath="volume"
* trendLineBrush="red" >
* </igx-financial-price-series>
* </igx-data-chart>
* ```
*/
get trendLineBrush(): string;
set trendLineBrush(v: string);
/**
* Gets the effective TrendLineBrush for this FinancialPriceSeries.
*
* Use the `ActualTrendLineBrush` property to Gets the effective TrendLineBrush for the FinancialIndicator.
*/
get actualTrendLineBrush(): string;
set actualTrendLineBrush(v: string);
/**
* Gets or sets the thickness of the current FinancialPriceSeries object's trend line.
*
* Use the `TrendLineThickness` property for the thickness of the current FinancialPriceSeries object's trend line.
*
* ```ts
* series.trendLineThickness=5;
* ```
*
* ```html
* <igx-data-chart
* #chart
* [dataSource]="data" >
* <igx-ordinal-time-x-axis
* dateTimeMemberPath="TimeStamp"
* #xAxis >
* </igx-ordinal-time-x-axis>
* <igx-numeric-y-axis
* minimumValue="0"
* #yAxis>
* </igx-numeric-y-axis>
* <igx-financial-price-series
* [xAxis]="xAxis"
* [yAxis]="yAxis"
* openMemberPath="open"
* highMemberPath="high"
* lowMemberPath="low"
* closeMemberPath="close"
* volumeMemberPath="volume"
* trendLineThickness="3">
* </igx-financial-price-series>
* </igx-data-chart>
* ```
*/
get trendLineThickness(): number;
set trendLineThickness(v: number);
static ngAcceptInputType_trendLineThickness: number | string;
/**
* Gets or sets a collection of double values that indicate the pattern of dashes and gaps that
* is used to draw the trend line for the current FinancialPriceSeries object.
*/
get trendLineDashArray(): number[];
set trendLineDashArray(v: number[]);
static ngAcceptInputType_trendLineDashArray: number[] | string;
/**
* Gets or sets the trend line period for the current series.
* The typical, and initial, value for trend line period is 7.
*
* Use the `TrendLinePeriod` property for the periodo the the current series.
*
* ```ts
* series.trendLinePeriod= 7;
* ```
*
* ```html
* <igx-data-chart
* #chart
* [dataSource]="data" >
* <igx-ordinal-time-x-axis
* dateTimeMemberPath="TimeStamp"
* #xAxis >
* </igx-ordinal-time-x-axis>
* <igx-numeric-y-axis
* minimumValue="0"
* #yAxis>
* </igx-numeric-y-axis>
* <igx-financial-price-series
* [xAxis]="xAxis"
* [yAxis]="yAxis"
* openMemberPath="open"
* highMemberPath="high"
* lowMemberPath="low"
* closeMemberPath="close"
* volumeMemberPath="volume"
* trendLinePeriod="7">
* </igx-financial-price-series>
* </igx-data-chart>
* ```
*/
get trendLinePeriod(): number;
set trendLinePeriod(v: number);
static ngAcceptInputType_trendLinePeriod: number | string;
/**
* Gets or sets the display type for the current FinancialPriceSeries object.
*
* Use the `DisplayType` property for the display type of the current FinancialPriceSeries object.
*
* ```html
* <igx-data-chart
* #chart
* [dataSource]="data" >
* <igx-ordinal-time-x-axis
* dateTimeMemberPath="TimeStamp"
* #xAxis >
* </igx-ordinal-time-x-axis>
* <igx-numeric-y-axis
* minimumValue="0"
* #yAxis>
* </igx-numeric-y-axis>
* <igx-financial-price-series
* [xAxis]="xAxis"
* [yAxis]="yAxis"
* openMemberPath="open"
* highMemberPath="high"
* lowMemberPath="low"
* closeMemberPath="close"
* volumeMemberPath="volume"
* displayType="Candlestick">
* </igx-financial-price-series>
* </igx-data-chart>
* ```
*
* ```ts
* series.displayType=PriceDisplayType.Candlestick;
* ```
*/
get displayType(): PriceDisplayType;
set displayType(v: PriceDisplayType);
static ngAcceptInputType_displayType: PriceDisplayType | string;
/**
* Gets or sets the category collision mode selection behavior to use for the series.
*/
get categoryCollisionMode(): CategoryCollisionMode;
set categoryCollisionMode(v: CategoryCollisionMode);
static ngAcceptInputType_categoryCollisionMode: CategoryCollisionMode | string;
/**
* Brush to use for outlining negative elements in the series.
*
* Use the `NegativeOutline` property to brush the outline negative elements in the series.
*
* ```ts
* series.negativeOutline="red";
* ```
*
* ```html
* <igx-data-chart
* #chart
* [dataSource]="data" >
* <igx-ordinal-time-x-axis
* dateTimeMemberPath="TimeStamp"
* #xAxis >
* </igx-ordinal-time-x-axis>
* <igx-numeric-y-axis
* minimumValue="0"
* #yAxis>
* </igx-numeric-y-axis>
* <igx-financial-price-series
* [xAxis]="xAxis"
* [yAxis]="yAxis"
* openMemberPath="open"
* highMemberPath="high"
* lowMemberPath="low"
* closeMemberPath="close"
* volumeMemberPath="volume"
* negativeOutline="Red" >
* </igx-financial-price-series>
* </igx-data-chart>
* ```
*/
get negativeOutline(): string;
set negativeOutline(v: string);
/**
* Gets or sets the label displayed before series' Low value in the Data Legend.
*/
get lowMemberAsLegendLabel(): string;
set lowMemberAsLegendLabel(v: string);
/**
* Gets or sets the label displayed before series' High value in the Data Legend.
*/
get highMemberAsLegendLabel(): string;
set highMemberAsLegendLabel(v: string);
/**
* Gets or sets the label displayed before series' Close value in the Data Legend.
*/
get closeMemberAsLegendLabel(): string;
set closeMemberAsLegendLabel(v: string);
/**
* Gets or sets the label displayed before series' Open value in the Data Legend.
*/
get openMemberAsLegendLabel(): string;
set openMemberAsLegendLabel(v: string);
/**
* Gets or sets the unit displayed after series' Low value in the Data Legend.
*/
get lowMemberAsLegendUnit(): string;
set lowMemberAsLegendUnit(v: string);
/**
* Gets or sets the unit displayed after series' High value in the Data Legend.
*/
get highMemberAsLegendUnit(): string;
set highMemberAsLegendUnit(v: string);
/**
* Gets or sets the unit displayed after series' Close value in the Data Legend.
*/
get closeMemberAsLegendUnit(): string;
set closeMemberAsLegendUnit(v: string);
/**
* Gets or sets the unit displayed after series' Open value in the Data Legend.
*/
get openMemberAsLegendUnit(): string;
set openMemberAsLegendUnit(v: string);
/**
* If possible, will return the best available value bounding box within the series that has the best value match for the world position provided.
* @param world * The world coordinate for which to get a value bounding box for
*
* The `GetSeriesValueBoundingBox` method return the best available value bounding box within the series that has the best value match for the world position provided.
*/
getSeriesValueBoundingBox(world: IgPoint): IgRect;
/**
* Scrolls the series to display the item for the specified data item.
* The categorySeries is scrolled by the minimum amount required to place the specified data item within
* the central 80% of the visible axis.
* @param item * The data item (item) to scroll to.
*
* The `ScrollIntoView` methos scrolls the series to display the item for the specified data item.
*/
scrollIntoView(item: any): boolean;
/**
* For a category plotted series, returns the current width of the items within the categories. This only returns a value if the items have some form of width (e.g. columns, bars, etc.) otherwise 0 is returned.
*
* The `GetItemSpan` method is used For a category plotted series, returns the current width of the items within the categories.
*
* This only returns a value if the items have some form of width (e.g. columns, bars, etc.) otherwise 0 is returned
*/
getItemSpan(): number;
setNegativeColors(negativeBrush: string, negativeOutline: string): void;
/**
* Gets a numeric value from the numeric axis associated with this series that matches the desired
* value mode.
* @param mode * The type of value desired from the series numeric axis.
*/
getSeriesValueType(mode: ValueLayerValueMode): number[];
getSeriesValueTypePosition(mode: ValueLayerValueMode): IgPoint;
getSeriesValueTypePositionFromValue(values: number[]): IgPoint;
static ɵfac: i0.ɵɵFactoryDeclaration<IgxFinancialPriceSeriesComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<IgxFinancialPriceSeriesComponent, "igx-financial-price-series", never, { "trendLineType": "trendLineType"; "trendLineBrush": "trendLineBrush"; "actualTrendLineBrush": "actualTrendLineBrush"; "trendLineThickness": "trendLineThickness"; "trendLineDashArray": "trendLineDashArray"; "trendLinePeriod": "trendLinePeriod"; "displayType": "displayType"; "categoryCollisionMode": "categoryCollisionMode"; "negativeOutline": "negativeOutline"; "lowMemberAsLegendLabel": "lowMemberAsLegendLabel"; "highMemberAsLegendLabel": "highMemberAsLegendLabel"; "closeMemberAsLegendLabel": "closeMemberAsLegendLabel"; "openMemberAsLegendLabel": "openMemberAsLegendLabel"; "lowMemberAsLegendUnit": "lowMemberAsLegendUnit"; "highMemberAsLegendUnit": "highMemberAsLegendUnit"; "closeMemberAsLegendUnit": "closeMemberAsLegendUnit"; "openMemberAsLegendUnit": "openMemberAsLegendUnit"; }, {}, never, never>;
}