Skip to content

Commit 75614a5

Browse files
committed
Merge pull request #542 from seibs/fix-372
Bar: fix issue #372 - bar widths with nonnumeric sizes
2 parents 89f31c1 + dd2251d commit 75614a5

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

src/traces/bar/calc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = function calc(gd, trace) {
4040
var serieslen = Math.min(pos.length, size.length),
4141
cd = [];
4242
for(i=0; i<serieslen; i++) {
43-
if((isNumeric(pos[i]) && isNumeric(size[i]))) {
43+
if(isNumeric(pos[i])) {
4444
cd.push({p: pos[i], s: size[i], b: 0});
4545
}
4646
}
13.7 KB
Loading

test/image/baselines/benchmarks.png

1.57 KB
Loading
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"data": [
3+
{
4+
"x": [
5+
"a",
6+
"b",
7+
"c",
8+
"d"
9+
],
10+
"y": [
11+
1,
12+
null,
13+
"nonsense",
14+
15
15+
],
16+
"type": "bar"
17+
}
18+
]
19+
}

0 commit comments

Comments
 (0)