Skip to content

Conversation

etpinard
Copy link
Contributor

fixes #3298 by making data coordinates match gd.calcdata items 1-to-1 and fixes a finance trace hover edge case - cc @plotly/plotly_js

.. so that pointing to a particular item using Fx.hover
   can be done using eventData 'pointNumber'.

   Tag the empty (or null) items using `calcdata[i][j].empty`
- this used to result in:
  'TypeError: Cannot read property '0' of undefined'
@etpinard etpinard added bug something broken status: reviewable labels Dec 21, 2018
Copy link
Contributor

@archmoj archmoj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like me a very good fix to me. What do you think? @antoinerg & @alexcjohnson
I only have one question related to one of the tests.

@archmoj
Copy link
Contributor

archmoj commented Jan 2, 2019

💃

@etpinard
Copy link
Contributor Author

etpinard commented Jan 7, 2019

Merging to include in 1.43.2

@etpinard etpinard merged commit 568a376 into master Jan 7, 2019
@etpinard etpinard deleted the finance-hover-fixups branch January 7, 2019 14:35
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 this pull request may close these issues.

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

2 participants