Skip to content

Commit

Permalink
发布v1.3.0版本
Browse files Browse the repository at this point in the history
  • Loading branch information
monitor1394 committed Mar 11, 2020
1 parent 43c3231 commit f130c83
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 26 deletions.
1 change: 1 addition & 0 deletions Assets/XCharts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

# 更新日志

* (2020.03.11) 发布`v1.3.0`版本
* (2020.03.11) 优化`LineChart``label`偏移显示
* (2020.03.11) 优化清空并重新添加数据后的自动刷新问题
* (2020.03.10) 增加`LineChart`的普通折线图可通过`ignore`参数设置忽略数据的支持
Expand Down
41 changes: 19 additions & 22 deletions Assets/XCharts/Demo/Runtime/Demo_Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,29 @@ void Awake()

void Update()
{
// updateTime += Time.deltaTime;
// if (chart && updateTime > 2)
// {
// updateTime = 0;
// var serie = chart.series.GetSerie(0);
// serie.animation.dataChangeEnable = true;
// var dataCount = serie.dataCount;
// if (chart is HeatmapChart)
// {
// var dimension = serie.GetSerieData(0).data.Count - 1;
// for (int i = 0; i < dataCount; i++)
// {
// chart.UpdateData(0, i, dimension, Random.Range(0, 10));
// }
// }
// else
// {
// chart.UpdateData(0, Random.Range(0, dataCount), Random.Range(10, 90));
// }
// }
if (Input.GetKeyDown(KeyCode.Space))
{
AddData();
}
}

void OnTestBtn()
{
//chart.series.list[0].lineStyle.width =UnityEngine.Random.Range(1, 5);
chart.series.list[0].lineStyle.width =UnityEngine.Random.Range(1, 5);
chart.ClearData();
}

void AddData()
{
chart.ClearData();
int count = Random.Range(5, 20);
for (int i = 0; i < count; i++)
{
(chart as CoordinateChart).AddXAxisData("x" + i);
if (Random.Range(1, 3) == 2)
chart.AddData(0, Random.Range(10, 200));
else
chart.AddData(0, Random.Range(10, 100));
}
}
}
}
4 changes: 2 additions & 2 deletions Assets/XCharts/Runtime/Utility/XChartsMgr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class XChartsVersion

public class XChartsMgr : MonoBehaviour
{
public const string version = "1.2.0";
public const int date = 20200308;
public const string version = "1.3.0";
public const int date = 20200311;

[SerializeField] private string m_NowVersion;
[SerializeField] private string m_NewVersion;
Expand Down
2 changes: 1 addition & 1 deletion Assets/XCharts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.monitor1394.xcharts",
"displayName": "XCharts",
"version": "1.2.0",
"version": "1.3.0",
"unity": "2018.3",
"description": "A charting and data visualization library for Unity.",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion Assets/XCharts/version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.2.0",
"version": "1.3.0",
"date": "20200311",
"checkdate": "20200311",
"desc": "如果 XCharts 对您有帮助,希望您能在 Github 上点 Star 支持,非常感谢!",
Expand Down

0 comments on commit f130c83

Please sign in to comment.