mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-22 08:50:10 +00:00
修复BarChart在数值为0时还会绘制一小部分柱条的问题
This commit is contained in:
@@ -147,7 +147,7 @@ namespace XCharts
|
||||
|
||||
private float CheckAnimation(Serie serie, int dataIndex, float barHig)
|
||||
{
|
||||
float currHig = serie.animation.CheckBarProgress(dataIndex, barHig,serie.dataCount);
|
||||
float currHig = serie.animation.CheckBarProgress(dataIndex, barHig, serie.dataCount);
|
||||
if (!serie.animation.IsFinish())
|
||||
{
|
||||
RefreshChart();
|
||||
@@ -256,7 +256,7 @@ namespace XCharts
|
||||
top = ClampInCoordinate(top);
|
||||
}
|
||||
serie.dataPoints.Add(top);
|
||||
if (serie.show)
|
||||
if (serie.show && currHig != 0)
|
||||
{
|
||||
switch (serie.barType)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user