Skip to content

Commit 7e1c66e

Browse files
committed
choropleth: add dummy hover handler to skip Fx.hover w/o warnings
- until we make choropleth use fullLayout._hoverlayer for its hover labels.
1 parent 5be0e27 commit 7e1c66e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/traces/choropleth/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ Choropleth.colorbar = require('../heatmap/colorbar');
1717
Choropleth.calc = require('./calc');
1818
Choropleth.plot = require('./plot').plot;
1919

20+
// add dummy hover handler to skip Fx.hover w/o warnings
21+
Choropleth.hoverPoints = function() {};
22+
2023
Choropleth.moduleType = 'trace';
2124
Choropleth.name = 'choropleth';
2225
Choropleth.basePlotModule = require('../../plots/geo');

src/traces/choropleth/plot.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ plotChoropleth.calcGeoJSON = function(trace, topojson) {
5959
};
6060

6161
plotChoropleth.plot = function(geo, calcData, geoLayout) {
62-
function keyFunc(d) {
63-
return d[0].trace.uid;
64-
}
62+
63+
function keyFunc(d) { return d[0].trace.uid; }
6564

6665
var framework = geo.framework,
6766
gChoropleth = framework.select('g.choroplethlayer'),

0 commit comments

Comments
 (0)