Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4875e59

Browse files
committed
plot bar/histogram trace in bar layer update selection
- as opposed to in the bar layer enter selection as previously.
1 parent 32ccae5 commit 4875e59

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/traces/bar/plot.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ module.exports = function plot(gd, plotinfo, cdbar) {
3737

3838
var bartraces = plotinfo.plot.select('.barlayer')
3939
.selectAll('g.trace.bars')
40-
.data(cdbar)
41-
.enter().append('g')
40+
.data(cdbar);
41+
42+
bartraces.enter().append('g')
4243
.attr('class', 'trace bars');
4344

4445
bartraces.append('g')

0 commit comments

Comments
 (0)