-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Granularity in line chart not working (Chart3.0-Swift2.3 ) #1534
Comments
What value did you set for granularity? |
As far as I see the labels are not shown, when the granularity is set to true (with default 1.0) and the values are within scope of 1 (i.e. x = 0.1, x = 0.2, x = 0.8). Not working sample:
Working sample:
It is working properly when the x-values have bigger range. |
Granularity of 1 for x - 0.1, 0.23, 0.42 is obviously not a good choice............. |
You are right, but the for me it will be more intuitive (since my data are independent from me) to display edge granularity (in that case: 0 and 1). In my case I need to present data with floating points values on xAxis and labels should visible every whole number. I solved that by adding additional LineChartDataSet with edge values to LineChartData. Thanks |
When I enable granularity in line chart, xAxis labels are gone. Without granularity labels are working correctly.
The text was updated successfully, but these errors were encountered: