Commit 231fa6d
committed
Consider first eventData element only as clicked point [1852]
- Reason: box trace type stuffing not even points but also hoverData
about boxes which appears on mouseover into gd._hoverdata.
- So based on analysis of fx/hover.js, which sorts the hoverdata array
so that the closest point comes first, it is assumed now that only
the first element in hoverData represents a clicked point.
- For box trace type particulary if a box is clicked the first
hoverdata element is not a point but a box with pointnumber being
the index of the point group that's represented as a box plot
element visually.1 parent 4d8b274 commit 231fa6d
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
| 400 | + | |
400 | 401 | | |
401 | | - | |
402 | | - | |
| 402 | + | |
| 403 | + | |
403 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
404 | 409 | | |
405 | 410 | | |
406 | 411 | | |
| |||
0 commit comments