From 83016634b0c66abc5022e6d2cb423920ffcf8ca3 Mon Sep 17 00:00:00 2001 From: Jason Kingsbury Date: Mon, 9 Jan 2017 16:59:45 +0000 Subject: [PATCH] min instead of max height for bar xaxis height --- bar_chart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bar_chart.go b/bar_chart.go index 6a74083..35889d2 100644 --- a/bar_chart.go +++ b/bar_chart.go @@ -362,7 +362,7 @@ func (bc BarChart) getAdjustedCanvasBox(r Renderer, canvasBox Box, yrange Range, lines := Text.WrapFit(r, bar.Label, barLabelBox.Width(), axisStyle) linesBox := Text.MeasureLines(r, lines, axisStyle) - xaxisHeight = Math.MaxInt(linesBox.Height()+(2*DefaultXAxisMargin), xaxisHeight) + xaxisHeight = Math.MinInt(linesBox.Height()+(2*DefaultXAxisMargin), xaxisHeight) } }