Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
41bd43cd
Commit
41bd43cd
authored
Nov 12, 2020
by
Matthias Betz
Browse files
fixed number position in bar chart in pdf report
parent
2811989e
Pipeline
#1258
passed with stage
in 1 minute and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/reporting/pdf/PdfUtils.java
View file @
41bd43cd
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment