mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-27 11:40:13 +00:00
增加PieChart多饼图支持
This commit is contained in:
239175
Demo/Prefabs/xchart.prefab
239175
Demo/Prefabs/xchart.prefab
File diff suppressed because it is too large
Load Diff
@@ -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++;
|
||||
}
|
||||
|
||||
109746
Demo/demo_xchart.unity
109746
Demo/demo_xchart.unity
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user