Hi Manu,
Thanks for using Syncfusion products.
We have analyzed your query. Your requirement can be achieved as a workaround using the loaded event. In the loaded event by using interior property in the series, we can get the series color. Please find the below code to achieve your requirement,
|
import { ILoadedEventArgs, Series } from '@syncfusion/ej2-ng-charts';
public loaded(args: ILoadedEventArgs): void {
let colors: string[] = [];
for (let series of <Series[]>(args.chart.series)) {
colors.push(series.interior);
}
alert(colors);
}; |
Screenshot:
We have prepared a sample based on this. Please find the sample from below link,
Kindly revert us, if you have any concerns.
Thanks,
Baby.