-
-
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
[BUG] Bar Chart incorrect rendering for special data #214
Comments
I was told not to insert nil/NAN value at specific xIndex. So my data only has value at xIndex:0 and xIndex:10. However, the _deltaX is using entryCount to calculate, and it goes wrong. I found at least two functions is using entryCount: BarChartView->calMinMax() and BarChartViewRenderer->drawDataSets() I have to temporarily choose to insert nan into the dataSet, and handle the nan situation myself (it crashes from time to time if no nan check). the mis-rendered bars cannot be highlighted by touch. I think it's a serious bug @danielgindi |
Tried one fix #221 for bar chart. Other bar-like chart not touched yet, as I need @danielgindi to confirm if my fix is correct. Then we can take a look at other bar-like charts. |
I am using v3.0.1 but still have the same problem. the bars are misplaced. Please if u can help me with that check #3154 |
Here's what I changed in
- (void)setDataCount:(int)count range:(double)range
for the demo multiple bar chart view controller, other remains the same:It render the second group of bars at xIndex:10 in a wrong postion. The correct postion should be at the right most position, since the second group is at xIndex 10 as the last data entry.
The text was updated successfully, but these errors were encountered: