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

In Piechart the percentage fraction digits are more than 2. How to avoid #5133

Open senthilhisto opened 7 months ago

senthilhisto commented 7 months ago

What did you do?

ℹ I used the Piechart and when i show the result it was more than 2 digits.

What did you expect to happen?

ℹ Ideally, i don't need fractions.

What happened instead?

ℹ But showing more than 2 digits. Even i put the code pFormatter.maximumFractionDigits = 0. But no luck

DGCharts Environment

DGCharts version/Branch/Commit Number:4.1.0 Xcode version: 15.0.1 Swift version: 5 Platform(s) running DGCharts: iPad **macOS version running Xcode: 14.1.2

Demo Project

Screenshot 2023-12-11 at 6 14 00 PM
asar-s commented 5 months ago

Hi there. Got any solution for this?