You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my current chart. I already have some custom NumberFormattor on it. But the display of values which I want active not quite what I need. Currently it's just a value which I passed to BarChartDataEntry. I wonder if I could send string there for value to display? I am looking for something similar to stringForValue. I use stringForValue where I return names for xAxis. Or if anyone have idea how I could implement formatter which is checking if x > 10.000 then display it as 10.0'(10k).
The text was updated successfully, but these errors were encountered:
You can close case, I think I found how I could do it. Firstly I delegate IValueFormatter in ViewController. Then when I initialize BarChar tDataSet, I do valueFormatter = self. After that I can use stringForValue(_ value: Double, entry: ChartDataEntry, dataSetIndex: Int, viewPortHandler: ViewPortHandler?) -> String
Thanks for awesome library!
This is my current chart. I already have some custom NumberFormattor on it. But the display of values which I want active not quite what I need. Currently it's just a value which I passed to BarChartDataEntry. I wonder if I could send string there for value to display? I am looking for something similar to stringForValue. I use stringForValue where I return names for xAxis. Or if anyone have idea how I could implement formatter which is checking if x > 10.000 then display it as 10.0'(10k).
The text was updated successfully, but these errors were encountered: