Closed Girum closed 1 year ago
I'm also having this issue, the custom valueFormatter
string is no longer working since updating the library to work in XCode 14.
Previously the below valueFormatter
string worked.
valueFormatter: "$#,###;-$#,###",
It is related to https://github.com/danielgindi/Charts/issues/4690 , still waiting for merging of the fix PR.
How to solve this problem
@ismilesky No workaround right now.
Check v0.5.11
BarChart has error yeat.
pieChart has error yet.
Does Anybody knows how to solve this problem?
@Josee20 Which version are you using?
@wuxudong My XcoderVersion is 14.0.1 and Charts version is 4.1.0 my code is like this
// 3. Set ChartData
let pieChartData = PieChartData(dataSet: pieChartDataSet)
let format = NumberFormatter()
format.numberStyle = .percent
format.maximumFractionDigits = 1
format.multiplier = 1
format.percentSymbol = "%"
let formatter = DefaultValueFormatter(formatter: format)
pieChartData.setValueFormatter(formatter)
mainView.currentMonthSchedulePercentageChart.data = pieChartData
Hi! I using the PieChart in my app, and using the value formatter, I can show correctly. But after the update to fix the lib in XCode14, the valueFormatter does not work anymore. Did you know how to workaround this (I cant concat with data value, because the values is only float/number).
Image (iOS and Android):![Screen Shot 2022-09-27 at 09 15 02](https://user-images.githubusercontent.com/1349300/192525316-1178e7d5-2aaf-4398-ba29-8b0766478e2a.png)