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

Candlestick hover label fix #2264

Merged
merged 1 commit into from
Jan 18, 2018
Merged

Conversation

etpinard
Copy link
Contributor

fixes #2253

cc @alexcjohnson

@etpinard etpinard added bug something broken status: reviewable labels Jan 18, 2018
// don't show labels in candlestick hover labels
if(trace._fullInput && trace._fullInput.type === 'candlestick') {
delete cd[0].t.labels;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

not a big deal, but 🐎 I might invert this logic and only add labels if we do want them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought about that. But, I prefer writing candlestick-only blocks like this one as exceptions to a rule (the rule here being fill up cd[0].t.labels). Here's another example.

I can't wait to rewrite candlestick and ohlc as good old (non-transform) trace types 🙃

Copy link
Collaborator

Choose a reason for hiding this comment

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

I prefer writing candlestick-only blocks like this one as exceptions to a rule

Good point.

@alexcjohnson
Copy link
Collaborator

nonblocking #2264 (comment), looks great 💃

@etpinard etpinard merged commit 55c4b35 into master Jan 18, 2018
@etpinard etpinard deleted the candlestick-hover-label-regression branch January 18, 2018 20:38
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 graph hoverinfo shows strange labels for open/close/low/high
2 participants