ChartsOrg / ChartsOrg/Charts

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

Open
#5,133 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

* [x] I've read, understood, and done my best to follow the [*CONTRIBUTING guidelines](https://github.com/jjatie/Charts/blob/master/CONTRIBUTING.md).

## 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.