carbon-charts
carbon-charts copied to clipboard
getFillColor does not pass all arguments to the user defined function
https://github.com/carbon-design-system/carbon-charts/blob/a934f3f3dbc2f962040eca3935b556334093ca80/packages/core/src/components/graphs/pie.ts#L121
above you are passing only the first parameter to the getFillColor, however, in the typings and base component you have defined it like below:
getFillColor(group: any, key?: any, data?: any) {
So we cannot use other params to decide which color to return.