How to remove decimals from y values in iOS Charts? Im using the latest iOS Charts release with Swift3
标签:
ios-charts
相关问题
- How to draw LineChartData in swift 3?
- How to remove the value label above each bar in ba
- iOS Charts remove decimal from yValues
- iOS Charts ValueFormatter
- How to add “%” to data in ios-chart
相关文章
- How to remove the value label above each bar in ba
- iOS Charts remove decimal from yValues
- iOS Charts ValueFormatter
- How to add “%” to data in ios-chart
- Allow PieChartView to hide value line for tiny sli
- IOS-Charts set maximum visible x axis values
- 使用雨燕采用IOS-排行榜线图没有显示负值(Negative values not displaye
- iOS的图表moveViewToX似乎不工作(iOS Charts moveViewToX does
Could also use:
You need to set delegate for value formatter in
DataSet
like belowObj-C :
Use below delegate method for formatting your value :
Confirm Protocol :
For Swift you need to create Extension of BarChart and use below methods in it
Swift :
Call Above Extension Method like this :
hope you will get your formatted value on line chart.
Thanks for every one who tried to help, here was the fix, adding the below code
to the setBarChartData func