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