ChartsOrg / Charts

Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.
Apache License 2.0
27.51k stars 5.99k forks source link

Feature request - make LineChartRenderer inheritable #5082

Open Gargo opened 1 year ago

Gargo commented 1 year ago

I needed to subclass LineChartRenderer and override its method drawCircles(context:). It is private but ok, I can override drawExtras(context:). The problem is these methods involve a lot of private/internal methods which are not accessible. So instead of overriding a single method I need to subclass LineRadarRenderer (superclass of LineChartRenderer), copy a variable, 2 internal methods, 3 extensions (which are not accessible outside this module) and a global function.

Linked problems: https://github.com/danielgindi/Charts/issues/3258 https://github.com/danielgindi/Charts/issues/5081