From cd35d00e063679ac762c5bf8c3828bff332515ef Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Tue, 13 Apr 2021 20:56:33 +0800 Subject: [PATCH] v2.1.1 --- Assets/XCharts/CHANGELOG-EN.md | 5 +++++ Assets/XCharts/CHANGELOG.md | 5 +++++ Assets/XCharts/README.md | 11 ++++++----- .../Internal/CoordinateChart_DrawCandlestick.cs | 1 - Assets/XCharts/Runtime/XChartsMgr.cs | 4 ++-- Assets/XCharts/package.json | 6 +++--- Assets/XCharts/version.json | 6 +++--- 7 files changed, 24 insertions(+), 14 deletions(-) diff --git a/Assets/XCharts/CHANGELOG-EN.md b/Assets/XCharts/CHANGELOG-EN.md index 0daedd88..3c24566c 100644 --- a/Assets/XCharts/CHANGELOG-EN.md +++ b/Assets/XCharts/CHANGELOG-EN.md @@ -2,6 +2,7 @@ # 更新日志 [Latest](#Latest) +[v2.1.1](#v2.1.1) [v2.1.0](#v2.1.0) [v2.0.1](#v2.0.1) [v2.0.0](#v2.0.0) @@ -33,6 +34,10 @@ ## Latest +## v2.1.1 + +* (2021.04.13) Define the code and clear `Warning` +* (2021.04.13) Fixed compatibility issues with `Unity` version * (2021.04.12) Fixed problem `missing class attribute 'ExtensionOfNativeClass'` after Theme refactoring #131 ## v2.1.0 diff --git a/Assets/XCharts/CHANGELOG.md b/Assets/XCharts/CHANGELOG.md index c40964da..132ea69f 100644 --- a/Assets/XCharts/CHANGELOG.md +++ b/Assets/XCharts/CHANGELOG.md @@ -2,6 +2,7 @@ # 更新日志 [Latest](#Latest) +[v2.1.1](#v2.1.1) [v2.1.0](#v2.1.0) [v2.0.1](#v2.0.1) [v2.0.0](#v2.0.0) @@ -33,6 +34,10 @@ ## Latest +## v2.1.1 + +* (2021.04.13) 整理代码,清除`Warning` +* (2021.04.13) 修复`Unity`版本兼容问题 * (2021.04.12) 修复`Theme`重构后引起的`missing class attribute 'ExtensionOfNativeClass'`的问题 #131 ## v2.1.0 diff --git a/Assets/XCharts/README.md b/Assets/XCharts/README.md index 4aa49cbc..d17fbb32 100644 --- a/Assets/XCharts/README.md +++ b/Assets/XCharts/README.md @@ -51,14 +51,15 @@ A powerful, easy-to-use, configurable charting and data visualization library fo ## XCharts 2.0 -* Framework reconstruction, layered rendering, optimized scalability, support more data. -* Support for TextMeshPro. +* Underlevel reconstruction, layered rendering, optimized scalability, support more data. * Support for multi-component patterns. * Support for any combination of most charts. * Support theme customization, import and export, and more theme configuration parameters. * Support global adjustment of configuration parameters. -* Better editing interface. -* Other details optimized. +* Added support for `TextMeshPro`. +* Added `CandlestickChart`. +* Added `GanttChart`. +* __ Note:__ `2.0` has undergone a lot of refactoring and adjustments and is not fully compatible with version `1.0`, so `1.0` should not be directly upgraded to `2.0`. Some parameter Settings may be reset to default values after upgrading. ## Features @@ -166,7 +167,7 @@ The following is the relationship structure of LineChart: * Download the source code or `unitypackage` to import into your project. If `Unity` version are `2018.3` or above, it is recommended to import packages through `Package Manager`: 1. Open the `manifest.json` file under `Packages` directory and add under `dependencies`: ``` json - "com.monitor1394.xcharts": "https://github.com/monitor1394/unity-ugui-XCharts.git#upm", + "com.monitor1394.xcharts": "https://github.com/monitor1394/unity-ugui-XCharts.git#2.0-upm", ``` 2. Going back to `Unity`, it may take 3 to 5 minutes to download. 3. If you want to delete `XCharts`, just delete the content added in step 1. diff --git a/Assets/XCharts/Runtime/Internal/CoordinateChart_DrawCandlestick.cs b/Assets/XCharts/Runtime/Internal/CoordinateChart_DrawCandlestick.cs index 0ce5c8f4..6cf30b06 100644 --- a/Assets/XCharts/Runtime/Internal/CoordinateChart_DrawCandlestick.cs +++ b/Assets/XCharts/Runtime/Internal/CoordinateChart_DrawCandlestick.cs @@ -22,7 +22,6 @@ namespace XCharts var xAxis = m_XAxes[serie.xAxisIndex]; var grid = GetSerieGridOrDefault(serie); float categoryWidth = AxisHelper.GetDataWidth(xAxis, grid.runtimeWidth, showData.Count, dataZoom); - float barGap = GetBarGap(); float barWidth = serie.GetBarWidth(categoryWidth); float space = (categoryWidth - barWidth) / 2; int maxCount = serie.maxShow > 0 diff --git a/Assets/XCharts/Runtime/XChartsMgr.cs b/Assets/XCharts/Runtime/XChartsMgr.cs index 80ee0f88..21a86a32 100644 --- a/Assets/XCharts/Runtime/XChartsMgr.cs +++ b/Assets/XCharts/Runtime/XChartsMgr.cs @@ -36,8 +36,8 @@ namespace XCharts [ExecuteInEditMode] public class XChartsMgr : MonoBehaviour { - internal static string _version = "2.1.0"; - internal static int _versionDate = 20210407; + internal static string _version = "2.1.1"; + internal static int _versionDate = 20210413; public static string version { get { return _version; } } public static int versionDate { get { return _versionDate; } } public static string fullVersion { get { return version + "-" + versionDate; } } diff --git a/Assets/XCharts/package.json b/Assets/XCharts/package.json index 56108889..231ca9f7 100644 --- a/Assets/XCharts/package.json +++ b/Assets/XCharts/package.json @@ -1,9 +1,9 @@ { "name": "com.monitor1394.xcharts", "displayName": "XCharts", - "version": "2.1.0", - "date": "20210407", - "checkdate": "20210407", + "version": "2.1.1", + "date": "20210413", + "checkdate": "20210413", "desc": "如果 XCharts 对您有帮助,希望您能在 Github 上点 Star 支持,非常感谢!", "unity": "2018.3", "description": "A charting and data visualization library for Unity.", diff --git a/Assets/XCharts/version.json b/Assets/XCharts/version.json index 3e8fa119..15a83ae6 100644 --- a/Assets/XCharts/version.json +++ b/Assets/XCharts/version.json @@ -1,7 +1,7 @@ { - "version": "2.1.0", - "date": "20210407", - "checkdate": "20210407", + "version": "2.1.1", + "date": "20210413", + "checkdate": "20210413", "desc": "如果 XCharts 对您有帮助,希望您能在 Github 上点 Star 支持,非常感谢!", "homepage": "https://github.com/monitor1394/unity-ugui-XCharts" } \ No newline at end of file