Use global default bar spacing in StackedBarChart

Signed-off-by: Vinicius Tinti <vinicius.tinti@almg.gov.br>
This commit is contained in:
Vinicius Tinti 2019-03-20 09:31:08 -03:00
parent 5bc9d66339
commit 3a733a98f8

View file

@ -90,7 +90,7 @@ func (sbc StackedBarChart) GetHeight() int {
// GetBarSpacing returns the spacing between bars.
func (sbc StackedBarChart) GetBarSpacing() int {
if sbc.BarSpacing == 0 {
return 100
return DefaultBarSpacing
}
return sbc.BarSpacing
}