From 57f9416c545c8acf059b5d37628e17324ae59a2d Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sat, 11 Jul 2020 07:52:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation/xcharts-configuration-EN.md | 48 +++++++++---------- Examples/Runtime.meta | 8 ++++ Examples/Runtime/Example00_CheatSheet.cs.meta | 11 +++++ Examples/Runtime/Example01_UpdateData.cs.meta | 11 +++++ Examples/Runtime/Example02_ChartEvent.cs.meta | 11 +++++ .../Runtime/Example03_ChartAnimation.cs.meta | 11 +++++ Examples/Runtime/Example10_LineChart.cs.meta | 11 +++++ .../Runtime/Example11_AddSinCurve.cs.meta | 11 +++++ .../Runtime/Example12_CustomDrawing.cs.meta | 11 +++++ Examples/Runtime/Example13_LineSimple.cs.meta | 11 +++++ Examples/Runtime/Example20_BarChart.cs.meta | 11 +++++ Examples/Runtime/Example30_PieChart.cs.meta | 11 +++++ .../Runtime/Example31_PieUpdateName.cs.meta | 11 +++++ Examples/Runtime/Example40_Radar.cs.meta | 11 +++++ .../Runtime/Example41_RadarUpdate.cs.meta | 11 +++++ Examples/Runtime/Example50_Scatter.cs.meta | 11 +++++ Examples/Runtime/Example60_Heatmap.cs.meta | 11 +++++ Examples/Runtime/Example70_Gauge.cs.meta | 11 +++++ Examples/Runtime/Example80_Polar.cs.meta | 11 +++++ Examples/Runtime/Example_Dynamic.cs.meta | 11 +++++ Examples/Runtime/Example_LargeData.cs.meta | 11 +++++ Examples/Runtime/Example_PieChart.cs.meta | 11 +++++ Examples/Runtime/Example_Test.cs.meta | 11 +++++ .../XCharts.Examples.Runtime.asmdef.meta | 7 +++ Runtime/API/BaseChart_API.cs.meta | 11 +++++ Runtime/API/BaseGraph_API.cs.meta | 11 +++++ Runtime/API/CoordinateChart_API.cs.meta | 11 +++++ Runtime/API/LiquidChart_API.cs.meta | 11 +++++ Runtime/API/PolarChart_API.cs.meta | 11 +++++ Runtime/API/RadarChart_API.cs.meta | 11 +++++ Runtime/API/RingChart_API.cs.meta | 11 +++++ Runtime/BarChart.cs.meta | 11 +++++ Runtime/Component.meta | 8 ++++ Runtime/Component/Main/Tooltip.cs | 28 +++++++++-- Runtime/GaugeChart.cs.meta | 11 +++++ Runtime/HeatmapChart.cs.meta | 11 +++++ Runtime/Helper.meta | 8 ++++ Runtime/Internal.meta | 8 ++++ Runtime/LineChart.cs.meta | 11 +++++ Runtime/LiquidChart.cs.meta | 11 +++++ Runtime/PieChart.cs.meta | 11 +++++ Runtime/PolarChart.cs.meta | 11 +++++ Runtime/RadarChart.cs.meta | 11 +++++ Runtime/RingChart.cs.meta | 11 +++++ Runtime/ScatterChart.cs.meta | 11 +++++ Runtime/XCharts.Runtime.asmdef.meta | 7 +++ 46 files changed, 512 insertions(+), 28 deletions(-) create mode 100644 Examples/Runtime.meta create mode 100644 Examples/Runtime/Example00_CheatSheet.cs.meta create mode 100644 Examples/Runtime/Example01_UpdateData.cs.meta create mode 100644 Examples/Runtime/Example02_ChartEvent.cs.meta create mode 100644 Examples/Runtime/Example03_ChartAnimation.cs.meta create mode 100644 Examples/Runtime/Example10_LineChart.cs.meta create mode 100644 Examples/Runtime/Example11_AddSinCurve.cs.meta create mode 100644 Examples/Runtime/Example12_CustomDrawing.cs.meta create mode 100644 Examples/Runtime/Example13_LineSimple.cs.meta create mode 100644 Examples/Runtime/Example20_BarChart.cs.meta create mode 100644 Examples/Runtime/Example30_PieChart.cs.meta create mode 100644 Examples/Runtime/Example31_PieUpdateName.cs.meta create mode 100644 Examples/Runtime/Example40_Radar.cs.meta create mode 100644 Examples/Runtime/Example41_RadarUpdate.cs.meta create mode 100644 Examples/Runtime/Example50_Scatter.cs.meta create mode 100644 Examples/Runtime/Example60_Heatmap.cs.meta create mode 100644 Examples/Runtime/Example70_Gauge.cs.meta create mode 100644 Examples/Runtime/Example80_Polar.cs.meta create mode 100644 Examples/Runtime/Example_Dynamic.cs.meta create mode 100644 Examples/Runtime/Example_LargeData.cs.meta create mode 100644 Examples/Runtime/Example_PieChart.cs.meta create mode 100644 Examples/Runtime/Example_Test.cs.meta create mode 100644 Examples/Runtime/XCharts.Examples.Runtime.asmdef.meta create mode 100644 Runtime/API/BaseChart_API.cs.meta create mode 100644 Runtime/API/BaseGraph_API.cs.meta create mode 100644 Runtime/API/CoordinateChart_API.cs.meta create mode 100644 Runtime/API/LiquidChart_API.cs.meta create mode 100644 Runtime/API/PolarChart_API.cs.meta create mode 100644 Runtime/API/RadarChart_API.cs.meta create mode 100644 Runtime/API/RingChart_API.cs.meta create mode 100644 Runtime/BarChart.cs.meta create mode 100644 Runtime/Component.meta create mode 100644 Runtime/GaugeChart.cs.meta create mode 100644 Runtime/HeatmapChart.cs.meta create mode 100644 Runtime/Helper.meta create mode 100644 Runtime/Internal.meta create mode 100644 Runtime/LineChart.cs.meta create mode 100644 Runtime/LiquidChart.cs.meta create mode 100644 Runtime/PieChart.cs.meta create mode 100644 Runtime/PolarChart.cs.meta create mode 100644 Runtime/RadarChart.cs.meta create mode 100644 Runtime/RingChart.cs.meta create mode 100644 Runtime/ScatterChart.cs.meta create mode 100644 Runtime/XCharts.Runtime.asmdef.meta diff --git a/Documentation/xcharts-configuration-EN.md b/Documentation/xcharts-configuration-EN.md index 524e3f2a..cd1c00b9 100644 --- a/Documentation/xcharts-configuration-EN.md +++ b/Documentation/xcharts-configuration-EN.md @@ -203,32 +203,30 @@ The component of settings related to text. ## `Tooltip` -提示框组件。 +Tooltip component. -相关参数: - -* `show`: 是否显示提示框组件。 -* `type`: 提示框指示器类型。指示器类型有: - * `Line`: 线性指示器。 - * `Shadow`: 阴影指示器。 - * `None`: 无指示器。 - * `Corss`: 十字准星指示器。坐标轴显示`Label`和交叉线。 -* `formatter`: 提示框内容字符串模版格式器。支持用 `\n` 换行。当`formatter`不为空时,优先使用`formatter`,否则使用`itemFormatter`。 - * 模板变量有`{.}`、`{a}`、`{b}`、`{c}`、`{d}`。 - * `{.}`为当前所指示或`index`为`0`的`serie`的对应颜色的圆点。 - * `{a}`为当前所指示或`index`为`0`的`serie`的系列名`name`。 - * `{b}`为当前所指示或`index`为`0`的`serie`的数据项`serieData`的`name`,或者类目值(如折线图的`X`轴)。 - * `{c}`为当前所指示或`index`为`0`的`serie`的`y`维(`dimesion`为`1`)的数值。 - * `{d}`为当前所指示或`index`为`0`的`serie`的`y`维(`dimesion`为`1`)百分比值,注意不带`%`号。 - * `{.1}`表示指定`index`为`1`的`serie`对应颜色的圆点。 - * `{a1}`、`{b1}`、`{c1}`中的`1`表示指定`index`为`1`的`serie`。 - * `{c1:2}`表示索引为`1`的`serie`的当前指示数据项的第`3`个数据(一个数据项有多个数据,index为`2`表示第`3`个数据)。 - * `{c1:2-2}`表示索引为`1`的`serie`的第`3`个数据项的第`3`个数据(也就是要指定第几个数据项时必须要指定第几个数据)。 - * `{d1:2:f2}`表示单独指定了数值的格式化字符串为`f2`(不指定时用`numericFormatter`)。 - * 示例: `"{a}:{c}"`、`"{a1}:{c1:f1}"`、`"{a1}:{c1:1f1}"` -* `titleFormatter`: 提示框标题内容的字符串模版格式器。支持用 `\n` 换行。仅当`itemFormatter`生效时才有效。可以单独设置占位符`{i}`表示忽略不显示标题内容。 -* `itemFormatter`: 提示框单个`serie`或数据项内容的字符串模版格式器。支持用 `\n` 换行。当`formatter`不为空时,优先使用`formatter`,否则使用`itemFormatter`。 -* `numericFormatter`: 标准数字格式字符串。用于将数值格式化显示为字符串。使用`Axx`的形式: `A`是格式说明符的单字符,支持`C`货币、`D`十进制、`E`指数、`F`顶点数、`G`常规、`N`数字、`P`百分比、`R`往返过程、`X`十六进制等九种。`xx`是精度说明,从`0`-`99`。 +* `show`: Whether to show the tooltip component. +* `type`: Indicator type. Indicator types are: + * `Line`: line indicator. + * `Shadow`: shadow crosshair indicator. + * `None`: no indicator displayed. + * `Corss`: crosshair indicator, which is actually the shortcut of enable two axisPointers of two orthometric axes. +* `formatter`: A string template formatter for the total content of the prompt box. Support for wrapping lines with `\n`. When formatter is not null, use formatter first, otherwise use itemFormatter. + * Template variables are `{.}`, `{a}`, `{b}`, `{c}`, `{d}`. + * `{.}` is the dot of the corresponding color of `serie` that is currently indicated or whose `index` is `0`.` + * `{a}` is the `name` of the `serie` that is currently indicated or whose `index` is `0`. + * `{b}` is the `name` of the `serieData` that is currently indicated or whose `index` is `0`, or a `category` value (such as the X-axis of a line chart). + * `{c}` is the value of a Y-dimension (`dimesion` is 1) from the `serie` that is currently indicated or whose `index` is `0`. + * `{d}` is the percentage value of Y-dimensions (`dimesion` is 1) from the `serie` that is currently indicated or whose `index` is `0`, with no `%` sign. + * `{.1}` represents a dot from serie corresponding color that specifies `index` as `1`. + * `1` in `{a1}`, `{b1}`, `{c1}` represents a `serie` that specifies an `index` of `1`. + * `{c1:2}` represents the third data from `serie`'s current indication data item indexed to `1` (a data item has multiple data, `index` 2 represents the third data). + * `{c1:2-2}` represents the third data item from `serie`'s third data item indexed to `1` (i.e., which data item must be specified to specify). + * `{d1:2: F2}` indicates that a formatted string with a value specified separately is `F2` (`numericFormatter` is used when not specified). + * Example: `"{a}, {c}"`, `"{a1}, {c1: f1}"`, `"{a1}, {c1:0: f1}"`, `"{a1} : {c1:1-1: f1}"` +* `titleFormatter`: The string template formatter for the tooltip title content. Support for wrapping lines with `\n`. This is only valid if the `itemFormatter` is in effect. The placeholder `{I}` can be set separately to indicate that the title is ignored and not displayed. +* `itemFormatter`: a string template formatter for a single Serie or data item content. Support for wrapping lines with `\n`. When `formatter` is not null, use `formatter` first, otherwise use `itemFormatter`. +* `numericFormatter`: Standard numeric format string. Used to format numeric values to display as strings. Using 'Axx' form: 'A' is the single character of the format specifier, supporting 'C' currency, 'D' decimal, 'E' exponent, 'F' number of vertices, 'G' regular, 'N' digits, 'P' percentage, 'R' round tripping, 'X' hex etc. 'XX' is the precision specification, from '0' - '99'. see: * `fixedWidth`: 固定宽度。当同时设置 `fixedWidth` 和 `minWidth` 时,`fixedWidth` 比 `minWidth` 优先级高。 * `fixedHeight`: 固定高度。当同时设置 `fixedHeight` 和 `minHeight` 时,`fixedHeight` 比 `minHeight` 优先级高。 * `minWidth`: 最小宽度。当同时设置 `fixedWidth` 和 `minWidth` 时,`fixedWidth` 比 `minWidth` 优先级高。 diff --git a/Examples/Runtime.meta b/Examples/Runtime.meta new file mode 100644 index 00000000..0e44740f --- /dev/null +++ b/Examples/Runtime.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f67670c9ee0e64262950aaf07562454e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example00_CheatSheet.cs.meta b/Examples/Runtime/Example00_CheatSheet.cs.meta new file mode 100644 index 00000000..2cfe1ac0 --- /dev/null +++ b/Examples/Runtime/Example00_CheatSheet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 677b2673e728a4e308f26a5a9b236277 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example01_UpdateData.cs.meta b/Examples/Runtime/Example01_UpdateData.cs.meta new file mode 100644 index 00000000..827c0515 --- /dev/null +++ b/Examples/Runtime/Example01_UpdateData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d369a0cba6716422cb15efa26bef0918 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example02_ChartEvent.cs.meta b/Examples/Runtime/Example02_ChartEvent.cs.meta new file mode 100644 index 00000000..a57357ad --- /dev/null +++ b/Examples/Runtime/Example02_ChartEvent.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c549dc496cd86467e8286252906562cc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example03_ChartAnimation.cs.meta b/Examples/Runtime/Example03_ChartAnimation.cs.meta new file mode 100644 index 00000000..93e6d6bd --- /dev/null +++ b/Examples/Runtime/Example03_ChartAnimation.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6258ca3b055714eac92804f501011b53 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example10_LineChart.cs.meta b/Examples/Runtime/Example10_LineChart.cs.meta new file mode 100644 index 00000000..b2fcde5b --- /dev/null +++ b/Examples/Runtime/Example10_LineChart.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6155c7e0df4504ebfaf0c671ae200197 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example11_AddSinCurve.cs.meta b/Examples/Runtime/Example11_AddSinCurve.cs.meta new file mode 100644 index 00000000..1f7901be --- /dev/null +++ b/Examples/Runtime/Example11_AddSinCurve.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b380753d3cb4149c4a3a65a1816e0cc7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example12_CustomDrawing.cs.meta b/Examples/Runtime/Example12_CustomDrawing.cs.meta new file mode 100644 index 00000000..c81c9393 --- /dev/null +++ b/Examples/Runtime/Example12_CustomDrawing.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: da550ad36be5f442e96ad021cc10ca68 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example13_LineSimple.cs.meta b/Examples/Runtime/Example13_LineSimple.cs.meta new file mode 100644 index 00000000..45876079 --- /dev/null +++ b/Examples/Runtime/Example13_LineSimple.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c6d0f65efd8e14ebdafa172e0ccbd562 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example20_BarChart.cs.meta b/Examples/Runtime/Example20_BarChart.cs.meta new file mode 100644 index 00000000..c5ef6fdb --- /dev/null +++ b/Examples/Runtime/Example20_BarChart.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 03916f7ca858b446883197ae17e50f16 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example30_PieChart.cs.meta b/Examples/Runtime/Example30_PieChart.cs.meta new file mode 100644 index 00000000..fb74aa5f --- /dev/null +++ b/Examples/Runtime/Example30_PieChart.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0b8649d38981b4b5bbdf16e8f303fa1e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example31_PieUpdateName.cs.meta b/Examples/Runtime/Example31_PieUpdateName.cs.meta new file mode 100644 index 00000000..2afd8a2a --- /dev/null +++ b/Examples/Runtime/Example31_PieUpdateName.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 41195ee7a652f4ef79c22c365d314621 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example40_Radar.cs.meta b/Examples/Runtime/Example40_Radar.cs.meta new file mode 100644 index 00000000..24214450 --- /dev/null +++ b/Examples/Runtime/Example40_Radar.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 95a60d7e7a0fc41ecaec5f48823b70bd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example41_RadarUpdate.cs.meta b/Examples/Runtime/Example41_RadarUpdate.cs.meta new file mode 100644 index 00000000..b0a750e2 --- /dev/null +++ b/Examples/Runtime/Example41_RadarUpdate.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7a2ad6907bd5045ec920b4f0e359535e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example50_Scatter.cs.meta b/Examples/Runtime/Example50_Scatter.cs.meta new file mode 100644 index 00000000..62269c79 --- /dev/null +++ b/Examples/Runtime/Example50_Scatter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5e6c9b864ab644b45ae93df3878ab1dd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example60_Heatmap.cs.meta b/Examples/Runtime/Example60_Heatmap.cs.meta new file mode 100644 index 00000000..9ec94e3c --- /dev/null +++ b/Examples/Runtime/Example60_Heatmap.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e702e0ac05be84dbe9622180d4f6ef71 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example70_Gauge.cs.meta b/Examples/Runtime/Example70_Gauge.cs.meta new file mode 100644 index 00000000..e14aad7b --- /dev/null +++ b/Examples/Runtime/Example70_Gauge.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a3a7b70d5b66640dca4aaecf13d3769f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example80_Polar.cs.meta b/Examples/Runtime/Example80_Polar.cs.meta new file mode 100644 index 00000000..ea734cf4 --- /dev/null +++ b/Examples/Runtime/Example80_Polar.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ca29783da761a4e0e9c5204d5b24b610 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example_Dynamic.cs.meta b/Examples/Runtime/Example_Dynamic.cs.meta new file mode 100644 index 00000000..4dd42ea7 --- /dev/null +++ b/Examples/Runtime/Example_Dynamic.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 310037ac5daa645058285cf176cc9eab +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example_LargeData.cs.meta b/Examples/Runtime/Example_LargeData.cs.meta new file mode 100644 index 00000000..f832dd3c --- /dev/null +++ b/Examples/Runtime/Example_LargeData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 188d38c155a804c7d9d31730d3b12885 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example_PieChart.cs.meta b/Examples/Runtime/Example_PieChart.cs.meta new file mode 100644 index 00000000..925d44ce --- /dev/null +++ b/Examples/Runtime/Example_PieChart.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a36ce96ed11a24212aafad603286a3ad +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/Example_Test.cs.meta b/Examples/Runtime/Example_Test.cs.meta new file mode 100644 index 00000000..7ee7459d --- /dev/null +++ b/Examples/Runtime/Example_Test.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bac63bf58d06d47be8e1759189fbd9ed +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Examples/Runtime/XCharts.Examples.Runtime.asmdef.meta b/Examples/Runtime/XCharts.Examples.Runtime.asmdef.meta new file mode 100644 index 00000000..454b078c --- /dev/null +++ b/Examples/Runtime/XCharts.Examples.Runtime.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 9ca8daef375784f86b76407e76c9045a +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/API/BaseChart_API.cs.meta b/Runtime/API/BaseChart_API.cs.meta new file mode 100644 index 00000000..5006bceb --- /dev/null +++ b/Runtime/API/BaseChart_API.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d078e85e5877d4d0f990c8dc43006247 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/API/BaseGraph_API.cs.meta b/Runtime/API/BaseGraph_API.cs.meta new file mode 100644 index 00000000..f685568a --- /dev/null +++ b/Runtime/API/BaseGraph_API.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e17adfd3dc62d435cb79fa8c330fe186 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/API/CoordinateChart_API.cs.meta b/Runtime/API/CoordinateChart_API.cs.meta new file mode 100644 index 00000000..e1c75f46 --- /dev/null +++ b/Runtime/API/CoordinateChart_API.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 032e5d8f514854bf39f5fd7052119271 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/API/LiquidChart_API.cs.meta b/Runtime/API/LiquidChart_API.cs.meta new file mode 100644 index 00000000..631f910e --- /dev/null +++ b/Runtime/API/LiquidChart_API.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fd14dec4102b848f699bbf42babbe4c4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/API/PolarChart_API.cs.meta b/Runtime/API/PolarChart_API.cs.meta new file mode 100644 index 00000000..352ff64a --- /dev/null +++ b/Runtime/API/PolarChart_API.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 42960f04fcc2442baa061d32386aaaa8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/API/RadarChart_API.cs.meta b/Runtime/API/RadarChart_API.cs.meta new file mode 100644 index 00000000..111916d9 --- /dev/null +++ b/Runtime/API/RadarChart_API.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f17a7aa35fdd3417dab9414f10fe2886 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/API/RingChart_API.cs.meta b/Runtime/API/RingChart_API.cs.meta new file mode 100644 index 00000000..78e0d0dc --- /dev/null +++ b/Runtime/API/RingChart_API.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7a1cd7e0dade8470cb91d6a7971ff022 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/BarChart.cs.meta b/Runtime/BarChart.cs.meta new file mode 100644 index 00000000..76be77d8 --- /dev/null +++ b/Runtime/BarChart.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 535d2697503c2a94a887354e22a5414d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Component.meta b/Runtime/Component.meta new file mode 100644 index 00000000..73353b53 --- /dev/null +++ b/Runtime/Component.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3be5f1d3b129a47dd8e41cffe3b8e428 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Component/Main/Tooltip.cs b/Runtime/Component/Main/Tooltip.cs index 29772472..45741588 100644 --- a/Runtime/Component/Main/Tooltip.cs +++ b/Runtime/Component/Main/Tooltip.cs @@ -17,7 +17,7 @@ namespace XCharts { /// /// Tooltip component. - /// 提示框组件 + /// 提示框组件。 /// [System.Serializable] public class Tooltip : MainComponent @@ -96,6 +96,20 @@ namespace XCharts set { if (PropertyUtility.SetStruct(ref m_Type, value)) SetAllDirty(); } } /// + /// A string template formatter for the total content of the prompt box. Support for wrapping lines with \n. + /// When formatter is not null, use formatter first, otherwise use itemFormatter. + /// Template variables are {.}, {a}, {b}, {c}, {d}. + /// {.} is the dot of the corresponding color of a Serie that is currently indicated or whose index is 0. + /// {a} is the series name of the serie that is currently indicated or whose index is 0. + /// {b} is the name of the data item serieData that is currently indicated or whose index is 0, or a category value (such as the X-axis of a line chart). + /// {c} is the value of a Y-dimension (dimesion is 1) from a Serie that is currently indicated or whose index is 0. + /// {d} is the percentage value of Y-dimensions (dimesion is 1) from serie that is currently indicated or whose index is 0, with no % sign. + /// {.1} represents a dot from serie corresponding color that specifies index as 1. + /// 1 in {a1}, {b1}, {c1} represents a serie that specifies an index of 1. + /// {c1:2} represents the third data from serie's current indication data item indexed to 1 (a data item has multiple data, index 2 represents the third data). + /// {c1:2-2} represents the third data item from serie's third data item indexed to 1 (i.e., which data item must be specified to specify). + /// {d1:2: F2} indicates that a formatted string with a value specified separately is F2 (numericFormatter is used when numericFormatter is not specified). + /// Example: "{a}, {c}", "{a1}, {c1: f1}", "{a1}, {c1:0: f1}", "{a1} : {c1:1-1: f1}" /// 提示框总内容的字符串模版格式器。支持用 \n 换行。当formatter不为空时,优先使用formatter,否则使用itemFormatter。 /// 模板变量有{.}、{a}、{b}、{c}、{d}。 /// {.}为当前所指示或index为0的serie的对应颜色的圆点。 @@ -108,14 +122,19 @@ namespace XCharts /// {c1:2}表示索引为1的serie的当前指示数据项的第3个数据(一个数据项有多个数据,index为2表示第3个数据)。 /// {c1:2-2}表示索引为1的serie的第3个数据项的第3个数据(也就是要指定第几个数据项时必须要指定第几个数据)。 /// {d1:2:f2}表示单独指定了数值的格式化字符串为f2(不指定时用numericFormatter)。 - /// 示例:"{a}:{c}"、"{a1}:{c1:f1}"、"{a1}:{c1:0:f1}"、"{a1}:{c1:1-1:f1}"、 + /// 示例:"{a}:{c}"、"{a1}:{c1:f1}"、"{a1}:{c1:0:f1}"、"{a1}:{c1:1-1:f1}" /// public string formatter { get { return m_Formatter; } set { m_Formatter = value; } } /// + /// The string template formatter for the tooltip title content. Support for wrapping lines with \n. + /// This is only valid if the itemFormatter is in effect. + /// The placeholder {I} can be set separately to indicate that the title is ignored and not displayed. /// 提示框标题内容的字符串模版格式器。支持用 \n 换行。仅当itemFormatter生效时才有效。可以单独设置占位符{i}表示忽略不显示title。 /// public string titleFormatter { get { return m_TitleFormatter; } set { m_TitleFormatter = value; } } /// + /// a string template formatter for a single Serie or data item content. Support for wrapping lines with \n. + /// When formatter is not null, use formatter first, otherwise use itemFormatter. /// 提示框单个serie或数据项内容的字符串模版格式器。支持用 \n 换行。当formatter不为空时,优先使用formatter,否则使用itemFormatter。 /// public string itemFormatter { get { return m_ItemFormatter; } set { m_ItemFormatter = value; } } @@ -141,7 +160,10 @@ namespace XCharts [Obsolete("Use Tooltip.textStyle.fontStyle instead.", true)] public FontStyle fontStyle { get; set; } /// - /// Standard numeric format strings. + /// Standard numeric format string. Used to format numeric values to display as strings. + /// Using 'Axx' form: 'A' is the single character of the format specifier, supporting 'C' currency, + /// 'D' decimal, 'E' exponent, 'F' number of vertices, 'G' regular, 'N' digits, 'P' percentage, + /// 'R' round tripping, 'X' hex etc. 'XX' is the precision specification, from '0' - '99'. /// 标准数字格式字符串。用于将数值格式化显示为字符串。 /// 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。 /// 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings diff --git a/Runtime/GaugeChart.cs.meta b/Runtime/GaugeChart.cs.meta new file mode 100644 index 00000000..edb0c1bd --- /dev/null +++ b/Runtime/GaugeChart.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2c7cdc3b6d7f9473289a599c00a2569c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/HeatmapChart.cs.meta b/Runtime/HeatmapChart.cs.meta new file mode 100644 index 00000000..0cceaa5a --- /dev/null +++ b/Runtime/HeatmapChart.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 31aa03cd4ce594c239ae746791b3b59f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Helper.meta b/Runtime/Helper.meta new file mode 100644 index 00000000..f8b14dc7 --- /dev/null +++ b/Runtime/Helper.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 58d150a402b5e4bfcbec6a28cba7ed44 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Internal.meta b/Runtime/Internal.meta new file mode 100644 index 00000000..791d17b7 --- /dev/null +++ b/Runtime/Internal.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 750348e0c6842d74e872391f6ea942da +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/LineChart.cs.meta b/Runtime/LineChart.cs.meta new file mode 100644 index 00000000..f3456660 --- /dev/null +++ b/Runtime/LineChart.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b4f38bd00b4648c448cabfc167538f7c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/LiquidChart.cs.meta b/Runtime/LiquidChart.cs.meta new file mode 100644 index 00000000..c80a4829 --- /dev/null +++ b/Runtime/LiquidChart.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 41f7e109291bd44de96fccf526e9c7f1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/PieChart.cs.meta b/Runtime/PieChart.cs.meta new file mode 100644 index 00000000..a2a53c54 --- /dev/null +++ b/Runtime/PieChart.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d44276ba809fd92408b296835f6f7658 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/PolarChart.cs.meta b/Runtime/PolarChart.cs.meta new file mode 100644 index 00000000..c6712164 --- /dev/null +++ b/Runtime/PolarChart.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 52fd81110b7774a4096479f4cd777579 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/RadarChart.cs.meta b/Runtime/RadarChart.cs.meta new file mode 100644 index 00000000..2e638a32 --- /dev/null +++ b/Runtime/RadarChart.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d2231a0d3e3a5b043b074f6739be4a86 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/RingChart.cs.meta b/Runtime/RingChart.cs.meta new file mode 100644 index 00000000..a46c903b --- /dev/null +++ b/Runtime/RingChart.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0ad8949f652ee4376a4a4fe5cb32029f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/ScatterChart.cs.meta b/Runtime/ScatterChart.cs.meta new file mode 100644 index 00000000..efbd890f --- /dev/null +++ b/Runtime/ScatterChart.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bf16aac0bd6c24a8da75846c34c5193e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/XCharts.Runtime.asmdef.meta b/Runtime/XCharts.Runtime.asmdef.meta new file mode 100644 index 00000000..2b082067 --- /dev/null +++ b/Runtime/XCharts.Runtime.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: dd8043639e4014317a7246f064330196 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: