Angular 2:
//Annotation element
<div id="hightemp" style="display:none; height:80px;width:80px;">
<ej-chart id="hightemp" size.height="80" size.width="80" [legend.visible]="false">
<e-seriescollection>
<e-series [points]="pieData" type="pie"></e-series>
</e-seriescollection>
</ej-chart>
</div>
//Main chart
<ej-chart id="container" [annotations]="Annotation">
</ej-chart>
TypeScript:
this.Annotation = [{ visible: true, content: "hightemp", coordinateUnit: "points", x: 10, y: 45 },
{ visible: true, content: "hightemp", coordinateUnit: "points", x: 20, y: 55 },
{ visible: true, content: "hightemp", coordinateUnit: "points", x: 30, y: 60 },
{ visible: true, content: "hightemp", coordinateUnit: "points", x: 40, y: 50 },
];
|