From 74f0a19f609ebd435810b153857964772ba7155c Mon Sep 17 00:00:00 2001 From: Ovilia Date: Mon, 11 Dec 2017 14:19:52 +0800 Subject: [PATCH] feat(sunburst): click event support --- src/chart/sunburst/SunburstPiece.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/chart/sunburst/SunburstPiece.js b/src/chart/sunburst/SunburstPiece.js index fcf6a9c55..722f726b6 100644 --- a/src/chart/sunburst/SunburstPiece.js +++ b/src/chart/sunburst/SunburstPiece.js @@ -104,6 +104,8 @@ SunburstPieceProto.updateData = function ( ); sector.hoverStyle = itemStyleModel.getModel('emphasis').getItemStyle(); + sector.dataIndex = node.dataIndex; + var cursorStyle = itemModel.getShallow('cursor'); cursorStyle && sector.attr('cursor', cursorStyle); -- GitLab