Is this possible using the onPress event can change the bar chart's particular bars colour or styles?
https://github.com/JesperLekland/react-native-svg-charts
Anybody, please help me.
Is this possible using the onPress event can change the bar chart's particular bars colour or styles?
https://github.com/JesperLekland/react-native-svg-charts
Anybody, please help me.
Copyright © 2021 Jogjafile Inc.
You should try to put the color or style in the state, and then in the onPress change it. And then the changes will be reflected:
And in the StackedBarChart, for Example, insert as a prop: