Skip to content

Commit ed863d7

Browse files
committed
fixes #3432; fill type array when used in combo chart
1 parent d9feb4e commit ed863d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/charts/common/bar/Helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export default class Helpers {
199199
})
200200
}
201201

202-
if (w.config.series[i].data[j] && w.config.series[i].data[j].fillColor) {
202+
if (w.config.series[i].data[j]?.fillColor) {
203203
fillColor = w.config.series[i].data[j].fillColor
204204
}
205205

@@ -214,7 +214,7 @@ export default class Helpers {
214214
fillType: w.config.series[i].data[j]?.fill?.type
215215
? w.config.series[i].data[j]?.fill.type
216216
: Array.isArray(w.config.fill.type)
217-
? w.config.fill.type[i]
217+
? w.config.fill.type[realIndex]
218218
: w.config.fill.type,
219219
})
220220

0 commit comments

Comments
 (0)