Skip to content

Commit a311922

Browse files
committed
Fix errorbar typo
1 parent 6f0b42b commit a311922

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/errorbars/plot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module.exports = function plot(traces, plotinfo, transitionConfig) {
6767

6868
var path;
6969

70-
if(yObj.visible && isNumeric(coords.y) &&
70+
if(yObj.visible && isNumeric(coords.x) &&
7171
isNumeric(coords.yh) &&
7272
isNumeric(coords.ys)) {
7373
var yw = yObj.width;
@@ -96,7 +96,7 @@ module.exports = function plot(traces, plotinfo, transitionConfig) {
9696
yerror.attr('d', path);
9797
}
9898

99-
if(xObj.visible && isNumeric(coords.x) &&
99+
if(xObj.visible && isNumeric(coords.y) &&
100100
isNumeric(coords.xh) &&
101101
isNumeric(coords.xs)) {
102102
var xw = (xObj.copy_ystyle ? yObj : xObj).width;

0 commit comments

Comments
 (0)