Skip to content

Commit 20fe682

Browse files
committed
fix isNullValue condition for bar charts
1 parent ebe1484 commit 20fe682

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/charts/common/bar/Helpers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ export default class Helpers {
248248

249249
if (
250250
typeof this.barCtx.series[i][j] === 'undefined' ||
251-
this.barCtx.series[i][j] === null
251+
this.barCtx.series[i][j] === null ||
252+
(w.config.chart.type === 'bar' && !this.barCtx.series[i][j])
252253
) {
253254
this.barCtx.isNullValue = true
254255
} else {

0 commit comments

Comments
 (0)