aboutsummaryrefslogtreecommitdiff
path: root/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/MyCustomXAxisValueFormatter.java
diff options
context:
space:
mode:
Diffstat (limited to 'MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/MyCustomXAxisValueFormatter.java')
-rw-r--r--MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/MyCustomXAxisValueFormatter.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/MyCustomXAxisValueFormatter.java b/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/MyCustomXAxisValueFormatter.java
index 2cf2eab7..bea4908e 100644
--- a/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/MyCustomXAxisValueFormatter.java
+++ b/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/MyCustomXAxisValueFormatter.java
@@ -1,6 +1,7 @@
package com.xxmassdeveloper.mpchartexample.custom;
-import com.github.mikephil.charting.formatter.ValueFormatter;
+import com.github.mikephil.charting.components.AxisBase;
+import com.github.mikephil.charting.formatter.IAxisValueFormatter;
import com.github.mikephil.charting.utils.ViewPortHandler;
import java.text.DecimalFormat;
@@ -11,7 +12,7 @@ import java.text.DecimalFormat;
* @deprecated The {@link MyAxisValueFormatter} does exactly the same thing and is more functional.
*/
@Deprecated
-public class MyCustomXAxisValueFormatter extends ValueFormatter
+public class MyCustomXAxisValueFormatter implements IAxisValueFormatter
{
private final DecimalFormat mFormat;
@@ -24,7 +25,7 @@ public class MyCustomXAxisValueFormatter extends ValueFormatter
}
@Override
- public String getFormattedValue(float value) {
+ public String getFormattedValue(float value, AxisBase axis) {
//Log.i("TRANS", "x: " + viewPortHandler.getTransX() + ", y: " + viewPortHandler.getTransY());