File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ var modebarButtons = module.exports = {};
36
36
* attribute associated with button,
37
37
* use this with 'val' to keep track of the state
38
38
* @param {* } [val]
39
- * initial 'attr' value, can be a function of graphInfo
39
+ * initial 'attr' value, can be a function of gd
40
40
* @param {boolean } [toggle]
41
41
* is the button a toggle button?
42
42
*/
@@ -170,8 +170,8 @@ modebarButtons.hoverCompareCartesian = {
170
170
name : 'hoverCompareCartesian' ,
171
171
title : 'Compare data on hover' ,
172
172
attr : 'hovermode' ,
173
- val : function ( graphInfo ) {
174
- return graphInfo . _fullLayout . _isHoriz ? 'y' : 'x' ;
173
+ val : function ( gd ) {
174
+ return gd . _fullLayout . _isHoriz ? 'y' : 'x' ;
175
175
} ,
176
176
icon : Icons . tooltip_compare ,
177
177
gravity : 'ne' ,
You can’t perform that action at this time.
0 commit comments