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

Repeating Xaxis values #2143

Closed
sahabe1 opened this issue Feb 6, 2017 · 2 comments
Closed

Repeating Xaxis values #2143

sahabe1 opened this issue Feb 6, 2017 · 2 comments

Comments

@sahabe1
Copy link

sahabe1 commented Feb 6, 2017

Hi daniel,

I am trying to plot values on chart. it its fine when plotting multiple values but in case of single value the xAxis label is repeating. pleas help me how can i resolve

img_4228

@JiteshBharadiya
Copy link

 // Make sure that only 1 x-label per index is shown
  xAxis.granularityEnabled = true
  xAxis.granularity = 1

I use these codes to solve this problem
#2094 (comment)

@CodeLiar Thanks. It is also works for me.

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

4 participants
@sahabe1 @liuxuan30 @JiteshBharadiya and others