You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2019/01/09 14:10:24 UTC

[incubator-echarts] 01/01: Merge pull request #8997 from cuijian-dexter/dev

This is an automated email from the ASF dual-hosted git repository.

sushuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git

commit 5a3c7d006e30f84fc0fcc39a769a2093c9e4d692
Merge: 839b339 a96bd32
Author: sushuang <su...@gmail.com>
AuthorDate: Wed Jan 9 22:10:06 2019 +0800

    Merge pull request #8997 from cuijian-dexter/dev
    
    Pie chart adds filterValue parameter

 src/chart/pie/PieView.js | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --cc src/chart/pie/PieView.js
index 9fe7ef7,3ed3b0c..8a8fd54
--- a/src/chart/pie/PieView.js
+++ b/src/chart/pie/PieView.js
@@@ -94,8 -94,25 +94,11 @@@ function PiePiece(data, idx) 
      this.add(sector);
      this.add(polyline);
      this.add(text);
+     
+     var valueDim = data.mapDimension('value');
+     this._sum = data.getSum(valueDim) || 0;
  
      this.updateData(data, idx, true);
 -
 -    // Hover to change label and labelLine
 -    function onEmphasis() {
 -        polyline.ignore = polyline.hoverIgnore;
 -        text.ignore = text.hoverIgnore;
 -    }
 -    function onNormal() {
 -        polyline.ignore = polyline.normalIgnore;
 -        text.ignore = text.normalIgnore;
 -    }
 -    this.on('emphasis', onEmphasis)
 -        .on('normal', onNormal)
 -        .on('mouseover', onEmphasis)
 -        .on('mouseout', onNormal);
  }
  
  var piePieceProto = PiePiece.prototype;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org