Skip to content

Commit ad83203

Browse files
authored
Merge pull request #1890 from colinl/remove_wasted_title_space_extras
Further tweaks for chart legend and title layout
2 parents 1d35b13 + 033033f commit ad83203

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/widgets/ui-chart/UIChart.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,11 @@ export default {
244244
left: '3%',
245245
right: '4%',
246246
bottom: '0%',
247-
top: this.hasTitle ? (this.props.showLegend ? 70 : 30) : (this.props.showLegend ? 40 : 0)
247+
top: this.hasTitle ? (this.props.showLegend ? 70 : 30) : (this.props.showLegend ? 45 : 0)
248248
},
249249
legend: {
250250
show: showLegend,
251-
top: this.hasTitle ? 30 : 0,
251+
top: this.hasTitle ? 20 : 0,
252252
textStyle: {
253253
color: textColor
254254
}

0 commit comments

Comments
 (0)