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

Horizontal bar chart xAxis values missing #1531

Closed
sree127 opened this issue Sep 22, 2016 · 1 comment
Closed

Horizontal bar chart xAxis values missing #1531

sree127 opened this issue Sep 22, 2016 · 1 comment

Comments

@sree127
Copy link

sree127 commented Sep 22, 2016

I'm having trouble in displaying the values in xAxis

screen shot 2016-09-22 at 2 54 45 pm

As in above, there are only 5 xAxis labels shown instead of 10.

Dataset :

 Charts.BarChartDataSet, label: ABC, 10 entries:
ChartDataEntry, x: 1.0, y 7344783.0
ChartDataEntry, x: 2.0, y 744598.0
ChartDataEntry, x: 3.0, y 4480161.0
ChartDataEntry, x: 4.0, y 985448.0
ChartDataEntry, x: 5.0, y 13411712.0
ChartDataEntry, x: 6.0, y 2499160.0
ChartDataEntry, x: 7.0, y 7374383.0
ChartDataEntry, x: 8.0, y 2857319.0
ChartDataEntry, x: 9.0, y 6397822.0
ChartDataEntry, x: 10.0, y 10772772.0

I've set the granularity to 1. What might be the issue?

@sree127
Copy link
Author

sree127 commented Sep 22, 2016

I set the granularity to 0& did some changes in formatter and it worked.

@sree127 sree127 closed this as completed Sep 22, 2016
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

1 participant