BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
[app.component.html]:
<ejs-accumulationchart id="container" #pie style='display:block; width: 92%'
(pointRender)='pointRender($event)'>
//other configurartions here
</ejs-accumulationchart>
[app.component.ts]:
public pointRender(args: IAccPointRenderEventArgs): void {
if(args.point.index == 10){
args.fill = "blue"
}
}; |
[app.component.html]:
<e-accumulation-series-collection>
<e-accumulation-series name='Project' [dataSource]='data' xName='x' yName='y' pointColorMapping='fill'>
</e-accumulation-series>
[app.component.ts]:
public data: Object[] = [{ x: 'Labour', y: 18, text: '18%' }, { x: 'Legal', y: 8, text: '8%' },
{ x: 'Production', y: 15, text: '15%' }, { x: 'License', y: 11, text: '11%' },
{ x: 'Facilities', y: 18, text: '18%' }, { x: 'Taxes', y: 14, text: '14%' },
{ x: 'Insurance', y: 16, text: '16%' },{ x: 'Insurance', y: 16, text: '16%' },
{ x: 'Insurance', y: 16, text: '16%' },{ x: 'Insurance', y: 16, text: '16%' },
{ x: 'Insurance', y: 16, text: '16%', fill:'red' }
];
|