parameterize by index.

This commit is contained in:
Will Charczuk 2017-04-19 15:27:31 -07:00
parent cee1a66a50
commit 0cbbd0887a
3 changed files with 5 additions and 5 deletions

View file

@ -12,7 +12,7 @@ import (
func drawChart(res http.ResponseWriter, req *http.Request) {
viridisByY := func(xr, yr chart.Range, x, y float64) drawing.Color {
viridisByY := func(xr, yr chart.Range, index int, x, y float64) drawing.Color {
return chart.Viridis(y, yr.GetMin(), yr.GetMax())
}