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
4 years ago
by
Matthias Betz
Browse files
Options
Download
Email Patches
Plain Diff
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
Showing
1 changed file
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/reporting/pdf/PdfUtils.java
+4
-2
.../de/hft/stuttgart/citydoctor2/reporting/pdf/PdfUtils.java
with
4 additions
and
2 deletions
+4
-2
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/reporting/pdf/PdfUtils.java
+
4
-
2
View file @
41bd43cd
...
@@ -80,10 +80,12 @@ public class PdfUtils {
...
@@ -80,10 +80,12 @@ public class PdfUtils {
val2Rect
.
setAttribute
(
"height"
,
"30"
);
val2Rect
.
setAttribute
(
"height"
,
"30"
);
Element
val2Text
=
new
Element
(
"text"
,
svgNs
);
Element
val2Text
=
new
Element
(
"text"
,
svgNs
);
svgElement
.
addContent
(
val2Text
);
svgElement
.
addContent
(
val2Text
);
val2Text
.
setAttribute
(
"x"
,
""
+
(
WIDTH
-
30
));
String
val2String
=
""
+
val2
;
val2Text
.
setAttribute
(
"x"
,
""
+
(
WIDTH
-
val2String
.
length
()
*
10
));
val2Text
.
setAttribute
(
"y"
,
"20"
);
val2Text
.
setAttribute
(
"y"
,
"20"
);
val2Text
.
setAttribute
(
"font-size"
,
"18pt"
);
val2Text
.
setAttribute
(
"font-size"
,
"18pt"
);
val2Text
.
addContent
(
""
+
val2
);
val2Text
.
addContent
(
val2String
);
}
}
return
svgElement
;
return
svgElement
;
...
...
This diff is collapsed.
Click to expand it.
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