ChartsOrg / ChartsOrg/Charts

Percentage is not show on pie chart

Open
#4,802 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

Hi there,

Although although my last Charts version shown percentage, current Charts version didn't show. How can I fix it.

My code:

let pFormatter = NumberFormatter()
pFormatter.numberStyle = .percent
pFormatter.maximumFractionDigits = 1
pFormatter.multiplier = 1
pFormatter.percentSymbol = " %"
data.setValueFormatter(DefaultValueFormatter(formatter: pFormatter))

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the pie-chart behavior with the provided NumberFormatter and DefaultValueFormatter code in Charts. Compare the current version's output with the reported previous-version behavior; done means the pie chart displays percentage labels as expected.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.