This commit is contained in:
Will Charczuk 2017-02-22 17:44:44 -08:00
parent 0cbdb3d88c
commit 84e7baf2ef
2 changed files with 7 additions and 2 deletions

View File

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

View File

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