@@ -14,6 +14,7 @@ var colorAttrs = require('../../components/color/attributes');
1414var fxAttrs = require ( '../../components/fx/attributes' ) ;
1515var domainAttrs = require ( '../../plots/domain' ) . attributes ;
1616
17+ var extendFlat = require ( '../../lib/extend' ) . extendFlat ;
1718var overrideAll = require ( '../../plot_api/edit_types' ) . overrideAll ;
1819
1920module . exports = overrideAll ( {
@@ -121,7 +122,7 @@ module.exports = overrideAll({
121122 role : 'style' ,
122123 description : 'Sets the thickness (in px) of the `nodes`.'
123124 } ,
124- hoverinfo : Object . assign ( { } , plotAttrs . hoverinfo , { flags : [ ] } ) ,
125+ hoverinfo : extendFlat ( { } , plotAttrs . hoverinfo , { flags : [ ] } ) ,
125126 hoverlabel : fxAttrs . hoverlabel , // needs editType override,
126127 description : 'The nodes of the Sankey plot.'
127128 } ,
@@ -181,7 +182,7 @@ module.exports = overrideAll({
181182 role : 'info' ,
182183 description : 'A numeric value representing the flow volume value.'
183184 } ,
184- hoverinfo : Object . assign ( { } , plotAttrs . hoverinfo , { flags : [ ] } ) ,
185+ hoverinfo : extendFlat ( { } , plotAttrs . hoverinfo , { flags : [ ] } ) ,
185186 hoverlabel : fxAttrs . hoverlabel , // needs editType override,
186187 description : 'The links of the Sankey plot.'
187188 }
0 commit comments