From 52e80c183dc6093b475d9b6568302af7c6785b7a Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Mon, 11 Jul 2016 18:51:59 -0700 Subject: [PATCH] laying groundwork for grid lines and a refactor of translate --- annotation_series.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/annotation_series.go b/annotation_series.go index 873d1d2..b9b9e2b 100644 --- a/annotation_series.go +++ b/annotation_series.go @@ -49,7 +49,7 @@ func (as AnnotationSeries) Measure(r Renderer, canvasBox Box, xrange, yrange Ran Padding: DefaultAnnotationPadding, }) for _, a := range as.Annotations { - lx := canvasBox.Left - xrange.Translate(a.X) + lx := canvasBox.Left + xrange.Translate(a.X) ly := canvasBox.Bottom - yrange.Translate(a.Y) ab := MeasureAnnotation(r, canvasBox, style, lx, ly, a.Label) box.Top = MinInt(box.Top, ab.Top)