Skip to content

Commit c5109b3

Browse files
committed
series name check for grouped column/bar charts
1 parent 3ad0143 commit c5109b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/charts/BarStacked.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,9 @@ class BarStacked extends Bar {
329329
}
330330

331331
let gsi = i // an index to keep track of the series inside a group
332-
gsi = seriesGroup.indexOf(w.config.series[realIndex].name)
332+
if (w.config.series[realIndex].name) {
333+
gsi = seriesGroup.indexOf(w.config.series[realIndex].name)
334+
}
333335

334336
if (gsi > 0) {
335337
let bXP = zeroW

0 commit comments

Comments
 (0)