Skip to content

Fix bargap 0 bug - #709

Merged
etpinard merged 3 commits into
masterfrom
fix-bargap-0
Jul 5, 2016
Merged

Fix bargap 0 bug#709
etpinard merged 3 commits into
masterfrom
fix-bargap-0

Conversation

@etpinard

Copy link
Copy Markdown
Contributor

fixes#708

Bar traces with layout.bargap: 0 and unset marker.line.width have been broken since #124 back in v1.3.0 (oof) when the Bar trace module got split up into separate files.

More specifically, when this line got moved to this linewithout its default overriding argument made the effective line width in the plot step a NaN (see here).

This PR fixes this bug by correctly setting the marker.line.width default value to 0 in the bar attributes (note that the scatter marker.line.width attribute does not have a dflt value in its attribute s as it depends on whether or not the trace has bubbles - see here)

- so that plotting code - which relies on marker.line.width to
set the effective 'bargap' does not error out
- broken since #124
var scatterMarkerLineAttrs = scatterMarkerAttrs.line;

var markerLineWidth = extendFlat({},
scatterMarkerLineAttrs.width, { dflt: 0 });

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

here it is!

@mdtusz

Copy link
Copy Markdown
Contributor

Good to get this finally fixed. 💃

@etpinard
etpinard merged commit 0725ea4 into masterJul 5, 2016
@etpinard
etpinard deleted the fix-bargap-0 branch July 5, 2016 14:33
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugsomething broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plotting bars: 'bargap: 0' removes first bar

2 participants

@etpinard@mdtusz