let users specify formatters.
This commit is contained in:
parent
c42d624892
commit
5e5ff104d2
1 changed files with 6 additions and 2 deletions
4
chart.go
4
chart.go
|
@ -163,9 +163,13 @@ func (c Chart) initRanges(canvasBox Box) (xrange Range, yrange Range) {
|
|||
didSetFirstValues = true
|
||||
}
|
||||
}
|
||||
if xrange.Formatter == nil {
|
||||
xrange.Formatter = s.GetXFormatter()
|
||||
}
|
||||
if yrange.Format == nil {
|
||||
yrange.Formatter = s.GetYFormatter()
|
||||
}
|
||||
}
|
||||
|
||||
if c.XRange.IsZero() {
|
||||
xrange.Min = globalMinX
|
||||
|
|
Loading…
Reference in a new issue