adding helper
This commit is contained in:
parent
66b99eb8e3
commit
66e49377ce
12
style.go
12
style.go
|
@ -21,6 +21,18 @@ func StyleShow() Style {
|
|||
}
|
||||
}
|
||||
|
||||
// StyleTextDefaults returns a style for drawing outside a
|
||||
// chart context.
|
||||
func StyleTextDefaults() Style {
|
||||
font, _ := GetDefaultFont()
|
||||
return Style{
|
||||
Show: true,
|
||||
Font: font,
|
||||
FontColor: DefaultAxisColor,
|
||||
FontSize: DefaultAxisFontSize,
|
||||
}
|
||||
}
|
||||
|
||||
// Style is a simple style set.
|
||||
type Style struct {
|
||||
Show bool
|
||||
|
|
Loading…
Reference in New Issue
Block a user