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

Point level events not working for charts in 11.4.0 #20851

Closed
sidrak19 opened this issue Mar 13, 2024 · 2 comments · Fixed by #20855
Closed

Point level events not working for charts in 11.4.0 #20851

sidrak19 opened this issue Mar 13, 2024 · 2 comments · Fixed by #20855

Comments

@sidrak19
Copy link

sidrak19 commented Mar 13, 2024

Expected behaviour

Till v11.3.0, we could define events at the point level in a series, and those events would be triggered.

series: [{
  ...
  data: [
    ...
    {
      x: 1,
      y: 5,
      events: {
      	mouseOver: () => {console.log('hovered over point')},
      },
    },
    ... 
  ],

Hover over the point at x=1 in https://jsfiddle.net/Lu3rpt1k/, it logs a message in the console.

Actual behaviour

Since v11.4.0, the point level events are no longer triggered.

Hover over the point at x=1 in https://jsfiddle.net/yLqhgmdn/, it no longer logs a message in the console.

Live demo with steps to reproduce

https://jsfiddle.net/yLqhgmdn/

Product version

Highcharts version: 11.4.0

Affected browser(s)

--

@sidrak19
Copy link
Author

Might be related to #20435

@sidrak19 sidrak19 changed the title Point level events not working for charts Point level events not working for charts in 11.4.0 Mar 13, 2024
@bm64
Copy link
Member

bm64 commented Mar 13, 2024

Hello @sidrak19 and thanks for reporting the issue.

As a workaround, you can use for example addEvent method: https://jsfiddle.net/BlackLabel/ktcae6zq/

Internal note:
Bisected to: b848e77 FYI @hubertkozik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants