Skip to content

Commit 0ac2420

Browse files
committed
no need to declare extra variables
1 parent a7a472e commit 0ac2420

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/components/fx/hover.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,12 @@ exports.loneHover = function loneHover(hoverItems, opts) {
205205
};
206206
});
207207

208-
var container3 = d3.select(opts.container);
209-
var outerContainer3 = opts.outerContainer || opts.container;
210-
211208
var fullOpts = {
212209
hovermode: 'closest',
213210
rotateLabels: false,
214211
bgColor: opts.bgColor || Color.background,
215-
container: container3,
216-
outerContainer: outerContainer3
212+
container: d3.select(opts.container),
213+
outerContainer: opts.outerContainer || opts.container
217214
};
218215

219216
var hoverLabel = createHoverText(pointsData, fullOpts, gd);

0 commit comments

Comments
 (0)