Skip to content

Commit

Permalink
fix #4828; pie chart not rendering due to undefined data error
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Nov 25, 2024
1 parent 2c82413 commit 50f89a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/Fill.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,11 @@ class Fill {
}

if (
w.config.series[this.seriesIndex]?.data[opts.dataPointIndex]?.fillColor
w.config.series[this.seriesIndex]?.data?.[opts.dataPointIndex]?.fillColor
) {
fillColor =
w.config.series[this.seriesIndex]?.data[opts.dataPointIndex]?.fillColor
w.config.series[this.seriesIndex]?.data?.[opts.dataPointIndex]
?.fillColor
}

// in case a color is undefined, fallback to white color to prevent runtime error
Expand Down

0 comments on commit 50f89a6

Please sign in to comment.