mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-19 06:50:18 +00:00
重构LineChart和BarChart,移除Line和Bar组件,参数统一放到Serie中配置。
This commit is contained in:
@@ -21,7 +21,7 @@ public class Demo_Dynamic : MonoBehaviour
|
||||
void Awake()
|
||||
{
|
||||
chart = gameObject.GetComponentInChildren<CoordinateChart>();
|
||||
chart.RemoveData();
|
||||
//chart.RemoveData();
|
||||
var serie = chart.AddSerie("data", SerieType.Line);
|
||||
serie.symbol.type = SerieSymbolType.None;
|
||||
chart.maxCacheDataNumber = maxCacheDataNumber;
|
||||
|
||||
Reference in New Issue
Block a user