From 255dde81ad2cf9af74e8a4ceac920c8a4e0eaca5 Mon Sep 17 00:00:00 2001 From: Enrico Date: Fri, 26 Jul 2019 16:31:35 +0200 Subject: [PATCH] auto width BarChart setting Width=-1 --- _examples/bar_chart/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/_examples/bar_chart/main.go b/_examples/bar_chart/main.go index 693a300..ea15cee 100644 --- a/_examples/bar_chart/main.go +++ b/_examples/bar_chart/main.go @@ -19,6 +19,7 @@ func drawChart(res http.ResponseWriter, req *http.Request) { }, }, Height: 512, + Width: -1, BarWidth: 60, XAxis: chart.StyleShow(), YAxis: chart.YAxis{