pie chart image && build fix.

This commit is contained in:
Will Charczuk 2016-07-28 19:00:48 -07:00
parent fded346ae7
commit df971b61d1
3 changed files with 3 additions and 3 deletions

View File

@ -24,8 +24,8 @@ func drawChart(res http.ResponseWriter, req *http.Request) {
},
}
res.Header().Set("Content-Type", "image/svg+xml")
err := pie.Render(chart.SVG, res)
res.Header().Set("Content-Type", "image/png")
err := pie.Render(chart.PNG, res)
if err != nil {
fmt.Printf("Error rendering pie chart: %v\n", err)
}

View File

@ -15,7 +15,7 @@ func drawChart(res http.ResponseWriter, req *http.Request) {
Name: "SPY",
Style: chart.Style{
Show: true,
StrokeColor: chart.GetDefaultSeriesStrokeColor(0),
StrokeColor: chart.GetDefaultColor(0),
},
XValues: xv,
YValues: yv,

BIN
images/pie_chart.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB