Skip to content

fix ChartViewBase.data assgin bug#4997

Open
UnivexDont wants to merge 1 commit intoChartsOrg:masterfrom
UnivexDont:master
Open

fix ChartViewBase.data assgin bug#4997
UnivexDont wants to merge 1 commit intoChartsOrg:masterfrom
UnivexDont:master

Conversation

@UnivexDont
Copy link
Copy Markdown

@UnivexDont UnivexDont commented Dec 30, 2022

Issue Link 🔗

If I call ChartData setValueFormatter:DefaultValueFormatter func before I call ChartView data assign(chartView.data = data), the valueFormatter won't work.
Here is issue code....

let pFormatter = NumberFormatter()
pFormatter.numberStyle = .percent
pFormatter.maximumFractionDigits = 2
pFormatter.multiplier = 1
pFormatter.percentSymbol = "%"
data.setValueFont(.systemFont(ofSize: 11, weight: .light))
data.setValueTextColor(.black)
data.setValueFormatter(DefaultValueFormatter(formatter: pFormatter))
chartView.data = data

Goals ⚽

None

Implementation Details 🚧

None

Testing Details 🔍

Just test for myself project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant