iOS-Charts Float to Integer YAxis

后端 未结 5 626
没有蜡笔的小新
没有蜡笔的小新 2020-12-19 04:38

I\'m building a chart using iOS-charts \"IOS

I\'m trying to convert the floats into int, but iOS-charts

5条回答
  •  攒了一身酷
    2020-12-19 05:20

    You can try this one, it worked nicely for me

    let formatter = NSNumberFormatter()
    formatter.numberStyle = .NoStyle
    formatter.locale = NSLocale(localeIdentifier: "es_CL")
    BarChartView.leftAxis.valueFormatter = formatter
    

提交回复
热议问题