오류 수정
This commit is contained in:
@@ -41,6 +41,7 @@ public class UI_BarChart : UIBase
|
||||
{
|
||||
this.barChartDatas.Clear();
|
||||
barChart.DataSource.ClearGroups();
|
||||
barChart.DataSource.ClearValues();
|
||||
|
||||
barChart.DataSource.AutomaticMaxValue = true;
|
||||
|
||||
@@ -58,6 +59,7 @@ public class UI_BarChart : UIBase
|
||||
}
|
||||
private void SetStackBarData()
|
||||
{
|
||||
ClearStackBar();
|
||||
stackBarPos.Clear();
|
||||
|
||||
for (int i = 0; i < barChartDatas.Count; i++)
|
||||
@@ -85,6 +87,16 @@ public class UI_BarChart : UIBase
|
||||
dateTime.SetDateTime(barChartDatas[i]._time);
|
||||
}
|
||||
}
|
||||
private void ClearStackBar()
|
||||
{
|
||||
if (StackBarParent.childCount <= 0)
|
||||
return;
|
||||
|
||||
for (int i = 0; i < StackBarParent.childCount; i++)
|
||||
{
|
||||
Destroy(StackBarParent.transform.GetChild(i).gameObject);
|
||||
}
|
||||
}
|
||||
private void ClearChartLabels()
|
||||
{
|
||||
if (DateTimeParent.childCount <= 0)
|
||||
|
||||
Reference in New Issue
Block a user