carbon-charts icon indicating copy to clipboard operation
carbon-charts copied to clipboard

getFillColor does not pass all arguments to the user defined function

Open inanmadak opened this issue 2 years ago • 0 comments

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.

inanmadak avatar Jul 01 '22 15:07 inanmadak