Skip to content

Commit b2e494c

Browse files
committed
print q1, median and q3 values in invalid input warn msg
1 parent f37f04d commit b2e494c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/traces/box/calc.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,12 @@ module.exports = function calc(gd, trace) {
141141
cdi.min = imin;
142142
cdi.max = imax;
143143
} else {
144-
Lib.warn('Invalid input - make sure that q1 <= median <= q3');
144+
Lib.warn([
145+
'Invalid input - make sure that q1 <= median <= q3',
146+
'q1 = ' + cdi.q1,
147+
'median = ' + cdi.med,
148+
'q3 = ' + cdi.q3
149+
].join('\n'));
145150

146151
var v0;
147152
if(cdi.med !== BADNUM) {

0 commit comments

Comments
 (0)