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

How to force xAxisRender to redraw #5017

Open chaaarly opened 1 year ago

chaaarly commented 1 year ago

Hello,

i have a CombinedChartView with a custom xAxisRenderer that draw images loaded asynchronously. I need to force my xAxisRenderer to redraw the axis (at least calling renderAxisLine(context: CGContext)) when my images are loaded. So i wonder how to do so ?

It works if a force the entire chart to display with setNeedsDisplay()but it's probably too much as i only need to draw the images from my custom XAxisRenderer.

Charts Environment

Charts version/Branch/Commit Number: 4.1.0 Xcode version: 14.2 Swift version: 5 Platform(s) running Charts: iOS macOS version running Xcode: 13.2.1