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

fix broken normal log axis charts

parent d14a559e
Branches
No related tags found
No related merge requests found
......@@ -127,7 +127,11 @@ public class PlotContentLineChart extends PlotContent {
}
// System.out.println(y);
if (getChartPainter().getStyleManager().isYAxisLogarithmic()) {
y = new BigDecimal(Math.log10(yOrig.doubleValue()));
} else {
y = new BigDecimal(yOrig.doubleValue());
}
int xTransform = (int) (xLeftMargin + (x.subtract(xMin).doubleValue() / xMax.subtract(xMin).doubleValue() * xTickSpace));
int yTransform = (int) (bounds.getHeight() - (yTopMargin + y.subtract(yMin).doubleValue() / yMax.subtract(yMin).doubleValue() * yTickSpace));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment