Skip to content

Commit 83168bd

Browse files
committed
bar: add note to setGroupPositionsInOverlayMode
* Added note to explain the reason why setGroupPositionsInOverlayMode handles the case barnorm is defined.
1 parent 1eaa130 commit 83168bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/traces/bar/set_positions.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ function setGroupPositionsInOverlayMode(gd, pa, sa, calcTraces) {
124124
setOffsetAndWidth(gd, pa, sieve);
125125

126126
// set bar bases and sizes, and update size axis
127+
//
128+
// (note that `setGroupPositionsInOverlayMode` handles the case barnorm
129+
// is defined, because this function is also invoked for traces that
130+
// can't be grouped or stacked)
127131
if(barnorm) {
128132
sieveBars(gd, sa, sieve);
129133
normalizeBars(gd, sa, sieve);

0 commit comments

Comments
 (0)