ChartsOrg / Charts

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

getBarBounds issue #5130

Open pjlamber opened 8 months ago

pjlamber commented 8 months ago

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.