Skip to content

Commit

Permalink
3.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
monitor1394 committed Sep 30, 2024
1 parent df42234 commit 25a06af
Show file tree
Hide file tree
Showing 8 changed files with 196 additions and 98 deletions.
23 changes: 23 additions & 0 deletions Documentation~/en/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# 更新日志

[master](#master)
[v3.12.0](#v3120)
[v3.11.2](#v3112)
[v3.11.1](#v3111)
[v3.11.0](#v3110)
Expand Down Expand Up @@ -71,6 +72,28 @@

## master

## v3.12.0

Version Highlights:

* Added `radiusGradient` parameter for `Ring` to set the gradient direction
* Added support for `date` and `time` in `numericFormatter`
* Improved `origin` parameter setting for `AreaStyle` to define the starting position of area filling
* Adjusted and perfected the documentation
* Other optimizations and fixes

Log Details:

* (2024.09.30) Released version `v3.12.0`
* (2024.09.27) Improved the `5-minute tutorial`
* (2024.09.24) Improved support for multiple Series in `Legend`'s `formatter` (#332)
* (2024.09.22) Adjusted the display style of the `Documentation`
* (2024.09.09) Added support for `date` and `time` in `numericFormatter`
* (2024.09.03) Improved the setting of the `origin` parameter for `AreaStyle` to define the starting position of area filling
* (2024.09.01) Added `radiusGradient` parameter for `Ring` to set the gradient direction
* (2024.09.01) Optimized the position of the first Label when `Axis` is used as a time axis


## v3.11.2

* (2024.08.01) Release `v3.11.2`
Expand Down
Binary file added Documentation~/en/img/tutorial01_axisdata.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Documentation~/en/img/tutorial01_seriedata.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
241 changes: 152 additions & 89 deletions Documentation~/en/tutorial01.md

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions Documentation~/zh/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ slug: /changelog
# 更新日志

[master](#master)
[v3.12.0](#v3120)
[v3.11.2](#v3112)
[v3.11.1](#v3111)
[v3.11.0](#v3110)
Expand Down Expand Up @@ -76,6 +77,19 @@ slug: /changelog

## master

## v3.12.0

版本要点:

* 增加`Ring``radiusGradient`参数设置渐变方向
* 增加`numericFormatter``date``time`的支持
* 完善`AreaStyle``origin`参数设置区域填充起始位置
* 调整和完善文档
* 其他优化和修复

日志详情:

* (2024.09.30) 发布`v3.12.0`版本
* (2024.09.27) 完善`5分钟教程`
* (2024.09.24) 完善`Legend``formatter`对多Serie的支持 (#332)
* (2024.09.22) 调整`Documentation`文档显示样式
Expand Down
8 changes: 3 additions & 5 deletions Documentation~/zh/tutorial01.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ XCharts是一个Unity图表插件,目前只能在Unity平台使用。

## XCharts的获取和导入

XCharts主要通过Github来维护更新和发布,可以到Github主页进行下载获取源码和Pacakge,Github主页:https://github.com/XCharts-Team。

对于无Github访问条件的用户,可以访问[【国内镜像】](https://gitee.com/monitor1394/unity-ugui-XCharts)进行下载。国内镜像的版本更新可能会相对滞后。
XCharts主要通过Github来维护更新和发布,可以到【Github主页】(https://github.com/XCharts-Team)进行下载获取源码和Pacakge;对于无Github访问条件的用户,可以访问[【国内镜像】](https://gitee.com/monitor1394/unity-ugui-XCharts)进行下载。国内镜像的版本更新可能会相对滞后。

XCharts可通过以下任意一种方式导入到你的项目:

Expand Down Expand Up @@ -60,7 +58,7 @@ XCharts-Daemon的导入方式可参考刚才的XCharts导入方式。可以通
### 添加一个简单图表

`Hierarchy`视图下右键`UI->XCharts->LineChart`或菜单栏`XCharts`下拉选择`LineChart`即可快速创建一个默认的折线图出来
`Hierarchy`视图下右键`UI->XCharts->LineChart`或菜单栏`XCharts`下拉选择`LineChart`即可快速创建一个默认的折线图

![linechart1](img/tutorial01_linechart1.png)

Expand Down Expand Up @@ -224,7 +222,7 @@ for (int i = 0; i < 10; i++)

XCharts默认使用的是Unity默认字体`Arial`,在WebGL平台上可能无法显示中文。在将XCharts用在你的项目时,建议先设置好字体:

- 找到`XCharts/Resources/XCSetting.asset`文件,修改里面的`Font`并保存。
- 找到`XCharts/Resources/XCSetting.asset`资源,修改里面的`Font`并保存。
- 找到`XCharts/Resources/XCTheme-Default.asset``XCharts/Resources/XCTheme-Default.asset`两个字体配置,点击`Sync Font from Setting``Sync Font to Sub Theme`按钮将字体同步到主题配置文件上。

字体设置好后,新创建的图表就会用新设置的字体了。对于旧图表,可以点击`Rebuild Chart Object`进行刷新。
Expand Down
4 changes: 2 additions & 2 deletions Runtime/Internal/XChartsMgr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class XChartsVersion
[ExecuteInEditMode]
public static class XChartsMgr
{
public static readonly string version = "3.11.2";
public static readonly int versionDate = 20240801;
public static readonly string version = "3.12.0";
public static readonly int versionDate = 20240930;
public static string fullVersion { get { return version + "-" + versionDate; } }

internal static List<BaseChart> chartList = new List<BaseChart>();
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"author": "monitor1394",
"license": "MIT",
"version": "3.11.2",
"date": "20240801",
"checkdate": "20240801",
"date": "20240930",
"checkdate": "20240930",
"unity": "2018.3",
"description": "A charting and data visualization library for Unity. Support line chart, bar chart, pie chart, radar chart, scatter chart, heatmap chart, ring chart, candlestick chart, polar chart and parallel coordinates.",
"keywords": [
Expand Down

0 comments on commit 25a06af

Please sign in to comment.