Skip to content
Snippets Groups Projects
Commit e09efcac authored by Georg Graßnick's avatar Georg Graßnick :thinking:
Browse files

Use column view for axis legend

parent d643fbfe
No related branches found
No related tags found
1 merge request!43Feat/scatterplot rasterizer 34
This commit is part of merge request !43. Comments created here will be created in the context of that merge request.
......@@ -53,8 +53,9 @@ public class ScatterPlotRasterizer implements Rasterizer<ScatterPlot> {
final String titleToDataSetSeparator = " - ";
final String legendTitle = title;
final String axisExplanationGroupName = "Achsenbeschriftungen";
final String xAxisLegendGroupName = "x-Achse Werte";
final String yAxisLegendGroupName = "y-Achse Werte";
final String axisColumnGroupTitle = "Achsenwerte";
final String xAxisLegendGroupName = "x-Achse";
final String yAxisLegendGroupName = "y-Achse";
final String xAxisLabel = "x-Achse";
final String xAxisLabelValue = scatterPlot.getXAxisName();
final String yAxisLabel = "y-Achse";
......@@ -150,7 +151,6 @@ public class ScatterPlotRasterizer implements Rasterizer<ScatterPlot> {
// X axis
Map<String, String> xAxisLegendSymbols = new HashMap<>();
legend.addSymbolExplanationGroup(xAxisLegendGroupName, xAxisLegendSymbols);
// TODO Transfer to separate method
Map<Integer, String> xAxisLabels = new HashMap<>();
......@@ -167,7 +167,6 @@ public class ScatterPlotRasterizer implements Rasterizer<ScatterPlot> {
// Y axis
Map<String, String> yAxisLegendSymbols = new HashMap<>();
legend.addSymbolExplanationGroup(yAxisLegendGroupName, yAxisLegendSymbols);
Map<Integer, String> yAxisLabels = new HashMap<>();
yAxis.setLabels(yAxisLabels);
......@@ -181,6 +180,10 @@ public class ScatterPlotRasterizer implements Rasterizer<ScatterPlot> {
label++;
}
legend.addColumn(xAxisLegendGroupName, xAxisLegendSymbols);
legend.addColumn(yAxisLegendGroupName, yAxisLegendSymbols);
legend.setColumnViewTitle(axisColumnGroupTitle);
// --------------------------------------------------------------------
// Rendering per data set
......
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