mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-28 12:08:46 +00:00
v2.1.1
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
|
|
||||||
[Latest](#Latest)
|
[Latest](#Latest)
|
||||||
|
[v2.1.1](#v2.1.1)
|
||||||
[v2.1.0](#v2.1.0)
|
[v2.1.0](#v2.1.0)
|
||||||
[v2.0.1](#v2.0.1)
|
[v2.0.1](#v2.0.1)
|
||||||
[v2.0.0](#v2.0.0)
|
[v2.0.0](#v2.0.0)
|
||||||
@@ -33,6 +34,10 @@
|
|||||||
|
|
||||||
## Latest
|
## 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
|
* (2021.04.12) Fixed problem `missing class attribute 'ExtensionOfNativeClass'` after Theme refactoring #131
|
||||||
|
|
||||||
## v2.1.0
|
## v2.1.0
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
|
|
||||||
[Latest](#Latest)
|
[Latest](#Latest)
|
||||||
|
[v2.1.1](#v2.1.1)
|
||||||
[v2.1.0](#v2.1.0)
|
[v2.1.0](#v2.1.0)
|
||||||
[v2.0.1](#v2.0.1)
|
[v2.0.1](#v2.0.1)
|
||||||
[v2.0.0](#v2.0.0)
|
[v2.0.0](#v2.0.0)
|
||||||
@@ -33,6 +34,10 @@
|
|||||||
|
|
||||||
## Latest
|
## Latest
|
||||||
|
|
||||||
|
## v2.1.1
|
||||||
|
|
||||||
|
* (2021.04.13) 整理代码,清除`Warning`
|
||||||
|
* (2021.04.13) 修复`Unity`版本兼容问题
|
||||||
* (2021.04.12) 修复`Theme`重构后引起的`missing class attribute 'ExtensionOfNativeClass'`的问题 #131
|
* (2021.04.12) 修复`Theme`重构后引起的`missing class attribute 'ExtensionOfNativeClass'`的问题 #131
|
||||||
|
|
||||||
## v2.1.0
|
## v2.1.0
|
||||||
|
|||||||
@@ -51,14 +51,15 @@ A powerful, easy-to-use, configurable charting and data visualization library fo
|
|||||||
|
|
||||||
## XCharts 2.0
|
## XCharts 2.0
|
||||||
|
|
||||||
* Framework reconstruction, layered rendering, optimized scalability, support more data.
|
* Underlevel reconstruction, layered rendering, optimized scalability, support more data.
|
||||||
* Support for TextMeshPro.
|
|
||||||
* Support for multi-component patterns.
|
* Support for multi-component patterns.
|
||||||
* Support for any combination of most charts.
|
* Support for any combination of most charts.
|
||||||
* Support theme customization, import and export, and more theme configuration parameters.
|
* Support theme customization, import and export, and more theme configuration parameters.
|
||||||
* Support global adjustment of configuration parameters.
|
* Support global adjustment of configuration parameters.
|
||||||
* Better editing interface.
|
* Added support for `TextMeshPro`.
|
||||||
* Other details optimized.
|
* 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
|
## 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`:
|
* 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`:
|
1. Open the `manifest.json` file under `Packages` directory and add under `dependencies`:
|
||||||
``` json
|
``` 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.
|
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.
|
3. If you want to delete `XCharts`, just delete the content added in step 1.
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ namespace XCharts
|
|||||||
var xAxis = m_XAxes[serie.xAxisIndex];
|
var xAxis = m_XAxes[serie.xAxisIndex];
|
||||||
var grid = GetSerieGridOrDefault(serie);
|
var grid = GetSerieGridOrDefault(serie);
|
||||||
float categoryWidth = AxisHelper.GetDataWidth(xAxis, grid.runtimeWidth, showData.Count, dataZoom);
|
float categoryWidth = AxisHelper.GetDataWidth(xAxis, grid.runtimeWidth, showData.Count, dataZoom);
|
||||||
float barGap = GetBarGap();
|
|
||||||
float barWidth = serie.GetBarWidth(categoryWidth);
|
float barWidth = serie.GetBarWidth(categoryWidth);
|
||||||
float space = (categoryWidth - barWidth) / 2;
|
float space = (categoryWidth - barWidth) / 2;
|
||||||
int maxCount = serie.maxShow > 0
|
int maxCount = serie.maxShow > 0
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ namespace XCharts
|
|||||||
[ExecuteInEditMode]
|
[ExecuteInEditMode]
|
||||||
public class XChartsMgr : MonoBehaviour
|
public class XChartsMgr : MonoBehaviour
|
||||||
{
|
{
|
||||||
internal static string _version = "2.1.0";
|
internal static string _version = "2.1.1";
|
||||||
internal static int _versionDate = 20210407;
|
internal static int _versionDate = 20210413;
|
||||||
public static string version { get { return _version; } }
|
public static string version { get { return _version; } }
|
||||||
public static int versionDate { get { return _versionDate; } }
|
public static int versionDate { get { return _versionDate; } }
|
||||||
public static string fullVersion { get { return version + "-" + versionDate; } }
|
public static string fullVersion { get { return version + "-" + versionDate; } }
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "com.monitor1394.xcharts",
|
"name": "com.monitor1394.xcharts",
|
||||||
"displayName": "XCharts",
|
"displayName": "XCharts",
|
||||||
"version": "2.1.0",
|
"version": "2.1.1",
|
||||||
"date": "20210407",
|
"date": "20210413",
|
||||||
"checkdate": "20210407",
|
"checkdate": "20210413",
|
||||||
"desc": "如果 XCharts 对您有帮助,希望您能在 Github 上点 Star 支持,非常感谢!",
|
"desc": "如果 XCharts 对您有帮助,希望您能在 Github 上点 Star 支持,非常感谢!",
|
||||||
"unity": "2018.3",
|
"unity": "2018.3",
|
||||||
"description": "A charting and data visualization library for Unity.",
|
"description": "A charting and data visualization library for Unity.",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"version": "2.1.0",
|
"version": "2.1.1",
|
||||||
"date": "20210407",
|
"date": "20210413",
|
||||||
"checkdate": "20210407",
|
"checkdate": "20210413",
|
||||||
"desc": "如果 XCharts 对您有帮助,希望您能在 Github 上点 Star 支持,非常感谢!",
|
"desc": "如果 XCharts 对您有帮助,希望您能在 Github 上点 Star 支持,非常感谢!",
|
||||||
"homepage": "https://github.com/monitor1394/unity-ugui-XCharts"
|
"homepage": "https://github.com/monitor1394/unity-ugui-XCharts"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user