@@ -816,6 +816,9 @@ func (f *File) drawChartSeriesSpPr(i int, opts *Chart) *cSpPr {
816816 SolidFill : spPr .SolidFill ,
817817 },
818818 }
819+ if opts .Series [i ].Line .Dash != ChartDashUnset {
820+ solid .Ln .PrstDash = & attrValString {Val : stringPtr (chartDashTypes [opts .Series [i ].Line .Dash ])}
821+ }
819822 noLn := & cSpPr {Ln : & aLn {NoFill : & attrValString {}}}
820823 if chartSeriesSpPr , ok := map [ChartType ]map [ChartLineType ]* cSpPr {
821824 Line : {ChartLineUnset : solid , ChartLineSolid : solid , ChartLineNone : noLn , ChartLineAutomatic : solid },
@@ -903,23 +906,14 @@ func (f *File) drawChartSeriesMarker(i int, opts *Chart) *cMarker {
903906 marker .Size = & attrValInt {Val : size }
904907 }
905908 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 }}
921912 }
922913 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+ }
923917 chartSeriesMarker := map [ChartType ]* cMarker {Scatter : marker , Line : marker }
924918 return chartSeriesMarker [opts .Type ]
925919}
@@ -1322,19 +1316,24 @@ func (f *File) drawChartLn(opts *ChartLine) *aLn {
13221316 Cmpd : "sng" ,
13231317 Algn : "ctr" ,
13241318 }
1319+ if opts .Dash != ChartDashUnset {
1320+ ln .PrstDash = & attrValString {Val : stringPtr (chartDashTypes [opts .Dash ])}
1321+ }
13251322 switch opts .Type {
13261323 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+ },
13351334 },
13361335 },
1337- }
1336+ }). SolidFill
13381337 return ln
13391338 case ChartLineNone :
13401339 ln .NoFill = & attrValString {}
0 commit comments