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 = {};
3636 * attribute associated with button,
3737 * use this with 'val' to keep track of the state
3838 * @param {* } [val]
39- * initial 'attr' value, can be a function of graphInfo
39+ * initial 'attr' value, can be a function of gd
4040 * @param {boolean } [toggle]
4141 * is the button a toggle button?
4242 */
@@ -170,8 +170,8 @@ modebarButtons.hoverCompareCartesian = {
170170 name : 'hoverCompareCartesian' ,
171171 title : 'Compare data on hover' ,
172172 attr : 'hovermode' ,
173- val : function ( graphInfo ) {
174- return graphInfo . _fullLayout . _isHoriz ? 'y' : 'x' ;
173+ val : function ( gd ) {
174+ return gd . _fullLayout . _isHoriz ? 'y' : 'x' ;
175175 } ,
176176 icon : Icons . tooltip_compare ,
177177 gravity : 'ne' ,
You can’t perform that action at this time.
0 commit comments