react-native-chart-kit icon indicating copy to clipboard operation
react-native-chart-kit copied to clipboard

How to render custom Label in axis and top bar

Open skychavda opened this issue 8 months ago • 0 comments

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>
),
image

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?

image

skychavda avatar Oct 14 '23 10:10 skychavda