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

fixed legend vertical positioning

parent 1f21d270
Branches
No related tags found
No related merge requests found
...@@ -124,7 +124,7 @@ public class Legend implements ChartPart { ...@@ -124,7 +124,7 @@ public class Legend implements ChartPart {
switch (chart.getStyleManager().getLegendPosition()) { switch (chart.getStyleManager().getLegendPosition()) {
case OutsideW: case OutsideW:
xOffset = chart.getWidth() - legendBoxWidth - chart.getStyleManager().getChartPadding(); xOffset = chart.getWidth() - legendBoxWidth - chart.getStyleManager().getChartPadding();
yOffset = (int) ((chart.getHeight() - legendBoxHeight) / 2.0 + chart.getChartTitle().getSizeHint()); yOffset = (int) (chart.getPlot().getBounds().getY() + (chart.getPlot().getBounds().getHeight() - legendBoxHeight) / 2.0);
break; break;
case InsideNW: case InsideNW:
xOffset = (int) (chart.getPlot().getBounds().getX() + LEGEND_MARGIN); xOffset = (int) (chart.getPlot().getBounds().getX() + LEGEND_MARGIN);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment