Skip to content

Commit

Permalink
fix rangeBar drawing bug when value is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Jan 17, 2024
1 parent dddb621 commit 352e7db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/charts/common/bar/Helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,10 @@ export default class Helpers {
let strokeWidth = 0
const w = this.w

if (!this.barCtx.series[i][j]) {
if (
typeof this.barCtx.series[i][j] === 'undefined' ||
this.barCtx.series[i][j] === null
) {
this.barCtx.isNullValue = true
} else {
this.barCtx.isNullValue = false
Expand Down

0 comments on commit 352e7db

Please sign in to comment.