diff --git a/Documentation~/en/configuration.md b/Documentation~/en/configuration.md index d98b5929..58c5ec17 100644 --- a/Documentation~/en/configuration.md +++ b/Documentation~/en/configuration.md @@ -1225,7 +1225,7 @@ Text label of chart, to explain some data information about graphic item like va |rotate|||Rotation of label. |autoRotate|false|v3.6.0|auto rotate of label. |distance|||the distance of label to axis line. -|formatter|||label content string template formatter. \n line wrapping is supported. Formatters for some components will not take effect.
Template placeholder have the following, some of which apply only to fixed components:
'{.}' : indicates the dot mark.
'{a}' : indicates the series name.
'{b}' : category value or data name.
'{c}' : data value.
'{d}' : percentage.
'{e}' : indicates the data name.
'{f}' : data sum.
'{g}' : indicates the total number of data.
'{h}' : hexadecimal color value.
'{value}' : The value of the axis or legend.
The following placeholder apply to `UITable` components:
'{name}' : indicates the row name of the table.
'{index}' : indicates the row number of the table.
The following placeholder apply to `UIStatistc` components:
'{title}' : title text.
'{dd}' : day.
'{hh}' : hours.
'{mm}' : minutes.
'{ss}' : second.
'{fff}' : milliseconds.
'{d}' : day.
'{h}' : hours.
'{m}' : minutes.
'{s}' : second.
'{f}' : milliseconds.
Example :{b}:{c}
+|formatter|||label content string template formatter. \n line wrapping is supported. Formatters for some components will not take effect.
Template placeholder have the following, some of which apply only to fixed components:
`{.}` : indicates the dot mark.
`{a}` : indicates the series name.
`{b}` : category value or data name.
`{c}` : data value.
`{d}` : percentage.
`{e}` : indicates the data name.
`{f}` : data sum.
`{g}` : indicates the total number of data.
`{h}` : hexadecimal color value.
`{value}` : The value of the axis or legend.
The following placeholder apply to `UITable` components:
`{name}` : indicates the row name of the table.
`{index}` : indicates the row number of the table.
The following placeholder apply to `UIStatistc` components:
`{title}` : title text.
`{dd}` : day.
`{hh}` : hours.
`{mm}` : minutes.
`{ss}` : second.
`{fff}` : milliseconds.
`{d}` : day.
`{h}` : hours.
`{m}` : minutes.
`{s}` : second.
`{f}` : milliseconds.
Example :{b}:{c}
|numericFormatter|||Standard numeric format string. Used to format numeric values and display them as strings. Use the Axx format: A is a single-character format specifier that supports C currency, D decimal, E exponent, F fixed-point number, G regular, N number, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. reference: https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings |width|0||the width of label. If set as default value 0, it means than the label width auto set as the text width. |height|0||the height of label. If set as default value 0, it means than the label height auto set as the text height. diff --git a/README-en.md b/README-en.md index e7b0b9f1..bf6ac6cb 100644 --- a/README-en.md +++ b/README-en.md @@ -96,7 +96,7 @@ A powerful and easy-to-use data visualization library for Unity. It supports mo * Import `XCharts` unitypackage or source code into the project. * Right-click `Hierarchy` view and choose `XCharts->LineChart` to create a default LineChart. * You can adjust the parameters of each component in `Inspector` and see the real-time effects in `Game` view. -* For more details, see [[XCharts Tutorial: 5-minute tutorial]](Documentation~/zh/tutorial01.md) +* For more details, see [[XCharts Tutorial: 5-minute tutorial]](Documentation~/en/tutorial01.md) * For the first time, it is recommended to read the tutorial carefully. ## Branch @@ -120,7 +120,7 @@ A: Support code to dynamically add and modify data, but data needs to be parsed A: It is currently only supported on Unity. Theoretically any version of Unity that supports `UGUI` can run `XCharts`. * What about the jags? What magnitude of data is supported? -A: XCharts is based on UGUI implementation, so the problems encountered in UGUI will also exist in XCharts. For example, the sawtooth problem, such as the number of vertices in `Mesh` exceeds `65535`. Solutions to these two problems can be found in [Q&A 16](Documentation~/zh/faq.md) and [Q&A 27](Documentation~/zh/faq.md). +A: XCharts is based on UGUI implementation, so the problems encountered in UGUI will also exist in XCharts. For example, the sawtooth problem, such as the number of vertices in `Mesh` exceeds `65535`. Solutions to these two problems can be found in [Q&A 16](Documentation~/en/faq.md) and [Q&A 27](Documentation~/en/faq.md). Due to the `Mesh` of the `65535` vertex limit, the current `XCharts` single `Line` supports about `20,000` of data, of course, open sampling can support more data to draw, but at the same time it will consume more CPU. ## Changelog diff --git a/Runtime/Component/Label/LabelStyle.cs b/Runtime/Component/Label/LabelStyle.cs index d5058eac..8af39460 100644 --- a/Runtime/Component/Label/LabelStyle.cs +++ b/Runtime/Component/Label/LabelStyle.cs @@ -121,31 +121,31 @@ namespace XCharts.Runtime /// /// label content string template formatter. \n line wrapping is supported. Formatters for some components will not take effect.
/// Template placeholder have the following, some of which apply only to fixed components:
- /// '{.}' : indicates the dot mark.
- /// '{a}' : indicates the series name.
- /// '{b}' : category value or data name.
- /// '{c}' : data value.
- /// '{d}' : percentage.
- /// '{e}' : indicates the data name.
- /// '{f}' : data sum.
- /// '{g}' : indicates the total number of data.
- /// '{h}' : hexadecimal color value.
- /// '{value}' : The value of the axis or legend.
+ /// `{.}` : indicates the dot mark.
+ /// `{a}` : indicates the series name.
+ /// `{b}` : category value or data name.
+ /// `{c}` : data value.
+ /// `{d}` : percentage.
+ /// `{e}` : indicates the data name.
+ /// `{f}` : data sum.
+ /// `{g}` : indicates the total number of data.
+ /// `{h}` : hexadecimal color value.
+ /// `{value}` : The value of the axis or legend.
/// The following placeholder apply to `UITable` components:
- /// '{name}' : indicates the row name of the table.
- /// '{index}' : indicates the row number of the table.
+ /// `{name}` : indicates the row name of the table.
+ /// `{index}` : indicates the row number of the table.
/// The following placeholder apply to `UIStatistc` components:
- /// '{title}' : title text.
- /// '{dd}' : day.
- /// '{hh}' : hours.
- /// '{mm}' : minutes.
- /// '{ss}' : second.
- /// '{fff}' : milliseconds.
- /// '{d}' : day.
- /// '{h}' : hours.
- /// '{m}' : minutes.
- /// '{s}' : second.
- /// '{f}' : milliseconds.
+ /// `{title}` : title text.
+ /// `{dd}` : day.
+ /// `{hh}` : hours.
+ /// `{mm}` : minutes.
+ /// `{ss}` : second.
+ /// `{fff}` : milliseconds.
+ /// `{d}` : day.
+ /// `{h}` : hours.
+ /// `{m}` : minutes.
+ /// `{s}` : second.
+ /// `{f}` : milliseconds.
/// Example :{b}:{c}
/// ||标签内容字符串模版格式器。支持用 \n 换行。部分组件的格式器会不生效。
/// 模板通配符有以下这些,部分只适用于固定的组件:
diff --git a/Runtime/Internal/XChartsMgr.cs b/Runtime/Internal/XChartsMgr.cs index d013fa7c..19fb8245 100644 --- a/Runtime/Internal/XChartsMgr.cs +++ b/Runtime/Internal/XChartsMgr.cs @@ -22,7 +22,7 @@ namespace XCharts.Runtime public static class XChartsMgr { public static readonly string version = "3.8.2"; - public static readonly int versionDate = 20231101; + public static readonly int versionDate = 20231115; public static string fullVersion { get { return version + "-" + versionDate; } } internal static List chartList = new List(); diff --git a/package.json b/package.json index 2a1ff57d..f8ece709 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "author": "monitor1394", "license": "MIT", "version": "3.8.2", - "date": "20231101", - "checkdate": "20231101", + "date": "20231115", + "checkdate": "20231115", "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": [