Skip to content

Commit 65267f4

Browse files
committed
fix #4939; hideZeroBarsWhenGrouped in column chart
1 parent beb688b commit 65267f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/modules/Core.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,11 @@ export default class Core {
140140
let comboCount = 0
141141

142142
gl.series.forEach((serie, st) => {
143-
const seriesType = ser[st].type || chartType
143+
const seriesType =
144+
ser[st].type === 'bar'
145+
? 'column'
146+
: ser[st].type || (chartType === 'bar' ? 'column' : chartType)
147+
144148
if (seriesTypes[seriesType]) {
145149
if (seriesType === 'rangeArea') {
146150
seriesTypes[seriesType].series.push(gl.seriesRangeStart[st])

0 commit comments

Comments
 (0)