diff --git a/src/chart/sunburst/SunburstPiece.js b/src/chart/sunburst/SunburstPiece.js index d55bb8d874..f74f507c78 100644 --- a/src/chart/sunburst/SunburstPiece.js +++ b/src/chart/sunburst/SunburstPiece.js @@ -94,6 +94,8 @@ SunburstPieceProto.updateData = function ( var visualColor = getNodeColor(node, seriesModel, ecModel); + fillDefaultColor(node, seriesModel, visualColor) + var normalStyle = itemModel.getModel('itemStyle').getItemStyle(); var style; if (state === 'normal') { @@ -411,3 +413,9 @@ function isNodeHighlighted(node, activeNode, policy) { return node === activeNode || node.isDescendantOf(activeNode); } } + +// Fix tooltip callback function params.color incorrect when pick a default color +function fillDefaultColor(node, seriesModel, color) { + var data = seriesModel.getData(); + data.setItemVisual(node.dataIndex, 'color', color); +} diff --git a/src/coord/geo/Geo.js b/src/coord/geo/Geo.js index bc8923a29d..6a87274609 100644 --- a/src/coord/geo/Geo.js +++ b/src/coord/geo/Geo.js @@ -48,7 +48,7 @@ function Geo(name, map, nameMap, invertLongitute) { var source = geoSourceManager.load(map, nameMap); this._nameCoordMap = source.nameCoordMap; - this._regionsMap = source.nameCoordMap; + this._regionsMap = source.regionsMap; this._invertLongitute = invertLongitute == null ? true : invertLongitute; /**