File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 13
13
14
14
## BUG FIXES
15
15
16
+ * Bug fix for linking views with crosstalk where the source of the selection is an aggregated trace (see #1218 ).
16
17
* Fixed algorithm for coercing the proposed layout to the plot schema (see #1156 ).
17
18
* grid conversions in ` ggplotly() ` weren't respected a specified ` height ` /` width ` in RStudio (see #1190 ).
18
19
Original file line number Diff line number Diff line change @@ -309,7 +309,8 @@ HTMLWidgets.widget({
309
309
// selecting a point of a "simple" trace means: select the
310
310
// entire key attached to this trace, which is useful for,
311
311
// say clicking on a fitted line to select corresponding observations
312
- var key = trace . _isSimpleKey ? trace . key : trace . key [ points [ i ] . pointNumber ] ;
312
+ var pts = points [ i ] . pointNumber || points [ i ] . pointNumbers ;
313
+ var key = trace . _isSimpleKey ? trace . key : Array . isArray ( pts ) ? pts . map ( function ( idx ) { return trace . key [ idx ] ; } ) : trace . key [ pts ] ;
313
314
// http://stackoverflow.com/questions/10865025/merge-flatten-an-array-of-arrays-in-javascript
314
315
var keyFlat = trace . _isNestedKey ? [ ] . concat . apply ( [ ] , key ) : key ;
315
316
You can’t perform that action at this time.
0 commit comments