defaults
This commit is contained in:
parent
0cbdb3d88c
commit
84e7baf2ef
4
chart.go
4
chart.go
|
@ -463,7 +463,7 @@ func (c Chart) styleDefaultsBackground() Style {
|
||||||
return Style{
|
return Style{
|
||||||
FillColor: DefaultBackgroundColor,
|
FillColor: DefaultBackgroundColor,
|
||||||
StrokeColor: DefaultBackgroundStrokeColor,
|
StrokeColor: DefaultBackgroundStrokeColor,
|
||||||
StrokeWidth: DefaultStrokeWidth,
|
StrokeWidth: DefaultBackgroundStrokeWidth,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -471,7 +471,7 @@ func (c Chart) styleDefaultsCanvas() Style {
|
||||||
return Style{
|
return Style{
|
||||||
FillColor: DefaultCanvasColor,
|
FillColor: DefaultCanvasColor,
|
||||||
StrokeColor: DefaultCanvasStrokeColor,
|
StrokeColor: DefaultCanvasStrokeColor,
|
||||||
StrokeWidth: DefaultStrokeWidth,
|
StrokeWidth: DefaultCanvasStrokeWidth,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,11 @@ const (
|
||||||
// DefaultTitleTop is the default distance from the top of the chart to put the title.
|
// DefaultTitleTop is the default distance from the top of the chart to put the title.
|
||||||
DefaultTitleTop = 10
|
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 is the default vertical distance between lines of text.
|
||||||
DefaultLineSpacing = 5
|
DefaultLineSpacing = 5
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user