mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-20 07:20:08 +00:00
增加PieChart多饼图支持
This commit is contained in:
@@ -24,12 +24,12 @@ public class Demo_PieChart : MonoBehaviour
|
||||
time = 0;
|
||||
if (count < 5)
|
||||
{
|
||||
chart.AddData("time" + count, Random.Range(10, 100));
|
||||
chart.AddData(0, Random.Range(10, 100), "time" + count);
|
||||
}
|
||||
else
|
||||
{
|
||||
int index = count % 5;
|
||||
chart.UpdateData("time" + index, Random.Range(10, 100));
|
||||
chart.UpdateData(0, Random.Range(10, 100),index);
|
||||
}
|
||||
count++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user