@syncfusion/ej2-angular-charts
Version:
Feature-rich chart control with built-in support for over 25 chart types, technical indictors, trendline, zooming, tooltip, selection, crosshair and trackball. for Angular
90 lines (89 loc) • 3.51 kB
TypeScript
import { ViewContainerRef } from '@angular/core';
import { ComplexBase, ArrayBase } from '@syncfusion/ej2-angular-base';
import * as i0 from "@angular/core";
/**
* Annotation Directive
* ```html
* <e-stockchart-annotations><e-stockchart-annotation></e-stockchart-annotation><e-stockchart-annotations>
* ```
*/
export declare class StockChartAnnotationDirective extends ComplexBase<StockChartAnnotationDirective> {
private viewContainerRef;
directivePropList: any;
/**
* Specifies the coordinate units of the annotation. They are
* * Pixel - Annotation renders based on x and y pixel value.
* * Point - Annotation renders based on x and y axis value.
* @default 'Pixel'
*/
coordinateUnits: any;
/**
* Information about annotation for assistive technology.
* @default null
*/
description: any;
/**
* Specifies the alignment of the annotation. They are
* * Near - Align the annotation element as left side.
* * Far - Align the annotation element as right side.
* * Center - Align the annotation element as mid point.
* @default 'Center'
*/
horizontalAlignment: any;
/**
* Specifies the regions of the annotation. They are
* * Chart - Annotation renders based on chart coordinates.
* * Series - Annotation renders based on series coordinates.
* @default 'Chart'
*/
region: any;
/**
* Specifies the position of the annotation. They are
* * Top - Align the annotation element as top side.
* * Bottom - Align the annotation element as bottom side.
* * Middle - Align the annotation element as mid point.
* @default 'Middle'
*/
verticalAlignment: any;
/**
* if set coordinateUnit as `Pixel` X specifies the axis value
* else is specifies pixel or percentage of coordinate
* @default '0'
*/
x: any;
/**
* The name of horizontal axis associated with the annotation.
* It requires `axes` of chart.
* @default null
*/
xAxisName: any;
/**
* if set coordinateUnit as `Pixel` Y specifies the axis value
* else is specifies pixel or percentage of coordinate
* @default '0'
*/
y: any;
/**
* The name of vertical axis associated with the annotation.
* It requires `axes` of chart.
* @default null
*/
yAxisName: any;
/**
* Content of the annotation, which accepts the id of the custom element.
* @default null
*/
content: any;
constructor(viewContainerRef: ViewContainerRef);
static ɵfac: i0.ɵɵFactoryDeclaration<StockChartAnnotationDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<StockChartAnnotationDirective, "ejs-stockchart-annotations>e-stockchart-annotation", never, { "content": "content"; "coordinateUnits": "coordinateUnits"; "description": "description"; "horizontalAlignment": "horizontalAlignment"; "region": "region"; "verticalAlignment": "verticalAlignment"; "x": "x"; "xAxisName": "xAxisName"; "y": "y"; "yAxisName": "yAxisName"; }, {}, ["content"]>;
}
/**
* StockChartAnnotation Array Directive
* @private
*/
export declare class StockChartAnnotationsDirective extends ArrayBase<StockChartAnnotationsDirective> {
constructor();
static ɵfac: i0.ɵɵFactoryDeclaration<StockChartAnnotationsDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<StockChartAnnotationsDirective, "ejs-stockchart>e-stockchart-annotations", never, {}, {}, ["children"]>;
}