From cd4bbc6503aa5adb18021b88a55aa803b5abd90f Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Mon, 5 Sep 2016 17:31:29 -0700 Subject: [PATCH] tweaks --- _examples/text_rotation/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_examples/text_rotation/main.go b/_examples/text_rotation/main.go index 84367a6..a8f4b98 100644 --- a/_examples/text_rotation/main.go +++ b/_examples/text_rotation/main.go @@ -60,7 +60,7 @@ func drawChart(res http.ResponseWriter, req *http.Request) { graph.Elements = []chart.Renderable{ func(r chart.Renderer, cb chart.Box, defaults chart.Style) { - b := chart.Box{Top: 50, Left: 50, Right: 150, Bottom: 300} + b := chart.Box{Top: 70, Left: 100, Right: 170, Bottom: 300} cx, cy := b.Center() @@ -73,12 +73,12 @@ func drawChart(res http.ResponseWriter, req *http.Request) { StrokeWidth: 2, StrokeColor: chart.ColorBlue, }) - chart.Draw.Box(r, b.BoundedRotate(chart.Math.DegreesToRadians(45)), chart.Style{ + chart.Draw.Box(r, b.BoundedRotate(chart.Math.DegreesToRadians(60)), chart.Style{ StrokeWidth: 2, StrokeColor: chart.ColorRed, }) - chart.Draw.BoxRotated(r, b, chart.Math.DegreesToRadians(45), chart.Style{ + chart.Draw.BoxRotated(r, b, chart.Math.DegreesToRadians(60), chart.Style{ StrokeWidth: 2, StrokeColor: chart.ColorOrange, })