Skip to content

Commit

Permalink
fix undefined elGridBorders in pie chart - fixes #3472
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Nov 4, 2022
1 parent c77505a commit 829a1be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/apexcharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,10 @@ export default class ApexCharts {
if (w.config.grid.position === 'front' && elgrid) {
w.globals.dom.elGraphical.add(elgrid.el)
}
w.globals.dom.elGraphical.add(elgrid.elGridBorders)

if (elgrid && elgrid.elGridBorders && elgrid.elGridBorders.el) {
w.globals.dom.elGraphical.add(elgrid.elGridBorders)
}

if (w.config.xaxis.crosshairs.position === 'front') {
me.crosshairs.drawXCrosshairs()
Expand Down

0 comments on commit 829a1be

Please sign in to comment.