small fixes for legend + background padding.
This commit is contained in:
parent
eb61fbfd0f
commit
4f8680a2b1
2 changed files with 47 additions and 15 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue