Skip to content

Commit 5aa5e84

Browse files
committed
chore(chart): make chart point marker style optional
1 parent be4db87 commit 5aa5e84

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

src/modify/modify-chart.ts

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -280,13 +280,21 @@ export class ModifyChart {
280280
'c:spPr': {
281281
modify: ModifyColorHelper.solidFill(style.color),
282282
},
283-
'c:marker': {
284-
isRequired: false,
285-
children: {
286-
'c:spPr': {
287-
modify: ModifyColorHelper.solidFill(style.marker?.color),
288-
}
289-
}
283+
...this.chartPointMarker(style.marker)
284+
}
285+
}
286+
}
287+
}
288+
289+
chartPointMarker = (markerStyle: ChartValueStyle['marker']): ModificationTags => {
290+
if(!markerStyle) return
291+
292+
return {
293+
'c:marker': {
294+
isRequired: false,
295+
children: {
296+
'c:spPr': {
297+
modify: ModifyColorHelper.solidFill(markerStyle.color),
290298
}
291299
}
292300
}

0 commit comments

Comments
 (0)