From 8b967158fd047abf0850fee0f4fd62bd700739ef Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Wed, 22 Feb 2017 17:47:08 -0800 Subject: [PATCH] defaults are hard. --- chart.go | 2 +- defaults.go | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/chart.go b/chart.go index c3aeeb9..1b2bd7f 100644 --- a/chart.go +++ b/chart.go @@ -479,7 +479,7 @@ func (c Chart) styleDefaultsSeries(seriesIndex int) Style { strokeColor := GetDefaultColor(seriesIndex) return Style{ StrokeColor: strokeColor, - StrokeWidth: DefaultStrokeWidth, + StrokeWidth: DefaultSeriesLineWidth, Font: c.GetFont(), FontSize: DefaultFontSize, } diff --git a/defaults.go b/defaults.go index 6255d54..17e48cb 100644 --- a/defaults.go +++ b/defaults.go @@ -12,8 +12,10 @@ const ( DefaultChartHeight = 400 // DefaultChartWidth is the default chart width. DefaultChartWidth = 1024 - // DefaultStrokeWidth is the default chart line/stroke width. - DefaultStrokeWidth = 1.0 + // DefaultStrokeWidth is the default chart stroke width. + DefaultStrokeWidth = 0.0 + // DefaultSeriesLineWidth is the default line width. + DefaultSeriesLineWidth = 1.0 // DefaultAxisLineWidth is the line width of the axis lines. DefaultAxisLineWidth = 1.0 //DefaultDPI is the default dots per inch for the chart.