Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BudgetMaster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Goldmann
BudgetMaster
Commits
e217c7d2
Commit
e217c7d2
authored
Sep 11, 2017
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
Fixed
#183
- Broken legend if exporting empty category chart
parent
6e2e5fb8
No related branches found
No related tags found
1 merge request
!213
merge v1_6_0 into master
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/de/deadlocker8/budgetmaster/logic/charts/CategoriesChart.java
+3
-3
3 additions, 3 deletions
...eadlocker8/budgetmaster/logic/charts/CategoriesChart.java
with
3 additions
and
3 deletions
src/de/deadlocker8/budgetmaster/logic/charts/CategoriesChart.java
+
3
−
3
View file @
e217c7d2
...
@@ -220,13 +220,13 @@ public class CategoriesChart extends VBox implements ChartExportable
...
@@ -220,13 +220,13 @@ public class CategoriesChart extends VBox implements ChartExportable
labelName
.
setMinHeight
(
20
);
labelName
.
setMinHeight
(
20
);
vboxNames
.
getChildren
().
add
(
labelName
);
vboxNames
.
getChildren
().
add
(
labelName
);
String
percentageIn
=
Helpers
.
NUMBER_FORMAT
.
format
((
currentItem
.
getBudgetIN
()
/
totalIn
));
String
percentageIn
=
totalIn
!=
0
?
Helpers
.
NUMBER_FORMAT
.
format
((
currentItem
.
getBudgetIN
()
/
totalIn
))
:
"0,00"
;
Label
labelInSum
=
new
Label
(
"+"
+
Helpers
.
getCurrencyString
(
currentItem
.
getBudgetIN
(),
currency
)
+
" ("
+
percentageIn
+
"%)"
);
Label
labelInSum
=
new
Label
(
"+"
+
Helpers
.
getCurrencyString
(
currentItem
.
getBudgetIN
(),
currency
)
+
" ("
+
percentageIn
+
"%)"
);
labelInSum
.
setStyle
(
"-fx-font-weight: bold;"
);
labelInSum
.
setStyle
(
"-fx-font-weight: bold;"
);
labelInSum
.
setMinHeight
(
20
);
labelInSum
.
setMinHeight
(
20
);
vboxIn
.
getChildren
().
add
(
labelInSum
);
vboxIn
.
getChildren
().
add
(
labelInSum
);
String
percentageOut
=
Helpers
.
NUMBER_FORMAT
.
format
((
currentItem
.
getBudgetOUT
()
/
totalOut
));
String
percentageOut
=
totalOut
!=
0
?
Helpers
.
NUMBER_FORMAT
.
format
((
currentItem
.
getBudgetOUT
()
/
totalOut
))
:
"0,00"
;
Label
labelOutSum
=
new
Label
(
Helpers
.
getCurrencyString
(
currentItem
.
getBudgetOUT
(),
currency
)
+
" ("
+
percentageOut
+
"%)"
);
Label
labelOutSum
=
new
Label
(
Helpers
.
getCurrencyString
(
currentItem
.
getBudgetOUT
(),
currency
)
+
" ("
+
percentageOut
+
"%)"
);
labelOutSum
.
setStyle
(
"-fx-font-weight: bold;"
);
labelOutSum
.
setStyle
(
"-fx-font-weight: bold;"
);
labelOutSum
.
setMinHeight
(
20
);
labelOutSum
.
setMinHeight
(
20
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment