mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-26 02:40:13 +00:00
XCharts 2.0
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
|
||||
/******************************************/
|
||||
/* */
|
||||
/* Copyright (c) 2018 monitor1394 */
|
||||
/* https://github.com/monitor1394 */
|
||||
/* */
|
||||
/******************************************/
|
||||
/************************************************/
|
||||
/* */
|
||||
/* Copyright (c) 2018 - 2021 monitor1394 */
|
||||
/* https://github.com/monitor1394 */
|
||||
/* */
|
||||
/************************************************/
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
@@ -21,24 +21,22 @@ namespace XCharts
|
||||
protected override void Reset()
|
||||
{
|
||||
base.Reset();
|
||||
m_Title.text = "LineChart";
|
||||
m_Tooltip.type = Tooltip.Type.Line;
|
||||
title.text = "LineChart";
|
||||
tooltip.type = Tooltip.Type.Line;
|
||||
|
||||
m_VisualMap.enable = false;
|
||||
m_VisualMap.show = false;
|
||||
m_VisualMap.autoMinMax = true;
|
||||
m_VisualMap.direction = VisualMap.Direction.Y;
|
||||
m_VisualMap.inRange.Clear();
|
||||
m_VisualMap.inRange.Add(Color.blue);
|
||||
m_VisualMap.inRange.Add(Color.red);
|
||||
visualMap.enable = false;
|
||||
visualMap.show = false;
|
||||
visualMap.autoMinMax = true;
|
||||
visualMap.direction = VisualMap.Direction.Y;
|
||||
visualMap.inRange.Clear();
|
||||
visualMap.inRange.Add(Color.blue);
|
||||
visualMap.inRange.Add(Color.red);
|
||||
|
||||
RemoveData();
|
||||
var serie = AddSerie(SerieType.Line, "serie1");
|
||||
serie.symbol.show = true;
|
||||
SerieTemplate.AddDefaultLineSerie(this, "serie1");
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
AddXAxisData("x" + (i + 1));
|
||||
AddData(0, UnityEngine.Random.Range(10, 90));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user