|
[app.compoenent.ts]
public data: Object[] = [
{ 'x': 'Chrome', y: 30, text: '30%', fill: 'rgba(33, 242, 197,0.7)' },
{ 'x': 'UC Browser', y: 17, text: '17%', fill: 'rgba(64,64,65,0.7)' },
//...
];
[app.component.html]
//mapped the fill color using the pointColorMappingProperty from the data source
<ejs-accumulationchart >
<e-accumulation-series-collection>
<e-accumulation-series [dataSource]='data' pointColorMapping ='fill'>
</e-accumulation-series>
</e-accumulation-series-collection>
</ejs-accumulationchart>
|