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