sane default handling

This commit is contained in:
Will Charczuk 2017-04-25 23:35:07 -07:00
parent b244fd675c
commit 39e9977724
4 changed files with 20 additions and 4 deletions

View file

@ -41,6 +41,14 @@ func (ya YAxis) GetStyle() Style {
return ya.Style
}
// GetValueFormatter returns the value formatter for the axis.
func (ya YAxis) GetValueFormatter() ValueFormatter {
if ya.ValueFormatter != nil {
return ya.ValueFormatter
}
return FloatValueFormatter
}
// GetTickStyle returns the tick style.
func (ya YAxis) GetTickStyle() Style {
return ya.TickStyle