We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aec946e commit 4fb5a2bCopy full SHA for 4fb5a2b
src/traces/funnel/calc.js
@@ -30,6 +30,9 @@ module.exports = function calc(gd, trace) {
30
var serieslen = Math.min(pos.length, size.length);
31
var cd = new Array(serieslen);
32
33
+ // Unlike other bar-like traces funnels do not support base attribute.
34
+ // bases for funnels are computed internally in a way that
35
+ // the mid-point of each bar are located on the axis line.
36
trace._base = [];
37
38
// set position and size
@@ -50,7 +53,7 @@ module.exports = function calc(gd, trace) {
50
53
cNext: connectToNext
51
54
};
52
55
- trace._base[i] = -0.5 * size[i];
56
+ trace._base[i] = -0.5 * cdi.s;
57
58
if(trace.ids) {
59
cdi.id = String(trace.ids[i]);
0 commit comments