Skip to content
Snippets Groups Projects
Commit ca0c00b1 authored by Tim Molter's avatar Tim Molter
Browse files

tweaked number formatting again

parent 19e88816
No related branches found
No related tags found
No related merge requests found
...@@ -83,8 +83,8 @@ public class AxisTick implements IChartPart, IHideable { ...@@ -83,8 +83,8 @@ public class AxisTick implements IChartPart, IHideable {
// formatting // formatting
locale = Locale.getDefault(); locale = Locale.getDefault();
normalDecimalPattern = "#.####"; normalDecimalPattern = "#.###";
scientificDecimalPattern = "0.###E0"; scientificDecimalPattern = "0.##E0";
datePattern = "HHmmss"; datePattern = "HHmmss";
} }
...@@ -248,7 +248,7 @@ public class AxisTick implements IChartPart, IHideable { ...@@ -248,7 +248,7 @@ public class AxisTick implements IChartPart, IHideable {
NumberFormat nf = NumberFormat.getNumberInstance(locale); NumberFormat nf = NumberFormat.getNumberInstance(locale);
if (Math.abs(value.doubleValue()) <= 9999 && Math.abs(value.doubleValue()) > .001 || value.doubleValue() == 0) { if (Math.abs(value.doubleValue()) <= 9999 && Math.abs(value.doubleValue()) > .01 || value.doubleValue() == 0) {
DecimalFormat normalFormat = (DecimalFormat) nf; DecimalFormat normalFormat = (DecimalFormat) nf;
normalFormat.applyPattern(normalDecimalPattern); normalFormat.applyPattern(normalDecimalPattern);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment