Skip to content

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Apr 18, 2019

Fixes #3787.
Codepen After.

@plotly/plotly_js
cc: @nicolaskruchten

@archmoj archmoj added bug something broken status: reviewable labels Apr 18, 2019
line: {
color: extendFlat({}, lineAttrs.color, {dflt: Color.defaultLine}),
width: lineAttrs.width,
width: extendFlat({}, lineAttrs.width, {
Copy link
Contributor

Choose a reason for hiding this comment

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

does a similar fix need to be applied anywhere else in this trace? I haven't rigorously tested each attr, I just happened to test this one a lot due to our conversations around the line extensions etc :)

@etpinard
Copy link
Contributor

Ha, Good catch from this block:

var adjustDir;
var adjustPixel = 0;
if(trace.type === 'waterfall' && trace.connector.visible && trace.connector.mode === 'between') {
adjustPixel = trace.connector.line.width / 2;
}

which can't be transferred to waterfal/style.js.


Nicely done 💃

@archmoj archmoj merged commit b7fca1e into master Apr 18, 2019
@archmoj archmoj deleted the fix3787-waterfall-line-width-react-in-mode-between branch April 18, 2019 13: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.

Waterfalls reacting weirdly for connector line thickness
3 participants