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

Setting custom values on top of bar chart #545

Closed
reshadf opened this issue Nov 11, 2015 · 2 comments
Closed

Setting custom values on top of bar chart #545

reshadf opened this issue Nov 11, 2015 · 2 comments

Comments

@reshadf
Copy link

reshadf commented Nov 11, 2015

Hello I have an issue achieving the following with the bar chart.

http://stackoverflow.com/questions/33648515/setting-custom-text-on-top-of-bar-chart

I posted it here because it seems the community on Github is more active than on stack overflow..

Could anyone see if they can help?

Thanks in advance!

@reshadf reshadf changed the title label:"help wanted" Setting custom values on top of bar chart Setting custom values on top of bar chart Nov 11, 2015
@liuxuan30
Copy link
Member

each dataSet has a value formater, use it to format your value like below should be enough:

set1.valueFormatter = [[NSNumberFormatter alloc] init];
set1.valueFormatter.negativePrefix = @"€ ";
set1.valueFormatter.positivePrefix = @"€ ";

BTW, I keep an eye on SO :)

@Mh-ghadamyari
Copy link

Mh-ghadamyari commented Oct 9, 2018

how can I use the decimal number style for the values formatter?
like 3,000,000

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

3 participants