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)
}