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 to display last label in X-Axis #2007

Closed
mahin8514 opened this issue Dec 26, 2016 · 5 comments
Closed

How to display last label in X-Axis #2007

mahin8514 opened this issue Dec 26, 2016 · 5 comments

Comments

@mahin8514
Copy link

simulator-screen-shot-dec-23 -2016 -3

I want to display the last x-axis Time label for my chart. I used the code
magneticChart.xAxis.setLabelsToSkip(239) to magneticChart.xAxis.setLabelsToSkip(238). Then it shows last time label. but the time intervals changed. and not getting the exact time of first label. I need both first and last label of time to be same.

@liuxuan30
Copy link
Member

try avoidFirstLastClippingEnabled. BTW, it's old version of your library, so it's not supported in the future.
setLabelsToSkip works like a modules, it's not a guarantee to show the last label. like pos += interval.

@mahin8514
Copy link
Author

avoidFirstLastClippingEnabled not solved my problem.

@vaibhav-varshaaweblabs
Copy link

Exactly, avoidFirstLastClippingEnabled does not help. The last label always gets cut

@liuxuan30
Copy link
Member

OK.. Then we need more info:

  1. what's your code base version? Latest master? I recall an old 3.x code base has such bug?
  2. Can you reproduce it with ChartsDemo?

@liuxuan30
Copy link
Member

Please take a look at #2006 since this one is dup. We will move to #2006

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