nihgwu / react-native-pie

Pie chart for React Native
MIT License
107 stars 25 forks source link

Use case requiring separation of series and color #25

Closed zgordon01 closed 5 years ago

zgordon01 commented 5 years ago

In using this package, I can't imagine a use case that requires series and color to be in their own respective arrays. They will always have the same number of elements correct? Does anyone have an example where having more items in series than color is useful (or vice versa)?

I think it would be far more readable if we had a single items array, and properties of objects in items would be color and percentage.