add logarithmic scaling for the y-axis

Often we have a few very high values and a lot
low values. With a linearly scaled y-axis the
plot is mostly useless.
This commit is contained in:
2017-04-12 19:59:35 +02:00
parent 8baf05962f
commit ce44c3d8d6
10 changed files with 73 additions and 2 deletions

View File

@@ -13,6 +13,8 @@ public class PlotRequest {
private LimitBy limitBy = LimitBy.NO_LIMIT;
private YAxis yAxis = YAxis.LINEAR;
private int limit = Integer.MAX_VALUE;
private String dateFrom;
@@ -91,4 +93,11 @@ public class PlotRequest {
this.dateRange = dateRange;
}
public YAxis getAxisScale() {
return yAxis;
}
public void setAxisScale(final YAxis yAxis) {
this.yAxis = yAxis;
}
}

View File

@@ -0,0 +1,5 @@
package org.lucares.pdbui.domain;
public enum YAxis {
LINEAR, LOG10, LOG2
}