unification of sample and test coding styles will improve visibility

* "Style{Show: true}" to "StyleShow()"
* "Box{IsSet: true}" to "BoxZero"
This commit is contained in:
x-qch 2017-12-30 04:28:56 +09:00
parent f72f7fd57b
commit a89a0bbfde
18 changed files with 44 additions and 96 deletions

View file

@ -20,14 +20,10 @@ func drawChart(res http.ResponseWriter, req *http.Request) {
FillColor: drawing.ColorFromHex("efefef"),
},
XAxis: chart.XAxis{
Style: chart.Style{
Show: true,
},
Style: chart.StyleShow(),
},
YAxis: chart.YAxis{
Style: chart.Style{
Show: true,
},
Style: chart.StyleShow(),
},
Series: []chart.Series{
chart.ContinuousSeries{
@ -47,14 +43,10 @@ func drawChartDefault(res http.ResponseWriter, req *http.Request) {
FillColor: drawing.ColorFromHex("efefef"),
},
XAxis: chart.XAxis{
Style: chart.Style{
Show: true,
},
Style: chart.StyleShow(),
},
YAxis: chart.YAxis{
Style: chart.Style{
Show: true,
},
Style: chart.StyleShow(),
},
Series: []chart.Series{
chart.ContinuousSeries{