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)
|
strokeColor := GetDefaultColor(seriesIndex)
|
||||||
return Style{
|
return Style{
|
||||||
StrokeColor: strokeColor,
|
StrokeColor: strokeColor,
|
||||||
StrokeWidth: DefaultStrokeWidth,
|
StrokeWidth: DefaultSeriesLineWidth,
|
||||||
Font: c.GetFont(),
|
Font: c.GetFont(),
|
||||||
FontSize: DefaultFontSize,
|
FontSize: DefaultFontSize,
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,8 +12,10 @@ const (
|
||||||
DefaultChartHeight = 400
|
DefaultChartHeight = 400
|
||||||
// DefaultChartWidth is the default chart width.
|
// DefaultChartWidth is the default chart width.
|
||||||
DefaultChartWidth = 1024
|
DefaultChartWidth = 1024
|
||||||
// DefaultStrokeWidth is the default chart line/stroke width.
|
// DefaultStrokeWidth is the default chart stroke width.
|
||||||
DefaultStrokeWidth = 1.0
|
DefaultStrokeWidth = 0.0
|
||||||
|
// DefaultSeriesLineWidth is the default line width.
|
||||||
|
DefaultSeriesLineWidth = 1.0
|
||||||
// DefaultAxisLineWidth is the line width of the axis lines.
|
// DefaultAxisLineWidth is the line width of the axis lines.
|
||||||
DefaultAxisLineWidth = 1.0
|
DefaultAxisLineWidth = 1.0
|
||||||
//DefaultDPI is the default dots per inch for the chart.
|
//DefaultDPI is the default dots per inch for the chart.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user