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

fix chart title position

parent 85b91d89
No related branches found
Tags
No related merge requests found
......@@ -154,9 +154,9 @@ public class Axis<ST extends Styler_AxesChart, S extends Series> implements Char
// |
// ----
double xOffset = chart.getStyler().getChartPadding();
double yOffset = chart.getChartTitle().getBounds().getHeight() < .1 ? chart.getStyler().getChartPadding() : chart.getChartTitle().getBounds().getHeight()
+ chart.getStyler().getChartPadding();
// double yOffset = chart.getChartTitle().getBounds().getHeight() < .1 ? chart.getStyler().getChartPadding() : chart.getChartTitle().getBounds().getHeight()
// + chart.getStyler().getChartPadding();
double yOffset = chart.getChartTitle().getBounds().getHeight() + chart.getStyler().getChartPadding();
/////////////////////////
int i = 1; // just twice through is all it takes
......
......@@ -48,7 +48,8 @@ public class Plot_Pie<ST extends Styler, S extends Series> extends Plot_ {
// calculate bounds
double xOffset = chart.getStyler().getChartPadding();
double yOffset = chart.getChartTitle().getBounds().getHeight() + 2 * chart.getStyler().getChartPadding();
// double yOffset = chart.getChartTitle().getBounds().getHeight() + 2 * chart.getStyler().getChartPadding();
double yOffset = chart.getChartTitle().getBounds().getHeight() + chart.getStyler().getChartPadding();
double width =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment