mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-29 12:48:47 +00:00
修复PieChart数据全为0时Label无法正常显示的问题
This commit is contained in:
@@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
|
* (2021.05.24) Fixed the problem that `Label` could not display properly when `PieChart` data were all `0`
|
||||||
* (2021.05.24) Fixed an issue where `Serie Name` was not working on the `Add Serie` panel (#149)
|
* (2021.05.24) Fixed an issue where `Serie Name` was not working on the `Add Serie` panel (#149)
|
||||||
* (2021.05.23) Added `TextStyle` `wrap` to set whether to wrap lines
|
* (2021.05.23) Added `TextStyle` `wrap` to set whether to wrap lines
|
||||||
* (2021.05.23) Added` axisLabel `to` autoAlign `whether to set alignment automatically
|
* (2021.05.23) Added` axisLabel `to` autoAlign `whether to set alignment automatically
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
|
* (2021.05.24) 修复`PieChart`数据全为`0`时`Label`无法正常显示的问题
|
||||||
* (2021.05.24) 修复`Add Serie`面板上`Serie Name`不生效的问题 (#149)
|
* (2021.05.24) 修复`Add Serie`面板上`Serie Name`不生效的问题 (#149)
|
||||||
* (2021.05.23) 增加`TextStyle`的`wrap`设置是否自动换行
|
* (2021.05.23) 增加`TextStyle`的`wrap`设置是否自动换行
|
||||||
* (2021.05.23) 增加`AxisLabel`的`autoAlign`设置是否让系统自动设置对齐方式
|
* (2021.05.23) 增加`AxisLabel`的`autoAlign`设置是否让系统自动设置对齐方式
|
||||||
|
|||||||
@@ -188,6 +188,7 @@ namespace XCharts
|
|||||||
zeroReplaceValue = totalDegree / data.Count;
|
zeroReplaceValue = totalDegree / data.Count;
|
||||||
serie.runtimeDataMax = zeroReplaceValue;
|
serie.runtimeDataMax = zeroReplaceValue;
|
||||||
serie.runtimePieDataTotal = 360;
|
serie.runtimePieDataTotal = 360;
|
||||||
|
dataTotalFilterMinAngle = 360;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user