Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
142763 | Feb 18,2019 06:38 PM UTC | Feb 25,2019 05:36 AM UTC | Angular - EJ 2 | 5 |
![]() |
Tags: Chart |
<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 ++;
};
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.