diff options
author | xuri <xuri.me@gmail.com> | 2020-10-11 00:15:04 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-10-11 00:15:04 +0800 |
commit | d1926675f81fcf9afb658e1e51cd4e43d0d05bc9 (patch) | |
tree | a5d53c0423421730593ba070c932484057d162fd /drawing.go | |
parent | 93160287bb7fa6479c73ee031b5ed771972a17a8 (diff) |
- Resolve #627, improve multi-series line chart compatibility with KingSoft WPS
- Avoid to create duplicate style
- Update unit test for the auto filter
- Init code scanning alerts
Diffstat (limited to 'drawing.go')
-rw-r--r-- | drawing.go | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -770,13 +770,11 @@ func (f *File) drawChartSeriesSpPr(i int, formatSet *formatChart) *cSpPr { Ln: &aLn{ W: f.ptToEMUs(formatSet.Series[i].Line.Width), Cap: "rnd", // rnd, sq, flat + SolidFill: &aSolidFill{ + SchemeClr: &aSchemeClr{Val: "accent" + strconv.Itoa((formatSet.order+i)%6+1)}, + }, }, } - if i+formatSet.order < 6 { - spPrLine.Ln.SolidFill = &aSolidFill{ - SchemeClr: &aSchemeClr{Val: "accent" + strconv.Itoa(i+formatSet.order+1)}, - } - } chartSeriesSpPr := map[string]*cSpPr{Line: spPrLine, Scatter: spPrScatter} return chartSeriesSpPr[formatSet.Type] } |