small fixes for legend + background padding.

This commit is contained in:
Will Charczuk 2016-07-17 16:58:52 -07:00
parent eb61fbfd0f
commit 4f8680a2b1
2 changed files with 47 additions and 15 deletions

View file

@ -15,6 +15,18 @@ func drawChart(res http.ResponseWriter, req *http.Request) {
*/
graph := chart.Chart{
XAxis: chart.XAxis{
Style: chart.Style{Show: true},
},
YAxis: chart.YAxis{
Style: chart.Style{Show: true},
},
Background: chart.Style{
Padding: chart.Box{
Top: 20,
Left: 20,
},
},
Series: []chart.Series{
chart.ContinuousSeries{
Name: "A test series",