updated example

This commit is contained in:
Will Charczuk 2017-04-14 17:46:53 -07:00
parent 5a9b0753ec
commit 079c471daf

View file

@ -17,7 +17,7 @@ func drawChart(res http.ResponseWriter, req *http.Request) {
Show: true, Show: true,
StrokeWidth: chart.Disabled, StrokeWidth: chart.Disabled,
DotWidthProvider: func(rx, ry, x, y float64) float64 { return 10 * (y / ry) }, DotWidthProvider: func(rx, ry, x, y float64) float64 { return 10 * (y / ry) },
DotColorProvider: chart.Vidris, DotColorProvider: chart.Viridis,
}, },
XValues: chart.Sequence.Random(128, 1024), XValues: chart.Sequence.Random(128, 1024),
YValues: chart.Sequence.Random(128, 1024), YValues: chart.Sequence.Random(128, 1024),