From 66e49377ce2d00a39586c2526ba964b79fdc03db Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Sun, 26 Mar 2017 16:19:25 -0700 Subject: [PATCH] adding helper --- style.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/style.go b/style.go index abe5798..e24bf7c 100644 --- a/style.go +++ b/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