react-native-pathjs-charts
react-native-pathjs-charts copied to clipboard
question: can you use multiple colors in a chart?
thanks.
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?
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.
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...
Multi-color support does exist - see my comments on this closed PR