Skip to content

fixup waterfall connectors on date axes #3791

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

Merged
merged 1 commit into from
Apr 18, 2019

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Apr 18, 2019

Fixes #3785.
This is similar to the way connectors would be handled in the funnel trace.
codepen After.

@plotly/plotly_js
cc: @nicolaskruchten

@archmoj archmoj added bug something broken status: reviewable labels Apr 18, 2019
@@ -60,11 +60,6 @@ function plotConnectors(gd, plotinfo, cdModule, traceLayer) {
var x2, y2;
var x3, y3;

var delta = 0;
if(i + 1 < len && Array.isArray(trace.offset)) {
delta -= trace.offset[i + 1] - trace.offset[i];
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm. Where is offset taken in consideration? Do we have a mock with arrayOk trace.offset settings?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome!

@etpinard
Copy link
Contributor

Nicely done 💃

@archmoj archmoj merged commit 6c5bc26 into master Apr 18, 2019
@archmoj archmoj deleted the fix3785-waterfall-connectors-on-date-axes branch April 18, 2019 17:36
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.

Waterfalls handling date axes weirdly
2 participants