prepare to have more flexibility when for plots

This commit is contained in:
2023-02-28 19:19:19 +01:00
parent 17c0cd5ca9
commit e3487557b3
4 changed files with 69 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ class PlotSettingsTransformer {
result.setAggregates(toAggregateInternal(config.getY1(), config.getY2(), config.getAggregates()));
result.setInterval(Interval.create(config.getIntervalUnit(), config.getIntervalValue(), result.dateRange()));
result.setRenderBarChartTickLabels(config.isRenderBarChartTickLabels());
result.setRenders(request.getRenders());
return result;
}

View File

@@ -1,5 +1,10 @@
package org.lucares.pdbui.domain;
import java.util.Map;
import java.util.TreeMap;
import org.lucares.pdb.plot.api.RenderOptions;
public class PlotRequest {
private int height = 1000;
@@ -16,6 +21,16 @@ public class PlotRequest {
private PlotConfig config;
private Map<String, RenderOptions> renders = new TreeMap<>();
public void setRenders(final Map<String, RenderOptions> renders) {
this.renders = renders;
}
public Map<String, RenderOptions> getRenders() {
return renders;
}
public PlotConfig getConfig() {
return config;
}