BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<ejs-chart (pointMove)='pointMove($event)'></ejs-chart>
public pointMove(args: IPointEventArgs): void {
alert(args.point.index)
}
|
[line.html]
<ejs-chart (load)='load($event)'>
Initializing the annotation
<e-annotations>
<e-annotation>
<ng-template #content></ng-template>
</e-annotation>
</e-annotations>
</ejs-chart>
[line.component.ts]
public load(args: ILoadedEventArgs): void {
let highInterval: number = 2;
//Other configurations
let annotationCollection: Object = [];
let dataSource: Object = args.chart.series[0].dataSource;
//Assigning annotation with empty array
args.chart.annotations = [];
for(let i=0; i< dataSource.length;i++){
args.chart.annotations.push({
x: new Date(dataSource[i].y),
y: dataSource[i].x + highInterval ,
coordinateUnits: 'Point',
region:'Series',
content : '<div id="chart_annotation">High</div>'
})
Other configurations
};
}
|