@@ -816,6 +816,9 @@ func (f *File) drawChartSeriesSpPr(i int, opts *Chart) *cSpPr {
816
816
SolidFill : spPr .SolidFill ,
817
817
},
818
818
}
819
+ if opts .Series [i ].Line .Dash != ChartDashUnset {
820
+ solid .Ln .PrstDash = & attrValString {Val : stringPtr (chartDashTypes [opts .Series [i ].Line .Dash ])}
821
+ }
819
822
noLn := & cSpPr {Ln : & aLn {NoFill : & attrValString {}}}
820
823
if chartSeriesSpPr , ok := map [ChartType ]map [ChartLineType ]* cSpPr {
821
824
Line : {ChartLineUnset : solid , ChartLineSolid : solid , ChartLineNone : noLn , ChartLineAutomatic : solid },
@@ -903,23 +906,14 @@ func (f *File) drawChartSeriesMarker(i int, opts *Chart) *cMarker {
903
906
marker .Size = & attrValInt {Val : size }
904
907
}
905
908
if i < 6 {
906
- marker .SpPr = & cSpPr {
907
- SolidFill : & aSolidFill {
908
- SchemeClr : & aSchemeClr {
909
- Val : "accent" + strconv .Itoa (i + 1 ),
910
- },
911
- },
912
- Ln : & aLn {
913
- W : 9252 ,
914
- SolidFill : & aSolidFill {
915
- SchemeClr : & aSchemeClr {
916
- Val : "accent" + strconv .Itoa (i + 1 ),
917
- },
918
- },
919
- },
920
- }
909
+ marker .SpPr = & cSpPr {SolidFill : & aSolidFill {
910
+ SchemeClr : & aSchemeClr {Val : "accent" + strconv .Itoa (i + 1 )},
911
+ }, Ln : & aLn {W : 9252 }}
921
912
}
922
913
marker .SpPr = f .drawShapeFill (opts .Series [i ].Marker .Fill , marker .SpPr )
914
+ if marker .SpPr != nil && marker .SpPr .Ln != nil {
915
+ marker .SpPr .Ln = f .drawChartLn (& opts .Series [i ].Marker .Border )
916
+ }
923
917
chartSeriesMarker := map [ChartType ]* cMarker {Scatter : marker , Line : marker }
924
918
return chartSeriesMarker [opts .Type ]
925
919
}
@@ -1322,19 +1316,24 @@ func (f *File) drawChartLn(opts *ChartLine) *aLn {
1322
1316
Cmpd : "sng" ,
1323
1317
Algn : "ctr" ,
1324
1318
}
1319
+ if opts .Dash != ChartDashUnset {
1320
+ ln .PrstDash = & attrValString {Val : stringPtr (chartDashTypes [opts .Dash ])}
1321
+ }
1325
1322
switch opts .Type {
1326
1323
case ChartLineSolid :
1327
- ln .SolidFill = & aSolidFill {
1328
- SchemeClr : & aSchemeClr {
1329
- Val : "tx1" ,
1330
- LumMod : & attrValInt {
1331
- Val : intPtr (15000 ),
1332
- },
1333
- LumOff : & attrValInt {
1334
- Val : intPtr (85000 ),
1324
+ ln .SolidFill = f .drawShapeFill (opts .Fill , & cSpPr {
1325
+ SolidFill : & aSolidFill {
1326
+ SchemeClr : & aSchemeClr {
1327
+ Val : "tx1" ,
1328
+ LumMod : & attrValInt {
1329
+ Val : intPtr (15000 ),
1330
+ },
1331
+ LumOff : & attrValInt {
1332
+ Val : intPtr (85000 ),
1333
+ },
1335
1334
},
1336
1335
},
1337
- }
1336
+ }). SolidFill
1338
1337
return ln
1339
1338
case ChartLineNone :
1340
1339
ln .NoFill = & attrValString {}
0 commit comments