整理代码

This commit is contained in:
monitor1394
2021-04-13 10:12:02 +08:00
parent 32e9ce864b
commit cbbc2a63f9
10 changed files with 5 additions and 45 deletions

View File

@@ -41,7 +41,6 @@ namespace XCharts.Examples
{
for (int i = 0; i < taskCount; i++)
{
var taskName = "task-" + (i + 1);
var startIndex = Random.Range(0, (int)(dayCount * 2.0f / 3));
var endIndex = Random.Range(startIndex, dayCount);
chart.UpdateData(0, i, 0, startIndex);
@@ -67,7 +66,7 @@ namespace XCharts.Examples
chart.AddXAxisData("day" + (i + 1));
}
var serie = chart.AddSerie(SerieType.Gantt, "任务进度表");
chart.AddSerie(SerieType.Gantt, "任务进度表");
for (int i = 0; i < taskCount; i++)
{
var taskName = "task-" + (i + 1);