first value sits in GetValues(0), not in (1).
This commit is contained in:
parent
0558d6eb30
commit
057ba70965
1 changed files with 2 additions and 2 deletions
2
draw.go
2
draw.go
|
@ -49,7 +49,7 @@ func (d draw) LineSeries(r Renderer, canvasBox Box, xrange, yrange Range, style
|
||||||
|
|
||||||
vxprev := 0.0
|
vxprev := 0.0
|
||||||
if vs.Len() > 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()
|
maxspan := style.GetStrokeMaxSpanGap()
|
||||||
r.MoveTo(x0, y0)
|
r.MoveTo(x0, y0)
|
||||||
|
|
Loading…
Reference in a new issue