just passing the full range.

This commit is contained in:
Will Charczuk 2017-04-15 09:07:59 -07:00
parent 079c471daf
commit 03ac305951
4 changed files with 10 additions and 7 deletions

View file

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