Skip to content

Conversation

UnivexDont
Copy link

@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