adding helper

This commit is contained in:
Will Charczuk 2017-03-26 16:19:25 -07:00
parent 66b99eb8e3
commit 66e49377ce

View file

@ -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