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

xAxis labelText too long, it can not draw complete. #3430

Closed
1 task done
fengqiangboy opened this issue Apr 28, 2018 · 2 comments
Closed
1 task done

xAxis labelText too long, it can not draw complete. #3430

fengqiangboy opened this issue Apr 28, 2018 · 2 comments

Comments

@fengqiangboy
Copy link

fengqiangboy commented Apr 28, 2018

ℹ Please fill out this template when filing an issue.
All lines beginning with an ℹ symbol instruct you with what info we expect. You can delete those lines once you've filled in the info.

Per our *CONTRIBUTING guidelines, we use GitHub for
bugs and feature requests, not general support. Other issues should be opened on Stack Overflow with the tag ios-charts.

Please remove this line and everything above it before submitting.

What did you do?

Draw charts

What did you expect to happen?

xAxis labelText can draw complete

What happened instead?

The first and last xAxis label can not draw complete

Charts Environment

**Charts version/Branch/Commit Number:3.1.1
**Xcode version:9.3
**Swift version:4.1
**Platform(s) running Charts:iOS
**macOS version running Xcode:10.13.4

image

@liuxuan30
Copy link
Member

ask on stack overflow.
For courtesy,
A) using avoidFirstLastClippingEnabled
B) enable x axis label wrapping

@Karpot
Copy link

Karpot commented May 15, 2018

I have the same issue. A) doesnt look good, because I only need it for the last one. When I use the "Debug View Hierarchy" I see that the complete chart is some pixels to the right placed.

Do you really think B) is an option for a time label? It is exactly my problem.

I think the real solution is to calculate the first and last label in respect of the view boundaries. It may change the hole chart.

I dont want to comment such a closing with a "works as expected" for now. :-/

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