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

Changing the size of the interception (dots) font in Line Chart ? #1043

Closed
YHSX88 opened this issue May 16, 2016 · 5 comments
Closed

Changing the size of the interception (dots) font in Line Chart ? #1043

YHSX88 opened this issue May 16, 2016 · 5 comments

Comments

@YHSX88
Copy link

YHSX88 commented May 16, 2016

screen shot 2016-05-16 at 23 34 41
Hi Guys

I searched and I could not find which is the property to set the font size in line Chart for the Intercepted Dots values ?

please help

Thanks in advance

@Maxcucurbit
Copy link

BalloonMarker *marker = [[BalloonMarker alloc] initWithColor:[UIColor colorWithWhite:180/255. alpha:1.0] font:[UIFont systemFontOfSize:12.0] insets: UIEdgeInsetsMake(8.0, 8.0, 20.0, 8.0)];

marker.font = [UIFont systemFontOfSize:22];

@YHSX88
Copy link
Author

YHSX88 commented May 17, 2016

Hi Maxcucurbit

I created the class "BalloonMarker.swift"

then I initialized by writing:
let daFont = UIFont(name: "HelveticaNeue", size: 50)
let bMarker = BalloonMarker(color: UIColor.greenColor(), font: daFont!, insets: UIEdgeInsets(top: 8.0, left: 8.0, bottom: 20.0, right: 8.0))

And finally I'm assigning the marker.
lineChart.marker = bMarker

I and I'm getting no change ? My goal is to make the font size of this 120 text be bigger
screen shot 2016-05-17 at 21 12 44

I tried adding:
bMarker.font = UIFont.systemFontOfSize(50.0)
but still no change

Ok I saw what the code provided is doing but this is not what i need. Your code is making this balloon (see the picture bellow in red with black letters)
And is working properly when you tab on one of the points but I need something else here not balloon.
screen shot 2016-05-17 at 22 51 39

If you can guide me what is wrong it will be great if not I thank you

@danielgindi
Copy link
Collaborator

If you are talking about the value text in the chart - not the marker - then it is probably valueFont you are looking for.

@YHSX88
Copy link
Author

YHSX88 commented May 18, 2016

That was it, thank you

screen shot 2016-05-18 at 20 08 04

@danielgindi
Copy link
Collaborator

You're welcome! :-)

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