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 give a pound symbol(£) in bar chart along y-axis label values?also hideOrigin not hiding origin in Bar chart #60

Closed
VijinR opened this issue Jan 12, 2022 · 3 comments

Comments

@VijinR
Copy link

VijinR commented Jan 12, 2022

£10
£20
hideOrigin={true}

@Abhinandan-Kushwaha
Copy link
Owner

Hi @VijinR 👋

You can display custom text on y-axis using the yAxisLabelTexts prop. For example-

<BarChart
 data={barData}
  yAxisLabelTexts={['0', '£10', '£20']} />

By default, there are 10 sections in the chart. You can control the number of sections using the noOfSections prop.

The issue with hideOrigin is now fixed in version 0.2.6 🎉
Cheers! 🍻

@VijinR
Copy link
Author

VijinR commented Jan 13, 2022

@Abhinandan-Kushwaha by using yAxisLabelTexts we must specify the value also right?how we will get the y-axis value been generated by default by library?I need the default yaxis value generated by library with '£' appended at beginning

@Abhinandan-Kushwaha
Copy link
Owner

Use yAxisLabelPrefix='£'

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

2 participants