-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
banbury
committed
Sep 10, 2018
1 parent
d736ed4
commit 9ca3d56
Showing
5 changed files
with
55 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
app/src/main/java/com/teaanddogdog/mpandroidchartfix/MyPrecentFormatter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.teaanddogdog.mpandroidchartfix; | ||
|
||
import com.github.mikephil.charting.data.Entry; | ||
import com.github.mikephil.charting.formatter.PercentFormatter; | ||
import com.github.mikephil.charting.utils.ViewPortHandler; | ||
|
||
/** | ||
* @author banbury | ||
* @version v1.0 | ||
* @created 2018/8/3_17:50. | ||
* @description | ||
*/ | ||
|
||
public class MyPrecentFormatter extends PercentFormatter { | ||
|
||
|
||
@Override | ||
public String getFormattedValue(float value, Entry entry, int dataSetIndex, ViewPortHandler viewPortHandler) { | ||
return super.getFormattedValue(value, entry, dataSetIndex, viewPortHandler) + (String) entry.getData(); | ||
// return super.getFormattedValue(value, entry, dataSetIndex, viewPortHandler) + "test"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters