text options!
This commit is contained in:
parent
b3386853bb
commit
d84d6790c0
25 changed files with 526 additions and 287 deletions
|
|
@ -10,11 +10,13 @@ import (
|
|||
|
||||
func drawChart(res http.ResponseWriter, req *http.Request) {
|
||||
pie := chart.PieChart{
|
||||
Title: "test\nchart",
|
||||
TitleStyle: chart.Style{
|
||||
Show: true,
|
||||
FontSize: 32,
|
||||
},
|
||||
Width: 512,
|
||||
Height: 512,
|
||||
Canvas: chart.Style{
|
||||
FillColor: chart.ColorLightGray,
|
||||
},
|
||||
Values: []chart.Value{
|
||||
{Value: 5, Label: "Blue"},
|
||||
{Value: 5, Label: "Green"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue