potential fix for issue with large deltas rounding the y axis

This commit is contained in:
Will Charczuk 2017-03-05 23:20:58 -08:00
parent b713ff85cc
commit 182d5a199b
3 changed files with 13 additions and 26 deletions

View file

@ -16,26 +16,8 @@ func drawChart(res http.ResponseWriter, req *http.Request) {
StrokeWidth: chart.Disabled,
DotWidth: 3,
},
XValues: chart.Sequence.Random(32, 1024),
YValues: chart.Sequence.Random(32, 1024),
},
chart.ContinuousSeries{
Style: chart.Style{
Show: true,
StrokeWidth: chart.Disabled,
DotWidth: 5,
},
XValues: chart.Sequence.Random(16, 1024),
YValues: chart.Sequence.Random(16, 1024),
},
chart.ContinuousSeries{
Style: chart.Style{
Show: true,
StrokeWidth: chart.Disabled,
DotWidth: 7,
},
XValues: chart.Sequence.Random(8, 1024),
YValues: chart.Sequence.Random(8, 1024),
XValues: chart.Sequence.Random(4096, 1024),
YValues: chart.Sequence.Random(4096, 1024),
},
},
}