ChartsOrg / Charts

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

DGCharts Y-axis labels are not aligned to left #5153

Open davita00101110dmg opened 4 months ago

davita00101110dmg commented 4 months ago

ℹ Please fill out this template when filing an issue. All lines beginning with an ℹ symbol instruct you with what info we expect. You can delete those lines once you've filled in the info.

Per our *CONTRIBUTING guidelines, we use GitHub for bugs and feature requests, not general support. Other issues should be opened on Stack Overflow with the tag ios-charts.

Please remove this line and everything above it before submitting.

What did you do?

chartView.leftAxis.labelAlignment = .left

What did you expect to happen?

I expected that left axis labels would be aligned to the left but it's aligned to the right.

What happened instead?

image

By default chartView.leftAxis.labelAlignment = .left

I tried explicitly setting .left to the labelAlignment but it still doesn't works.

DGCharts Environment

DGCharts version/Branch/Commit Number: Xcode version: 15.0.1 Swift version: 5.9 Platform(s) running DGCharts: iOS