|
|
@@ -401,6 +401,7 @@ public class ClientActivity extends BaseActivity implements View.OnClickListener
|
|
|
//set1.setDrawValues(false);
|
|
|
set1.setValueFormatter(new ValueFormatter() {
|
|
|
private DecimalFormat mFormat;
|
|
|
+
|
|
|
public void DefaultValueFormatter(int digits) {
|
|
|
|
|
|
StringBuffer b = new StringBuffer();
|
|
|
@@ -412,18 +413,19 @@ public class ClientActivity extends BaseActivity implements View.OnClickListener
|
|
|
|
|
|
mFormat = new DecimalFormat("###,###,###,##0" + b.toString());
|
|
|
}
|
|
|
+
|
|
|
@Override
|
|
|
public String getFormattedValue(float value) {
|
|
|
try {
|
|
|
- if (value==0){
|
|
|
- return "0";
|
|
|
- }else {
|
|
|
- return mFormat.format(value);
|
|
|
+ if (value == 0) {
|
|
|
+ return "";
|
|
|
+ } else {
|
|
|
+ return String.valueOf(value);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
- return "";
|
|
|
+ return "";
|
|
|
}
|
|
|
});
|
|
|
dataSets.clear();
|
|
|
@@ -476,9 +478,9 @@ public class ClientActivity extends BaseActivity implements View.OnClickListener
|
|
|
public String getFormattedValue(float value) {
|
|
|
try {
|
|
|
if (value==0){
|
|
|
- return "0";
|
|
|
+ return "";
|
|
|
}else {
|
|
|
- return mFormat.format(value);
|
|
|
+ return String.valueOf(value);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|