react-native-chart-kit
react-native-chart-kit copied to clipboard
How to render custom Label in axis and top bar
I use BarChart
in my app in which I have to change the top bar label and rerender my own custom labels so I tried formatTopBarValue
in chartConfig
but this gives me result like below. Which is not I want.
formatTopBarValue: e => (
<View style={{justifyContent: 'center', alignItems: 'center'}}>
<Text>{e}</Text>
<Text>Customer</Text>
</View>
),
I have to make design like this where the top bar and axis are customized
. So how can I achieve this kind of design in this package?