feat: support stroke width of line chart

This commit is contained in:
vicanso 2022-07-28 20:49:00 +08:00
parent 817fceff73
commit e530adccb6
4 changed files with 15 additions and 5 deletions

View file

@ -377,10 +377,11 @@ func Render(opt ChartOption, opts ...OptionFunc) (*Painter, error) {
if len(lineSeriesList) != 0 {
handler.Add(func() error {
_, err := NewLineChart(p, LineChartOption{
Theme: opt.theme,
Font: opt.font,
XAxis: opt.XAxis,
SymbolShow: opt.SymbolShow,
Theme: opt.theme,
Font: opt.font,
XAxis: opt.XAxis,
SymbolShow: opt.SymbolShow,
StrokeWidth: opt.LineStrokeWidth,
}).render(renderResult, lineSeriesList)
return err
})