You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recognized that on LineCharts, the first value never has a circle on top of it. This is happening per default, also in the examples. See the following screenshot for reference:
I played around with some settings (zooming, scrolling, styling, etc.) but couldn't find any working setup where the first value would also display a circle. In my scenario the first circle is necessary because some datasets might only contain one single value (which won't be visible otherwise).
This issue seems to be related to the wrapper-project, because in the Example-App of MPAndroidChart it's possible to see one single value in Line-Charts and you see a Circle on top of the first value as well:
Does anyone know why this happens or has a suggestion to fix this for my case?
Update: On Android the circles draw just fine, this seems to be only an issue with iOS.
The text was updated successfully, but these errors were encountered:
Update: This seems to be an issue of Charts library for iOS (see related issue). Hope that this will be fixed in the next release. Closing this issue now.
Update #2: For anyone suffering from the same problem: It's possible to fix this with a quick hack until this is merged. Presuming you have installed the library manually, you can apply the fix in the Native XCode-Project of the Charts library. You need to adjust the file BarLineScatterCandleBubbleRenderer.swift:
public mutating func next() -> Int? {
- guard value < bounds.max else { return nil }- value += 1+ guard value <= bounds.max else { return nil }+ defer { value += 1 }
return value
}
I recognized that on LineCharts, the first value never has a circle on top of it. This is happening per default, also in the examples. See the following screenshot for reference:
I played around with some settings (zooming, scrolling, styling, etc.) but couldn't find any working setup where the first value would also display a circle. In my scenario the first circle is necessary because some datasets might only contain one single value (which won't be visible otherwise).
This issue seems to be related to the wrapper-project, because in the Example-App of MPAndroidChart it's possible to see one single value in Line-Charts and you see a Circle on top of the first value as well:
Does anyone know why this happens or has a suggestion to fix this for my case?
Update: On Android the circles draw just fine, this seems to be only an issue with iOS.
The text was updated successfully, but these errors were encountered: