Skip to content

Commit

Permalink
Merge pull request #3715 from idpaterson/main
Browse files Browse the repository at this point in the history
Fixes empty getElMarkers() for all series when any series has discrete markers and a global size is set
  • Loading branch information
junedchhipa committed Mar 20, 2023
2 parents 5f5c5b2 + 9ffa7aa commit 0fd8343
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/tooltip/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,15 @@ export default class Utils {
}

getElMarkers(capturedSeries) {
// The selector .apexcharts-series-markers-wrap > * includes marker groups for which the
// .apexcharts-series-markers class is not added due to null values or discrete markers
if (typeof capturedSeries == 'number') {
return this.w.globals.dom.baseEl.querySelectorAll(
`.apexcharts-series[data\\:realIndex='${capturedSeries}'] .apexcharts-series-markers`
`.apexcharts-series[data\\:realIndex='${capturedSeries}'] .apexcharts-series-markers-wrap > *`
)
}
return this.w.globals.dom.baseEl.querySelectorAll(
' .apexcharts-series-markers'
'.apexcharts-series-markers-wrap > *'
)
}

Expand Down

0 comments on commit 0fd8343

Please sign in to comment.