Fix wrong default usage in StackedBarChart

Using width instead of height.

Signed-off-by: Vinicius Tinti <vinicius.tinti@almg.gov.br>
This commit is contained in:
Vinicius Tinti 2019-03-20 09:30:36 -03:00
parent 9852fce5a1
commit 5bc9d66339

View file

@ -82,7 +82,7 @@ func (sbc StackedBarChart) GetWidth() int {
// GetHeight returns the chart height or the default value. // GetHeight returns the chart height or the default value.
func (sbc StackedBarChart) GetHeight() int { func (sbc StackedBarChart) GetHeight() int {
if sbc.Height == 0 { if sbc.Height == 0 {
return DefaultChartWidth return DefaultChartHeight
} }
return sbc.Height return sbc.Height
} }