Hi Chong,
Using pointColorMapping we can change the color of
each individual point in a series.
We have attached an example to illustrate this.
Code-snippet:
public data: Object[] = [
{ Country :
"GBR", GoldMedal : 27,color: 'red' },
];
<ejs-chart>
<e-series-collection>
<e-series pointColorMapping='color'
> </e-series>
</e-series-collection>
</ejs-chart>
|
Screenshot:
Sample: https://stackblitz.com/edit/angular-aaaf1j?file=src%2Fapp.component.ts,src%2Fapp.component.html
Kindly revert us if you have any concerns.
Regards,
Nishanthi