just passing the full range.
This commit is contained in:
parent
079c471daf
commit
03ac305951
4 changed files with 10 additions and 7 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue