<ejs-accumulationchart (pointRender)='pointRender($event)' >
Other configurations
</ejs-accumulationchart>
public pointRender(args: IAccPointRenderEventArgs): void {
console.log(args.fill)
}
|
|
|
[donut.html]
<ejs-accumulationchart pointRender)='pointRender($event)' (textRender)='textRender($event)'>
</ejs-accumulationchart>
[donut.component.ts]
Declare a public variable to store the colors obtained in pointRender event
public colorCollection = [];
public pointRender(args: IAccPointRenderEventArgs): void {
this.colorCollection.push(args.fill)
}
public textRender(args): void{
Assigned the color obtained in point render event
args.font.color = this.colorCollection[this.count];
this.count ++;
};
|