ssthouse commented on pull request #15095:
URL: https://github.com/apache/echarts/pull/15095#issuecomment-856483466


   > It seems this will break the case in which all the number is negative. 
Besides, if the negative value was considered as `0`, how does the tooltip 
show? Should it be `0`(as the pie shows) or the original negative value like 
`-1548`?
   
   @plainheart hi, In my previous edition(see the first two commits of this PR).
   the negative value is considered as `0` when calculating pie slices. And the 
tooltip shows the negative value label; like below:
   
   
![image](https://user-images.githubusercontent.com/10973821/121132178-6236ad00-c863-11eb-82d9-b3a1e71335d0.png)
   
   ---
   
   according to @Ovilia and @pissang's suggestion, I moved the filter logic to 
`processor/negativeDataFilter`( see the 3rd commit of this PR). 
   and in this edition, the negative value will only be shown in legend and not 
in pie slices. like below:
   
![image](https://user-images.githubusercontent.com/10973821/121132642-f6a10f80-c863-11eb-864b-31f5878ea862.png)
   
   I'm not sure which result is expected since they're both reasonable in some 
way,hope you guys can give me a conclusion😂


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



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

Reply via email to