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

Finance trace hover fixups #3366

Merged
merged 3 commits into from
Jan 7, 2019
Merged

Finance trace hover fixups #3366

merged 3 commits into from
Jan 7, 2019

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.

test/jasmine/tests/finance_test.js Show resolved Hide resolved
@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