From 84e7baf2ef1f7269bc8122644600d76dee57bc50 Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Wed, 22 Feb 2017 17:44:44 -0800 Subject: [PATCH] defaults --- chart.go | 4 ++-- defaults.go | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/chart.go b/chart.go index 9d00254..c3aeeb9 100644 --- a/chart.go +++ b/chart.go @@ -463,7 +463,7 @@ func (c Chart) styleDefaultsBackground() Style { return Style{ FillColor: DefaultBackgroundColor, StrokeColor: DefaultBackgroundStrokeColor, - StrokeWidth: DefaultStrokeWidth, + StrokeWidth: DefaultBackgroundStrokeWidth, } } @@ -471,7 +471,7 @@ func (c Chart) styleDefaultsCanvas() Style { return Style{ FillColor: DefaultCanvasColor, StrokeColor: DefaultCanvasStrokeColor, - StrokeWidth: DefaultStrokeWidth, + StrokeWidth: DefaultCanvasStrokeWidth, } } diff --git a/defaults.go b/defaults.go index 778678d..6255d54 100644 --- a/defaults.go +++ b/defaults.go @@ -33,6 +33,11 @@ const ( // DefaultTitleTop is the default distance from the top of the chart to put the title. DefaultTitleTop = 10 + // DefaultBackgroundStrokeWidth is the default stroke on the chart background. + DefaultBackgroundStrokeWidth = 0.0 + // DefaultCanvasStrokeWidth is the default stroke on the chart canvas. + DefaultCanvasStrokeWidth = 0.0 + // DefaultLineSpacing is the default vertical distance between lines of text. DefaultLineSpacing = 5