sane default handling
This commit is contained in:
parent
b244fd675c
commit
39e9977724
4 changed files with 20 additions and 4 deletions
8
yaxis.go
8
yaxis.go
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue