/
NikolayIvkin
/
MPAndroidChart1
Обзор
Документация
Войти
/
NikolayIvkin
/
MPAndroidChart1
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/MyAxisValueFormatter.java
21 строка
554 B
Daniel Cohen Gindi
Revert:
e5b6619
- bring back polymorphism to value formatters
21 сен 2020, 17:48
21 сен 2020, 17:48
bc0be2c
Код
Авторство
О чём код?
package com.xxmassdeveloper.mpchartexample.custom; import com.github.mikephil.charting.components.AxisBase; import com.github.mikephil.charting.formatter.IAxisValueFormatter; import java.text.DecimalFormat; public class MyAxisValueFormatter implements IAxisValueFormatter { private final DecimalFormat mFormat; public MyAxisValueFormatter() { mFormat = new DecimalFormat("###,###,###,##0.0"); } @Override public String getFormattedValue(float value, AxisBase axis) { return mFormat.format(value) + " $"; } }