react-apexcharts icon indicating copy to clipboard operation
react-apexcharts copied to clipboard

`opts` undefined in tooltip for `rangeBar`

Open gabriel-bishop opened this issue 4 years ago • 0 comments

link to sandbox

I'm trying to render the datapoints in a certain way in the tooltips for this chart, however I can't reliably access the opts object in the tooltip.x.formatter function because it is sometimes undefined. Adding a conditional check does not seem to help.

Relevant code is ~line 70, hover over chart and check console

Is there something I'm doing wrong or is this a bug? There was a similar issue in the vue-apexcharts repo: https://github.com/apexcharts/vue-apexcharts/issues/215

Thanks!

gabriel-bishop avatar Sep 22 '21 14:09 gabriel-bishop