This commit is contained in:
Will Charczuk 2016-08-06 00:28:12 -07:00
parent e4e2c846e3
commit 3b02935861
2 changed files with 3 additions and 7 deletions

View file

@ -14,11 +14,11 @@ func drawChart(res http.ResponseWriter, req *http.Request) {
Height: 512,
BarWidth: 60,
XAxis: chart.Style{
Show: false,
Show: true,
},
YAxis: chart.YAxis{
Style: chart.Style{
Show: false,
Show: true,
},
},
Bars: []chart.Value{

View file

@ -10,10 +10,6 @@ import (
func drawChart(res http.ResponseWriter, req *http.Request) {
pie := chart.PieChart{
Title: "test\nchart",
TitleStyle: chart.Style{
Show: true,
},
Width: 512,
Height: 512,
Values: []chart.Value{
@ -21,7 +17,7 @@ func drawChart(res http.ResponseWriter, req *http.Request) {
{Value: 5, Label: "Green"},
{Value: 4, Label: "Gray"},
{Value: 4, Label: "Orange"},
{Value: 3, Label: "Test"},
{Value: 3, Label: "Deep Blue"},
{Value: 3, Label: "??"},
{Value: 1, Label: "!!"},
},