react-native-chart-kit
react-native-chart-kit copied to clipboard
Format Top of bars
Is posible to format the labels of the top of bars?
can you tell us how to show the label on top of bar ?
you can modify it by make change in node_modules . path of file is given below path: node_modules/react-native-chart-kit/dist/barchart.js
can someone tell me the how to show label with bargraph scrolling right to left
I need this too.
can you tell us how to show the label on top of bar ?
showValuesOnTopOfBars={true}
How can I achieve this?
can you tell us how to show the label on top of bar ?
showValuesOnTopOfBars={true}
Why not. just pass it as a props
showBarTops={false} showValuesOnTopOfBars={true}
@shkhaider2015 I have let answer in my own post, but thank u anyway =)
Is it possible to add a space (marginBottom) between bar and value?
@tanskamalgorzata And anyone else who encounters this issue, I forked this package and added a topBarValueSpacing
prop to BarChart to add spacing between the bar and the value above. You can clone it down here
i have issues value on top bar, i need format this to font size
Hi! @LinhLM23496 @tanskamalgorzata @tavareshenrique @visheshsprinzo
In the chartConfig you can use formatTopBarValue to customise the values on top of bars formatTopBarValue:(e)=> <><Text style={{color:"blue",fontSize:11}}>{e}</Text></>,