diff --git a/CHANGELOG-EN.md b/CHANGELOG-EN.md
index f490e901..af111414 100644
--- a/CHANGELOG-EN.md
+++ b/CHANGELOG-EN.md
@@ -1,6 +1,7 @@
# 更新日志
+* (2021.01.25) Optimize some details
* (2021.01.22) Fixed a `Inpsector` displayed error
* (2021.01.21) Release `v2.0.0-preview.2` version
* (2021.01.21) Fixed an error about `AxisTick` in `Inpsector`
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ed5c4426..09ff7789 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,7 @@
# 更新日志
+* (2021.01.25) 优化一些细节
* (2021.01.22) 修复`Inpsector`上部分属性显示异常的问题
* (2021.01.21) 发布`v2.0.0-preview.2`版本
* (2021.01.21) 修复`Inpsector`上展开`AxisTick`时报错问题
diff --git a/Editor/BaseChartEditor.cs b/Editor/BaseChartEditor.cs
index 3171ca84..b2da3dfa 100644
--- a/Editor/BaseChartEditor.cs
+++ b/Editor/BaseChartEditor.cs
@@ -101,7 +101,7 @@ namespace XCharts
{
BlockStart();
EditorGUILayout.BeginHorizontal();
- var version = string.Format("V{0}_{1}", XChartsMgr.version, XChartsMgr.versionDate);
+ var version = string.Format("v{0}_{1}", XChartsMgr.version, XChartsMgr.versionDate);
if (m_EnableTextMeshPro.boolValue)
{
version += " TMP";
@@ -243,10 +243,10 @@ namespace XCharts
{
m_Chart.RemoveChartObject();
}
- if (GUILayout.Button("Check XCharts Update"))
- {
- CheckVersionEditor.ShowWindow();
- }
+ // if (GUILayout.Button("Check XCharts Update"))
+ // {
+ // CheckVersionEditor.ShowWindow();
+ // }
if (m_CheckWarning)
{
EditorGUILayout.BeginHorizontal();
diff --git a/Editor/Window/CheckVersionEditor.cs b/Editor/Window/CheckVersionEditor.cs
index 4611b606..02d52453 100644
--- a/Editor/Window/CheckVersionEditor.cs
+++ b/Editor/Window/CheckVersionEditor.cs
@@ -37,7 +37,7 @@ namespace XCharts
GUILayout.Label("The current version: " + mgr.nowVersion);
if (mgr.needUpdate && !mgr.isCheck)
{
- GUILayout.Label("The latest version: " + mgr.newVersion);
+ GUILayout.Label("The remote version: " + mgr.newVersion);
GUILayout.Label("");
if (mgr.isCheck) GUILayout.Label("check ...");
else if (mgr.isNetworkError) GUILayout.Label("check failed: " + mgr.networkError);
@@ -72,9 +72,9 @@ namespace XCharts
}
else
{
- if (mgr.isCheck) GUILayout.Label("The latest version: checking ...");
+ if (mgr.isCheck) GUILayout.Label("The remote version: checking ...");
else if (mgr.isNetworkError) GUILayout.Label("check failed: " + mgr.networkError);
- else GUILayout.Label("The latest version: " + mgr.newVersion);
+ else GUILayout.Label("The remote version: " + mgr.newVersion);
GUILayout.Label("");
if (!mgr.isNetworkError && !mgr.needUpdate && !mgr.isCheck)
diff --git a/README.md b/README.md
index e2daa9c3..4f91ad78 100644
--- a/README.md
+++ b/README.md
@@ -10,16 +10,35 @@
一款基于UGUI的数据可视化图表插件。
-
-
-[](https://www.npmjs.org/package/unity-ugui-xcharts)
-[](https://github.com/monitor1394/unity-ugui-XCharts/releases)
-
-[](https://github.com/monitor1394/unity-ugui-XCharts/releases)
-[](https://www.npmjs.org/package/unity-ugui-xcharts)
-[](https://www.npmjs.org/package/unity-ugui-xcharts)
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
A powerful, easy-to-use, configurable charting and data visualization library for Unity. Supporting line, bar, pie, radar, scatter, heatmap, gauge, ring, polar, liquid and other common chart.
diff --git a/Runtime/Internal/CoordinateChart.cs b/Runtime/Internal/CoordinateChart.cs
index 442de467..348ddb8e 100644
--- a/Runtime/Internal/CoordinateChart.cs
+++ b/Runtime/Internal/CoordinateChart.cs
@@ -1021,7 +1021,8 @@ namespace XCharts
pX += startX - yAxis.axisTick.GetLength(m_Theme.axis.tickLength);
}
UGL.DrawLine(vh, new Vector3(startX, pY), new Vector3(pX, pY),
- yAxis.axisTick.GetWidth(m_Theme.axis.tickWidth), m_Theme.axis.tickColor);
+ yAxis.axisTick.GetWidth(m_Theme.axis.tickWidth),
+ yAxis.axisTick.GetColor(m_Theme.axis.tickColor));
}
totalWidth += scaleWidth;
}
@@ -1038,7 +1039,8 @@ namespace XCharts
var startPos = new Vector3(lineX, grid.runtimeY + grid.runtimeHeight);
var arrowPos = new Vector3(lineX, grid.runtimeY);
UGL.DrawArrow(vh, startPos, arrowPos, axisArrow.width, axisArrow.height,
- axisArrow.offset, axisArrow.dent, axisArrow.GetColor(m_Theme.axis.lineColor));
+ axisArrow.offset, axisArrow.dent,
+ axisArrow.GetColor(yAxis.axisLine.GetColor(m_Theme.axis.lineColor)));
}
else
{
@@ -1046,7 +1048,8 @@ namespace XCharts
var startPos = new Vector3(lineX, grid.runtimeX);
var arrowPos = new Vector3(lineX, grid.runtimeY + grid.runtimeHeight + lineWidth);
UGL.DrawArrow(vh, startPos, arrowPos, axisArrow.width, axisArrow.height,
- axisArrow.offset, axisArrow.dent, axisArrow.GetColor(m_Theme.axis.lineColor));
+ axisArrow.offset, axisArrow.dent,
+ axisArrow.GetColor(yAxis.axisLine.GetColor(m_Theme.axis.lineColor)));
}
}
}
@@ -1127,7 +1130,8 @@ namespace XCharts
pY += startY - xAxis.axisTick.GetLength(m_Theme.axis.tickLength);
}
UGL.DrawLine(vh, new Vector3(pX, startY), new Vector3(pX, pY),
- xAxis.axisTick.GetWidth(m_Theme.axis.tickWidth), m_Theme.axis.tickColor);
+ xAxis.axisTick.GetWidth(m_Theme.axis.tickWidth),
+ xAxis.axisTick.GetColor(m_Theme.axis.tickColor));
}
totalWidth += scaleWidth;
}
@@ -1144,14 +1148,16 @@ namespace XCharts
var startPos = new Vector3(grid.runtimeX + grid.runtimeWidth, lineY);
var arrowPos = new Vector3(grid.runtimeX, lineY);
UGL.DrawArrow(vh, startPos, arrowPos, axisArrow.width, axisArrow.height,
- axisArrow.offset, axisArrow.dent, axisArrow.GetColor(m_Theme.axis.lineColor));
+ axisArrow.offset, axisArrow.dent,
+ axisArrow.GetColor(xAxis.axisLine.GetColor(m_Theme.axis.lineColor)));
}
else
{
var startPos = new Vector3(grid.runtimeX, lineY);
var arrowPos = new Vector3(grid.runtimeX + grid.runtimeWidth + xAxis.axisLine.GetWidth(m_Theme.axis.lineWidth), lineY);
UGL.DrawArrow(vh, startPos, arrowPos, axisArrow.width, axisArrow.height,
- axisArrow.offset, axisArrow.dent, axisArrow.GetColor(m_Theme.axis.lineColor));
+ axisArrow.offset, axisArrow.dent,
+ axisArrow.GetColor(xAxis.axisLine.GetColor(m_Theme.axis.lineColor)));
}
}
}
diff --git a/Runtime/XChartsMgr.cs b/Runtime/XChartsMgr.cs
index 7264a11f..0be66718 100644
--- a/Runtime/XChartsMgr.cs
+++ b/Runtime/XChartsMgr.cs
@@ -104,7 +104,7 @@ namespace XCharts
{
get
{
- return !isNetworkError && !m_NowVersion.Equals(m_NewVersion);
+ return !isNetworkError && newDate > versionDate;
}
}