Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add horizontal scrolling for react-native-chart-kit StackedBarChart?

I'm looking forward to create horizontally scrollable StackedBarChart with react-native-chart-kit. Is it possible to create such chart with this package and how?

like image 813
she hates me Avatar asked Nov 07 '22 12:11

she hates me


1 Answers

<ScrollView horizontal={true}> <BarChart style={graphStyle} chartConfig={chartConfig} verticalLabelRotation={30} /> `enter code here` </ScrollView>
like image 185
Surendra Avatar answered Nov 15 '22 12:11

Surendra