Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to render custom Label in axis and top bar #706

Open
skychavda opened this issue Oct 14, 2023 · 0 comments
Open

How to render custom Label in axis and top bar #706

skychavda opened this issue Oct 14, 2023 · 0 comments

Comments

@skychavda
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant