react-native-pathjs-charts icon indicating copy to clipboard operation
react-native-pathjs-charts copied to clipboard

question: can you use multiple colors in a chart?

Open beebase opened this issue 8 years ago • 4 comments

thanks.

beebase avatar Aug 18 '16 17:08 beebase

Not yet. This is a good feature... I already need this. Ultimately, this involves overriding the fancy color algorithm I inherited in the port. I'd think you'd want to be able to pull color data from the data and not styling info... Still thinking on a good approach. Ideas?

caledhwa avatar Aug 21 '16 18:08 caledhwa

Agreed, this is a desired feature. It may be easier to submit several PRs adding multi-color support for a specific chart at a time or a set of charts at a time.

marzolfb avatar Nov 03 '16 20:11 marzolfb

I think the good thing alternatively in color attribute pass array of colors, and to check if there is only one color then using previous algorithm and if there is an array of colors, than just to take colors... It's also backward compatible... And If there are number of colors less then number of data then use previous algorithm for other colors from the last color...

SimchaShats avatar Nov 10 '16 18:11 SimchaShats

Multi-color support does exist - see my comments on this closed PR

marzolfb avatar Nov 14 '16 16:11 marzolfb