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

Problems with areaspline series that is covered by another series #18744

Closed
jszuminski opened this issue Mar 28, 2023 · 8 comments · Fixed by #20285
Closed

Problems with areaspline series that is covered by another series #18744

jszuminski opened this issue Mar 28, 2023 · 8 comments · Fixed by #20285

Comments

@jszuminski
Copy link
Contributor

jszuminski commented Mar 28, 2023

Expected behaviour

  1. The series.point.events.click event does not trigger when the areaspline series is covered by another areaspline series.
  2. When stickyTracking = false then the tooltip never shows up after hovering over a covered series.

Live demo with steps to reproduce

https://jsfiddle.net/BlackLabel/h3a7pbcr/

  1. Try clicking on the point on a blue series
  2. Turn off stickyTracking and hover over a point on a blue series

Product version

Highcharts 10.3.3

@eyalellenbogen
Copy link

I'm also facing this issue and I have to use a regular spline instead of areaSpline. Is there a plan to fix this anytime in the near future?

@karolkolodziej
Copy link
Contributor

@eyalellenbogen
As a workaround for now you can set the class name for both series as className: 'highcharts-tracker' - demo.

We will discuss this issue internally and will keep you posted about the potential ETA.

@TorsteinHonsi
Copy link
Collaborator

Another workaround is to set trackByArea to true. https://jsfiddle.net/highcharts/zno0d5x8/

I am not sure if this is a bug though. Series 1 is actually behind the area of Series 2, so it is not obvious that it should respond to clicks. But if it should, we should probably set pointer-events: none to the area shape.

@hubertkozik
Copy link
Member

hubertkozik commented Dec 4, 2023

I've come to the same conclusion. We've got an option, which simply enables the mouse events for covered series. What do you think about adding some extra information in docs: https://api.highcharts.com/highcharts/series.area.trackByArea to fulfil this issue? @TorsteinHonsi

@TorsteinHonsi
Copy link
Collaborator

@hubertkozik I agree with that 👍

@karolkolodziej
Copy link
Contributor

Should we close it then or is there something to improve in the documentation?

@hubertkozik
Copy link
Member

I'll add some information about that in API docs.

@hubertkozik
Copy link
Member

After some research in Pull Request, this is a bug, that will be fixed.

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

Successfully merging a pull request may close this issue.

6 participants