Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pie and Donut chart error while hovering on legend instead highlighting #4710

Closed
chojnicki opened this issue Sep 17, 2024 · 5 comments
Closed
Labels
bug Something isn't working

Comments

@chojnicki
Copy link

Description

While hovering over pie chart legend by default it should highlight corresponding series on chart. Instead there is error repeated every cursor move.

Uncaught TypeError: Cannot read properties of undefined (reading 'toString')

To avoid it for now I can disable this functionality:

legend: {
  onItemHover: {
    highlightDataSeries: false,
  },
},

I know there is no issue with my config because same issue is on official site.

Steps to Reproduce

  1. Go to any pie chart example like https://apexcharts.com/javascript-chart-demos/pie-charts/simple-pie-chart/
  2. Move cursor over legent.
  3. Viola!

Expected Behavior

Pie chunk should highlight.

Actual Behavior

Errors in console and no effect.

Screenshots

Screenshot from 2024-09-17 14-42-34

Reproduction Link

https://apexcharts.com/javascript-chart-demos/pie-charts/simple-pie-chart/

@chojnicki chojnicki added the bug Something isn't working label Sep 17, 2024
@nithin-pb
Copy link

facing the same issue, downgrading to 3.52.0 is fixed this issue for me, it looks like only in the latest version

@nadar
Copy link

nadar commented Sep 25, 2024

Yes we have the same problem :-(

@nadar
Copy link

nadar commented Sep 25, 2024

i think this is fixed and should be released soon: #4683

@eviltik
Copy link

eviltik commented Sep 30, 2024

fix available in the latest version 3.54.0, thx !

@chojnicki
Copy link
Author

Yeah, it works now so I'm closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants