From 5bc9d66339986da2713a9b39293c17e8758a332d Mon Sep 17 00:00:00 2001 From: Vinicius Tinti Date: Wed, 20 Mar 2019 09:30:36 -0300 Subject: [PATCH] Fix wrong default usage in StackedBarChart Using width instead of height. Signed-off-by: Vinicius Tinti --- stacked_bar_chart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stacked_bar_chart.go b/stacked_bar_chart.go index 0a5e723..ffd38ef 100644 --- a/stacked_bar_chart.go +++ b/stacked_bar_chart.go @@ -82,7 +82,7 @@ func (sbc StackedBarChart) GetWidth() int { // GetHeight returns the chart height or the default value. func (sbc StackedBarChart) GetHeight() int { if sbc.Height == 0 { - return DefaultChartWidth + return DefaultChartHeight } return sbc.Height }