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

Display Max Value on X-axis #1241

Closed
prasadgau opened this issue Jul 12, 2016 · 1 comment
Closed

Display Max Value on X-axis #1241

prasadgau opened this issue Jul 12, 2016 · 1 comment

Comments

@prasadgau
Copy link

Hi
I have used this library. Really it's good. I have one problem on that. How to display max value on x-axis? I have used spaceBetweenLabels but it is used to gap between two values. But i can't display max value on x axis.

Suppose if we take 12 values on axis. i can display like 0, 2, 4,...10 but i am not display last 11th value on x-axis. Please explain how to display the value.

@liuxuan30
Copy link
Member

try setLabelsToSkip(1) or avoidFirstLastClippingEnabled = true
x axis has logic automatically show labels without overlapping, so it has a modulus to skip some labels. you can also modify x axis renderer's code to make sure the last is displayed

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