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 do I change the color of the text on top of the bars? #2732

Closed
doriansgithub opened this issue Aug 18, 2017 · 2 comments
Closed

How do I change the color of the text on top of the bars? #2732

doriansgithub opened this issue Aug 18, 2017 · 2 comments

Comments

@doriansgithub
Copy link

I've looked everywhere, and can't find how to change the color or font size of the text on top of the bars.

img_0722

@seenoevo
Copy link

look in demo...for example BarChartViewController.m:

objective-c:

BarChartData *data = [[BarChartData alloc] initWithDataSets:dataSets];
[data setValueFont:[UIFont fontWithName:@"HelveticaNeue-Light" size:10.f]];

swift:

var chartData = BarChartData(dataSet: chartDataSet)
chartData.setValueTextColor(UIColor.white)

@doriansgithub
Copy link
Author

Excellent! Got it with this:

        chartData.setValueTextColor(UIColor .cyan)

Thank you!

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