feat: stacked columns graph
This commit is contained in:
parent
b6daaff368
commit
42392e8c46
1 changed files with 4 additions and 2 deletions
|
@ -181,7 +181,8 @@ public class DashboardView extends Div {
|
||||||
"title: { text: 'Total Expense' }, " +
|
"title: { text: 'Total Expense' }, " +
|
||||||
"stackLabels: { " +
|
"stackLabels: { " +
|
||||||
"enabled: true, " +
|
"enabled: true, " +
|
||||||
"style: { fontWeight: 'bold', color: 'gray' }, " +
|
"style: { fontWeight: 'bold', fontSize: '14px', color: 'white', textOutline: '1px contrast', " +
|
||||||
|
"backgroundColor: 'rgba(0,0,0,0.75)', padding: 4, borderRadius: 3 }, " + // Background and border for better visibility
|
||||||
"formatter: function() { " +
|
"formatter: function() { " +
|
||||||
" if (this.total > 0) { return this.total; } else { return ''; }" + // Only show total if greater than 0
|
" if (this.total > 0) { return this.total; } else { return ''; }" + // Only show total if greater than 0
|
||||||
"}" +
|
"}" +
|
||||||
|
@ -195,7 +196,8 @@ public class DashboardView extends Div {
|
||||||
"formatter: function() { " +
|
"formatter: function() { " +
|
||||||
" if (this.y > 0) { return this.y; } else { return ''; }" + // Only show data label if value > 0
|
" if (this.y > 0) { return this.y; } else { return ''; }" + // Only show data label if value > 0
|
||||||
"}," +
|
"}," +
|
||||||
"color: 'black'" + // Set label color
|
"color: 'black', " + // Set data label color to black
|
||||||
|
"style: { fontSize: '12px', fontWeight: 'bold' }" + // Customize individual labels' appearance
|
||||||
"} " +
|
"} " +
|
||||||
"} " +
|
"} " +
|
||||||
"}, " +
|
"}, " +
|
||||||
|
|
Loading…
Reference in a new issue