ChartsOrg / ChartsOrg/Charts

getBarBounds issue

Open
#5,130 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

Just upgraded to DGCharts from pod 'Charts', '~> 3.4.0'. I have a horizontal stacked bar chart. I need to draw labels directly above and aligned left. And I need to draw a label directly to the right and rotated 90 degrees. Prior to the update, I would use getBarBounds, create/rotate labels and add as a subview (e.g. HorizontalBarChartView.addSubview(lbl)). The CGRect that is returned from getBarBounds gives an origin of (inf, inf) and a height and width of 0,0.

Please advise. thanks in advanced.

Contributor guide

Open the contributing guide

Research direction

Reproduce the horizontal stacked bar chart case after upgrading from Charts 3.4.0, then trace getBarBounds from HorizontalBarChartView. Done means the reported chart produces usable bounds rather than an origin of (inf, inf) with zero width and height; no test file is named in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
data-visualization, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.