Commit 29105946 authored by Matthias Betz's avatar Matthias Betz
Browse files

Merge branch...

Merge branch '43-number-of-features-in-statistics-bar-of-pdf-report-is-wrong-for-higher-numbers' into 'master'

Resolve "Number of Features in Statistics bar of pdf Report is wrong for higher numbers"

Closes #43

See merge request betzms/citydoctor2!3
parents 2811989e 41bd43cd
Pipeline #1259 passed with stage
in 1 minute and 49 seconds
......@@ -80,10 +80,12 @@ public class PdfUtils {
val2Rect.setAttribute("height", "30");
Element val2Text = new Element("text", svgNs);
svgElement.addContent(val2Text);
val2Text.setAttribute("x", "" + (WIDTH - 30));
String val2String = "" + val2;
val2Text.setAttribute("x", "" + (WIDTH - val2String.length() * 10));
val2Text.setAttribute("y", "20");
val2Text.setAttribute("font-size", "18pt");
val2Text.addContent("" + val2);
val2Text.addContent(val2String);
}
return svgElement;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment