ChartsOrg / ChartsOrg/Charts

How to force xAxisRender to redraw

Open
#5,017 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.