File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ exports.multiHovers = function multiHovers(hoverItems, opts) {
230
230
231
231
alignHoverText ( hoverLabel , fullOpts . rotateLabels ) ;
232
232
233
- return hoverLabel . node ( ) ;
233
+ return hoverLabel ;
234
234
} ;
235
235
236
236
// The actual implementation is here:
Original file line number Diff line number Diff line change @@ -162,7 +162,8 @@ module.exports = function plot(gd, calcData) {
162
162
// For each related links, create a hoverItem
163
163
for ( var i = 0 ; i < d . flow . links . length ; i ++ ) {
164
164
var link = d . flow . links [ i ] ;
165
- obj = link ;
165
+ link . fullData = link . trace ;
166
+ obj = d . link . trace . link ;
166
167
var hoverCenterX ;
167
168
var hoverCenterY ;
168
169
if ( link . circular ) {
@@ -198,16 +199,19 @@ module.exports = function plot(gd, calcData) {
198
199
} ) ;
199
200
}
200
201
201
- var tooltip = Fx . multiHovers ( hoverItems , {
202
+ var tooltips = Fx . multiHovers ( hoverItems , {
202
203
container : fullLayout . _hoverlayer . node ( ) ,
203
204
outerContainer : fullLayout . _paper . node ( ) ,
204
205
gd : gd
205
206
} ) ;
206
207
207
- if ( ! d . link . concentrationscale ) {
208
- makeTranslucent ( tooltip , 0.65 ) ;
209
- }
210
- makeTextContrasty ( tooltip ) ;
208
+ tooltips . each ( function ( ) {
209
+ var tooltip = this ;
210
+ if ( ! d . link . concentrationscale ) {
211
+ makeTranslucent ( tooltip , 0.65 ) ;
212
+ }
213
+ makeTextContrasty ( tooltip ) ;
214
+ } ) ;
211
215
} ;
212
216
213
217
var linkUnhover = function ( element , d , sankey ) {
You can’t perform that action at this time.
0 commit comments