first value sits in GetValues(0), not in (1).

This commit is contained in:
Joost Helberg 2024-10-03 17:09:14 +02:00
parent 0558d6eb30
commit 057ba70965

View file

@ -49,7 +49,7 @@ func (d draw) LineSeries(r Renderer, canvasBox Box, xrange, yrange Range, style
vxprev := 0.0
if vs.Len() > 0 {
vxprev, _ = vs.GetValues( 1 ) // make sure vxprev starts at the beginning
vxprev, _ = vs.GetValues( 0 ) // make sure vxprev starts at the beginning
}
maxspan := style.GetStrokeMaxSpanGap()
r.MoveTo(x0, y0)