diff --git a/src/chart/pie/PieSeries.js b/src/chart/pie/PieSeries.js index b8fefbefd35b29ad0766b61485f84a440ed16987..866bbd77c456f2cfcae0730e9a27057b396b7e07 100644 --- a/src/chart/pie/PieSeries.js +++ b/src/chart/pie/PieSeries.js @@ -108,6 +108,7 @@ define(function(require) { length: 20, // 引导线两段中的第二段长度 length2: 5, + smooth: false, lineStyle: { // color: 各异, width: 1, diff --git a/src/chart/pie/PieView.js b/src/chart/pie/PieView.js index ade96895592cca92be9083d3be5a15ba996aa3b4..c789b423189b1bfd9cadbcad4b854393cd4d05aa 100644 --- a/src/chart/pie/PieView.js +++ b/src/chart/pie/PieView.js @@ -207,6 +207,14 @@ define(function (require) { labelText.hoverStyle = getLabelStyle(data, idx, 'emphasis', labelHoverModel); labelLine.hoverStyle = labelLineHoverModel.getModel('lineStyle').getLineStyle(); + var smooth = labelLineModel.get('smooth'); + if (smooth && smooth === true) { + smooth = 0.4; + } + labelLine.setShape({ + smooth: smooth + }); + graphic.setHoverStyle(this); // Toggle selected