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

fixed legend vertical positioning

parent 1f21d270
No related branches found
No related tags found
No related merge requests found
......@@ -124,7 +124,7 @@ public class Legend implements ChartPart {
switch (chart.getStyleManager().getLegendPosition()) {
case OutsideW:
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;
case InsideNW:
xOffset = (int) (chart.getPlot().getBounds().getX() + LEGEND_MARGIN);
......
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