mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-15 04:20:09 +00:00
完善Example01_RandomData
This commit is contained in:
@@ -138,6 +138,14 @@ namespace XCharts.Example
|
||||
var heighest = Random.Range(50, 100);
|
||||
chart.AddData(serie.index, serie.dataCount, open, close, lowest, heighest);
|
||||
}
|
||||
else if (serie is Heatmap)
|
||||
{
|
||||
var yAxis = chart.GetChartComponent<YAxis>(serie.yAxisIndex);
|
||||
for (int i = 0; i < yAxis.data.Count; i++)
|
||||
{
|
||||
chart.AddData(serie.index, xAxis.data.Count - 1, i, Random.Range(0, 150));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
chart.AddData(serie.index, Random.Range(10, 90), "data" + serie.dataCount);
|
||||
|
||||
Reference in New Issue
Block a user