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 7cd5b30 commit 2934f11Copy full SHA for 2934f11
src/components/modebar/buttons.js
@@ -36,7 +36,7 @@ var modebarButtons = module.exports = {};
36
* attribute associated with button,
37
* use this with 'val' to keep track of the state
38
* @param {*} [val]
39
- * initial 'attr' value, can be a function of graphInfo
+ * initial 'attr' value, can be a function of gd
40
* @param {boolean} [toggle]
41
* is the button a toggle button?
42
*/
@@ -170,8 +170,8 @@ modebarButtons.hoverCompareCartesian = {
170
name: 'hoverCompareCartesian',
171
title: 'Compare data on hover',
172
attr: 'hovermode',
173
- val: function(graphInfo) {
174
- return graphInfo._fullLayout._isHoriz ? 'y' : 'x';
+ val: function(gd) {
+ return gd._fullLayout._isHoriz ? 'y' : 'x';
175
},
176
icon: Icons.tooltip_compare,
177
gravity: 'ne',
0 commit comments