Skip to content

Commit 8ff3356

Browse files
committed
fix bubble map tooltip
closes #11
1 parent 54fc4c9 commit 8ff3356

File tree

3 files changed

+4
-58
lines changed

3 files changed

+4
-58
lines changed

samples/bubbleMap.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
outline: states,
3030
showOutline: true,
3131
backgroundColor: 'steelblue',
32-
data: data.map((d) => Object.assign(d, {r: Math.round(Math.random() * 100)})),
32+
data: data.map((d) => Object.assign(d, {r: Math.round(Math.random() * 10)})),
3333
}]
3434
},
3535
options: {
@@ -48,7 +48,7 @@
4848
projection: 'albersUsa'
4949
},
5050
layout: {
51-
padding: 20
51+
// padding: 20
5252
}
5353
}
5454
});

samples/bubbleMap28.html

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/controllers/bubbleMap.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ const bubbleClass = Chart.controllers.bubble.prototype;
3232
export const BubbleMap = Chart.controllers.bubbleMap = Geo.extend({
3333
dataElementType: Chart.elements.Point,
3434

35+
_dataElementOptions: bubbleClass._dataElementOptions,
36+
3537
updateElement(point, index, reset) {
3638
superClass.updateElement.apply(this, arguments);
3739

0 commit comments

Comments
 (0)