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

issue #32. place warning for user to clean up the data.

parent f6f8a801
No related branches found
No related tags found
No related merge requests found
...@@ -88,11 +88,11 @@ public class ChartPainter { ...@@ -88,11 +88,11 @@ public class ChartPainter {
throw new RuntimeException("No series defined for Chart!!!"); throw new RuntimeException("No series defined for Chart!!!");
} }
if (getStyleManager().isXAxisLogarithmic() && axisPair.getxAxis().getMin().compareTo(BigDecimal.ZERO) <= 0) { if (getStyleManager().isXAxisLogarithmic() && axisPair.getxAxis().getMin().compareTo(BigDecimal.ZERO) <= 0) {
throw new IllegalArgumentException("Series data cannot be less or equal to zero for a logarithmic X-Axis!!!"); throw new IllegalArgumentException("Series data (accounting for error bars too) cannot be less or equal to zero for a logarithmic X-Axis!!!");
} }
if (getStyleManager().isYAxisLogarithmic() && axisPair.getyAxis().getMin().compareTo(BigDecimal.ZERO) <= 0) { if (getStyleManager().isYAxisLogarithmic() && axisPair.getyAxis().getMin().compareTo(BigDecimal.ZERO) <= 0) {
// System.out.println(axisPair.getyAxis().getMin()); // System.out.println(axisPair.getyAxis().getMin());
throw new IllegalArgumentException("Series data cannot be less or equal to zero for a logarithmic Y-Axis!!!"); throw new IllegalArgumentException("Series data (accounting for error bars too) cannot be less or equal to zero for a logarithmic Y-Axis!!!");
} }
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); // global rendering hint g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); // global rendering hint
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment