Charts icon indicating copy to clipboard operation
Charts copied to clipboard

Swift Charts module with valueFormatter iOS16

Open GuriSarao opened this issue 2 years ago • 1 comments

I am not able to assign a custom valueFormat to graph

view_barGraph.xAxis.valueFormatter = DayAxisValueFormatter()

This line is giving me error Cannot assign value of type 'DayAxisValueFormatter' to type '(any AxisValueFormatter)?'

I want month names on xAxis. it was working fine before but after upgrade xcode 14 it shows me this error

GuriSarao avatar Dec 16 '22 18:12 GuriSarao

I had the same issue and I had to change DayAxisValueFormatter conformance from IAxisValueFormatter to AxisValueFormatter since they differ from 3.x to 4.x.

corteggo avatar Jan 11 '23 09:01 corteggo

Closing as resolved

pmairoldi avatar Mar 29 '23 20:03 pmairoldi