text options!

This commit is contained in:
Will Charczuk 2016-07-29 16:36:29 -07:00
parent b3386853bb
commit d84d6790c0
25 changed files with 526 additions and 287 deletions

View file

@ -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"},