From a74c8710df6d1f2bd297f8a3338ac8c770ff3114 Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Sat, 6 Aug 2016 23:58:44 -0700 Subject: [PATCH] fixing xaxis measure bug leading to too much left padding. --- xaxis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xaxis.go b/xaxis.go index 8cbf788..e0d0b68 100644 --- a/xaxis.go +++ b/xaxis.go @@ -80,7 +80,7 @@ func (xa XAxis) Measure(r Renderer, canvasBox Box, ra Range, defaults Style, tic tb := r.MeasureText(t.Label) var ltx, rtx int - tx := ra.Translate(v) + tx := canvasBox.Left + ra.Translate(v) ty := canvasBox.Bottom + DefaultXAxisMargin + tb.Height() switch tp { case TickPositionUnderTick, TickPositionUnset: