I didn't see any issues relevant to this. However, it's happening on both Swift and Objective-c targets in the demo project. The Pie Chart percentage doesn't show up even DefaultValueFormatter was set.
Goals Soccer ⚽
Make Pie Chart percentage show up.
Implementation Details :construction:
Move NumberFormatter constructor and setValueFormatter(formatter:) function below chartView.data = data. I saw on the didSet implementation of ChartData, that each data in ChartData will be re-assigned to defaultValueFormatter if the valueFormatter of each data is a DefaultValueFormatter subtype. So, no matter what formatter is set, it will be replaced.
Testing Details :mag:
I've tested on both Swift and Objective-c targets. It works as expected.
Issue Link :link:
I didn't see any issues relevant to this. However, it's happening on both Swift and Objective-c targets in the demo project. The Pie Chart percentage doesn't show up even
DefaultValueFormatter
was set.Goals Soccer ⚽
Make Pie Chart percentage show up.
Implementation Details :construction:
Move
NumberFormatter
constructor andsetValueFormatter(formatter:)
function belowchartView.data = data
. I saw on thedidSet
implementation ofChartData
, that each data in ChartData will be re-assigned todefaultValueFormatter
if thevalueFormatter
of each data is a DefaultValueFormatter subtype. So, no matter what formatter is set, it will be replaced.Testing Details :mag:
I've tested on both Swift and Objective-c targets. It works as expected.