just passing the full range.
This commit is contained in:
parent
079c471daf
commit
03ac305951
4 changed files with 10 additions and 7 deletions
4
draw.go
4
draw.go
|
|
@ -66,11 +66,11 @@ func (d draw) LineSeries(r Renderer, canvasBox Box, xrange, yrange Range, style
|
|||
|
||||
dotWidth := defaultDotWidth
|
||||
if style.DotWidthProvider != nil {
|
||||
dotWidth = style.DotWidthProvider(xrange.GetDelta(), yrange.GetDelta(), vx, vy)
|
||||
dotWidth = style.DotWidthProvider(xrange, yrange, vx, vy)
|
||||
}
|
||||
|
||||
if style.DotColorProvider != nil {
|
||||
dotColor := style.DotColorProvider(xrange.GetDelta(), yrange.GetDelta(), vx, vy)
|
||||
dotColor := style.DotColorProvider(xrange, yrange, vx, vy)
|
||||
|
||||
r.SetFillColor(dotColor)
|
||||
r.SetStrokeColor(dotColor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue