-
-
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
Data Showing 0 and 1 only in y-axis if array contains only 0.0 double values. #338
Comments
You can tell us what versions of the framework are you trying on iOS and Android, and show sample code on both platforms - so we can test to see the difference and debug. |
Here y-axis array has values zero (0). So it shows three zeros(0) and three one(1) over the y-axis. iOS Code: for (NSMutableArray *vals in yValsSet) {
Android Code: for (int matricCount = 0; matricCount < subMetrices.size(); matricCount++) {
|
Well going back to this issue (sorry, too many issues I forgot about this) I understand that what you are missing is telling the chart what to do for axis min/max ( |
LineChartDataSet *dataSet = [[LineChartDataSet alloc] initWithYVals:yVals label:strDisplayText];
If yVals contains all 0.0 values, then it shows 0 and 1 in the y-axis. But same records in android shows 0, 1, 2, 3,... .
Kindly, let me know the process to resolve this issue.
The text was updated successfully, but these errors were encountered: