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

Remove value labels padding #3350

Closed
1 task done
jonohayon opened this issue Mar 17, 2018 · 4 comments
Closed
1 task done

Remove value labels padding #3350

jonohayon opened this issue Mar 17, 2018 · 4 comments

Comments

@jonohayon
Copy link

jonohayon commented Mar 17, 2018

What did you do?

I tried to hide the value labels using the dataSet.setDrawValues method.

What did you expect to happen?

I expected that the values will be hidden and the line chart's coordinates will be aligned to the grid.

What happened instead?

The coordinates are a bit off, as it looks like the value labels had some padding around them.

Charts Environment

Charts version/Branch/Commit Number: 3.0.4
Xcode version: 9.2
Swift version:4
Platform(s) running Charts: iOS
macOS version running Xcode: 10.13.1

Demo Project

https://github.com/Team3316/kassandra-ios

@jonohayon
Copy link
Author

I currently solved the problem by adding a variable offset to the values, but this is a bad practice.

@frc3316
Copy link

frc3316 commented Mar 22, 2018

+1, had the same problem.

@Virtue86
Copy link

offset is ok

@jonohayon
Copy link
Author

Nevermind, this was a problem due to forcing a certain number of labels in the left y-axis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants