sane default handling
This commit is contained in:
parent
b244fd675c
commit
39e9977724
4 changed files with 20 additions and 4 deletions
6
chart.go
6
chart.go
|
|
@ -354,13 +354,13 @@ func (c Chart) getValueFormatters() (x, y, ya ValueFormatter) {
|
|||
}
|
||||
}
|
||||
if c.XAxis.ValueFormatter != nil {
|
||||
x = c.XAxis.ValueFormatter
|
||||
x = c.XAxis.GetValueFormatter()
|
||||
}
|
||||
if c.YAxis.ValueFormatter != nil {
|
||||
y = c.YAxis.ValueFormatter
|
||||
y = c.YAxis.GetValueFormatter()
|
||||
}
|
||||
if c.YAxisSecondary.ValueFormatter != nil {
|
||||
ya = c.YAxisSecondary.ValueFormatter
|
||||
ya = c.YAxisSecondary.GetValueFormatter()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue