defaults are hard.
This commit is contained in:
parent
84e7baf2ef
commit
8b967158fd
2
chart.go
2
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,
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user