We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a2ae3b commit e7c2240Copy full SHA for e7c2240
src/traces/box/event_data.js
@@ -9,18 +9,16 @@
9
'use strict';
10
11
module.exports = function eventData(out, pt) {
12
+
13
+ // Note: hoverOnBox property is needed for click-to-select
14
+ // to ignore when a box was clicked. This is the reason box
15
+ // implements this custom eventData function.
16
if(pt.hoverOnBox) out.hoverOnBox = pt.hoverOnBox;
17
- // TODO Clean up
18
if('xVal' in pt) out.x = pt.xVal;
- else if('x' in pt) out.x = pt.x;
-
19
if('yVal' in pt) out.y = pt.yVal;
- else if('y' in pt) out.y = pt.y;
20
21
if(pt.xa) out.xaxis = pt.xa;
22
if(pt.ya) out.yaxis = pt.ya;
23
- if(pt.zLabelVal !== undefined) out.z = pt.zLabelVal;
24
25
return out;
26
};
0 commit comments