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 needed to display 2 data sets in the marker (tooltip) of LineCharView. So I created a subclass of LineChartView and needed to override drawMarkers(context: CGContext) to display 2 data sets. Since drawMarkers(context: CGContext) is internal in ChartViewBase and CombinedChartView and therefore cannot be overridden, I changed the source code to make it open.
What did you expect to happen?
Changing the source code works, but it's not ideal. It makes updating the pod problematic. Also, my Android partner told me the same method is open in the Android library.
What happened instead?
Changing the source code works, but when we updated the pod version it broke.
Charts Environment
Charts version/Branch/Commit Number: 3.4.0 Xcode version: 10.3/11 Swift version: 5 Platform(s) running Charts: iPhone macOS version running Xcode:
Demo Project
The text was updated successfully, but these errors were encountered:
well... it's hard to tell if we should to mark it open or internal... as you can see drawMarkers IMP is not ideal to mark it open. too much details for a public method.
normally, I'd encourage if you need heavy customizations, you should grab the source code. Pod is just for grab-and-use or light weight overriding.
What did you do?
I needed to display 2 data sets in the marker (tooltip) of
LineCharView
. So I created a subclass ofLineChartView
and needed to overridedrawMarkers(context: CGContext)
to display 2 data sets. SincedrawMarkers(context: CGContext)
isinternal
inChartViewBase
andCombinedChartView
and therefore cannot be overridden, I changed the source code to make itopen
.What did you expect to happen?
Changing the source code works, but it's not ideal. It makes updating the pod problematic. Also, my Android partner told me the same method is
open
in the Android library.What happened instead?
Changing the source code works, but when we updated the pod version it broke.
Charts Environment
Charts version/Branch/Commit Number: 3.4.0
Xcode version: 10.3/11
Swift version: 5
Platform(s) running Charts: iPhone
macOS version running Xcode:
Demo Project
The text was updated successfully, but these errors were encountered: