Skip to content

Candlestick treats null values differently from other charts when using Fx.hover #3298

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

Closed
jakubkottnauer opened this issue Nov 29, 2018 · 1 comment · Fixed by #3366
Closed
Labels
bug something broken

Comments

@jakubkottnauer
Copy link
Contributor

For simplicity, let's say two charts (a candlestick chart and a bar chart) have the same data for the x axis. When there are null/undefined values in the y axis data and hover state is shared between charts using Fx.hover, the pointNumber value taken from the plotly_hover event doesn't correspond to the correct element in the candlestick chart - the position is offset exactly by the number of null values preceding the hovered element - while the bar charts treats null values correctly and the correct value is hovered.

See the codepan example demonstrating the described behavior: https://codepen.io/jakubkottnauer/pen/xQQYje

@jakubkottnauer jakubkottnauer changed the title Candlestick chart treats null values differently when using Fx.hover Candlestick treats null values differently from other charts when using Fx.hover Nov 29, 2018
@etpinard
Copy link
Contributor

etpinard commented Dec 3, 2018

Thanks for the report!

@etpinard etpinard added the bug something broken label Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants