Skip to content

fix ChartViewBase.data assgin bug #4997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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