tweaks to make ticks not be terrible
This commit is contained in:
parent
7b5bb6e952
commit
c3a066aecd
24 changed files with 480 additions and 271 deletions
4
yaxis.go
4
yaxis.go
|
|
@ -13,7 +13,7 @@ type YAxis struct {
|
|||
|
||||
Zero GridLine
|
||||
|
||||
AxisType yAxisType
|
||||
AxisType YAxisType
|
||||
|
||||
ValueFormatter ValueFormatter
|
||||
Range Range
|
||||
|
|
@ -45,7 +45,7 @@ func (ya YAxis) GetTicks(r Renderer, ra Range, defaults Style, vf ValueFormatter
|
|||
return ya.Ticks
|
||||
}
|
||||
if tp, isTickProvider := ra.(TicksProvider); isTickProvider {
|
||||
return tp.GetTicks(vf)
|
||||
return tp.GetTicks(r, defaults, vf)
|
||||
}
|
||||
tickStyle := ya.Style.InheritFrom(defaults)
|
||||
return GenerateContinuousTicks(r, ra, true, tickStyle, vf)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue