diff --git a/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/LineChartTime.java b/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/LineChartTime.java index d0a725fe0d..440a8ec299 100644 --- a/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/LineChartTime.java +++ b/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/LineChartTime.java @@ -101,11 +101,6 @@ public String getFormattedValue(float value) { long millis = TimeUnit.HOURS.toMillis((long) value); return mFormat.format(new Date(millis)); } - - @Override - public int getFormattedColor(float value, AxisBase axis) { - return 0; - } }); YAxis leftAxis = chart.getAxisLeft(); diff --git a/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/StackedBarActivityNegative.java b/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/StackedBarActivityNegative.java index 06d0fe87a4..99ef784b47 100644 --- a/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/StackedBarActivityNegative.java +++ b/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/StackedBarActivityNegative.java @@ -85,11 +85,6 @@ protected void onCreate(Bundle savedInstanceState) { public String getFormattedValue(float value) { return format.format(value) + "-" + format.format(value + 10); } - - @Override - public int getFormattedColor(float value, AxisBase axis) { - return 0; - } }); Legend l = chart.getLegend(); @@ -256,10 +251,5 @@ private class CustomFormatter extends ValueFormatter { public String getFormattedValue(float value) { return mFormat.format(Math.abs(value)) + "m"; } - - @Override - public int getFormattedColor(float value, AxisBase axis) { - return 0; - } } } diff --git a/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/DayAxisValueFormatter.java b/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/DayAxisValueFormatter.java index fce9aab4cd..bc7eacb67c 100644 --- a/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/DayAxisValueFormatter.java +++ b/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/DayAxisValueFormatter.java @@ -68,11 +68,6 @@ public String getFormattedValue(float value) { } } - @Override - public int getFormattedColor(float value, AxisBase axis) { - return 0; - } - private int getDaysForMonth(int month, int year) { // month is 0-based 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 f425f1426a..77ae1be458 100644 --- a/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/MyCustomXAxisValueFormatter.java +++ b/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/MyCustomXAxisValueFormatter.java @@ -40,9 +40,4 @@ else if (xScale > 1) else return mFormat.format(value); } - - @Override - public int getFormattedColor(float value, AxisBase axis) { - return 0; - } } diff --git a/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/MyValueFormatter.java b/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/MyValueFormatter.java index 748d0c794e..0b0bf2f2ab 100644 --- a/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/MyValueFormatter.java +++ b/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/MyValueFormatter.java @@ -22,11 +22,6 @@ public String getFormattedValue(float value) { return mFormat.format(value) + suffix; } - @Override - public int getFormattedColor(float value, AxisBase axis) { - return 0; - } - @Override public String getAxisLabel(float value, AxisBase axis) { if (axis instanceof XAxis) { diff --git a/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/YearXAxisFormatter.java b/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/YearXAxisFormatter.java index 644b689015..a7147d6ad7 100644 --- a/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/YearXAxisFormatter.java +++ b/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/custom/YearXAxisFormatter.java @@ -24,9 +24,4 @@ public String getAxisLabel(float value, AxisBase axis) { float percent = value / axis.mAxisRange; return mMonths[(int) (mMonths.length * percent)]; } - - @Override - public int getFormattedColor(float value, AxisBase axis) { - return 0; - } -} +} \ No newline at end of file diff --git a/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/DefaultAxisValueFormatter.java b/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/DefaultAxisValueFormatter.java index eca5b6fa1d..c0e32b880b 100644 --- a/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/DefaultAxisValueFormatter.java +++ b/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/DefaultAxisValueFormatter.java @@ -45,11 +45,6 @@ public String getFormattedValue(float value) { return mFormat.format(value); } - @Override - public int getFormattedColor(float value, AxisBase axis) { - return 0; - } - /** * Returns the number of decimal digits this formatter uses or -1, if unspecified. * diff --git a/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/DefaultValueFormatter.java b/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/DefaultValueFormatter.java index b2d53b874b..27c91dcfcf 100644 --- a/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/DefaultValueFormatter.java +++ b/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/DefaultValueFormatter.java @@ -58,11 +58,6 @@ public String getFormattedValue(float value) { return mFormat.format(value); } - @Override - public int getFormattedColor(float value, AxisBase axis) { - return 0; - } - /** * Returns the number of decimal digits this formatter uses. * diff --git a/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/IndexAxisValueFormatter.java b/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/IndexAxisValueFormatter.java index 43aec72896..ccf7e4ab14 100644 --- a/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/IndexAxisValueFormatter.java +++ b/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/IndexAxisValueFormatter.java @@ -59,11 +59,6 @@ public String getFormattedValue(float value, AxisBase axis) { return mValues[index]; } - @Override - public int getFormattedColor(float value, AxisBase axis) { - return 0; - } - public String[] getValues() { return mValues; } diff --git a/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/LargeValueFormatter.java b/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/LargeValueFormatter.java index 9395e73dcf..36dc162f05 100644 --- a/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/LargeValueFormatter.java +++ b/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/LargeValueFormatter.java @@ -43,11 +43,6 @@ public String getFormattedValue(float value) { return makePretty(value) + mText; } - @Override - public int getFormattedColor(float value, AxisBase axis) { - return 0; - } - /** * Set an appendix text to be added at the end of the formatted value. * diff --git a/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/PercentFormatter.java b/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/PercentFormatter.java index 95c3c6f78c..f4ccee7495 100644 --- a/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/PercentFormatter.java +++ b/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/PercentFormatter.java @@ -56,11 +56,6 @@ public String getFormattedValue(float value, AxisBase axis) { return mFormat.format(value) + " %"; } - @Override - public int getFormattedColor(float value, AxisBase axis) { - return 0; - } - public int getDecimalDigits() { return 1; } diff --git a/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/StackedValueFormatter.java b/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/StackedValueFormatter.java index a6c0863bfa..f1ecce88b8 100644 --- a/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/StackedValueFormatter.java +++ b/MPChartLib/src/main/java/com/github/mikephil/charting/formatter/StackedValueFormatter.java @@ -69,9 +69,4 @@ public String getBarStackedLabel(float value, BarEntry entry) { // return the "proposed" value return mFormat.format(value) + mSuffix; } - - @Override - public int getFormattedColor(float value, AxisBase axis) { - return 0; - } }