You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "plainheart (via GitHub)" <gi...@apache.org> on 2023/05/15 01:05:18 UTC
[GitHub] [echarts] plainheart commented on a diff in pull request #18604: fix(pie): display empty circle correctly
plainheart commented on code in PR #18604:
URL: https://github.com/apache/echarts/pull/18604#discussion_r1189675349
##########
src/chart/pie/PieView.ts:
##########
@@ -259,7 +260,21 @@ class PieView extends ChartView {
group.remove(this._emptyCircleSector);
}
// when all data are filtered, show lightgray empty circle
- if (data.count() === 0 && seriesModel.get('showEmptyCircle')) {
+ // when data sum is zero and showEmptyCircle is true
+ // and roseType is not area, show empty circle
+ const isNeedShowEmptyCircle = (
Review Comment:
This seems to be changing the behavior of `showEmptyCircle`. As per #15095, it's designed to show only when no data items or all items are filtered, instead of when sum is zero.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org