ChartsOrg / ChartsOrg/Charts

Core Graphics in Charts ?

Open
#2,417 7 comments 2 reactions 0 assignees View on GitHub
discussion idea
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

This is about why Core Graphics was chosen to draw the charts instead of using CAShapeLayer on a View ?

The reason why I am asking this since overriding **drawRect** stores the backing image before display the view to screen. And this backing store consumes expensive memory and CPU though.

Hope the same charts are drawable using CAShapeLayer on UIView and thus not required to override **drawRect** method

Thanks.

Contributor guide

Open the contributing guide

Research direction

Review the existing chart rendering path that uses drawRect and Core Graphics, then compare it with CAShapeLayer on a UIView. No files or tests are named; done would be an evidence-based explanation of why Core Graphics was chosen and whether the same charts can use CAShapeLayer.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
computer-graphics, mobile-dev
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.