From 6d16a9c16a0a126aa94f9ca2275704a5fbee4b5c Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sun, 23 Jun 2024 22:03:09 +0800 Subject: [PATCH 01/34] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`Label`=E5=9C=A8?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E6=97=B6=E4=BC=9A=E5=A0=86=E7=A7=AF?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 2 ++ Runtime/Serie/SerieHandler.cs | 40 ++++++++++++++++++++++++++++++---- 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 238bc2c0..8f32531a 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -74,6 +74,8 @@ slug: /changelog ## master +* (2024.06.23) 修复`Label`在初始化时会堆积的问题 + ## v3.11.0 版本要点: diff --git a/Runtime/Serie/SerieHandler.cs b/Runtime/Serie/SerieHandler.cs index e8983309..8eaea090 100644 --- a/Runtime/Serie/SerieHandler.cs +++ b/Runtime/Serie/SerieHandler.cs @@ -484,6 +484,8 @@ namespace XCharts.Runtime var dataAddDuration = serie.animation.GetAdditionDuration(); var unscaledTime = serie.animation.unscaledTime; var needCheck = serie.context.dataIndexs.Count > 0; + var allLabelZeroPosition = true; + var anyLabelActive = false; foreach (var serieData in serie.data) { if (serieData.labelObject == null && serieData.context.dataLabels.Count <= 0) @@ -518,7 +520,16 @@ namespace XCharts.Runtime SerieLabelHelper.GetFormatterContent(serie, serieData, value, total, currLabel, color, chart); var offset = GetSerieDataLabelOffset(serieData, currLabel); - labelObject.SetActive(currLabel.show && !isIgnore && !serie.IsMinShowLabelValue(value)); + var active = currLabel.show && !isIgnore && !serie.IsMinShowLabelValue(value); + if (active) + { + anyLabelActive = true; + if (!ChartHelper.IsZeroVector(serieData.context.dataPoints[i])) + { + allLabelZeroPosition = false; + } + } + labelObject.SetActive(active); labelObject.SetText(content); labelObject.SetPosition(serieData.context.dataPoints[i] + offset); labelObject.UpdateIcon(currLabel.icon); @@ -539,10 +550,19 @@ namespace XCharts.Runtime ChartCached.NumberToStr(value, currLabel.numericFormatter) : SerieLabelHelper.GetFormatterContent(serie, serieData, value, total, currLabel, color, chart); - serieData.SetLabelActive(currLabel.show && !isIgnore && !serie.IsMinShowLabelValue(value)); + var labelPos = UpdateLabelPosition(serieData, currLabel); + var active = currLabel.show && !isIgnore && !serie.IsMinShowLabelValue(value); + if (active) + { + anyLabelActive = true; + if (!ChartHelper.IsZeroVector(labelPos)) + { + allLabelZeroPosition = false; + } + } + serieData.SetLabelActive(active); serieData.labelObject.UpdateIcon(currLabel.icon); serieData.labelObject.SetText(content); - UpdateLabelPosition(serieData, currLabel); if (currLabel.textStyle.autoColor) { var dataAutoColor = GetSerieDataAutoColor(serieData); @@ -556,6 +576,17 @@ namespace XCharts.Runtime serieData.SetLabelActive(false); } } + if (anyLabelActive && allLabelZeroPosition) + { + foreach (var serieData in serie.data) + { + if (serieData.labelObject == null && serieData.context.dataLabels.Count <= 0) + { + continue; + } + serieData.SetLabelActive(false); + } + } } public virtual void RefreshEndLabelInternal() @@ -579,7 +610,7 @@ namespace XCharts.Runtime m_EndLabel.isAnimationEnd = serie.animation.IsFinish(); } - protected void UpdateLabelPosition(SerieData serieData, LabelStyle currLabel) + protected Vector3 UpdateLabelPosition(SerieData serieData, LabelStyle currLabel) { var labelPosition = GetSerieDataLabelPosition(serieData, currLabel); var offset = GetSerieDataLabelOffset(serieData, currLabel); @@ -591,6 +622,7 @@ namespace XCharts.Runtime else serieData.labelObject.SetRotate(-serieData.context.angle + currLabel.rotate); } + return labelPosition; } public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label) From 9e95b8daa75e9a6168a9c794d249768fac97b5d0 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Mon, 1 Jul 2024 08:15:08 +0800 Subject: [PATCH 02/34] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`Serie`=E6=9C=89?= =?UTF-8?q?=E5=A4=9A=E4=B8=AA=E6=97=B6=E9=A2=9C=E8=89=B2=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 1 + Runtime/Serie/SerieHandler.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 8f32531a..94de0c16 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -74,6 +74,7 @@ slug: /changelog ## master +* (2024.07.01) 修复`Serie`有多个时颜色异常的问题 * (2024.06.23) 修复`Label`在初始化时会堆积的问题 ## v3.11.0 diff --git a/Runtime/Serie/SerieHandler.cs b/Runtime/Serie/SerieHandler.cs index 8eaea090..79a716f1 100644 --- a/Runtime/Serie/SerieHandler.cs +++ b/Runtime/Serie/SerieHandler.cs @@ -155,6 +155,7 @@ namespace XCharts.Runtime { Color32 color1, toColor1; bool needInteract = false; + serie.context.colorIndex = chart.GetLegendRealShowNameIndex(serie.legendName); foreach (var serieData in serie.data) { var state = SerieHelper.GetSerieState(serie, serieData, true); From e2c77794934ac30907e4698fe83cd3689432d34c Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Mon, 1 Jul 2024 08:24:02 +0800 Subject: [PATCH 03/34] 3.11.1 --- Documentation~/en/changelog.md | 7 +++++++ Documentation~/zh/changelog.md | 4 ++++ Runtime/Internal/XChartsMgr.cs | 4 ++-- package.json | 6 +++--- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/Documentation~/en/changelog.md b/Documentation~/en/changelog.md index c1591083..66d2d105 100644 --- a/Documentation~/en/changelog.md +++ b/Documentation~/en/changelog.md @@ -2,6 +2,7 @@ # 更新日志 [master](#master) +[v3.11.1](#v3111) [v3.11.0](#v3110) [v3.10.2](#v3102) [v3.10.1](#v3101) @@ -69,6 +70,12 @@ ## master +## v3.11.1 + +* (2024.07.01) Release `v3.11.1` +* (2024.07.01) Fixed an issue where `Serie` has multiple abnormal colors +* (2024.06.23) Fixed an issue where `labels` would pile up during initialization + ## v3.11.0 Release Highlights: diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 94de0c16..d3c11f42 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -6,6 +6,7 @@ slug: /changelog # 更新日志 [master](#master) +[v3.11.1](#v3111) [v3.11.0](#v3110) [v3.10.2](#v3102) [v3.10.1](#v3101) @@ -74,6 +75,9 @@ slug: /changelog ## master +## v3.11.1 + +* (2024.07.01) 发布`v3.11.1`版本 * (2024.07.01) 修复`Serie`有多个时颜色异常的问题 * (2024.06.23) 修复`Label`在初始化时会堆积的问题 diff --git a/Runtime/Internal/XChartsMgr.cs b/Runtime/Internal/XChartsMgr.cs index 5fccb8ae..7eb671e2 100644 --- a/Runtime/Internal/XChartsMgr.cs +++ b/Runtime/Internal/XChartsMgr.cs @@ -21,8 +21,8 @@ namespace XCharts.Runtime [ExecuteInEditMode] public static class XChartsMgr { - public static readonly string version = "3.11.0"; - public static readonly int versionDate = 20240616; + public static readonly string version = "3.11.1"; + public static readonly int versionDate = 20240701; public static string fullVersion { get { return version + "-" + versionDate; } } internal static List chartList = new List(); diff --git a/package.json b/package.json index b71ac975..7a17faff 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,9 @@ "displayName": "XCharts", "author": "monitor1394", "license": "MIT", - "version": "3.11.0", - "date": "20240616", - "checkdate": "20240616", + "version": "3.11.1", + "date": "20240701", + "checkdate": "20240701", "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": [ From 94d1398bd3d8c86cae4a2cf55d9bb7e0c25764c3 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sat, 6 Jul 2024 11:33:47 +0800 Subject: [PATCH 04/34] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`Chart`=E5=9C=A8?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E5=88=9B=E5=BB=BA=E6=97=B6=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E8=87=AA=E9=80=82=E5=BA=94=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#323)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 2 ++ Runtime/Internal/BaseChart.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index d3c11f42..8f280127 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -75,6 +75,8 @@ slug: /changelog ## master +* (2024.07.06) 修复`Chart`在动态创建时背景没有自适应的问题 (#323) + ## v3.11.1 * (2024.07.01) 发布`v3.11.1`版本 diff --git a/Runtime/Internal/BaseChart.cs b/Runtime/Internal/BaseChart.cs index a347d270..e661013b 100644 --- a/Runtime/Internal/BaseChart.cs +++ b/Runtime/Internal/BaseChart.cs @@ -175,6 +175,7 @@ namespace XCharts.Runtime m_ChartWidth = m_GraphWidth; m_ChartHeight = m_GraphHeight; rectTransform.sizeDelta = new Vector2(m_ChartWidth, m_ChartHeight); + UpdateSize(); } ChartHelper.HideAllObject(transform); m_ChartInited = true; From cdac6acd8c875a87862a0a96ecafa4d2a5d9fac9 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Tue, 9 Jul 2024 23:16:08 +0800 Subject: [PATCH 05/34] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`Label`=E5=9C=A8?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E6=97=B6=E4=BC=9A=E5=A0=86=E7=A7=AF?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Component/Background/BackgroundHandler.cs | 2 +- Runtime/Internal/Object/ChartLabel.cs | 13 ++++++---- Runtime/Internal/Utilities/ChartHelper.cs | 26 ++++++++++--------- Runtime/Serie/SerieHandler.cs | 8 ++---- 4 files changed, 25 insertions(+), 24 deletions(-) diff --git a/Runtime/Component/Background/BackgroundHandler.cs b/Runtime/Component/Background/BackgroundHandler.cs index 0d780d38..bb53f759 100644 --- a/Runtime/Component/Background/BackgroundHandler.cs +++ b/Runtime/Component/Background/BackgroundHandler.cs @@ -50,7 +50,7 @@ namespace XCharts.Runtime var borderColor = component.borderStyle.GetRuntimeBorderColor(); var cornerRadius = component.borderStyle.GetRuntimeCornerRadius(); UGL.DrawRoundRectangleWithBorder(vh, chart.chartRect, backgroundColor, backgroundColor, cornerRadius, - borderWidth, borderColor); + borderWidth, borderColor, 0, 1f); } } } \ No newline at end of file diff --git a/Runtime/Internal/Object/ChartLabel.cs b/Runtime/Internal/Object/ChartLabel.cs index 50d685e7..3cb6cc01 100644 --- a/Runtime/Internal/Object/ChartLabel.cs +++ b/Runtime/Internal/Object/ChartLabel.cs @@ -56,7 +56,7 @@ namespace XCharts.Runtime protected override void Awake() { raycastTarget = false; - SetActive(true); + SetActive(false, true); } public void SetTextPadding(TextPadding padding) @@ -200,10 +200,13 @@ namespace XCharts.Runtime return m_Active; } - public void SetActive(bool flag) + public void SetActive(bool flag, bool force = false) { - m_Active = flag; - ChartHelper.SetActive(gameObject, flag); + if (m_Active == flag && !force) return; + if (ChartHelper.SetActive(gameObject, flag)) + { + m_Active = flag; + } } public void SetTextActive(bool flag) @@ -247,7 +250,7 @@ namespace XCharts.Runtime AdjustIconPos(); if (m_HideIconIfTextEmpty && isIconActive) { - ChartHelper.SetActive(m_IconImage.gameObject, !string.IsNullOrEmpty(text)); + SetIconActive(!string.IsNullOrEmpty(text)); } } return false; diff --git a/Runtime/Internal/Utilities/ChartHelper.cs b/Runtime/Internal/Utilities/ChartHelper.cs index 44298b7c..f2ba7d6b 100644 --- a/Runtime/Internal/Utilities/ChartHelper.cs +++ b/Runtime/Internal/Utilities/ChartHelper.cs @@ -41,22 +41,22 @@ namespace XCharts.Runtime return s_Builder.ToString(); } - public static void SetActive(GameObject gameObject, bool active) + public static bool SetActive(GameObject gameObject, bool active) { - if (gameObject == null) return; - SetActive(gameObject.transform, active); + if (gameObject == null) return false; + return SetActive(gameObject.transform, active); } - public static void SetActive(Image image, bool active) + public static bool SetActive(Image image, bool active) { - if (image == null) return; - SetActive(image.gameObject, active); + if (image == null) return false; + return SetActive(image.gameObject, active); } - public static void SetActive(Text text, bool active) + public static bool SetActive(Text text, bool active) { - if (text == null) return; - SetActive(text.gameObject, active); + if (text == null) return false; + return SetActive(text.gameObject, active); } /// @@ -64,12 +64,14 @@ namespace XCharts.Runtime /// /// /// - public static void SetActive(Transform transform, bool active) + public static bool SetActive(Transform transform, bool active) { - if (transform == null) return; + if (transform == null) return false; if (active) transform.localScale = Vector3.one; else transform.localScale = Vector3.zero; + return true; } + public static void HideAllObject(GameObject obj, string match = null) { if (obj == null) return; @@ -460,7 +462,7 @@ namespace XCharts.Runtime label.color = (!labelStyle.background.autoColor || autoColor == Color.clear) ? labelStyle.background.color : autoColor; label.sprite = labelStyle.background.sprite; - if(label.type != labelStyle.background.type) + if (label.type != labelStyle.background.type) label.type = labelStyle.background.type; } else diff --git a/Runtime/Serie/SerieHandler.cs b/Runtime/Serie/SerieHandler.cs index 79a716f1..e6306bcc 100644 --- a/Runtime/Serie/SerieHandler.cs +++ b/Runtime/Serie/SerieHandler.cs @@ -368,7 +368,7 @@ namespace XCharts.Runtime var textName = string.Format("{0}_{1}_{2}_{3}", s_SerieLabelObjectName, serie.index, serieData.index, i); var label = ChartHelper.AddChartLabel(textName, serieLabelRoot.transform, serieLabel, chart.theme.common, "", dataAutoColor, TextAnchor.MiddleCenter); - label.SetActive(serieLabel.show); + label.SetActive(false); serieData.context.dataLabels.Add(label); } } @@ -377,7 +377,7 @@ namespace XCharts.Runtime var textName = ChartCached.GetSerieLabelName(s_SerieLabelObjectName, serie.index, serieData.index); var label = ChartHelper.AddChartLabel(textName, serieLabelRoot.transform, serieLabel, chart.theme.common, "", dataAutoColor, TextAnchor.MiddleCenter); - label.SetActive(serieLabel.show); + label.SetActive(false); serieData.labelObject = label; } @@ -581,10 +581,6 @@ namespace XCharts.Runtime { foreach (var serieData in serie.data) { - if (serieData.labelObject == null && serieData.context.dataLabels.Count <= 0) - { - continue; - } serieData.SetLabelActive(false); } } From 6d41daa67862068e3ad6db16cef3cb203a7168c7 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Fri, 12 Jul 2024 08:48:01 +0800 Subject: [PATCH 06/34] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`Label`=E5=9C=A8?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E6=97=B6=E4=BC=9A=E5=A0=86=E7=A7=AF?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Internal/Object/ChartLabel.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Runtime/Internal/Object/ChartLabel.cs b/Runtime/Internal/Object/ChartLabel.cs index 3cb6cc01..7295b59a 100644 --- a/Runtime/Internal/Object/ChartLabel.cs +++ b/Runtime/Internal/Object/ChartLabel.cs @@ -22,6 +22,7 @@ namespace XCharts.Runtime private Align m_Align = Align.Left; private Image m_IconImage; private bool m_Active = true; + private bool m_WakeActive = true; public Image icon { @@ -56,7 +57,7 @@ namespace XCharts.Runtime protected override void Awake() { raycastTarget = false; - SetActive(false, true); + SetActive(m_WakeActive, true); } public void SetTextPadding(TextPadding padding) @@ -202,6 +203,7 @@ namespace XCharts.Runtime public void SetActive(bool flag, bool force = false) { + m_WakeActive = flag; if (m_Active == flag && !force) return; if (ChartHelper.SetActive(gameObject, flag)) { From 99d824e3a01d4ba69e106f68d63e1d4f0f71db36 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Fri, 12 Jul 2024 19:53:30 +0800 Subject: [PATCH 07/34] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`Label`=E5=9C=A8?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E6=97=B6=E4=BC=9A=E5=A0=86=E7=A7=AF?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Component/Mark/MarkLineHandler.cs | 2 +- Runtime/Internal/Object/ChartLabel.cs | 4 +--- Runtime/Internal/Utilities/ChartHelper.cs | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/Runtime/Component/Mark/MarkLineHandler.cs b/Runtime/Component/Mark/MarkLineHandler.cs index 13bf6953..7601a432 100644 --- a/Runtime/Component/Mark/MarkLineHandler.cs +++ b/Runtime/Component/Mark/MarkLineHandler.cs @@ -86,7 +86,7 @@ namespace XCharts.Runtime content, Color.clear, TextAnchor.MiddleCenter); var pos = MarkLineHelper.GetLabelPosition(data); label.SetIconActive(false); - label.SetActive(data.label.show && data.runtimeInGrid); + label.SetActive(data.label.show && data.runtimeInGrid, true); label.SetPosition(pos); data.runtimeLabel = label; }; diff --git a/Runtime/Internal/Object/ChartLabel.cs b/Runtime/Internal/Object/ChartLabel.cs index 7295b59a..c43a6c91 100644 --- a/Runtime/Internal/Object/ChartLabel.cs +++ b/Runtime/Internal/Object/ChartLabel.cs @@ -22,7 +22,6 @@ namespace XCharts.Runtime private Align m_Align = Align.Left; private Image m_IconImage; private bool m_Active = true; - private bool m_WakeActive = true; public Image icon { @@ -57,7 +56,7 @@ namespace XCharts.Runtime protected override void Awake() { raycastTarget = false; - SetActive(m_WakeActive, true); + m_Active = ChartHelper.IsActiveByScale(gameObject); } public void SetTextPadding(TextPadding padding) @@ -203,7 +202,6 @@ namespace XCharts.Runtime public void SetActive(bool flag, bool force = false) { - m_WakeActive = flag; if (m_Active == flag && !force) return; if (ChartHelper.SetActive(gameObject, flag)) { diff --git a/Runtime/Internal/Utilities/ChartHelper.cs b/Runtime/Internal/Utilities/ChartHelper.cs index f2ba7d6b..1bfdaba5 100644 --- a/Runtime/Internal/Utilities/ChartHelper.cs +++ b/Runtime/Internal/Utilities/ChartHelper.cs @@ -41,6 +41,23 @@ namespace XCharts.Runtime return s_Builder.ToString(); } + public static bool IsActiveByScale(GameObject gameObject) + { + if (gameObject == null) return false; + return IsActiveByScale(gameObject.transform); + } + + public static bool IsActiveByScale(Image image) + { + if (image == null) return false; + return IsActiveByScale(image.gameObject); + } + + public static bool IsActiveByScale(Transform transform) + { + return transform.localScale != Vector3.zero; + } + public static bool SetActive(GameObject gameObject, bool active) { if (gameObject == null) return false; From b22288eac476292c69d72c3551bcf769a24f596f Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Fri, 12 Jul 2024 21:22:53 +0800 Subject: [PATCH 08/34] =?UTF-8?q?=E4=BC=98=E5=8C=96`Label`=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 1 + Runtime/Component/Axis/AxisHandler.cs | 18 +++++++++--------- .../Axis/RadiusAxis/RadiusAxisHandler.cs | 2 +- Runtime/Component/Comment/CommentHander.cs | 2 +- Runtime/Component/Legend/LegendHelper.cs | 2 +- Runtime/Component/Mark/MarkAreaHandler.cs | 2 +- Runtime/Component/Radar/RadarCoordHandler.cs | 2 +- Runtime/Component/Tooltip/TooltipHandler.cs | 2 +- Runtime/Internal/Pools/SerieLabelPool.cs | 2 +- Runtime/Internal/Utilities/ChartHelper.cs | 2 +- Runtime/Serie/SerieHandler.cs | 8 ++++---- 11 files changed, 22 insertions(+), 21 deletions(-) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 8f280127..e3551017 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -75,6 +75,7 @@ slug: /changelog ## master +* (2024.07.12) 优化`Label`显示体验 * (2024.07.06) 修复`Chart`在动态创建时背景没有自适应的问题 (#323) ## v3.11.1 diff --git a/Runtime/Component/Axis/AxisHandler.cs b/Runtime/Component/Axis/AxisHandler.cs index ef90913b..cb6dac93 100644 --- a/Runtime/Component/Axis/AxisHandler.cs +++ b/Runtime/Component/Axis/AxisHandler.cs @@ -455,7 +455,7 @@ namespace XCharts label = ChartHelper.AddChartLabel(s_DefaultAxisName, axisObj.transform, axis.axisName.labelStyle, chart.theme.axis, axis.axisName.name, autoColor, TextAnchor.MiddleCenter); - label.SetActive(axis.axisName.labelStyle.show); + label.SetActive(axis.axisName.labelStyle.show, true); label.SetPosition(axis.context.start + offset); break; @@ -463,7 +463,7 @@ namespace XCharts label = ChartHelper.AddChartLabel(s_DefaultAxisName, axisObj.transform, axis.axisName.labelStyle, chart.theme.axis, axis.axisName.name, autoColor, TextAnchor.MiddleCenter); - label.SetActive(axis.axisName.labelStyle.show); + label.SetActive(axis.axisName.labelStyle.show, true); label.SetPosition((axis.context.start + axis.context.end) / 2 + offset); break; @@ -471,7 +471,7 @@ namespace XCharts label = ChartHelper.AddChartLabel(s_DefaultAxisName, axisObj.transform, axis.axisName.labelStyle, chart.theme.axis, axis.axisName.name, autoColor, TextAnchor.MiddleCenter); - label.SetActive(axis.axisName.labelStyle.show); + label.SetActive(axis.axisName.labelStyle.show, true); label.SetPosition(axis.context.end + offset); break; } @@ -574,7 +574,7 @@ namespace XCharts label = ChartHelper.AddChartLabel(s_DefaultAxisName, axisObj.transform, axis.axisName.labelStyle, chart.theme.axis, axis.axisName.name, autoColor, TextAnchor.MiddleRight); - label.SetActive(axis.axisName.labelStyle.show); + label.SetActive(axis.axisName.labelStyle.show, true); label.SetPosition(axis.position == Axis.AxisPosition.Top ? new Vector2(zeroPos.x - offset.x, axisStartY + relativedLength + offset.y + axis.offset) : new Vector2(zeroPos.x - offset.x, posY + offset.y)); @@ -584,7 +584,7 @@ namespace XCharts label = ChartHelper.AddChartLabel(s_DefaultAxisName, axisObj.transform, axis.axisName.labelStyle, chart.theme.axis, axis.axisName.name, autoColor, TextAnchor.MiddleCenter); - label.SetActive(axis.axisName.labelStyle.show); + label.SetActive(axis.axisName.labelStyle.show, true); label.SetPosition(axis.position == Axis.AxisPosition.Top ? new Vector2(axisStartX + axisLength / 2 + offset.x, axisStartY + relativedLength - offset.y + axis.offset) : new Vector2(axisStartX + axisLength / 2 + offset.x, posY + offset.y)); @@ -594,7 +594,7 @@ namespace XCharts label = ChartHelper.AddChartLabel(s_DefaultAxisName, axisObj.transform, axis.axisName.labelStyle, chart.theme.axis, axis.axisName.name, autoColor, TextAnchor.MiddleLeft); - label.SetActive(axis.axisName.labelStyle.show); + label.SetActive(axis.axisName.labelStyle.show, true); label.SetPosition(axis.position == Axis.AxisPosition.Top ? new Vector2(axisStartX + axisLength + offset.x, axisStartY + relativedLength + offset.y + axis.offset) : new Vector2(axisStartX + axisLength + offset.x, posY + offset.y)); @@ -611,7 +611,7 @@ namespace XCharts label = ChartHelper.AddChartLabel(s_DefaultAxisName, axisObj.transform, axis.axisName.labelStyle, chart.theme.axis, axis.axisName.name, autoColor, TextAnchor.MiddleCenter); - label.SetActive(axis.axisName.labelStyle.show); + label.SetActive(axis.axisName.labelStyle.show, true); label.SetPosition(axis.position == Axis.AxisPosition.Right ? new Vector2(axisStartX + relativedLength + offset.x + axis.offset, axisStartY - offset.y) : new Vector2(posX + offset.x, axisStartY - offset.y)); @@ -621,7 +621,7 @@ namespace XCharts label = ChartHelper.AddChartLabel(s_DefaultAxisName, axisObj.transform, axis.axisName.labelStyle, chart.theme.axis, axis.axisName.name, autoColor, TextAnchor.MiddleCenter); - label.SetActive(axis.axisName.labelStyle.show); + label.SetActive(axis.axisName.labelStyle.show, true); label.SetPosition(axis.position == Axis.AxisPosition.Right ? new Vector2(axisStartX + relativedLength - offset.x + axis.offset, axisStartY + axisLength / 2 + offset.y) : new Vector2(posX + offset.x, axisStartY + axisLength / 2 + offset.y)); @@ -631,7 +631,7 @@ namespace XCharts //LabelStyle.Position label = ChartHelper.AddChartLabel(s_DefaultAxisName, axisObj.transform, axis.axisName.labelStyle, chart.theme.axis, axis.axisName.name, autoColor, TextAnchor.MiddleCenter); - label.SetActive(axis.axisName.labelStyle.show); + label.SetActive(axis.axisName.labelStyle.show, true); label.SetPosition(axis.position == Axis.AxisPosition.Right ? new Vector2(axisStartX + relativedLength + offset.x + axis.offset, axisStartY + axisLength + offset.y) : new Vector2(posX + offset.x, axisStartY + axisLength + offset.y)); diff --git a/Runtime/Component/Axis/RadiusAxis/RadiusAxisHandler.cs b/Runtime/Component/Axis/RadiusAxis/RadiusAxisHandler.cs index 736b9da4..5a84d71f 100644 --- a/Runtime/Component/Axis/RadiusAxis/RadiusAxisHandler.cs +++ b/Runtime/Component/Axis/RadiusAxis/RadiusAxisHandler.cs @@ -124,7 +124,7 @@ namespace XCharts.Runtime label.text.SetAlignment(textStyle.GetAlignment(TextAnchor.MiddleCenter)); label.SetText(labelName); label.SetPosition(GetLabelPosition(polar, axis, angleAxis.context.startAngle, totalWidth)); - label.SetActive(true); + label.SetActive(true, true); label.SetTextActive(true); axis.context.labelObjectList.Add(label); diff --git a/Runtime/Component/Comment/CommentHander.cs b/Runtime/Component/Comment/CommentHander.cs index 4e515f2e..1fc580e4 100644 --- a/Runtime/Component/Comment/CommentHander.cs +++ b/Runtime/Component/Comment/CommentHander.cs @@ -34,7 +34,7 @@ namespace XCharts.Runtime var labelPos = chart.chartPosition + item.location.GetPosition(chart.chartWidth, chart.chartHeight); var label = ChartHelper.AddChartLabel(s_CommentObjectName + i, commentObj.transform, labelStyle, chart.theme.common, GetContent(item), Color.clear, TextAnchor.MiddleCenter); - label.SetActive(comment.show && item.show); + label.SetActive(comment.show && item.show, true); label.SetPosition(labelPos); label.text.SetLocalPosition(labelStyle.offset); } diff --git a/Runtime/Component/Legend/LegendHelper.cs b/Runtime/Component/Legend/LegendHelper.cs index 3df72232..1ee362e3 100644 --- a/Runtime/Component/Legend/LegendHelper.cs +++ b/Runtime/Component/Legend/LegendHelper.cs @@ -58,7 +58,7 @@ namespace XCharts.Runtime var label = ChartHelper.AddChartLabel("content", btnObj.transform, legend.labelStyle, theme.legend, content, contentColor, TextAnchor.MiddleLeft); - label.SetActive(true); + label.SetActive(true, true); var item = new LegendItem(); item.index = i; diff --git a/Runtime/Component/Mark/MarkAreaHandler.cs b/Runtime/Component/Mark/MarkAreaHandler.cs index f4329a68..98b9f6c9 100644 --- a/Runtime/Component/Mark/MarkAreaHandler.cs +++ b/Runtime/Component/Mark/MarkAreaHandler.cs @@ -45,7 +45,7 @@ namespace XCharts.Runtime var label = ChartHelper.AddChartLabel("label", m_MarkLineLabelRoot.transform, markArea.label, chart.theme.axis, component.text, Color.clear, TextAnchor.MiddleCenter); UpdateRuntimeData(component); - label.SetActive(markArea.label.show); + label.SetActive(markArea.label.show, true); label.SetPosition(component.runtimeLabelPosition); label.SetText(component.text); markArea.runtimeLabel = label; diff --git a/Runtime/Component/Radar/RadarCoordHandler.cs b/Runtime/Component/Radar/RadarCoordHandler.cs index 9301a0b3..15d3740b 100644 --- a/Runtime/Component/Radar/RadarCoordHandler.cs +++ b/Runtime/Component/Radar/RadarCoordHandler.cs @@ -53,7 +53,7 @@ namespace XCharts.Runtime var label = ChartHelper.AddChartLabel(objName, radarObject.transform, radar.axisName.labelStyle, chart.theme.common, radar.GetFormatterIndicatorContent(i), Color.clear, TextAnchor.MiddleCenter); - label.SetActive(radar.axisName.show && radar.indicator && radar.axisName.labelStyle.show); + label.SetActive(radar.axisName.show && radar.indicator && radar.axisName.labelStyle.show, true); AxisHelper.AdjustCircleLabelPos(label, pos, radar.context.center, txtHig, radar.axisName.labelStyle.offset); } chart.RefreshBasePainter(); diff --git a/Runtime/Component/Tooltip/TooltipHandler.cs b/Runtime/Component/Tooltip/TooltipHandler.cs index 9636687c..1d28d5bc 100644 --- a/Runtime/Component/Tooltip/TooltipHandler.cs +++ b/Runtime/Component/Tooltip/TooltipHandler.cs @@ -255,7 +255,7 @@ namespace XCharts.Runtime { if (label == null) return; if (double.IsNaN(axis.context.pointerValue)) return; - label.SetActive(true); + label.SetActive(true, true); label.SetTextActive(true); label.SetPosition(axis.context.pointerLabelPosition + axis.indicatorLabel.offset); diff --git a/Runtime/Internal/Pools/SerieLabelPool.cs b/Runtime/Internal/Pools/SerieLabelPool.cs index 321d8942..b4e1aeb2 100644 --- a/Runtime/Internal/Pools/SerieLabelPool.cs +++ b/Runtime/Internal/Pools/SerieLabelPool.cs @@ -67,7 +67,7 @@ namespace XCharts.Runtime { var label = ChartHelper.AddChartLabel(name, parent, labelStyle, theme.common, "", color, TextAnchor.MiddleCenter); - label.SetActive(labelStyle.show); + label.SetActive(labelStyle.show, true); return label.gameObject; } } diff --git a/Runtime/Internal/Utilities/ChartHelper.cs b/Runtime/Internal/Utilities/ChartHelper.cs index 1bfdaba5..fb67ad55 100644 --- a/Runtime/Internal/Utilities/ChartHelper.cs +++ b/Runtime/Internal/Utilities/ChartHelper.cs @@ -555,7 +555,7 @@ namespace XCharts.Runtime { var label = ChartHelper.AddChartLabel(name, parent, labelStyle, theme.tooltip, "", Color.clear, alignment); - label.SetActive(tooltip.show && labelStyle.show); + label.SetActive(tooltip.show && labelStyle.show, true); return label; } diff --git a/Runtime/Serie/SerieHandler.cs b/Runtime/Serie/SerieHandler.cs index e6306bcc..52b57a1a 100644 --- a/Runtime/Serie/SerieHandler.cs +++ b/Runtime/Serie/SerieHandler.cs @@ -368,7 +368,7 @@ namespace XCharts.Runtime var textName = string.Format("{0}_{1}_{2}_{3}", s_SerieLabelObjectName, serie.index, serieData.index, i); var label = ChartHelper.AddChartLabel(textName, serieLabelRoot.transform, serieLabel, chart.theme.common, "", dataAutoColor, TextAnchor.MiddleCenter); - label.SetActive(false); + label.SetActive(false, true); serieData.context.dataLabels.Add(label); } } @@ -377,7 +377,7 @@ namespace XCharts.Runtime var textName = ChartCached.GetSerieLabelName(s_SerieLabelObjectName, serie.index, serieData.index); var label = ChartHelper.AddChartLabel(textName, serieLabelRoot.transform, serieLabel, chart.theme.common, "", dataAutoColor, TextAnchor.MiddleCenter); - label.SetActive(false); + label.SetActive(false, true); serieData.labelObject = label; } @@ -441,7 +441,7 @@ namespace XCharts.Runtime var label = ChartHelper.AddChartLabel("title_" + 0, serieTitleRoot.transform, titleStyle, chart.theme.common, content, color, TextAnchor.MiddleCenter); serie.context.titleObject = label; - label.SetActive(titleStyle.show); + label.SetActive(titleStyle.show, true); var labelPosition = GetSerieDataTitlePosition(null, titleStyle); var offset = titleStyle.GetOffset(serie.context.insideRadius); label.SetPosition(labelPosition + offset); @@ -468,7 +468,7 @@ namespace XCharts.Runtime var label = ChartHelper.AddChartLabel("title_" + i, serieTitleRoot.transform, titleStyle, chart.theme.common, content, color, TextAnchor.MiddleCenter); serieData.titleObject = label; - label.SetActive(titleStyle.show); + label.SetActive(titleStyle.show, true); var labelPosition = GetSerieDataTitlePosition(serieData, titleStyle); var offset = titleStyle.GetOffset(serie.context.insideRadius); label.SetPosition(labelPosition + offset); From e3098e6e1676ce8144b61aa92c277d25147d514b Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sun, 14 Jul 2024 15:07:26 +0800 Subject: [PATCH 09/34] =?UTF-8?q?=E4=BC=98=E5=8C=96`Axis`=E7=9A=84`Time`?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=BD=B4=E7=9A=84=E6=BB=9A=E5=8A=A8=E8=A1=A8?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 1 + Runtime/Component/Axis/AxisHandler.cs | 6 ------ Runtime/Utilities/DateTimeUtil.cs | 13 +++++++++++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index e3551017..c00da3c6 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -75,6 +75,7 @@ slug: /changelog ## master +* (2024.07.14) 优化`Axis`的`Time`时间轴的滚动表现 * (2024.07.12) 优化`Label`显示体验 * (2024.07.06) 修复`Chart`在动态创建时背景没有自适应的问题 (#323) diff --git a/Runtime/Component/Axis/AxisHandler.cs b/Runtime/Component/Axis/AxisHandler.cs index cb6dac93..5fe982b9 100644 --- a/Runtime/Component/Axis/AxisHandler.cs +++ b/Runtime/Component/Axis/AxisHandler.cs @@ -720,12 +720,6 @@ namespace XCharts if (AxisHelper.NeedShowSplit(axis)) { var size = AxisHelper.GetScaleNumber(axis, axisLength, dataZoom); - if (axis.IsTime()) - { - size += 1; - if (!ChartHelper.IsEquals(axis.GetLastLabelValue(), axis.context.maxValue)) - size += 1; - } var tickWidth = axis.axisTick.GetWidth(theme.tickWidth); var tickColor = axis.axisTick.GetColor(theme.tickColor); var current = orient == Orient.Horizonal ? startX : startY; diff --git a/Runtime/Utilities/DateTimeUtil.cs b/Runtime/Utilities/DateTimeUtil.cs index 82e5b441..3f090be2 100644 --- a/Runtime/Utilities/DateTimeUtil.cs +++ b/Runtime/Utilities/DateTimeUtil.cs @@ -49,6 +49,11 @@ namespace XCharts.Runtime } } + public static DateTime GetDateTime(double timestamp) + { + return k_DateTime1970.AddSeconds(timestamp); + } + public static DateTime GetDateTime(int timestamp) { return k_DateTime1970.AddSeconds(timestamp); @@ -97,6 +102,8 @@ namespace XCharts.Runtime /// internal static float UpdateTimeAxisDateTimeList(List list, int minTimestamp, int maxTimestamp, int splitNumber) { + var firstValue = list.Count > 0 ? list[0] : 0; + var secondValue = list.Count > 1 ? list[1] : 0; list.Clear(); var range = maxTimestamp - minTimestamp; if (range <= 0) return 0; @@ -107,7 +114,8 @@ namespace XCharts.Runtime if (range >= ONE_YEAR * MIN_TIME_SPLIT_NUMBER) { var num = Math.Max(range / (splitNumber * ONE_YEAR), 1); - var dtStart = new DateTime(dtMin.Year + 1, 1, 1); + var dtStart = (firstValue == 0 || secondValue == 0) ? new DateTime(dtMin.Year + 1, 1, 1) : + (minTimestamp > firstValue ? DateTimeUtil.GetDateTime(secondValue) : DateTimeUtil.GetDateTime(firstValue)); tick = num * 365 * 24 * 3600; while (dtStart.Ticks < dtMax.Ticks) { @@ -118,7 +126,8 @@ namespace XCharts.Runtime else if (range >= ONE_MONTH * MIN_TIME_SPLIT_NUMBER) { var num = Math.Max(range / (splitNumber * ONE_MONTH), 1); - var dtStart = new DateTime(dtMin.Year, dtMin.Month, 1).AddMonths(1); + var dtStart = (firstValue == 0 || secondValue == 0) ? (new DateTime(dtMin.Year, dtMin.Month, 1).AddMonths(1)) : + (minTimestamp > firstValue ? DateTimeUtil.GetDateTime(secondValue) : DateTimeUtil.GetDateTime(firstValue)); tick = num * 30 * 24 * 3600; while (dtStart.Ticks < dtMax.Ticks) { From c4588469905e75d4fbd0a0b8c1065e232f40b378 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sun, 14 Jul 2024 15:23:13 +0800 Subject: [PATCH 10/34] =?UTF-8?q?=E4=BC=98=E5=8C=96`Axis`=E7=9A=84`Time`?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=BD=B4=E7=9A=84`splitNumber`=E4=B8=BA0?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E8=A1=A8=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 1 + Runtime/Utilities/DateTimeUtil.cs | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index c00da3c6..a54e4067 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -75,6 +75,7 @@ slug: /changelog ## master +* (2024.07.14) 优化`Axis`的`Time`时间轴的`splitNumber`为0时的表现 * (2024.07.14) 优化`Axis`的`Time`时间轴的滚动表现 * (2024.07.12) 优化`Label`显示体验 * (2024.07.06) 修复`Chart`在动态创建时背景没有自适应的问题 (#323) diff --git a/Runtime/Utilities/DateTimeUtil.cs b/Runtime/Utilities/DateTimeUtil.cs index 3f090be2..d785daac 100644 --- a/Runtime/Utilities/DateTimeUtil.cs +++ b/Runtime/Utilities/DateTimeUtil.cs @@ -107,13 +107,12 @@ namespace XCharts.Runtime list.Clear(); var range = maxTimestamp - minTimestamp; if (range <= 0) return 0; - if (splitNumber <= 0) splitNumber = 1; var dtMin = DateTimeUtil.GetDateTime(minTimestamp); var dtMax = DateTimeUtil.GetDateTime(maxTimestamp); int tick = 0; if (range >= ONE_YEAR * MIN_TIME_SPLIT_NUMBER) { - var num = Math.Max(range / (splitNumber * ONE_YEAR), 1); + var num = splitNumber <= 0 ? 1 : Math.Max(range / (splitNumber * ONE_YEAR), 1); var dtStart = (firstValue == 0 || secondValue == 0) ? new DateTime(dtMin.Year + 1, 1, 1) : (minTimestamp > firstValue ? DateTimeUtil.GetDateTime(secondValue) : DateTimeUtil.GetDateTime(firstValue)); tick = num * 365 * 24 * 3600; @@ -125,7 +124,7 @@ namespace XCharts.Runtime } else if (range >= ONE_MONTH * MIN_TIME_SPLIT_NUMBER) { - var num = Math.Max(range / (splitNumber * ONE_MONTH), 1); + var num = splitNumber <= 0 ? 1 : Math.Max(range / (splitNumber * ONE_MONTH), 1); var dtStart = (firstValue == 0 || secondValue == 0) ? (new DateTime(dtMin.Year, dtMin.Month, 1).AddMonths(1)) : (minTimestamp > firstValue ? DateTimeUtil.GetDateTime(secondValue) : DateTimeUtil.GetDateTime(firstValue)); tick = num * 30 * 24 * 3600; From d5fbd33534fdc13987f890dcdcfd6f116916b37a Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Tue, 16 Jul 2024 23:03:31 +0800 Subject: [PATCH 11/34] =?UTF-8?q?=E4=BC=98=E5=8C=96`Axis`=E4=B8=BA`Time`?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=BD=B4=E6=97=B6=E7=9A=84`Tooltip`=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 5 +-- Runtime/Component/Tooltip/TooltipHandler.cs | 37 ++++++++++++++++----- Runtime/Utilities/DateTimeUtil.cs | 24 +++++++++++-- 3 files changed, 53 insertions(+), 13 deletions(-) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index a54e4067..43e8d2bc 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -75,8 +75,9 @@ slug: /changelog ## master -* (2024.07.14) 优化`Axis`的`Time`时间轴的`splitNumber`为0时的表现 -* (2024.07.14) 优化`Axis`的`Time`时间轴的滚动表现 +* (2024.07.16) 优化`Axis`为`Time`时间轴时的`Tooltip`默认效果 +* (2024.07.15) 优化`Axis`为`Time`时间轴时的分割效果 +* (2024.07.14) 优化`Axis`为`Time`时间轴时的移动表现 * (2024.07.12) 优化`Label`显示体验 * (2024.07.06) 修复`Chart`在动态创建时背景没有自适应的问题 (#323) diff --git a/Runtime/Component/Tooltip/TooltipHandler.cs b/Runtime/Component/Tooltip/TooltipHandler.cs index 1d28d5bc..17d9aa46 100644 --- a/Runtime/Component/Tooltip/TooltipHandler.cs +++ b/Runtime/Component/Tooltip/TooltipHandler.cs @@ -571,11 +571,13 @@ namespace XCharts.Runtime var isTriggerByAxis = false; var isTriggerByItem = tooltip.context.trigger == Tooltip.Trigger.Item; var dataIndex = -1; + var timestamp = -1; + double axisRange = 0; tooltip.context.data.param.Clear(); tooltip.context.pointer = GetTooltipPointerPos(); if (m_PointerContainer is GridCoord) { - GetAxisCategory(m_PointerContainer.index, ref dataIndex, ref category); + GetAxisCategory(m_PointerContainer.index, ref dataIndex, ref category, ref timestamp, ref axisRange); if (tooltip.context.trigger == Tooltip.Trigger.Axis) { isTriggerByAxis = true; @@ -585,7 +587,9 @@ namespace XCharts.Runtime tooltip.context.data.title = series[0].serieName; } else + { tooltip.context.data.title = category; + } } else if (tooltip.context.trigger == Tooltip.Trigger.Item) { @@ -604,6 +608,15 @@ namespace XCharts.Runtime serie.context.isTriggerByAxis = isTriggerByAxis; if (isTriggerByAxis && dataIndex >= 0 && serie.context.pointerItemDataIndex < 0) serie.context.pointerItemDataIndex = dataIndex; + if (timestamp >= 0) + { + showCategory = false; + var serieData = serie.GetSerieData(serie.context.pointerItemDataIndex); + if (serieData != null) + { + tooltip.context.data.title = DateTimeUtil.GetDefaultDateTimeString((int)serieData.GetData(0), axisRange); + } + } serie.handler.UpdateTooltipSerieParams(dataIndex, showCategory, category, tooltip.marker, tooltip.itemFormatter, tooltip.numericFormatter, tooltip.ignoreDataDefaultContent, @@ -626,20 +639,28 @@ namespace XCharts.Runtime return false; } - private bool GetAxisCategory(int gridIndex, ref int dataIndex, ref string category) + private bool GetAxisCategory(int gridIndex, ref int dataIndex, ref string category, ref int timestamp, ref double axisRange) { foreach (var component in chart.components) { if (component is Axis) { var axis = component as Axis; - if (axis.gridIndex == gridIndex && axis.IsCategory()) + if (axis.gridIndex == gridIndex) { - dataIndex = double.IsNaN(axis.context.pointerValue) - ? axis.context.dataZoomStartIndex - : axis.context.dataZoomStartIndex + (int)axis.context.axisTooltipValue; - category = axis.GetData(dataIndex); - return true; + if (axis.IsCategory()) + { + dataIndex = double.IsNaN(axis.context.pointerValue) + ? axis.context.dataZoomStartIndex + : axis.context.dataZoomStartIndex + (int)axis.context.axisTooltipValue; + category = axis.GetData(dataIndex); + return true; + } + else if (axis.IsTime()) + { + timestamp = (int)axis.context.pointerValue; + axisRange = axis.context.minMaxRange; + } } } } diff --git a/Runtime/Utilities/DateTimeUtil.cs b/Runtime/Utilities/DateTimeUtil.cs index d785daac..6e0fb424 100644 --- a/Runtime/Utilities/DateTimeUtil.cs +++ b/Runtime/Utilities/DateTimeUtil.cs @@ -59,6 +59,21 @@ namespace XCharts.Runtime return k_DateTime1970.AddSeconds(timestamp); } + public static string GetDefaultDateTimeString(int timestamp, double range = 0) + { + var dateString = String.Empty; + var dateTime = GetDateTime(timestamp); + if (range <= 0 || range >= DateTimeUtil.ONE_DAY) + { + dateString = dateTime.ToString("yyyy-MM-dd"); + } + else + { + dateString = dateTime.ToString(s_SecondDateFormatter); + } + return dateString; + } + internal static string GetDateTimeFormatString(DateTime dateTime, double range) { var dateString = String.Empty; @@ -143,19 +158,22 @@ namespace XCharts.Runtime else if (range >= ONE_HOUR * MIN_TIME_SPLIT_NUMBER) { tick = GetTickSecond(range, splitNumber, ONE_HOUR); - var startTimestamp = (minTimestamp - minTimestamp % tick) + tick; + var let = minTimestamp % tick; + var startTimestamp = let == 0 ? minTimestamp : (minTimestamp - let) + tick; AddTickTimestamp(list, startTimestamp, maxTimestamp, tick); } else if (range >= ONE_MINUTE * MIN_TIME_SPLIT_NUMBER) { tick = GetTickSecond(range, splitNumber, ONE_MINUTE); - var startTimestamp = (minTimestamp - minTimestamp % tick) + tick; + var let = minTimestamp % tick; + var startTimestamp = let == 0 ? minTimestamp : (minTimestamp - let) + tick; AddTickTimestamp(list, startTimestamp, maxTimestamp, tick); } else { tick = GetTickSecond(range, splitNumber, ONE_SECOND); - var startTimestamp = (minTimestamp - minTimestamp % tick) + tick; + var let = minTimestamp % tick; + var startTimestamp = let == 0 ? minTimestamp : (minTimestamp - let) + tick; AddTickTimestamp(list, startTimestamp, maxTimestamp, tick); } return tick; From 35e8f3e902e6796265344442bd79f33fca750d77 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Wed, 17 Jul 2024 23:16:22 +0800 Subject: [PATCH 12/34] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`MarkLine`=E7=9A=84`Lab?= =?UTF-8?q?el`=E5=9C=A8=E5=88=9D=E5=A7=8B=E5=8C=96=E6=97=B6=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E4=BC=9A=E9=97=AA=E7=83=81=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 1 + Runtime/Component/Axis/AxisHandler.cs | 2 ++ Runtime/Component/Mark/MarkLineHandler.cs | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 43e8d2bc..08c706ee 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -75,6 +75,7 @@ slug: /changelog ## master +* (2024.07.17) 修复`MarkLine`的`Label`在初始化时可能会闪烁的问题 * (2024.07.16) 优化`Axis`为`Time`时间轴时的`Tooltip`默认效果 * (2024.07.15) 优化`Axis`为`Time`时间轴时的分割效果 * (2024.07.14) 优化`Axis`为`Time`时间轴时的移动表现 diff --git a/Runtime/Component/Axis/AxisHandler.cs b/Runtime/Component/Axis/AxisHandler.cs index 5fe982b9..1da053fe 100644 --- a/Runtime/Component/Axis/AxisHandler.cs +++ b/Runtime/Component/Axis/AxisHandler.cs @@ -476,6 +476,7 @@ namespace XCharts break; } } + UpdateAxisMinMaxValue(axis.index, axis); } protected void InitAxis(Axis relativedAxis, Orient orient, @@ -639,6 +640,7 @@ namespace XCharts } } } + UpdateAxisMinMaxValue(axis.index, axis); } internal static Vector3 GetLabelPosition(int i, Orient orient, Axis axis, Axis relativedAxis, AxisTheme theme, diff --git a/Runtime/Component/Mark/MarkLineHandler.cs b/Runtime/Component/Mark/MarkLineHandler.cs index 7601a432..fcdb7a3c 100644 --- a/Runtime/Component/Mark/MarkLineHandler.cs +++ b/Runtime/Component/Mark/MarkLineHandler.cs @@ -86,7 +86,7 @@ namespace XCharts.Runtime content, Color.clear, TextAnchor.MiddleCenter); var pos = MarkLineHelper.GetLabelPosition(data); label.SetIconActive(false); - label.SetActive(data.label.show && data.runtimeInGrid, true); + label.SetActive(false, true); label.SetPosition(pos); data.runtimeLabel = label; }; From 4903ac53f0794d6e059c185a359d1fa5543f45ae Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sat, 20 Jul 2024 21:02:24 +0800 Subject: [PATCH 13/34] =?UTF-8?q?=E4=BC=98=E5=8C=96`Axis`=E4=B8=BA`Time`?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=BD=B4=E6=97=B6=E7=9A=84=E5=88=86=E5=89=B2?= =?UTF-8?q?=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Utilities/DateTimeUtil.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Runtime/Utilities/DateTimeUtil.cs b/Runtime/Utilities/DateTimeUtil.cs index 6e0fb424..8d569f01 100644 --- a/Runtime/Utilities/DateTimeUtil.cs +++ b/Runtime/Utilities/DateTimeUtil.cs @@ -127,7 +127,7 @@ namespace XCharts.Runtime int tick = 0; if (range >= ONE_YEAR * MIN_TIME_SPLIT_NUMBER) { - var num = splitNumber <= 0 ? 1 : Math.Max(range / (splitNumber * ONE_YEAR), 1); + var num = splitNumber <= 0 ? GetSplitNumber(range, ONE_YEAR) : Math.Max(range / (splitNumber * ONE_YEAR), 1); var dtStart = (firstValue == 0 || secondValue == 0) ? new DateTime(dtMin.Year + 1, 1, 1) : (minTimestamp > firstValue ? DateTimeUtil.GetDateTime(secondValue) : DateTimeUtil.GetDateTime(firstValue)); tick = num * 365 * 24 * 3600; @@ -139,7 +139,7 @@ namespace XCharts.Runtime } else if (range >= ONE_MONTH * MIN_TIME_SPLIT_NUMBER) { - var num = splitNumber <= 0 ? 1 : Math.Max(range / (splitNumber * ONE_MONTH), 1); + var num = splitNumber <= 0 ? GetSplitNumber(range, ONE_MONTH) : Math.Max(range / (splitNumber * ONE_MONTH), 1); var dtStart = (firstValue == 0 || secondValue == 0) ? (new DateTime(dtMin.Year, dtMin.Month, 1).AddMonths(1)) : (minTimestamp > firstValue ? DateTimeUtil.GetDateTime(secondValue) : DateTimeUtil.GetDateTime(firstValue)); tick = num * 30 * 24 * 3600; @@ -179,6 +179,16 @@ namespace XCharts.Runtime return tick; } + private static int GetSplitNumber(int range, int tickSecond) + { + var num = 1; + while (range / (num * tickSecond) > 8) + { + num++; + } + return num; + } + private static int GetTickSecond(int range, int splitNumber, int tickSecond) { var num = 0; From 71ecebb466df5fbc93d122895252f881b1c3fda8 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sat, 20 Jul 2024 22:21:22 +0800 Subject: [PATCH 14/34] =?UTF-8?q?=E4=BC=98=E5=8C=96`Axis`=E4=B8=BA`Time`?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=BD=B4=E6=97=B6=E7=9A=84=E5=88=86=E5=89=B2?= =?UTF-8?q?=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Utilities/DateTimeUtil.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Runtime/Utilities/DateTimeUtil.cs b/Runtime/Utilities/DateTimeUtil.cs index 8d569f01..77b27def 100644 --- a/Runtime/Utilities/DateTimeUtil.cs +++ b/Runtime/Utilities/DateTimeUtil.cs @@ -128,8 +128,9 @@ namespace XCharts.Runtime if (range >= ONE_YEAR * MIN_TIME_SPLIT_NUMBER) { var num = splitNumber <= 0 ? GetSplitNumber(range, ONE_YEAR) : Math.Max(range / (splitNumber * ONE_YEAR), 1); - var dtStart = (firstValue == 0 || secondValue == 0) ? new DateTime(dtMin.Year + 1, 1, 1) : - (minTimestamp > firstValue ? DateTimeUtil.GetDateTime(secondValue) : DateTimeUtil.GetDateTime(firstValue)); + var dtStart = (firstValue == 0 || secondValue == 0 || (minTimestamp > firstValue && minTimestamp > secondValue)) + ? (new DateTime(dtMin.Year, dtMin.Month, 1).AddMonths(1)) + : (minTimestamp > firstValue ? DateTimeUtil.GetDateTime(secondValue) : DateTimeUtil.GetDateTime(firstValue)); tick = num * 365 * 24 * 3600; while (dtStart.Ticks < dtMax.Ticks) { @@ -140,8 +141,9 @@ namespace XCharts.Runtime else if (range >= ONE_MONTH * MIN_TIME_SPLIT_NUMBER) { var num = splitNumber <= 0 ? GetSplitNumber(range, ONE_MONTH) : Math.Max(range / (splitNumber * ONE_MONTH), 1); - var dtStart = (firstValue == 0 || secondValue == 0) ? (new DateTime(dtMin.Year, dtMin.Month, 1).AddMonths(1)) : - (minTimestamp > firstValue ? DateTimeUtil.GetDateTime(secondValue) : DateTimeUtil.GetDateTime(firstValue)); + var dtStart = (firstValue == 0 || secondValue == 0 || (minTimestamp > firstValue && minTimestamp > secondValue)) + ? (new DateTime(dtMin.Year, dtMin.Month, 1).AddMonths(1)) + : (minTimestamp > firstValue ? DateTimeUtil.GetDateTime(secondValue) : DateTimeUtil.GetDateTime(firstValue)); tick = num * 30 * 24 * 3600; while (dtStart.Ticks < dtMax.Ticks) { From 9e1dd027e9479271388a103980ba09527aca14fa Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sun, 21 Jul 2024 15:13:08 +0800 Subject: [PATCH 15/34] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`Tooltip`=E5=9C=A8?= =?UTF-8?q?=E5=BC=80=E5=90=AF`DataZoom`=E6=97=B6=E6=8C=87=E7=A4=BA?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E4=B8=8D=E5=87=86=E7=A1=AE=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 3 ++- Runtime/Component/Tooltip/TooltipHandler.cs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 08c706ee..325d2418 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -75,11 +75,12 @@ slug: /changelog ## master +* (2024.07.21) 修复`Tooltip`在开启`DataZoom`时指示内容不准确的问题 * (2024.07.17) 修复`MarkLine`的`Label`在初始化时可能会闪烁的问题 * (2024.07.16) 优化`Axis`为`Time`时间轴时的`Tooltip`默认效果 * (2024.07.15) 优化`Axis`为`Time`时间轴时的分割效果 * (2024.07.14) 优化`Axis`为`Time`时间轴时的移动表现 -* (2024.07.12) 优化`Label`显示体验 +* (2024.07.12) 优化`Label`的初始化显示效果 * (2024.07.06) 修复`Chart`在动态创建时背景没有自适应的问题 (#323) ## v3.11.1 diff --git a/Runtime/Component/Tooltip/TooltipHandler.cs b/Runtime/Component/Tooltip/TooltipHandler.cs index 17d9aa46..ea88ab2d 100644 --- a/Runtime/Component/Tooltip/TooltipHandler.cs +++ b/Runtime/Component/Tooltip/TooltipHandler.cs @@ -359,7 +359,7 @@ namespace XCharts.Runtime serie.context.pointerEnter = true; serie.context.pointerAxisDataIndexs.Add(index); serie.context.pointerItemDataIndex = index; - yAxis.context.axisTooltipValue = yAxis.context.pointerValue; + yAxis.context.axisTooltipValue = index; } } else if (yAxis.IsTime()) @@ -652,7 +652,7 @@ namespace XCharts.Runtime { dataIndex = double.IsNaN(axis.context.pointerValue) ? axis.context.dataZoomStartIndex - : axis.context.dataZoomStartIndex + (int)axis.context.axisTooltipValue; + : (int)axis.context.axisTooltipValue; category = axis.GetData(dataIndex); return true; } From 378fccf8b42ffdeefb1f92fcbc8fe1f8db3c7405 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Mon, 22 Jul 2024 22:58:27 +0800 Subject: [PATCH 16/34] =?UTF-8?q?=E4=BC=98=E5=8C=96`Pie`=E7=9A=84`Label`?= =?UTF-8?q?=E5=9C=A8`Tooltip`=E8=A7=A6=E5=8F=91=E6=97=B6=E7=9A=84=E8=A1=A8?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 1 + Runtime/Serie/Pie/PieHandler.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 325d2418..b9021da8 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -75,6 +75,7 @@ slug: /changelog ## master +* (2024.07.22) 优化`Pie`的`Label`在`Tooltip`触发时的表现 * (2024.07.21) 修复`Tooltip`在开启`DataZoom`时指示内容不准确的问题 * (2024.07.17) 修复`MarkLine`的`Label`在初始化时可能会闪烁的问题 * (2024.07.16) 优化`Axis`为`Time`时间轴时的`Tooltip`默认效果 diff --git a/Runtime/Serie/Pie/PieHandler.cs b/Runtime/Serie/Pie/PieHandler.cs index 8efb5333..66b3f6ed 100644 --- a/Runtime/Serie/Pie/PieHandler.cs +++ b/Runtime/Serie/Pie/PieHandler.cs @@ -470,7 +470,7 @@ namespace XCharts.Runtime var rad = Mathf.Deg2Rad * serieData.context.halfAngle; var lineLength1 = ChartHelper.GetActualValue(labelLine.lineLength1, serie.context.outsideRadius); var lineLength2 = ChartHelper.GetActualValue(labelLine.lineLength2, serie.context.outsideRadius); - var radius = lineLength1 + serie.context.outsideRadius - serieData.context.outsideRadius; + var radius = lineLength1; var pos1 = startPosition; var pos2 = pos1 + new Vector3(Mathf.Sin(rad) * radius, Mathf.Cos(rad) * radius); var pos5 = labelLine.lineType == LabelLine.LineType.HorizontalLine From feb5e7fc32d0f3a454259008834ba7e735ebd2b9 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Thu, 25 Jul 2024 23:26:30 +0800 Subject: [PATCH 17/34] =?UTF-8?q?=E4=BC=98=E5=8C=96`Axis`=E7=9A=84?= =?UTF-8?q?=E8=BD=B4=E5=8A=A8=E7=94=BB=E5=9C=A8=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E6=97=B6=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Component/Axis/AxisHandler.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Runtime/Component/Axis/AxisHandler.cs b/Runtime/Component/Axis/AxisHandler.cs index 1da053fe..90a0bcc0 100644 --- a/Runtime/Component/Axis/AxisHandler.cs +++ b/Runtime/Component/Axis/AxisHandler.cs @@ -139,7 +139,7 @@ namespace XCharts } } - internal void UpdateAxisMinMaxValue(int axisIndex, Axis axis, bool updateChart = true) + internal void UpdateAxisMinMaxValue(int axisIndex, Axis axis, bool cancelAnimation = false) { if (!axis.show) return; @@ -173,7 +173,7 @@ namespace XCharts { m_LastSplitNumber = axis.splitNumber; m_LastInterval = axis.interval; - axis.UpdateMinMaxValue(tempMinValue, tempMaxValue, axis.context.needAnimation); + axis.UpdateMinMaxValue(tempMinValue, tempMaxValue, !cancelAnimation && axis.context.needAnimation); axis.context.offset = 0; axis.context.lastCheckInverse = axis.inverse; UpdateAxisTickValueList(axis); @@ -198,7 +198,7 @@ namespace XCharts } } - if (axis.context.needAnimation && (axis.context.minValue != axis.context.destMinValue || axis.context.maxValue != axis.context.destMaxValue)) + if (!cancelAnimation && axis.context.needAnimation && (axis.context.minValue != axis.context.destMinValue || axis.context.maxValue != axis.context.destMaxValue)) { var duration = axis.animation.duration == 0 ? SeriesHelper.GetMinAnimationDuration(chart.series) / 1000f @@ -476,7 +476,7 @@ namespace XCharts break; } } - UpdateAxisMinMaxValue(axis.index, axis); + UpdateAxisMinMaxValue(axis.index, axis, true); } protected void InitAxis(Axis relativedAxis, Orient orient, @@ -640,7 +640,7 @@ namespace XCharts } } } - UpdateAxisMinMaxValue(axis.index, axis); + UpdateAxisMinMaxValue(axis.index, axis, true); } internal static Vector3 GetLabelPosition(int i, Orient orient, Axis axis, Axis relativedAxis, AxisTheme theme, From de4f650e4f6a9a4bb0622d2a9ed8c49cf1d896a2 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sat, 27 Jul 2024 11:34:13 +0800 Subject: [PATCH 18/34] =?UTF-8?q?=E4=BC=98=E5=8C=96`Axis`=E7=9A=84?= =?UTF-8?q?=E8=BD=B4=E5=8A=A8=E7=94=BB=E5=9C=A8=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E6=97=B6=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Component/Axis/AxisHandler.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Runtime/Component/Axis/AxisHandler.cs b/Runtime/Component/Axis/AxisHandler.cs index 90a0bcc0..a36ec72b 100644 --- a/Runtime/Component/Axis/AxisHandler.cs +++ b/Runtime/Component/Axis/AxisHandler.cs @@ -191,11 +191,8 @@ namespace XCharts } } - if (updateChart) - { - UpdateAxisLabelText(axis); - chart.RefreshChart(); - } + UpdateAxisLabelText(axis); + chart.RefreshChart(); } if (!cancelAnimation && axis.context.needAnimation && (axis.context.minValue != axis.context.destMinValue || axis.context.maxValue != axis.context.destMaxValue)) From 1bb9b455b4e1b02fb3d56f3e6cfcdd18ddbd4aca Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sat, 27 Jul 2024 23:06:02 +0800 Subject: [PATCH 19/34] =?UTF-8?q?=E8=B0=83=E6=95=B4`Axis`=E7=9A=84`AxisNam?= =?UTF-8?q?e`=E7=9A=84=E9=BB=98=E8=AE=A4=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 1 + Runtime/Component/Axis/XAxis/XAxis.cs | 1 + Runtime/Component/Axis/YAxis/YAxis.cs | 2 ++ 3 files changed, 4 insertions(+) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index b9021da8..1604a648 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -75,6 +75,7 @@ slug: /changelog ## master +* (2024.07.27) 调整`Axis`的`AxisName`的默认位置 * (2024.07.22) 优化`Pie`的`Label`在`Tooltip`触发时的表现 * (2024.07.21) 修复`Tooltip`在开启`DataZoom`时指示内容不准确的问题 * (2024.07.17) 修复`MarkLine`的`Label`在初始化时可能会闪烁的问题 diff --git a/Runtime/Component/Axis/XAxis/XAxis.cs b/Runtime/Component/Axis/XAxis/XAxis.cs index 29ba477e..c4d5742c 100644 --- a/Runtime/Component/Axis/XAxis/XAxis.cs +++ b/Runtime/Component/Axis/XAxis/XAxis.cs @@ -28,6 +28,7 @@ namespace XCharts.Runtime splitLine.show = false; splitLine.lineStyle.type = LineStyle.Type.None; axisLabel.textLimit.enable = true; + axisName.labelStyle.offset = new Vector3(5, 0, 0); } } } \ No newline at end of file diff --git a/Runtime/Component/Axis/YAxis/YAxis.cs b/Runtime/Component/Axis/YAxis/YAxis.cs index d01f8ec1..9569c58e 100644 --- a/Runtime/Component/Axis/YAxis/YAxis.cs +++ b/Runtime/Component/Axis/YAxis/YAxis.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using UnityEngine; namespace XCharts.Runtime { @@ -25,6 +26,7 @@ namespace XCharts.Runtime splitLine.lineStyle.type = LineStyle.Type.None; axisLabel.textLimit.enable = false; axisTick.showStartTick = true; + axisName.labelStyle.offset = new Vector3(0, 22, 0); } } } \ No newline at end of file From 5853376a445413f8d1b6c20ed294be00bc8e9312 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Mon, 29 Jul 2024 22:51:02 +0800 Subject: [PATCH 20/34] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`Tooltip`=E5=9C=A8?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=B0=8F=E6=B8=B8=E6=88=8F=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E4=B8=8A=E6=8A=A5=E9=94=99=E7=9A=84=E5=85=BC=E5=AE=B9=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#326)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 1 + Runtime/Internal/Utilities/ChartCached.cs | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 1604a648..b3f6472b 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -75,6 +75,7 @@ slug: /changelog ## master +* (2024.07.29) 修复`Tooltip`在微信小游戏平台上报错的兼容问题 (#326) * (2024.07.27) 调整`Axis`的`AxisName`的默认位置 * (2024.07.22) 优化`Pie`的`Label`在`Tooltip`触发时的表现 * (2024.07.21) 修复`Tooltip`在开启`DataZoom`时指示内容不准确的问题 diff --git a/Runtime/Internal/Utilities/ChartCached.cs b/Runtime/Internal/Utilities/ChartCached.cs index cda8bbb8..1a07f332 100644 --- a/Runtime/Internal/Utilities/ChartCached.cs +++ b/Runtime/Internal/Utilities/ChartCached.cs @@ -12,7 +12,7 @@ namespace XCharts.Runtime private const string NUMERIC_FORMATTER_X = "X"; private const string NUMERIC_FORMATTER_x = "x"; private static readonly string s_DefaultAxis = "axis_"; - private static CultureInfo ci = new CultureInfo("en-us"); // "en-us", "zh-cn", "ar-iq", "de-de" + private static CultureInfo ci = GetDefaultCultureInfo(); // "en-us", "zh-cn", "ar-iq", "de-de" private static Dictionary s_ColorToStr = new Dictionary(100); private static Dictionary s_SerieLabelName = new Dictionary(1000); private static Dictionary s_ColorDotStr = new Dictionary(100); @@ -24,6 +24,18 @@ namespace XCharts.Runtime private static Dictionary> s_PrecisionToStr = new Dictionary>(); private static Dictionary> s_StringIntDict = new Dictionary>(); + private static CultureInfo GetDefaultCultureInfo() + { + try + { + return new CultureInfo("en-us"); + } + catch (Exception) + { + return CultureInfo.InvariantCulture; + } + } + public static string FloatToStr(double value, string numericFormatter = "F", int precision = 0) { if (precision > 0 && numericFormatter.Length == 1) From 10a36e0295b304e688fed54763fe93b0e709524a Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Wed, 31 Jul 2024 22:43:35 +0800 Subject: [PATCH 21/34] 3.11.2 --- Documentation~/en/changelog.md | 15 +++++++++++++++ Documentation~/zh/changelog.md | 4 ++++ Runtime/Internal/XChartsMgr.cs | 4 ++-- package.json | 6 +++--- 4 files changed, 24 insertions(+), 5 deletions(-) diff --git a/Documentation~/en/changelog.md b/Documentation~/en/changelog.md index 66d2d105..96050ed5 100644 --- a/Documentation~/en/changelog.md +++ b/Documentation~/en/changelog.md @@ -2,6 +2,7 @@ # 更新日志 [master](#master) +[v3.11.2](#v3112) [v3.11.1](#v3111) [v3.11.0](#v3110) [v3.10.2](#v3102) @@ -70,6 +71,20 @@ ## master +## v3.11.2 + +* (2024.08.01) Release `v3.11.2` +* (2024.07.29) Fixed compatibility issue with `Tooltip` reporting error on wechat mini game platform (#326) +* (2024.07.27) Adjust the default position of `AxisName` for `Axis` +* (2024.07.22) Improved the behavior of `Pie`'s `Label` when `Tooltip` is triggered +* (2024.07.21) Fix to `Tooltip` indicating inaccurate content when opening `DataZoom` +* (2024.07.17) Fixed an issue where `Label` of `MarkLine` could flash during initialization +* (2024.07.16) Optimized the default effect of `Tooltip` when `Axis` is `Time` timeline +* (2024.07.15) Optimized segmentation when Axis is Time +* (2024.07.14) Improved movement performance when `Axis` is `Time` +* (2024.07.12) Optimized the initial display effect of `Label` +* (2024.07.06) Fix to `Chart` background not adaptive when dynamically created (#323) + ## v3.11.1 * (2024.07.01) Release `v3.11.1` diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index b3f6472b..09993998 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -6,6 +6,7 @@ slug: /changelog # 更新日志 [master](#master) +[v3.11.2](#v3112) [v3.11.1](#v3111) [v3.11.0](#v3110) [v3.10.2](#v3102) @@ -75,6 +76,9 @@ slug: /changelog ## master +## v3.11.2 + +* (2024.08.01) 发布`v3.11.2`版本 * (2024.07.29) 修复`Tooltip`在微信小游戏平台上报错的兼容问题 (#326) * (2024.07.27) 调整`Axis`的`AxisName`的默认位置 * (2024.07.22) 优化`Pie`的`Label`在`Tooltip`触发时的表现 diff --git a/Runtime/Internal/XChartsMgr.cs b/Runtime/Internal/XChartsMgr.cs index 7eb671e2..5890346f 100644 --- a/Runtime/Internal/XChartsMgr.cs +++ b/Runtime/Internal/XChartsMgr.cs @@ -21,8 +21,8 @@ namespace XCharts.Runtime [ExecuteInEditMode] public static class XChartsMgr { - public static readonly string version = "3.11.1"; - public static readonly int versionDate = 20240701; + public static readonly string version = "3.11.2"; + public static readonly int versionDate = 20240801; public static string fullVersion { get { return version + "-" + versionDate; } } internal static List chartList = new List(); diff --git a/package.json b/package.json index 7a17faff..5e13d2b8 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,9 @@ "displayName": "XCharts", "author": "monitor1394", "license": "MIT", - "version": "3.11.1", - "date": "20240701", - "checkdate": "20240701", + "version": "3.11.2", + "date": "20240801", + "checkdate": "20240801", "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": [ From e7978cbc30fc3ebdc56c34ee1d3b9dbc8ad38278 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Wed, 31 Jul 2024 22:52:33 +0800 Subject: [PATCH 22/34] 3.11.2 --- Documentation~/en/api.md | 15 ++++++++++----- Documentation~/zh/api.md | 15 ++++++++++----- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/Documentation~/en/api.md b/Documentation~/en/api.md index 30e48d6a..61e710e5 100644 --- a/Documentation~/en/api.md +++ b/Documentation~/en/api.md @@ -1086,6 +1086,9 @@ A candlestick chart is a style of financial chart used to describe price movemen |GetVertialDire()||public static Vector3 GetVertialDire(Vector3 dire)| |HideAllObject()||public static void HideAllObject(GameObject obj, string match = null)| |HideAllObject()||public static void HideAllObject(Transform parent, string match = null)| +|IsActiveByScale()||public static bool IsActiveByScale(GameObject gameObject)| +|IsActiveByScale()||public static bool IsActiveByScale(Image image)| +|IsActiveByScale()||public static bool IsActiveByScale(Transform transform)| |IsClearColor()||public static bool IsClearColor(Color color)| |IsClearColor()||public static bool IsClearColor(Color32 color)| |IsColorAlphaZero()||public static bool IsColorAlphaZero(Color color)| @@ -1106,10 +1109,10 @@ A candlestick chart is a style of financial chart used to describe price movemen |RemoveComponent<T>()||public static void RemoveComponent<T>(GameObject gameObject)| |RotateRound()||public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)| |SaveAsImage()||public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "")| -|SetActive()||public static void SetActive(GameObject gameObject, bool active)| -|SetActive()||public static void SetActive(Image image, bool active)| -|SetActive()||public static void SetActive(Text text, bool active)| -|SetActive()||public static void SetActive(Transform transform, bool active)
通过设置scale实现是否显示,优化性能,减少GC | +|SetActive()||public static bool SetActive(GameObject gameObject, bool active)| +|SetActive()||public static bool SetActive(Image image, bool active)| +|SetActive()||public static bool SetActive(Text text, bool active)| +|SetActive()||public static bool SetActive(Transform transform, bool active)
通过设置scale实现是否显示,优化性能,减少GC | |SetBackground()||public static void SetBackground(Image background, Background imageStyle)| |SetBackground()||public static void SetBackground(Image background, ImageStyle imageStyle)| |SetColorOpacity()||public static void SetColorOpacity(ref Color32 color, float opacity)| @@ -1127,7 +1130,7 @@ A candlestick chart is a style of financial chart used to describe price movemen |GetTextWidth()||public float GetTextWidth()| |GetWidth()||public float GetWidth()| |IsActiveByScale()||public bool IsActiveByScale()| -|SetActive()||public void SetActive(bool flag)| +|SetActive()||public void SetActive(bool flag, bool force = false)| |SetIcon()||public void SetIcon(Image image)| |SetIconActive()||public void SetIconActive(bool flag)| |SetIconSize()||public void SetIconSize(float width, float height)| @@ -1358,7 +1361,9 @@ DataZoom component is used for zooming a specific area, which enables user to in |public method|since|description| |--|--|--| +|GetDateTime()||public static DateTime GetDateTime(double timestamp)| |GetDateTime()||public static DateTime GetDateTime(int timestamp)| +|GetDefaultDateTimeString()||public static string GetDefaultDateTimeString(int timestamp, double range = 0)| |GetTimestamp()||public static int GetTimestamp()| |GetTimestamp()||public static int GetTimestamp(DateTime time)| |GetTimestamp()||public static int GetTimestamp(string dateTime)| diff --git a/Documentation~/zh/api.md b/Documentation~/zh/api.md index 7c2352d4..fb67994e 100644 --- a/Documentation~/zh/api.md +++ b/Documentation~/zh/api.md @@ -1086,6 +1086,9 @@ slug: /api |GetVertialDire()||public static Vector3 GetVertialDire(Vector3 dire)| |HideAllObject()||public static void HideAllObject(GameObject obj, string match = null)| |HideAllObject()||public static void HideAllObject(Transform parent, string match = null)| +|IsActiveByScale()||public static bool IsActiveByScale(GameObject gameObject)| +|IsActiveByScale()||public static bool IsActiveByScale(Image image)| +|IsActiveByScale()||public static bool IsActiveByScale(Transform transform)| |IsClearColor()||public static bool IsClearColor(Color color)| |IsClearColor()||public static bool IsClearColor(Color32 color)| |IsColorAlphaZero()||public static bool IsColorAlphaZero(Color color)| @@ -1106,10 +1109,10 @@ slug: /api |RemoveComponent<T>()||public static void RemoveComponent<T>(GameObject gameObject)| |RotateRound()||public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)| |SaveAsImage()||public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "")| -|SetActive()||public static void SetActive(GameObject gameObject, bool active)| -|SetActive()||public static void SetActive(Image image, bool active)| -|SetActive()||public static void SetActive(Text text, bool active)| -|SetActive()||public static void SetActive(Transform transform, bool active)
通过设置scale实现是否显示,优化性能,减少GC | +|SetActive()||public static bool SetActive(GameObject gameObject, bool active)| +|SetActive()||public static bool SetActive(Image image, bool active)| +|SetActive()||public static bool SetActive(Text text, bool active)| +|SetActive()||public static bool SetActive(Transform transform, bool active)
通过设置scale实现是否显示,优化性能,减少GC | |SetBackground()||public static void SetBackground(Image background, Background imageStyle)| |SetBackground()||public static void SetBackground(Image background, ImageStyle imageStyle)| |SetColorOpacity()||public static void SetColorOpacity(ref Color32 color, float opacity)| @@ -1127,7 +1130,7 @@ slug: /api |GetTextWidth()||public float GetTextWidth()| |GetWidth()||public float GetWidth()| |IsActiveByScale()||public bool IsActiveByScale()| -|SetActive()||public void SetActive(bool flag)| +|SetActive()||public void SetActive(bool flag, bool force = false)| |SetIcon()||public void SetIcon(Image image)| |SetIconActive()||public void SetIconActive(bool flag)| |SetIconSize()||public void SetIconSize(float width, float height)| @@ -1358,7 +1361,9 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 |API|版本|描述| |--|--|--| +|GetDateTime()||public static DateTime GetDateTime(double timestamp)| |GetDateTime()||public static DateTime GetDateTime(int timestamp)| +|GetDefaultDateTimeString()||public static string GetDefaultDateTimeString(int timestamp, double range = 0)| |GetTimestamp()||public static int GetTimestamp()| |GetTimestamp()||public static int GetTimestamp(DateTime time)| |GetTimestamp()||public static int GetTimestamp(string dateTime)| From 59cd12d0ebe7d6249a50bf736b6ec18954e0e152 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sat, 31 Aug 2024 22:22:16 +0800 Subject: [PATCH 23/34] =?UTF-8?q?=E4=BC=98=E5=8C=96`Axis`=E4=B8=BA?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=BD=B4=E6=97=B6=E9=A6=96=E4=B8=AALabel?= =?UTF-8?q?=E7=9A=84=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Utilities/DateTimeUtil.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Runtime/Utilities/DateTimeUtil.cs b/Runtime/Utilities/DateTimeUtil.cs index 77b27def..00eaa3da 100644 --- a/Runtime/Utilities/DateTimeUtil.cs +++ b/Runtime/Utilities/DateTimeUtil.cs @@ -154,7 +154,8 @@ namespace XCharts.Runtime else if (range >= ONE_DAY * MIN_TIME_SPLIT_NUMBER) { tick = GetTickSecond(range, splitNumber, ONE_DAY); - var startTimestamp = (minTimestamp - minTimestamp % tick) + tick; + var let = minTimestamp % tick; + var startTimestamp = let == 0 ? minTimestamp : (minTimestamp - let) + tick; AddTickTimestamp(list, startTimestamp, maxTimestamp, tick); } else if (range >= ONE_HOUR * MIN_TIME_SPLIT_NUMBER) From e40e19c1976d313e3d3c9618c415a6f81dab315b Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sat, 31 Aug 2024 22:22:33 +0800 Subject: [PATCH 24/34] =?UTF-8?q?=E5=A2=9E=E5=8A=A0`Ring`=E7=9A=84`radiusG?= =?UTF-8?q?radient`=E5=8F=82=E6=95=B0=E8=AE=BE=E7=BD=AE=E6=B8=90=E5=8F=98?= =?UTF-8?q?=E6=96=B9=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 3 +++ Editor/Series/RingEditor.cs | 1 + Runtime/Serie/Ring/Ring.cs | 13 +++++++++++++ Runtime/Serie/Ring/RingHandler.cs | 2 +- 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 09993998..0be09295 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -76,6 +76,9 @@ slug: /changelog ## master +* (2024.09.01) 增加`Ring`的`radiusGradient`参数设置渐变方向 +* (2024.09.01) 优化`Axis`为时间轴时首个Label的位置 + ## v3.11.2 * (2024.08.01) 发布`v3.11.2`版本 diff --git a/Editor/Series/RingEditor.cs b/Editor/Series/RingEditor.cs index 26a35856..5721c7e0 100644 --- a/Editor/Series/RingEditor.cs +++ b/Editor/Series/RingEditor.cs @@ -16,6 +16,7 @@ namespace XCharts.Editor PropertyField("m_RoundCap"); PropertyField("m_Clockwise"); PropertyField("m_AvoidLabelOverlap"); + PropertyField("m_RadiusGradient"); PropertyField("m_ItemStyle"); PropertyField("m_Animation"); diff --git a/Runtime/Serie/Ring/Ring.cs b/Runtime/Serie/Ring/Ring.cs index ebd9b660..368e187c 100644 --- a/Runtime/Serie/Ring/Ring.cs +++ b/Runtime/Serie/Ring/Ring.cs @@ -9,7 +9,20 @@ namespace XCharts.Runtime [SerieDataExtraField()] public class Ring : Serie { + [SerializeField][Since("v3.12.0")] private bool m_RadiusGradient = false; + + /// + /// Whether to use gradient color in pie chart. + /// || 是否开启半径方向的渐变效果。 + /// + public bool radiusGradient + { + get { return m_RadiusGradient; } + set { if (PropertyUtil.SetStruct(ref m_RadiusGradient, value)) { SetVerticesDirty(); } } + } + public override SerieColorBy defaultColorBy { get { return SerieColorBy.Data; } } + public static Serie AddDefaultSerie(BaseChart chart, string serieName) { var serie = chart.AddSerie(serieName); diff --git a/Runtime/Serie/Ring/RingHandler.cs b/Runtime/Serie/Ring/RingHandler.cs index 40fc8c40..cb42ade7 100644 --- a/Runtime/Serie/Ring/RingHandler.cs +++ b/Runtime/Serie/Ring/RingHandler.cs @@ -162,7 +162,7 @@ namespace XCharts.Runtime DrawBackground(vh, serie, serieData, j, insideRadius, outsideRadius); UGL.DrawDoughnut(vh, serie.context.center, insideRadius, outsideRadius, itemColor, itemToColor, Color.clear, startDegree, toDegree, borderWidth, borderColor, 0, chart.settings.cicleSmoothness, - roundCap, serie.clockwise); + roundCap, serie.clockwise, serie.radiusGradient); DrawCenter(vh, serie, serieData, insideRadius, j == data.Count - 1); } From 9a98d6a5df31422f66319503e110dd88535ab577 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Tue, 3 Sep 2024 08:41:09 +0800 Subject: [PATCH 25/34] =?UTF-8?q?=E5=AE=8C=E5=96=84`AreaStyle`=E7=9A=84`or?= =?UTF-8?q?igin`=E5=8F=82=E6=95=B0=E8=AE=BE=E7=BD=AE=E5=8C=BA=E5=9F=9F?= =?UTF-8?q?=E5=A1=AB=E5=85=85=E8=B5=B7=E5=A7=8B=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 1 + Runtime/Serie/Line/LineHelper.cs | 27 +++++++++++++++++++++------ 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 0be09295..b0e7be0b 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -76,6 +76,7 @@ slug: /changelog ## master +* (2024.09.03) 完善`AreaStyle`的`origin`参数设置区域填充起始位置 * (2024.09.01) 增加`Ring`的`radiusGradient`参数设置渐变方向 * (2024.09.01) 优化`Axis`为时间轴时首个Label的位置 diff --git a/Runtime/Serie/Line/LineHelper.cs b/Runtime/Serie/Line/LineHelper.cs index 25cd03ea..25b28399 100644 --- a/Runtime/Serie/Line/LineHelper.cs +++ b/Runtime/Serie/Line/LineHelper.cs @@ -35,12 +35,27 @@ namespace XCharts.Runtime return; } var gridXY = (isY ? grid.context.x : grid.context.y); + var min = gridXY; + var max = gridXY + (isY ? grid.context.width : grid.context.height); + var start = 0f; + switch(serie.areaStyle.origin) + { + case AreaStyle.AreaOrigin.Start: + start = min; + break; + case AreaStyle.AreaOrigin.End: + start = max; + break; + default: + start = gridXY + relativedAxis.context.offset; + break; + } if (lastStackSerie == null) { DrawSerieLineNormalArea(vh, serie, isY, - gridXY + relativedAxis.context.offset, - gridXY, - gridXY + (isY ? grid.context.width : grid.context.height), + start, + min, + max, areaColor, areaToColor, visualMap, @@ -52,9 +67,9 @@ namespace XCharts.Runtime else { DrawSerieLineStackArea(vh, serie, lastStackSerie, isY, - gridXY + relativedAxis.context.offset, - gridXY, - gridXY + (isY ? grid.context.width : grid.context.height), + start, + min, + max, areaColor, areaToColor, visualMap, From 768cf8d404d098cff75f6add02886f8bcd1dd483 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Wed, 11 Sep 2024 08:12:14 +0800 Subject: [PATCH 26/34] =?UTF-8?q?=E5=A2=9E=E5=8A=A0`numericFormatter`?= =?UTF-8?q?=E5=AF=B9`date`=E5=92=8C`time`=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/en/api.md | 13 +++-- Documentation~/en/configuration.md | 19 +++++-- Documentation~/zh/api.md | 13 +++-- Documentation~/zh/changelog.md | 1 + Documentation~/zh/configuration.md | 18 +++++-- Runtime/Component/Child/ItemStyle.cs | 27 ++++++++-- Runtime/Component/Label/LabelStyle.cs | 39 ++++++++++++--- Runtime/Component/Tooltip/Tooltip.cs | 23 +++++++-- Runtime/Internal/Utilities/ChartCached.cs | 61 +++++++++++++++++++++++ Runtime/Utilities/DateTimeUtil.cs | 57 +++++++++++++++------ 10 files changed, 227 insertions(+), 44 deletions(-) diff --git a/Documentation~/en/api.md b/Documentation~/en/api.md index 61e710e5..1655f477 100644 --- a/Documentation~/en/api.md +++ b/Documentation~/en/api.md @@ -1031,7 +1031,11 @@ A candlestick chart is a style of financial chart used to describe price movemen |GetSerieLabelName()||public static string GetSerieLabelName(string prefix, int i, int j)| |GetString()||public static string GetString(string prefix, int suffix)| |IntToStr()||public static string IntToStr(int value, string numericFormatter = "")| +|NumberToDateStr()||public static string NumberToDateStr(double timestamp, string formatter)| +|NumberToDateTime()||public static DateTime NumberToDateTime(double timestamp)| |NumberToStr()||public static string NumberToStr(double value, string formatter)| +|NumberToTimeSpan()||public static TimeSpan NumberToTimeSpan(double timestamp)| +|NumberToTimeStr()||public static string NumberToTimeStr(double timestamp, string formatter)| ## ChartConst @@ -1361,12 +1365,13 @@ DataZoom component is used for zooming a specific area, which enables user to in |public method|since|description| |--|--|--| -|GetDateTime()||public static DateTime GetDateTime(double timestamp)| -|GetDateTime()||public static DateTime GetDateTime(int timestamp)| +|GetDateTime()||public static DateTime GetDateTime(double timestamp, bool local = true)| |GetDefaultDateTimeString()||public static string GetDefaultDateTimeString(int timestamp, double range = 0)| |GetTimestamp()||public static int GetTimestamp()| -|GetTimestamp()||public static int GetTimestamp(DateTime time)| -|GetTimestamp()||public static int GetTimestamp(string dateTime)| +|GetTimestamp()||public static int GetTimestamp(DateTime time, bool local = false)| +|GetTimestamp()||public static int GetTimestamp(string dateTime, bool local = false)| +|IsDateOrTimeRegex()||public static bool IsDateOrTimeRegex(string regex)| +|IsDateOrTimeRegex()||public static bool IsDateOrTimeRegex(string regex, ref bool date, ref string formatter)| ## DebugInfo diff --git a/Documentation~/en/configuration.md b/Documentation~/en/configuration.md index 12ed0d9e..630ba945 100644 --- a/Documentation~/en/configuration.md +++ b/Documentation~/en/configuration.md @@ -1259,7 +1259,7 @@ The interface for serie data component. |opacity|1||透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 |itemMarker|||提示框单项的字符标志。用在Tooltip中。 |itemFormatter|||提示框单项的字符串模版格式器。具体配置参考`Tooltip`的`formatter` -|numericFormatter|||Standard numeric format strings. +|numericFormatter|||Standard number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
Date format: Starts with `date`, which is used to format DateTime. Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
Time format: Starts with `time`, which is used to format TimeSpan. Common time formats are: d day, HH hour, mm minute, ss second, fffffff fractional part. Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. For example: time:HH\:mm\:ss
number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
Note: The date and time formats are only supported by 'v3.12.0' or later.
|cornerRadius|||The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)). ```mdx-code-block @@ -1320,7 +1320,7 @@ Text label of chart, to explain some data information about graphic item like va |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 of x axis 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.
`{y}` : category value of y axis.
`{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 number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
Date format Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: yyyy-MM-dd HH:mm:ss
number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
+|numericFormatter|||Standard number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
Date format: Starts with `date`, which is used to format DateTime. Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
Time format: Starts with `time`, which is used to format TimeSpan. Common time formats are: d day, HH hour, mm minute, ss second, fffffff fractional part. Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. For example: time:HH\:mm\:ss
number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
Note: The date and time formats are only supported by 'v3.12.0' or later.
|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. |icon|||the sytle of icon. [IconStyle](#iconstyle)| @@ -1813,6 +1813,19 @@ Radial axis of polar coordinate. > class in XCharts.Runtime / Inherits from: [Serie](#serie) +```mdx-code-block + +``` + + +|field|default|since|comment| +|--|--|--|--| +|radiusGradient|false|v3.12.0|Whether to use gradient color in pie chart. + +```mdx-code-block + +``` + ## Scatter > class in XCharts.Runtime / Inherits from: [BaseScatter](#basescatter) @@ -2350,7 +2363,7 @@ Tooltip component. |fixedHeight|0||Fixed height. Higher priority than minHeight. |minWidth|0||Minimum width. If fixedWidth has a value, get fixedWidth first. |minHeight|0||Minimum height. If fixedHeight has a value, take priority over fixedHeight. -|numericFormatter|||Standard number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
Date format Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: yyyy-MM-dd HH:mm:ss
number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
+|numericFormatter|||Standard number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
Date format: Starts with `date`, which is used to format DateTime. Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
Time format: Starts with `time`, which is used to format TimeSpan. Common time formats are: d day, HH hour, mm minute, ss second, fffffff fractional part. Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. For example: time:HH\:mm\:ss
number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
Note: The date and time formats are only supported by 'v3.12.0' or later.
|paddingLeftRight|10||the text padding of left and right. defaut:5. |paddingTopBottom|10||the text padding of top and bottom. defaut:5. |ignoreDataShow|false||Whether to show ignored data on tooltip. diff --git a/Documentation~/zh/api.md b/Documentation~/zh/api.md index fb67994e..be4654ab 100644 --- a/Documentation~/zh/api.md +++ b/Documentation~/zh/api.md @@ -1031,7 +1031,11 @@ slug: /api |GetSerieLabelName()||public static string GetSerieLabelName(string prefix, int i, int j)| |GetString()||public static string GetString(string prefix, int suffix)| |IntToStr()||public static string IntToStr(int value, string numericFormatter = "")| +|NumberToDateStr()||public static string NumberToDateStr(double timestamp, string formatter)| +|NumberToDateTime()||public static DateTime NumberToDateTime(double timestamp)| |NumberToStr()||public static string NumberToStr(double value, string formatter)| +|NumberToTimeSpan()||public static TimeSpan NumberToTimeSpan(double timestamp)| +|NumberToTimeStr()||public static string NumberToTimeStr(double timestamp, string formatter)| ## ChartConst @@ -1361,12 +1365,13 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 |API|版本|描述| |--|--|--| -|GetDateTime()||public static DateTime GetDateTime(double timestamp)| -|GetDateTime()||public static DateTime GetDateTime(int timestamp)| +|GetDateTime()||public static DateTime GetDateTime(double timestamp, bool local = true)| |GetDefaultDateTimeString()||public static string GetDefaultDateTimeString(int timestamp, double range = 0)| |GetTimestamp()||public static int GetTimestamp()| -|GetTimestamp()||public static int GetTimestamp(DateTime time)| -|GetTimestamp()||public static int GetTimestamp(string dateTime)| +|GetTimestamp()||public static int GetTimestamp(DateTime time, bool local = false)| +|GetTimestamp()||public static int GetTimestamp(string dateTime, bool local = false)| +|IsDateOrTimeRegex()||public static bool IsDateOrTimeRegex(string regex)| +|IsDateOrTimeRegex()||public static bool IsDateOrTimeRegex(string regex, ref bool date, ref string formatter)| ## DebugInfo diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index b0e7be0b..46bfe4e4 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -76,6 +76,7 @@ slug: /changelog ## master +* (2024.09.09) 增加`numericFormatter`对`date`和`time`的支持 * (2024.09.03) 完善`AreaStyle`的`origin`参数设置区域填充起始位置 * (2024.09.01) 增加`Ring`的`radiusGradient`参数设置渐变方向 * (2024.09.01) 优化`Axis`为时间轴时首个Label的位置 diff --git a/Documentation~/zh/configuration.md b/Documentation~/zh/configuration.md index 396a2ef9..703bf268 100644 --- a/Documentation~/zh/configuration.md +++ b/Documentation~/zh/configuration.md @@ -1223,7 +1223,7 @@ Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart |opacity|1||透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 |itemMarker|||提示框单项的字符标志。用在Tooltip中。 |itemFormatter|||提示框单项的字符串模版格式器。具体配置参考`Tooltip`的`formatter` -|numericFormatter|||标准数字格式字符串。用于将数值格式化显示为字符串。 使用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 +|numericFormatter|||标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
日期格式:以`date`开头,用来格式化DateTime,常见格式有:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:date:yyyy-MM-dd HH:mm:ss
时间格式:以`time`开头,用来格式化TimeSpan,常见格式有:d日,HH时,mm分,ss秒,fffffff小数部分。 需要Unity2018以上版本才支持格式化,并且里面的字符要转义。如:time:d\.HH\:mm\:ss
数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
时间格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings
注意:date和time格式需要`v3.12.0`以上版本才支持。 |cornerRadius|||圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。 ```mdx-code-block @@ -1282,7 +1282,7 @@ Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart |autoRotate|false|v3.6.0|是否自动旋转。 |distance|||距离轴线的距离。 |formatter|||标签内容字符串模版格式器。支持用 \n 换行。部分组件的格式器会不生效。
模板通配符有以下这些,部分只适用于固定的组件:
`{.}`:圆点标记。
`{a}`:系列名。
`{b}`:X轴类目名或数据名。
`{c}`:数据值。
`{d}`:百分比。
`{e}`:数据名。
`{f}`:数据和。
`{g}`:数据总个数。
`{h}`:十六进制颜色值。
`{y}`:Y轴的类目名。
`{value}`:坐标轴或图例的值。
以下通配符适用UITable组件:
`{name}`: 表格的行名。
`{index}`:表格的行号。
以下通配符适用UIStatistc组件:
`{title}`:标题文本。
`{dd}`:天。
`{hh}`:小时。
`{mm}`:分钟。
`{ss}`:秒。
`{fff}`:毫秒。
`{d}`:天。
`{h}`:小时。
`{m}`:分钟。
`{s}`:秒。
`{f}`:毫秒。
示例:“{b}:{c}” -|numericFormatter|||标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
日期格式常见的格式:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:yyyy-MM-dd HH:mm:ss
数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings +|numericFormatter|||标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
日期格式:以`date`开头,用来格式化DateTime,常见格式有:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:date:yyyy-MM-dd HH:mm:ss
时间格式:以`time`开头,用来格式化TimeSpan,常见格式有:d日,HH时,mm分,ss秒,fffffff小数部分。 需要Unity2018以上版本才支持格式化,并且里面的字符要转义。如:time:d\.HH\:mm\:ss
数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
时间格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings
注意:date和time格式需要`v3.12.0`以上版本才支持。 |width|0||标签的宽度。一般不用指定,不指定时则自动是文字的宽度。 |height|0||标签的高度。一般不用指定,不指定时则自动是文字的高度。 |icon|||图标样式。 [IconStyle](#iconstyle)| @@ -1757,6 +1757,18 @@ Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适 > class in XCharts.Runtime / 继承自: [Serie](#serie) +```mdx-code-block + +``` + +|参数|默认|版本|描述| +|--|--|--|--| +|radiusGradient|false|v3.12.0|是否开启半径方向的渐变效果。 + +```mdx-code-block + +``` + ## Scatter > class in XCharts.Runtime / 继承自: [BaseScatter](#basescatter) @@ -2278,7 +2290,7 @@ Serie的状态样式。Serie的状态有正常,高亮,淡出,选中四种 |fixedHeight|0||固定高度。比 minHeight 优先。 |minWidth|0||最小宽度。如若 fixedWidth 设有值,优先取 fixedWidth。 |minHeight|0||最小高度。如若 fixedHeight 设有值,优先取 fixedHeight。 -|numericFormatter|||标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
日期格式常见的格式:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:yyyy-MM-dd HH:mm:ss
数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings +|numericFormatter|||标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
日期格式:以`date`开头,用来格式化DateTime,常见格式有:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:date:yyyy-MM-dd HH:mm:ss
时间格式:以`time`开头,用来格式化TimeSpan,常见格式有:d日,HH时,mm分,ss秒,fffffff小数部分。 需要Unity2018以上版本才支持格式化,并且里面的字符要转义。如:time:d\.HH\:mm\:ss
数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
时间格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings
注意:date和time格式需要`v3.12.0`以上版本才支持。 |paddingLeftRight|10||左右边距。 |paddingTopBottom|10||上下边距。 |ignoreDataShow|false||是否显示忽略数据在tooltip上。 diff --git a/Runtime/Component/Child/ItemStyle.cs b/Runtime/Component/Child/ItemStyle.cs index 69384b9b..8fe51003 100644 --- a/Runtime/Component/Child/ItemStyle.cs +++ b/Runtime/Component/Child/ItemStyle.cs @@ -209,10 +209,29 @@ namespace XCharts.Runtime set { if (PropertyUtil.SetClass(ref m_ItemMarker, value)) SetVerticesDirty(); } } /// - /// Standard numeric format strings. - /// ||标准数字格式字符串。用于将数值格式化显示为字符串。 - /// 使用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 + /// Standard number and date format string. Used to format a Double value or a DateTime date as a string. + /// numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
+ /// The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. + /// xx is precision specification, from 0-99. E.g. F1, E2
+ /// Date format: Starts with `date`, which is used to format DateTime. Common date formats are: + /// yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
+ /// Time format: Starts with `time`, which is used to format TimeSpan. Common time formats are: + /// d day, HH hour, mm minute, ss second, fffffff fractional part. + /// Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. + /// For example: time:HH\:mm\:ss
+ /// number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
+ /// date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
+ /// Note: The date and time formats are only supported by 'v3.12.0' or later.
+ /// ||标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
+ /// 数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
+ /// 日期格式:以`date`开头,用来格式化DateTime,常见格式有:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:date:yyyy-MM-dd HH:mm:ss
+ /// 时间格式:以`time`开头,用来格式化TimeSpan,常见格式有:d日,HH时,mm分,ss秒,fffffff小数部分。 + /// 需要Unity2018以上版本才支持格式化,并且里面的字符要转义。如:time:d\.HH\:mm\:ss
+ /// 数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
+ /// 日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
+ /// 时间格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings
+ /// 注意:date和time格式需要`v3.12.0`以上版本才支持。 ///
public string numericFormatter { diff --git a/Runtime/Component/Label/LabelStyle.cs b/Runtime/Component/Label/LabelStyle.cs index 1b6a9555..743a8a7a 100644 --- a/Runtime/Component/Label/LabelStyle.cs +++ b/Runtime/Component/Label/LabelStyle.cs @@ -184,16 +184,29 @@ namespace XCharts.Runtime set { if (PropertyUtil.SetClass(ref m_Formatter, value)) SetComponentDirty(); } } /// - /// Standard number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
- /// The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
- /// Date format Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: yyyy-MM-dd HH:mm:ss
+ /// Standard number and date format string. Used to format a Double value or a DateTime date as a string. + /// numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
+ /// The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. + /// xx is precision specification, from 0-99. E.g. F1, E2
+ /// Date format: Starts with `date`, which is used to format DateTime. Common date formats are: + /// yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
+ /// Time format: Starts with `time`, which is used to format TimeSpan. Common time formats are: + /// d day, HH hour, mm minute, ss second, fffffff fractional part. + /// Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. + /// For example: time:HH\:mm\:ss
/// number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
/// date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
+ /// Note: The date and time formats are only supported by 'v3.12.0' or later.
/// ||标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
/// 数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
- /// 日期格式常见的格式:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:yyyy-MM-dd HH:mm:ss
+ /// 日期格式:以`date`开头,用来格式化DateTime,常见格式有:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:date:yyyy-MM-dd HH:mm:ss
+ /// 时间格式:以`time`开头,用来格式化TimeSpan,常见格式有:d日,HH时,mm分,ss秒,fffffff小数部分。 + /// 需要Unity2018以上版本才支持格式化,并且里面的字符要转义。如:time:d\.HH\:mm\:ss
/// 数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
- /// 日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings + /// 日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
+ /// 时间格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings
+ /// 注意:date和time格式需要`v3.12.0`以上版本才支持。 ///
public string numericFormatter { @@ -405,7 +418,7 @@ namespace XCharts.Runtime public virtual string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false) { var newNumericFormatter = numericFormatter; - if (value == 0) + if (value == 0 && !DateTimeUtil.IsDateOrTimeRegex(newNumericFormatter)) { newNumericFormatter = "f0"; } @@ -444,6 +457,8 @@ namespace XCharts.Runtime } } + private static bool isDateFormatter = false; + private static string newFormatter = null; public string GetFormatterDateTime(int labelIndex, double value, double minValue, double maxValue) { var timestamp = (int)value; @@ -457,7 +472,17 @@ namespace XCharts.Runtime { try { - dateString = dateTime.ToString(numericFormatter); + if(DateTimeUtil.IsDateOrTimeRegex(numericFormatter, ref isDateFormatter, ref newFormatter)) + { + if(isDateFormatter) + dateString = ChartCached.NumberToDateStr(timestamp, newFormatter); + else + dateString = ChartCached.NumberToTimeStr(timestamp, newFormatter); + } + else + { + dateString = dateTime.ToString(numericFormatter); + } } catch { diff --git a/Runtime/Component/Tooltip/Tooltip.cs b/Runtime/Component/Tooltip/Tooltip.cs index 7711fd9e..68e797a9 100644 --- a/Runtime/Component/Tooltip/Tooltip.cs +++ b/Runtime/Component/Tooltip/Tooltip.cs @@ -293,16 +293,29 @@ namespace XCharts.Runtime /// public string itemFormatter { get { return m_ItemFormatter; } set { m_ItemFormatter = value; } } /// - /// Standard number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
- /// The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
- /// Date format Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: yyyy-MM-dd HH:mm:ss
+ /// Standard number and date format string. Used to format a Double value or a DateTime date as a string. + /// numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
+ /// The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. + /// xx is precision specification, from 0-99. E.g. F1, E2
+ /// Date format: Starts with `date`, which is used to format DateTime. Common date formats are: + /// yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
+ /// Time format: Starts with `time`, which is used to format TimeSpan. Common time formats are: + /// d day, HH hour, mm minute, ss second, fffffff fractional part. + /// Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. + /// For example: time:HH\:mm\:ss
/// number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
/// date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
+ /// Note: The date and time formats are only supported by 'v3.12.0' or later.
/// ||标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
/// 数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
- /// 日期格式常见的格式:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:yyyy-MM-dd HH:mm:ss
+ /// 日期格式:以`date`开头,用来格式化DateTime,常见格式有:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:date:yyyy-MM-dd HH:mm:ss
+ /// 时间格式:以`time`开头,用来格式化TimeSpan,常见格式有:d日,HH时,mm分,ss秒,fffffff小数部分。 + /// 需要Unity2018以上版本才支持格式化,并且里面的字符要转义。如:time:d\.HH\:mm\:ss
/// 数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
- /// 日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings + /// 日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
+ /// 时间格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings
+ /// 注意:date和time格式需要`v3.12.0`以上版本才支持。 ///
public string numericFormatter { diff --git a/Runtime/Internal/Utilities/ChartCached.cs b/Runtime/Internal/Utilities/ChartCached.cs index 1a07f332..98547d46 100644 --- a/Runtime/Internal/Utilities/ChartCached.cs +++ b/Runtime/Internal/Utilities/ChartCached.cs @@ -23,6 +23,8 @@ namespace XCharts.Runtime private static Dictionary> s_NumberToStr = new Dictionary>(); private static Dictionary> s_PrecisionToStr = new Dictionary>(); private static Dictionary> s_StringIntDict = new Dictionary>(); + private static Dictionary s_TimestampToDateTimeDict = new Dictionary(); + private static Dictionary s_NumberToTimeSpanDict = new Dictionary(); private static CultureInfo GetDefaultCultureInfo() { @@ -64,10 +66,19 @@ namespace XCharts.Runtime } if (!s_NumberToStr[value].ContainsKey(formatter)) { + bool isDateFormatter = false; + string newFormatter = null; if (string.IsNullOrEmpty(formatter)) { s_NumberToStr[value][formatter] = value.ToString(); } + else if (DateTimeUtil.IsDateOrTimeRegex(formatter,ref isDateFormatter, ref newFormatter)) + { + if(isDateFormatter) + s_NumberToStr[value][formatter] = NumberToDateStr(value, newFormatter); + else + s_NumberToStr[value][formatter] = NumberToTimeStr(value, newFormatter); + } else if (formatter.StartsWith(NUMERIC_FORMATTER_D) || formatter.StartsWith(NUMERIC_FORMATTER_d) || formatter.StartsWith(NUMERIC_FORMATTER_X) || @@ -89,6 +100,56 @@ namespace XCharts.Runtime return NumberToStr(value, numericFormatter); } + public static string NumberToDateStr(double timestamp, string formatter) + { + var dt = NumberToDateTime(timestamp); + try + { + return dt.ToString(formatter, ci); + } + catch (Exception) + { + XLog.LogError("Not support DateTime format: " + formatter); + return timestamp.ToString(); + } + } + + public static string NumberToTimeStr(double timestamp, string formatter) + { + try + { + var ts = NumberToTimeSpan(timestamp); +#if UNITY_2018_3_OR_NEWER + return ts.ToString(formatter, ci); +#else + return ts.ToString(); +#endif + } + catch (Exception) + { + XLog.LogError("Not support TimeSpan format: " + formatter); + return timestamp.ToString(); + } + } + + public static DateTime NumberToDateTime(double timestamp) + { + if (!s_TimestampToDateTimeDict.ContainsKey(timestamp)) + { + s_TimestampToDateTimeDict[timestamp] = DateTimeUtil.GetDateTime(timestamp); + } + return s_TimestampToDateTimeDict[timestamp]; + } + + public static TimeSpan NumberToTimeSpan(double timestamp) + { + if(!s_NumberToTimeSpanDict.ContainsKey(timestamp)) + { + s_NumberToTimeSpanDict[timestamp] = TimeSpan.FromSeconds(timestamp); + } + return s_NumberToTimeSpanDict[timestamp]; + } + public static string ColorToStr(Color color) { if (s_ColorToStr.ContainsKey(color)) diff --git a/Runtime/Utilities/DateTimeUtil.cs b/Runtime/Utilities/DateTimeUtil.cs index 00eaa3da..6459f546 100644 --- a/Runtime/Utilities/DateTimeUtil.cs +++ b/Runtime/Utilities/DateTimeUtil.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Text.RegularExpressions; using UnityEngine; namespace XCharts.Runtime @@ -7,10 +8,11 @@ namespace XCharts.Runtime public static class DateTimeUtil { #if UNITY_2018_3_OR_NEWER - private static readonly DateTime k_DateTime1970 = TimeZoneInfo.ConvertTimeFromUtc(new DateTime(1970, 1, 1), TimeZoneInfo.Local); + private static readonly DateTime k_LocalDateTime1970 = TimeZoneInfo.ConvertTimeFromUtc(new DateTime(1970, 1, 1), TimeZoneInfo.Local); #else - private static readonly DateTime k_DateTime1970 = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); + private static readonly DateTime k_LocalDateTime1970 = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); #endif + private static readonly DateTime k_DateTime1970 = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); public static readonly int ONE_SECOND = 1; public static readonly int ONE_MINUTE = ONE_SECOND * 60; public static readonly int ONE_HOUR = ONE_MINUTE * 60; @@ -26,22 +28,54 @@ namespace XCharts.Runtime //private static string s_MinuteDateFormatter = "mm:ss"; private static string s_SecondDateFormatter = "HH:mm:ss"; //private static string s_FullDateFormatter = "yyyy-MM-dd HH:mm:ss"; + private static Regex s_DateOrTimeRegex = new Regex(@"^(date|time)\s*[:\s]+(.*)", RegexOptions.IgnoreCase); + + public static bool IsDateOrTimeRegex(string regex) + { + return regex.StartsWith("date") || regex.StartsWith("time"); + } + + public static bool IsDateOrTimeRegex(string regex, ref bool date, ref string formatter) + { + if(IsDateOrTimeRegex(regex)) + { + if(regex == "date" || regex == "time") + { + date = regex == "date"; + formatter = ""; + return true; + } + var mc = s_DateOrTimeRegex.Matches(regex); + date = mc[0].Groups[1].Value == "date"; + formatter = mc[0].Groups[2].Value; + return true; + } + return false; + } public static int GetTimestamp() { - return (int)(DateTime.Now - k_DateTime1970).TotalSeconds; + return (int)(DateTime.Now - k_LocalDateTime1970).TotalSeconds; } - public static int GetTimestamp(DateTime time) + public static int GetTimestamp(DateTime time, bool local = false) { - return (int)(time - k_DateTime1970).TotalSeconds; + if (local) + { + return (int)(time - k_LocalDateTime1970).TotalSeconds; + } + else + { + return (int)(time - k_DateTime1970).TotalSeconds; + } } - public static int GetTimestamp(string dateTime) + public static int GetTimestamp(string dateTime, bool local = false) { try { - return GetTimestamp(DateTime.Parse(dateTime)); + + return GetTimestamp(DateTime.Parse(dateTime), local); } catch (Exception e) { @@ -49,14 +83,9 @@ namespace XCharts.Runtime } } - public static DateTime GetDateTime(double timestamp) + public static DateTime GetDateTime(double timestamp, bool local = true) { - return k_DateTime1970.AddSeconds(timestamp); - } - - public static DateTime GetDateTime(int timestamp) - { - return k_DateTime1970.AddSeconds(timestamp); + return local ? k_LocalDateTime1970.AddSeconds(timestamp) : k_DateTime1970.AddSeconds(timestamp); } public static string GetDefaultDateTimeString(int timestamp, double range = 0) From c2a19ee47bb074b8315a8b2538a9639131328089 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sat, 21 Sep 2024 13:31:16 +0800 Subject: [PATCH 27/34] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/en/api.md | 10201 +++++++++++++++++++++------ Documentation~/en/configuration.md | 5245 ++++++++++---- Documentation~/zh/api.md | 10201 +++++++++++++++++++++------ Documentation~/zh/configuration.md | 5315 ++++++++++---- 4 files changed, 23893 insertions(+), 7069 deletions(-) diff --git a/Documentation~/en/api.md b/Documentation~/en/api.md index 1655f477..e21619b8 100644 --- a/Documentation~/en/api.md +++ b/Documentation~/en/api.md @@ -7,10 +7,12 @@ slug: /api ## All Class +- [Align](#align) - [AngleAxis](#angleaxis) - [AngleAxisTheme](#angleaxistheme) - [AnimationAddition](#animationaddition) - [AnimationChange](#animationchange) +- [AnimationEasing](#animationeasing) - [AnimationFadeIn](#animationfadein) - [AnimationFadeOut](#animationfadeout) - [AnimationHiding](#animationhiding) @@ -19,9 +21,14 @@ slug: /api - [AnimationInteraction](#animationinteraction) - [AnimationStyle](#animationstyle) - [AnimationStyleHelper](#animationstylehelper) +- [AnimationType](#animationtype) - [AreaStyle](#areastyle) +- [AreaStyle.AreaOrigin](#areastyleareaorigin) - [ArrowStyle](#arrowstyle) - [Axis](#axis) +- [Axis.AxisMinMaxType](#axisaxisminmaxtype) +- [Axis.AxisPosition](#axisaxisposition) +- [Axis.AxisType](#axisaxistype) - [Axis3DHelper](#axis3dhelper) - [AxisAnimation](#axisanimation) - [AxisContext](#axiscontext) @@ -39,6 +46,7 @@ slug: /api - [Background](#background) - [Bar](#bar) - [BarChart](#barchart) +- [BarType](#bartype) - [BaseAxisTheme](#baseaxistheme) - [BaseChart](#basechart) - [BaseGraph](#basegraph) @@ -70,6 +78,8 @@ slug: /api - [CoordSystem](#coordsystem) - [DataHelper](#datahelper) - [DataZoom](#datazoom) +- [DataZoom.FilterMode](#datazoomfiltermode) +- [DataZoom.RangeMode](#datazoomrangemode) - [DataZoomContext](#datazoomcontext) - [DataZoomHelper](#datazoomhelper) - [DataZoomTheme](#datazoomtheme) @@ -80,6 +90,8 @@ slug: /api - [DefineSymbolsUtil](#definesymbolsutil) - [EffectScatter](#effectscatter) - [EmphasisStyle](#emphasisstyle) +- [EmphasisStyle.BlurScope](#emphasisstyleblurscope) +- [EmphasisStyle.FocusType](#emphasisstylefocustype) - [EndLabelStyle](#endlabelstyle) - [FormatterHelper](#formatterhelper) - [GraphData](#graphdata) @@ -93,7 +105,9 @@ slug: /api - [GridLayoutContext](#gridlayoutcontext) - [Heatmap](#heatmap) - [HeatmapChart](#heatmapchart) +- [HeatmapType](#heatmaptype) - [IconStyle](#iconstyle) +- [IconStyle.Layer](#iconstylelayer) - [IgnoreDoc](#ignoredoc) - [ImageStyle](#imagestyle) - [Indicator](#indicator) @@ -109,12 +123,16 @@ slug: /api - [IUpdateRuntimeData](#iupdateruntimedata) - [JsonUtil](#jsonutil) - [LabelLine](#labelline) +- [LabelLine.LineType](#labellinelinetype) - [LabelStyle](#labelstyle) +- [LabelStyle.Position](#labelstyleposition) - [Lang](#lang) - [LangCandlestick](#langcandlestick) - [LangTime](#langtime) - [LayerHelper](#layerhelper) - [Legend](#legend) +- [Legend.SelectedMode](#legendselectedmode) +- [Legend.Type](#legendtype) - [LegendContext](#legendcontext) - [LegendHelper](#legendhelper) - [LegendItem](#legenditem) @@ -123,28 +141,37 @@ slug: /api - [LevelStyle](#levelstyle) - [Line](#line) - [LineArrow](#linearrow) +- [LineArrow.Position](#linearrowposition) - [LineChart](#linechart) - [LineHelper](#linehelper) - [LineStyle](#linestyle) +- [LineStyle.Type](#linestyletype) +- [LineType](#linetype) - [ListFor](#listfor) - [ListForComponent](#listforcomponent) - [ListForSerie](#listforserie) - [ListPool<T>](#listpoolt) - [Location](#location) +- [Location.Align](#locationalign) - [MainComponent](#maincomponent) - [MainComponentContext](#maincomponentcontext) - [MainComponentHandler](#maincomponenthandler) - [MainComponentHandler<T>](#maincomponenthandlert) - [MarkArea](#markarea) - [MarkAreaData](#markareadata) +- [MarkAreaType](#markareatype) - [MarkLine](#markline) - [MarkLineData](#marklinedata) +- [MarkLineType](#marklinetype) - [MarqueeStyle](#marqueestyle) - [MathUtil](#mathutil) - [MLValue](#mlvalue) +- [MLValue.Type](#mlvaluetype) - [MonoBehaviour](#monobehaviour) +- [Orient](#orient) - [Padding](#padding) - [Painter](#painter) +- [Painter.Type](#paintertype) - [Parallel](#parallel) - [ParallelAxis](#parallelaxis) - [ParallelChart](#parallelchart) @@ -161,18 +188,24 @@ slug: /api - [RadarAxisTheme](#radaraxistheme) - [RadarChart](#radarchart) - [RadarCoord](#radarcoord) +- [RadarCoord.PositionType](#radarcoordpositiontype) +- [RadarCoord.Shape](#radarcoordshape) - [RadarCoordContext](#radarcoordcontext) +- [RadarType](#radartype) - [RadiusAxis](#radiusaxis) - [RadiusAxisTheme](#radiusaxistheme) - [ReflectionUtil](#reflectionutil) - [RequireChartComponentAttribute](#requirechartcomponentattribute) - [Ring](#ring) - [RingChart](#ringchart) +- [RoseType](#rosetype) - [RuntimeUtil](#runtimeutil) +- [SampleType](#sampletype) - [Scatter](#scatter) - [ScatterChart](#scatterchart) - [SelectStyle](#selectstyle) - [Serie](#serie) +- [SerieColorBy](#seriecolorby) - [SerieComponentAttribute](#seriecomponentattribute) - [SerieContext](#seriecontext) - [SerieConvertAttribute](#serieconvertattribute) @@ -181,6 +214,7 @@ slug: /api - [SerieDataContext](#seriedatacontext) - [SerieDataExtraFieldAttribute](#seriedataextrafieldattribute) - [SerieDataLink](#seriedatalink) +- [SerieDataSortType](#seriedatasorttype) - [SerieEventData](#serieeventdata) - [SerieEventDataPool](#serieeventdatapool) - [SerieHandler](#seriehandler) @@ -191,6 +225,7 @@ slug: /api - [SerieLabelPool](#serielabelpool) - [SerieParams](#serieparams) - [SeriesHelper](#serieshelper) +- [SerieState](#seriestate) - [SerieSymbol](#seriesymbol) - [SerieTheme](#serietheme) - [Settings](#settings) @@ -209,16 +244,24 @@ slug: /api - [SVG](#svg) - [SVGPath](#svgpath) - [SVGPathSeg](#svgpathseg) +- [SVGPathSegType](#svgpathsegtype) +- [SymbolSizeType](#symbolsizetype) - [SymbolStyle](#symbolstyle) +- [SymbolType](#symboltype) - [TextLimit](#textlimit) - [TextPadding](#textpadding) - [TextStyle](#textstyle) - [Theme](#theme) - [ThemeStyle](#themestyle) +- [ThemeType](#themetype) - [Title](#title) - [TitleStyle](#titlestyle) - [TitleTheme](#titletheme) - [Tooltip](#tooltip) +- [Tooltip.Position](#tooltipposition) +- [Tooltip.Trigger](#tooltiptrigger) +- [Tooltip.TriggerOn](#tooltiptriggeron) +- [Tooltip.Type](#tooltiptype) - [TooltipContext](#tooltipcontext) - [TooltipData](#tooltipdata) - [TooltipHelper](#tooltiphelper) @@ -226,6 +269,7 @@ slug: /api - [TooltipView](#tooltipview) - [TooltipViewItem](#tooltipviewitem) - [UGL](#ugl) +- [UGL.Direction](#ugldirection) - [UGLExample](#uglexample) - [UGLHelper](#uglhelper) - [UIComponent](#uicomponent) @@ -233,6 +277,8 @@ slug: /api - [UIHelper](#uihelper) - [ViewControl](#viewcontrol) - [VisualMap](#visualmap) +- [VisualMap.SelectedMode](#visualmapselectedmode) +- [VisualMap.Type](#visualmaptype) - [VisualMapContext](#visualmapcontext) - [VisualMapHelper](#visualmaphelper) - [VisualMapRange](#visualmaprange) @@ -251,30 +297,48 @@ slug: /api - [ZAxis3D](#zaxis3d) +## Align + +class in XCharts.Runtime + +Alignment mode. + +Options: + +- `Center`: Alignment mode. +- `Left`: Alignment mode. +- `Right`: Alignment mode. + ## AngleAxis -> class in XCharts.Runtime / Inherits from: [Axis](#axis) +class in XCharts.Runtime / Inherits from: [Axis](#axis) Angle axis of Polar Coordinate. -|public method|since|description| -|--|--|--| -|GetValueAngle()||public float GetValueAngle(double value)| -|GetValueAngle()||public float GetValueAngle(float value)| -|SetDefaultValue()||public override void SetDefaultValue()| +### AngleAxis.GetValueAngle + +public float GetValueAngle(double value) + + +### AngleAxis.SetDefaultValue + +public override void SetDefaultValue() ## AngleAxisTheme -> class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) +### AngleAxisTheme.base(theme) -|public method|since|description| -|--|--|--| -|AngleAxisTheme()||public AngleAxisTheme(ThemeType theme) : base(theme) { }| +public AngleAxisTheme(ThemeType theme) : base(theme) + +### AngleAxisTheme.AngleAxisTheme + +public AngleAxisTheme(ThemeType theme) : base(theme) { } ## AnimationAddition -> class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) > Since `v3.8.0` @@ -282,15 +346,23 @@ Data addition animation. ## AnimationChange -> class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) > Since `v3.8.0` Data change animation. +## AnimationEasing + +class in XCharts.Runtime + +Options: + +- `Linear`: + ## AnimationFadeIn -> class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) > Since `v3.8.0` @@ -298,7 +370,7 @@ Fade in animation. ## AnimationFadeOut -> class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) > Since `v3.8.0` @@ -306,7 +378,7 @@ Fade out animation. ## AnimationHiding -> class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) > Since `v3.8.0` @@ -314,666 +386,2354 @@ Data hiding animation. ## AnimationInfo -> class in XCharts.Runtime / Subclasses: [AnimationFadeIn](#animationfadein),[AnimationFadeOut](#animationfadeout),[AnimationChange](#animationchange),[AnimationAddition](#animationaddition),[AnimationHiding](#animationhiding),[AnimationInteraction](#animationinteraction) +class in XCharts.Runtime / Subclasses: [AnimationFadeIn](#animationfadein),[AnimationFadeOut](#animationfadeout),[AnimationChange](#animationchange),[AnimationAddition](#animationaddition),[AnimationHiding](#animationhiding),[AnimationInteraction](#animationinteraction) > Since `v3.8.0` the animation info. -|public method|since|description| -|--|--|--| -|End()||public void End()
End animation. | -|GetIndexDelay()||public float GetIndexDelay(int dataIndex)
Get animation delay. | -|Init()||public bool Init(float curr, float dest, int totalPointIndex)
Initialize animation. | -|IsFinish()||public bool IsFinish()
Whether animation is finish. | -|IsInDelay()||public bool IsInDelay()
Whether animation is in delay. | -|IsInIndexDelay()||public bool IsInIndexDelay(int dataIndex)
Whether animation is in index delay. | -|Pause()||public void Pause()
Pause animation. | -|Reset()||public void Reset()
Reset animation. | -|Resume()||public void Resume()
Resume animation. | -|Start()||public void Start(bool reset = true)
Start animation. | +### AnimationInfo.delay + +public float delay +the delay time before animation start. + +### AnimationInfo.delayFunction + +public AnimationDelayFunction delayFunction +the delegate function of animation delay. + +### AnimationInfo.duration + +public float duration +the duration of animation. + +### AnimationInfo.durationFunction + +public AnimationDurationFunction durationFunction +the delegate function of animation duration. + +### AnimationInfo.enable + +public bool enable +whether enable animation. + +### AnimationInfo.OnAnimationEnd + +public Action OnAnimationEnd +the callback function of animation end. + +### AnimationInfo.OnAnimationStart + +public Action OnAnimationStart +the callback function of animation start. + +### AnimationInfo.reverse + +public bool reverse +whether enable reverse animation. + +### AnimationInfo.End + +public void End() +End animation. + +### AnimationInfo.GetIndexDelay + +public float GetIndexDelay(int dataIndex) +Get animation delay. + +### AnimationInfo.Init + +public bool Init(float curr, float dest, int totalPointIndex) +Initialize animation. + +### AnimationInfo.IsFinish + +public bool IsFinish() +Whether animation is finish. + +### AnimationInfo.IsInDelay + +public bool IsInDelay() +Whether animation is in delay. + +### AnimationInfo.IsInIndexDelay + +public bool IsInIndexDelay(int dataIndex) +Whether animation is in index delay. + +### AnimationInfo.Pause + +public void Pause() +Pause animation. + +### AnimationInfo.Reset + +public void Reset() +Reset animation. + +### AnimationInfo.Resume + +public void Resume() +Resume animation. + +### AnimationInfo.Start + +public void Start(bool reset = true) +Start animation. ## AnimationInfoContext -> class in XCharts.Runtime - +class in XCharts.Runtime ## AnimationInteraction -> class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) > Since `v3.8.0` Interactive animation of charts. -|public method|since|description| -|--|--|--| -|GetOffset()||public float GetOffset()| -|GetOffset()||public float GetOffset(float total)| -|GetRadius()||public float GetRadius(float radius)| -|GetWidth()||public float GetWidth(float width)| +### AnimationInteraction.offset + +public MLValue offset +the mlvalue of offset. Such as the offset of the pie chart when the sector is selected. + +### AnimationInteraction.radius + +public MLValue radius +the mlvalue of radius. + +### AnimationInteraction.width + +public MLValue width +the mlvalue of width. + +### AnimationInteraction.GetOffset + +public float GetOffset() + + +### AnimationInteraction.GetRadius + +public float GetRadius(float radius) + +### AnimationInteraction.GetWidth + +public float GetWidth(float width) ## AnimationStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) the animation of serie. support animation type: fadeIn, fadeOut, change, addition. -|public method|since|description| -|--|--|--| -|Addition()||public void Addition()
Start additon animation. | -|CanCheckInteract()||public bool CanCheckInteract()| -|CheckDetailBreak()||public bool CheckDetailBreak(float detail)| -|CheckDetailBreak()||public bool CheckDetailBreak(Vector3 pos, bool isYAxis)| -|CheckProgress()||public void CheckProgress()| -|CheckProgress()||public void CheckProgress(double total)| -|CheckSymbol()||public void CheckSymbol(float dest)| -|FadeIn()||public void FadeIn()
Start fadein animation. | -|FadeOut()||public void FadeOut()
Start fadeout animation. | -|GetAdditionDuration()||public float GetAdditionDuration()| -|GetChangeDuration()||public float GetChangeDuration()| -|GetCurrDetail()||public float GetCurrDetail()| -|GetCurrIndex()||public int GetCurrIndex()| -|GetCurrRate()||public float GetCurrRate()| -|GetInteractionDuration()||public float GetInteractionDuration()| -|GetInteractionRadius()||public float GetInteractionRadius(float radius)| -|GetSysmbolSize()||public float GetSysmbolSize(float dest)| -|HasFadeOut()||public bool HasFadeOut()| -|InitProgress()||public void InitProgress(float curr, float dest)
Initialize animation configuration. | -|InitProgress()||public void InitProgress(List<Vector3> paths, bool isY)
Initialize animation configuration. | -|IsDataAnimation()||public bool IsDataAnimation()
whther animaiton is data animation. BottomToTop and InsideOut are data animation. | -|IsEnd()||public bool IsEnd()| -|IsFadeIn()||public bool IsFadeIn()| -|IsFadeOut()||public bool IsFadeOut()| -|IsFinish()||public bool IsFinish()| -|IsInDelay()||public bool IsInDelay()| -|IsSerieAnimation()||public bool IsSerieAnimation()
whther animaiton is serie animation. LeftToRight, AlongPath and Clockwise are serie animation. | -|Pause()||public void Pause()
Pause all animations. | -|Reset()||public void Reset()
Reset all animations. | -|Restart()||public void Restart()
Restart the actived animation. | -|Resume()||public void Resume()
Resume all animations. | +### AnimationStyle.addition + +public AnimationAddition addition +Add data animation configuration. + +### AnimationStyle.change + +public AnimationChange change +Update data animation configuration. + +### AnimationStyle.enable + +public bool enable +Whether to enable animation. + +### AnimationStyle.fadeIn + +public AnimationFadeIn fadeIn +Fade in animation configuration. + +### AnimationStyle.fadeInFinishCallback + +public Action fadeInFinishCallback + +### AnimationStyle.fadeOut + +public AnimationFadeOut fadeOut +Fade out animation configuration. + +### AnimationStyle.fadeOutFinishCallback + +public Action fadeOutFinishCallback + +### AnimationStyle.hiding + +public AnimationHiding hiding +Data hiding animation configuration. + +### AnimationStyle.interaction + +public AnimationInteraction interaction +Interaction animation configuration. + +### AnimationStyle.threshold + +public int threshold +Whether to set graphic number threshold to animation. Animation will be disabled when graphic number is larger than threshold. + +### AnimationStyle.unscaledTime + +public bool unscaledTime +Animation updates independently of Time.timeScale. + +### AnimationStyle.Addition + +public void Addition() +Start additon animation. + +### AnimationStyle.CanCheckInteract + +public bool CanCheckInteract() + +### AnimationStyle.CheckDetailBreak + +public bool CheckDetailBreak(Vector3 pos, bool isYAxis) + + +### AnimationStyle.CheckProgress + +public void CheckProgress(double total) + + +### AnimationStyle.CheckSymbol + +public void CheckSymbol(float dest) + +### AnimationStyle.FadeIn + +public void FadeIn() +Start fadein animation. + +### AnimationStyle.FadeOut + +public void FadeOut() +Start fadeout animation. + +### AnimationStyle.GetAdditionDuration + +public float GetAdditionDuration() + +### AnimationStyle.GetChangeDuration + +public float GetChangeDuration() + +### AnimationStyle.GetCurrDetail + +public float GetCurrDetail() + +### AnimationStyle.GetCurrIndex + +public int GetCurrIndex() + +### AnimationStyle.GetCurrRate + +public float GetCurrRate() + +### AnimationStyle.GetInteractionDuration + +public float GetInteractionDuration() + +### AnimationStyle.GetInteractionRadius + +public float GetInteractionRadius(float radius) + +### AnimationStyle.GetSysmbolSize + +public float GetSysmbolSize(float dest) + +### AnimationStyle.HasFadeOut + +public bool HasFadeOut() + +### AnimationStyle.InitProgress + +public void InitProgress(List<Vector3> paths, bool isY) +Initialize animation configuration. + + +### AnimationStyle.IsDataAnimation + +public bool IsDataAnimation() +whther animaiton is data animation. BottomToTop and InsideOut are data animation. + +### AnimationStyle.IsEnd + +public bool IsEnd() + +### AnimationStyle.IsFadeIn + +public bool IsFadeIn() + +### AnimationStyle.IsFadeOut + +public bool IsFadeOut() + +### AnimationStyle.IsFinish + +public bool IsFinish() + +### AnimationStyle.IsInDelay + +public bool IsInDelay() + +### AnimationStyle.IsSerieAnimation + +public bool IsSerieAnimation() +whther animaiton is serie animation. LeftToRight, AlongPath and Clockwise are serie animation. + +### AnimationStyle.Pause + +public void Pause() +Pause all animations. + +### AnimationStyle.Reset + +public void Reset() +Reset all animations. + +### AnimationStyle.Restart + +public void Restart() +Restart the actived animation. + +### AnimationStyle.Resume + +public void Resume() +Resume all animations. ## AnimationStyleHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### AnimationStyleHelper.CheckDataAnimation -|public method|since|description| -|--|--|--| -|CheckDataAnimation()||public static float CheckDataAnimation(BaseChart chart, Serie serie, int dataIndex, float destProgress, float startPorgress = 0)| -|GetAnimationPosition()||public static bool GetAnimationPosition(AnimationStyle animation, bool isY, Vector3 lp, Vector3 cp, float progress, ref Vector3 ip, ref float rate)| -|UpdateAnimationType()||public static void UpdateAnimationType(AnimationStyle animation, AnimationType defaultType, bool enableSerieDataAnimation)| -|UpdateSerieAnimation()||public static void UpdateSerieAnimation(Serie serie)| +public static float CheckDataAnimation(BaseChart chart, Serie serie, int dataIndex, float destProgress, float startPorgress = 0) + +### AnimationStyleHelper.GetAnimationPosition + +public static bool GetAnimationPosition(AnimationStyle animation, bool isY, Vector3 lp, Vector3 cp, float progress, ref Vector3 ip, ref float rate) + +### AnimationStyleHelper.UpdateAnimationType + +public static void UpdateAnimationType(AnimationStyle animation, AnimationType defaultType, bool enableSerieDataAnimation) + +### AnimationStyleHelper.UpdateSerieAnimation + +public static void UpdateSerieAnimation(Serie serie) + +## AnimationType + +class in XCharts.Runtime + +Options: + +- `Default`: he default. An animation playback mode will be selected according to the actual situation. +- `LeftToRight`: Play the animation from left to right. +- `BottomToTop`: Play the animation from bottom to top. +- `InsideOut`: Play animations from the inside out. +- `AlongPath`: Play the animation along the path. +- `Clockwise`: Play the animation clockwise. ## AreaStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) The style of area. -|public method|since|description| -|--|--|--| -|GetColor()||public Color32 GetColor()| -|GetColor()||public Color32 GetColor(Color32 themeColor)| +### AreaStyle.GetColor + +public Color32 GetColor(Color32 themeColor) + + +## AreaStyle.AreaOrigin + +class in XCharts.Runtime + +Origin position of area. + +Options: + +- `Auto`: to fill between axis line to data. +- `Start`: to fill between min axis value (when not inverse) to data. +- `End`: to fill between max axis value (when not inverse) to data. ## ArrowStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +### ArrowStyle.Clone -|public method|since|description| -|--|--|--| -|Clone()||public ArrowStyle Clone()| -|Copy()||public void Copy(ArrowStyle arrow)| -|GetColor()||public Color32 GetColor(Color32 defaultColor)| +public ArrowStyle Clone() + +### ArrowStyle.Copy + +public void Copy(ArrowStyle arrow) + +### ArrowStyle.GetColor + +public Color32 GetColor(Color32 defaultColor) ## Axis -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) / Subclasses: [AngleAxis](#angleaxis),[ParallelAxis](#parallelaxis),[RadiusAxis](#radiusaxis),[SingleAxis](#singleaxis),[XAxis](#xaxis),[XAxis3D](#xaxis3d),[YAxis](#yaxis),[YAxis3D](#yaxis3d),[ZAxis3D](#zaxis3d) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) / Subclasses: [AngleAxis](#angleaxis),[ParallelAxis](#parallelaxis),[RadiusAxis](#radiusaxis),[SingleAxis](#singleaxis),[XAxis](#xaxis),[XAxis3D](#xaxis3d),[YAxis](#yaxis),[YAxis3D](#yaxis3d),[ZAxis3D](#zaxis3d) The axis in rectangular coordinate. -|public method|since|description| -|--|--|--| -|AddData()||public void AddData(string category)
添加一个类目到类目数据列表 | -|AddIcon()||public void AddIcon(Sprite icon)
添加图标 | -|ClearComponentDirty()||public override void ClearComponentDirty()| -|ClearData()||public override void ClearData()
清空类目数据 | -|ClearVerticesDirty()||public override void ClearVerticesDirty()| -|Clone()||public Axis Clone()| -|Copy()||public void Copy(Axis axis)| -|GetAddedDataCount()||public int GetAddedDataCount()
get the history data count. | -|GetCategoryPosition()||public Vector3 GetCategoryPosition(int categoryIndex, int dataCount = 0)| -|GetData()||public string GetData(int index)
获得指定索引的类目数据 | -|GetData()||public string GetData(int index, DataZoom dataZoom)
获得在dataZoom范围内指定索引的类目数据 | -|GetDistance()||public float GetDistance(double value, float axisLength = 0)
获得值在坐标轴上的距离 | -|GetIcon()||public Sprite GetIcon(int index)| -|GetLabelValue()||public double GetLabelValue(int index)| -|GetLastLabelValue()||public double GetLastLabelValue()| -|GetLogMaxIndex()||public double GetLogMaxIndex()| -|GetLogMinIndex()||public double GetLogMinIndex()| -|GetLogValue()||public float GetLogValue(double value)| -|GetValueLength()||public float GetValueLength(double value, float axisLength)| -|IsBottom()||public bool IsBottom()| -|IsCategory()||public bool IsCategory()
是否为类目轴。 | -|IsLeft()||public bool IsLeft()| -|IsLog()||public bool IsLog()
是否为对数轴。 | -|IsNeedShowLabel()||public bool IsNeedShowLabel(int index, int total = 0)| -|IsRight()||public bool IsRight()| -|IsTime()||public bool IsTime()
是否为时间轴。 | -|IsTop()||public bool IsTop()| -|IsValue()||public bool IsValue()
是否为数值轴。 | -|RemoveData()||public void RemoveData(int dataIndex)| -|ResetStatus()||public override void ResetStatus()
重置状态。 | -|SetComponentDirty()||public override void SetComponentDirty()| -|SetNeedUpdateFilterData()||public void SetNeedUpdateFilterData()| -|UpdateData()||public void UpdateData(int index, string category)
更新类目数据 | -|UpdateIcon()||public void UpdateIcon(int index, Sprite icon)
更新图标 | -|UpdateZeroOffset()||public void UpdateZeroOffset(float axisLength)| +### Axis.AddData + +public void AddData(string category) +添加一个类目到类目数据列表 + +### Axis.AddIcon + +public void AddIcon(Sprite icon) +添加图标 + +### Axis.ClearComponentDirty + +public override void ClearComponentDirty() + +### Axis.ClearData + +public override void ClearData() +清空类目数据 + +### Axis.ClearVerticesDirty + +public override void ClearVerticesDirty() + +### Axis.Clone + +public Axis Clone() + +### Axis.Copy + +public void Copy(Axis axis) + +### Axis.GetAddedDataCount + +public int GetAddedDataCount() +get the history data count. + +### Axis.GetCategoryPosition + +public Vector3 GetCategoryPosition(int categoryIndex, int dataCount = 0) + +### Axis.GetData + +public string GetData(int index, DataZoom dataZoom) +获得在dataZoom范围内指定索引的类目数据 + + +### Axis.GetDistance + +public float GetDistance(double value, float axisLength = 0) +获得值在坐标轴上的距离 + +### Axis.GetIcon + +public Sprite GetIcon(int index) + +### Axis.GetLabelValue + +public double GetLabelValue(int index) + +### Axis.GetLastLabelValue + +public double GetLastLabelValue() + +### Axis.GetLogMaxIndex + +public double GetLogMaxIndex() + +### Axis.GetLogMinIndex + +public double GetLogMinIndex() + +### Axis.GetLogValue + +public float GetLogValue(double value) + +### Axis.GetValueLength + +public float GetValueLength(double value, float axisLength) + +### Axis.IsBottom + +public bool IsBottom() + +### Axis.IsCategory + +public bool IsCategory() +是否为类目轴。 + +### Axis.IsLeft + +public bool IsLeft() + +### Axis.IsLog + +public bool IsLog() +是否为对数轴。 + +### Axis.IsNeedShowLabel + +public bool IsNeedShowLabel(int index, int total = 0) + +### Axis.IsRight + +public bool IsRight() + +### Axis.IsTime + +public bool IsTime() +是否为时间轴。 + +### Axis.IsTop + +public bool IsTop() + +### Axis.IsValue + +public bool IsValue() +是否为数值轴。 + +### Axis.RemoveData + +public void RemoveData(int dataIndex) + +### Axis.ResetStatus + +public override void ResetStatus() +重置状态。 + +### Axis.SetComponentDirty + +public override void SetComponentDirty() + +### Axis.SetNeedUpdateFilterData + +public void SetNeedUpdateFilterData() + +### Axis.UpdateData + +public void UpdateData(int index, string category) +更新类目数据 + +### Axis.UpdateIcon + +public void UpdateIcon(int index, Sprite icon) +更新图标 + +### Axis.UpdateZeroOffset + +public void UpdateZeroOffset(float axisLength) + +## Axis.AxisMinMaxType + +class in XCharts.Runtime + +the type of axis min and max value. + +Options: + +- `Default`: 0 - maximum. +- `MinMax`: minimum - maximum. +- `Custom`: Customize the minimum and maximum. +- `MinMaxAuto`: [since("v3.7.0")]minimum - maximum, automatically calculate the appropriate values. + +## Axis.AxisPosition + +class in XCharts.Runtime + +the position of axis in grid. + +Options: + +- `Left`: the position of axis in grid. +- `Right`: the position of axis in grid. +- `Bottom`: the position of axis in grid. +- `Top`: the position of axis in grid. +- `Center`: the position of axis in grid. + +## Axis.AxisType + +class in XCharts.Runtime + +the type of axis. + +Options: + +- `Value`: Numerical axis, suitable for continuous data. +- `Category`: Category axis, suitable for discrete category data. Data should only be set via data for this type. +- `Log`: Log axis, suitable for log data. +- `Time`: Time axis, suitable for continuous time series data. ## Axis3DHelper -> class in XCharts.Runtime +class in XCharts.Runtime + +### Axis3DHelper.Get3DGridPosition + +public static Vector3 Get3DGridPosition(GridCoord3D grid, XAxis3D xAxis, YAxis3D yAxis, double xValue, double yValue) -|public method|since|description| -|--|--|--| -|Get3DGridPosition()||public static Vector3 Get3DGridPosition(GridCoord3D grid, XAxis3D xAxis, YAxis3D yAxis, double xValue, double yValue)| -|Get3DGridPosition()||public static Vector3 Get3DGridPosition(GridCoord3D grid, XAxis3D xAxis, YAxis3D yAxis, ZAxis3D zAxis, double xValue, double yValue, double zValue)| -|GetLabelPosition()||public static Vector3 GetLabelPosition(int i, Axis axis, Axis relativedAxis, AxisTheme theme, float scaleWid)| +### Axis3DHelper.GetLabelPosition + +public static Vector3 GetLabelPosition(int i, Axis axis, Axis relativedAxis, AxisTheme theme, float scaleWid) ## AxisAnimation -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) > Since `v3.9.0` animation style of axis. -|public method|since|description| -|--|--|--| -|Clone()||public AxisAnimation Clone()| -|Copy()||public void Copy(AxisAnimation animation)| +### AxisAnimation.Clone + +public AxisAnimation Clone() + +### AxisAnimation.Copy + +public void Copy(AxisAnimation animation) ## AxisContext -> class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) +class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) +### AxisContext.destMaxValue + +public double destMaxValue + +### AxisContext.destMinValue + +public double destMinValue + +### AxisContext.labelObjectList + +public List<ChartLabel> labelObjectList + +### AxisContext.labelValueList + +public List<double> labelValueList + +### AxisContext.lastMaxValue + +public double lastMaxValue +the current maximum value. + +### AxisContext.lastMinValue + +public double lastMinValue +the current minimun value. + +### AxisContext.needAnimation + +public bool needAnimation + +### AxisContext.runtimeData + +public List<string> runtimeData +the tick value of value axis. ## AxisHandler<T> -> class in XCharts / Inherits from: [MainComponentHandler](#maincomponenthandler) +class in XCharts / Inherits from: [MainComponentHandler](#maincomponenthandler) +### AxisHandler<T>.component + +public T component ## AxisHelper -> class in XCharts.Runtime +class in XCharts.Runtime + +### AxisHelper.AdjustCircleLabelPos + +public static void AdjustCircleLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset) + +### AxisHelper.AdjustMinMaxValue + +public static void AdjustMinMaxValue(Axis axis, ref double minValue, ref double maxValue, bool needFormat, double ceilRate = 0) +调整最大最小值 + +### AxisHelper.AdjustRadiusAxisLabelPos + +public static void AdjustRadiusAxisLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset) + +### AxisHelper.GetAxisLineArrowOffset + +public static float GetAxisLineArrowOffset(Axis axis) +包含箭头偏移的轴线长度 + +### AxisHelper.GetAxisPosition + +public static float GetAxisPosition(GridCoord grid, Axis axis, double value, int dataCount = 0, DataZoom dataZoom = null) + +### AxisHelper.GetAxisPositionValue + +public static double GetAxisPositionValue(float xy, float axisLength, double axisRange, float axisStart, float axisOffset) -|public method|since|description| -|--|--|--| -|AdjustCircleLabelPos()||public static void AdjustCircleLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)| -|AdjustMinMaxValue()||public static void AdjustMinMaxValue(Axis axis, ref double minValue, ref double maxValue, bool needFormat, double ceilRate = 0)
调整最大最小值 | -|AdjustRadiusAxisLabelPos()||public static void AdjustRadiusAxisLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)| -|GetAxisLineArrowOffset()||public static float GetAxisLineArrowOffset(Axis axis)
包含箭头偏移的轴线长度 | -|GetAxisPosition()||public static float GetAxisPosition(GridCoord grid, Axis axis, double value, int dataCount = 0, DataZoom dataZoom = null)| -|GetAxisPositionValue()||public static double GetAxisPositionValue(float xy, float axisLength, double axisRange, float axisStart, float axisOffset)| -|GetAxisPositionValue()||public static double GetAxisPositionValue(GridCoord grid, Axis axis, Vector3 pos)| -|GetAxisValueDistance()||public static float GetAxisValueDistance(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上相对起点的距离 | -|GetAxisValueLength()||public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上对应的长度 | -|GetAxisValuePosition()||public static float GetAxisValuePosition(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上的坐标位置 | -|GetAxisValueSplitIndex()||public static int GetAxisValueSplitIndex(Axis axis, double value, bool checkMaxCache, int totalSplitNumber = -1)
获得数值value在坐标轴上对应的split索引 | -|GetAxisXOrY()||public static float GetAxisXOrY(GridCoord grid, Axis axis, Axis relativedAxis)| -|GetDataWidth()||public static float GetDataWidth(Axis axis, float coordinateWidth, int dataCount, DataZoom dataZoom)
获得一个类目数据在坐标系中代表的宽度 | -|GetEachWidth()||public static float GetEachWidth(Axis axis, float coordinateWidth, DataZoom dataZoom = null)| -|GetScaleNumber()||public static int GetScaleNumber(Axis axis, float coordinateWidth, DataZoom dataZoom = null)
获得分割线条数 | -|GetScaleWidth()||public static float GetScaleWidth(Axis axis, float coordinateWidth, int index, DataZoom dataZoom = null)
获得分割段宽度 | -|GetSplitNumber()||public static int GetSplitNumber(Axis axis, float coordinateWid, DataZoom dataZoom)
获得分割段数 | -|GetTotalSplitGridNum()||public static int GetTotalSplitGridNum(Axis axis)
获得分割网格个数,包含次刻度 | -|GetXAxisXOrY()||public static float GetXAxisXOrY(GridCoord grid, Axis xAxis, Axis relativedAxis)| -|GetYAxisXOrY()||public static float GetYAxisXOrY(GridCoord grid, Axis yAxis, Axis relativedAxis)| -|NeedShowSplit()||public static bool NeedShowSplit(Axis axis)| +### AxisHelper.GetAxisValueDistance + +public static float GetAxisValueDistance(GridCoord grid, Axis axis, float scaleWidth, double value) +获得数值value在坐标轴上相对起点的距离 + +### AxisHelper.GetAxisValueLength + +public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value) +获得数值value在坐标轴上对应的长度 + +### AxisHelper.GetAxisValuePosition + +public static float GetAxisValuePosition(GridCoord grid, Axis axis, float scaleWidth, double value) +获得数值value在坐标轴上的坐标位置 + +### AxisHelper.GetAxisValueSplitIndex + +public static int GetAxisValueSplitIndex(Axis axis, double value, bool checkMaxCache, int totalSplitNumber = -1) +获得数值value在坐标轴上对应的split索引 + +### AxisHelper.GetAxisXOrY + +public static float GetAxisXOrY(GridCoord grid, Axis axis, Axis relativedAxis) + +### AxisHelper.GetDataWidth + +public static float GetDataWidth(Axis axis, float coordinateWidth, int dataCount, DataZoom dataZoom) +获得一个类目数据在坐标系中代表的宽度 + +### AxisHelper.GetEachWidth + +public static float GetEachWidth(Axis axis, float coordinateWidth, DataZoom dataZoom = null) + +### AxisHelper.GetScaleNumber + +public static int GetScaleNumber(Axis axis, float coordinateWidth, DataZoom dataZoom = null) +获得分割线条数 + +### AxisHelper.GetScaleWidth + +public static float GetScaleWidth(Axis axis, float coordinateWidth, int index, DataZoom dataZoom = null) +获得分割段宽度 + +### AxisHelper.GetSplitNumber + +public static int GetSplitNumber(Axis axis, float coordinateWid, DataZoom dataZoom) +获得分割段数 + +### AxisHelper.GetTotalSplitGridNum + +public static int GetTotalSplitGridNum(Axis axis) +获得分割网格个数,包含次刻度 + +### AxisHelper.GetXAxisXOrY + +public static float GetXAxisXOrY(GridCoord grid, Axis xAxis, Axis relativedAxis) + +### AxisHelper.GetYAxisXOrY + +public static float GetYAxisXOrY(GridCoord grid, Axis yAxis, Axis relativedAxis) + +### AxisHelper.NeedShowSplit + +public static bool NeedShowSplit(Axis axis) ## AxisLabel -> class in XCharts.Runtime / Inherits from: [LabelStyle](#labelstyle) +class in XCharts.Runtime / Inherits from: [LabelStyle](#labelstyle) Settings related to axis label. -|public method|since|description| -|--|--|--| -|ClearComponentDirty()||public override void ClearComponentDirty()| -|Clone()||public new AxisLabel Clone()| -|Copy()||public void Copy(AxisLabel axisLabel)| -|GetFormatterContent()||public override string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false)| -|GetFormatterContent()||public override string GetFormatterContent(int labelIndex, string category)| -|IsNeedShowLabel()||public bool IsNeedShowLabel(int index, int total)| -|SetRelatedText()||public void SetRelatedText(ChartText txt, float labelWidth)| +### AxisLabel.componentDirty + +public override bool componentDirty + +### AxisLabel.ClearComponentDirty + +public override void ClearComponentDirty() + +### AxisLabel.Clone + +public new AxisLabel Clone() + +### AxisLabel.Copy + +public void Copy(AxisLabel axisLabel) + +### AxisLabel.GetFormatterContent + +public override string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false) + + +### AxisLabel.IsNeedShowLabel + +public bool IsNeedShowLabel(int index, int total) + +### AxisLabel.SetRelatedText + +public void SetRelatedText(ChartText txt, float labelWidth) ## AxisLine -> class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) +class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) Settings related to axis line. -|public method|since|description| -|--|--|--| -|Clone()||public AxisLine Clone()| -|Copy()||public void Copy(AxisLine axisLine)| +### AxisLine.Clone + +public AxisLine Clone() + +### AxisLine.Copy + +public void Copy(AxisLine axisLine) ## AxisMinorSplitLine -> class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) +class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) > Since `v3.2.0` Minor split line of axis in grid area. -|public method|since|description| -|--|--|--| -|ClearVerticesDirty()||public override void ClearVerticesDirty()| -|Clone()||public AxisMinorSplitLine Clone()| -|Copy()||public void Copy(AxisMinorSplitLine splitLine)| +### AxisMinorSplitLine.autoColor + +public bool autoColor +auto color. + +### AxisMinorSplitLine.distance + +public float distance +The distance between the split line and axis line. + +### AxisMinorSplitLine.vertsDirty + +public override bool vertsDirty + +### AxisMinorSplitLine.ClearVerticesDirty + +public override void ClearVerticesDirty() + +### AxisMinorSplitLine.Clone + +public AxisMinorSplitLine Clone() + +### AxisMinorSplitLine.Copy + +public void Copy(AxisMinorSplitLine splitLine) ## AxisMinorTick -> class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) +class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) > Since `v3.2.0` Settings related to axis minor tick. -|public method|since|description| -|--|--|--| -|ClearVerticesDirty()||public override void ClearVerticesDirty()| -|Clone()||public AxisMinorTick Clone()| -|Copy()||public void Copy(AxisMinorTick axisTick)| +### AxisMinorTick.autoColor + +public bool autoColor + +### AxisMinorTick.vertsDirty + +public override bool vertsDirty + +### AxisMinorTick.ClearVerticesDirty + +public override void ClearVerticesDirty() + +### AxisMinorTick.Clone + +public AxisMinorTick Clone() + +### AxisMinorTick.Copy + +public void Copy(AxisMinorTick axisTick) ## AxisName -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) the name of axis. -|public method|since|description| -|--|--|--| -|Clone()||public AxisName Clone()| -|Copy()||public void Copy(AxisName axisName)| +### AxisName.Clone + +public AxisName Clone() + +### AxisName.Copy + +public void Copy(AxisName axisName) ## AxisSplitArea -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) Split area of axis in grid area, not shown by default. -|public method|since|description| -|--|--|--| -|Clone()||public AxisSplitArea Clone()| -|Copy()||public void Copy(AxisSplitArea splitArea)| -|GetColor()||public Color32 GetColor(int index, BaseAxisTheme theme)| +### AxisSplitArea.Clone + +public AxisSplitArea Clone() + +### AxisSplitArea.Copy + +public void Copy(AxisSplitArea splitArea) + +### AxisSplitArea.GetColor + +public Color32 GetColor(int index, BaseAxisTheme theme) ## AxisSplitLine -> class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) +class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) Split line of axis in grid area. -|public method|since|description| -|--|--|--| -|ClearVerticesDirty()||public override void ClearVerticesDirty()| -|Clone()||public AxisSplitLine Clone()| -|Copy()||public void Copy(AxisSplitLine splitLine)| +### AxisSplitLine.autoColor + +public bool autoColor +auto color. + +### AxisSplitLine.distance + +public float distance +The distance between the split line and axis line. + +### AxisSplitLine.vertsDirty + +public override bool vertsDirty + +### AxisSplitLine.ClearVerticesDirty + +public override void ClearVerticesDirty() + +### AxisSplitLine.Clone + +public AxisSplitLine Clone() + +### AxisSplitLine.Copy + +public void Copy(AxisSplitLine splitLine) ## AxisTheme -> class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) +### AxisTheme.base(theme) -|public method|since|description| -|--|--|--| -|AxisTheme()||public AxisTheme(ThemeType theme) : base(theme) { }| +public AxisTheme(ThemeType theme) : base(theme) + +### AxisTheme.AxisTheme + +public AxisTheme(ThemeType theme) : base(theme) { } ## AxisTick -> class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) +class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) Settings related to axis tick. -|public method|since|description| -|--|--|--| -|Clone()||public AxisTick Clone()| -|Copy()||public void Copy(AxisTick axisTick)| +### AxisTick.autoColor + +public bool autoColor + +### AxisTick.distance + +public float distance +The distance between the tick line and axis line. + +### AxisTick.Clone + +public AxisTick Clone() + +### AxisTick.Copy + +public void Copy(AxisTick axisTick) ## Background -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) Background component. -|public method|since|description| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()| +### Background.SetDefaultValue + +public override void SetDefaultValue() ## Bar -> class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +### Bar.containerIndex -|public method|since|description| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| -|ConvertSerie()||public static Bar ConvertSerie(Serie serie)| +public int containerIndex + +### Bar.containterInstanceId + +public int containterInstanceId + +### Bar.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) + +### Bar.ConvertSerie + +public static Bar ConvertSerie(Serie serie) ## BarChart -> class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) +class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) Bar chart shows different data through the height of a bar, which is used in rectangular coordinate with at least 1 category axis. -|public method|since|description| -|--|--|--| -|DefaultBarChart()||public void DefaultBarChart()
default bar chart. | -|DefaultCapsuleBarChart()||public void DefaultCapsuleBarChart()
default capsule bar chart. | -|DefaultCapsuleColumnChart()||public void DefaultCapsuleColumnChart()
default capsule column chart. | -|DefaultGroupedBarChart()||public void DefaultGroupedBarChart()
default grouped bar chart. | -|DefaultGroupedColumnChart()||public void DefaultGroupedColumnChart()
default grouped column chart. | -|DefaultPercentBarChart()||public void DefaultPercentBarChart()
default percent bar chart. | -|DefaultPercentColumnChart()||public void DefaultPercentColumnChart()
default percent column chart. | -|DefaultStackedBarChart()||public void DefaultStackedBarChart()
default stacked bar chart. | -|DefaultStackedColumnChart()||public void DefaultStackedColumnChart()
default stacked column chart. | -|DefaultZebraBarChart()||public void DefaultZebraBarChart()
default zebra bar chart. | -|DefaultZebraColumnChart()||public void DefaultZebraColumnChart()
default zebra column chart. | +### BarChart.DefaultBarChart + +public void DefaultBarChart() +default bar chart. + +### BarChart.DefaultCapsuleBarChart + +public void DefaultCapsuleBarChart() +default capsule bar chart. + +### BarChart.DefaultCapsuleColumnChart + +public void DefaultCapsuleColumnChart() +default capsule column chart. + +### BarChart.DefaultGroupedBarChart + +public void DefaultGroupedBarChart() +default grouped bar chart. + +### BarChart.DefaultGroupedColumnChart + +public void DefaultGroupedColumnChart() +default grouped column chart. + +### BarChart.DefaultPercentBarChart + +public void DefaultPercentBarChart() +default percent bar chart. + +### BarChart.DefaultPercentColumnChart + +public void DefaultPercentColumnChart() +default percent column chart. + +### BarChart.DefaultStackedBarChart + +public void DefaultStackedBarChart() +default stacked bar chart. + +### BarChart.DefaultStackedColumnChart + +public void DefaultStackedColumnChart() +default stacked column chart. + +### BarChart.DefaultZebraBarChart + +public void DefaultZebraBarChart() +default zebra bar chart. + +### BarChart.DefaultZebraColumnChart + +public void DefaultZebraColumnChart() +default zebra column chart. + +## BarType + +class in XCharts.Runtime + +the type of bar. + +Options: + +- `Normal`: normal bar. +- `Zebra`: zebra bar. +- `Capsule`: capsule bar. ## BaseAxisTheme -> class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) / Subclasses: [AxisTheme](#axistheme),[RadiusAxisTheme](#radiusaxistheme),[AngleAxisTheme](#angleaxistheme),[PolarAxisTheme](#polaraxistheme),[RadarAxisTheme](#radaraxistheme) +class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) / Subclasses: [AxisTheme](#axistheme),[RadiusAxisTheme](#radiusaxistheme),[AngleAxisTheme](#angleaxistheme),[PolarAxisTheme](#polaraxistheme),[RadarAxisTheme](#radaraxistheme) +### BaseAxisTheme.BaseAxisTheme -|public method|since|description| -|--|--|--| -|BaseAxisTheme()||public BaseAxisTheme(ThemeType theme) : base(theme)| -|Copy()||public void Copy(BaseAxisTheme theme)| +public BaseAxisTheme(ThemeType theme) : base(theme) + +### BaseAxisTheme.Copy + +public void Copy(BaseAxisTheme theme) ## BaseChart -> class in XCharts.Runtime / Inherits from: [BaseGraph](#basegraph),[ISerializationCallbackReceiver](https://docs.unity3d.com/ScriptReference/30_search.html?q=iserializationcallbackreceiver) / Subclasses: [BarChart](#barchart),[CandlestickChart](#candlestickchart),[HeatmapChart](#heatmapchart),[LineChart](#linechart),[ParallelChart](#parallelchart),[PieChart](#piechart),[PolarChart](#polarchart),[RadarChart](#radarchart),[RingChart](#ringchart),[ScatterChart](#scatterchart),[SimplifiedBarChart](#simplifiedbarchart),[SimplifiedCandlestickChart](#simplifiedcandlestickchart),[SimplifiedLineChart](#simplifiedlinechart) +class in XCharts.Runtime / Inherits from: [BaseGraph](#basegraph),[ISerializationCallbackReceiver](https://docs.unity3d.com/ScriptReference/30_search.html?q=iserializationcallbackreceiver) / Subclasses: [BarChart](#barchart),[CandlestickChart](#candlestickchart),[HeatmapChart](#heatmapchart),[LineChart](#linechart),[ParallelChart](#parallelchart),[PieChart](#piechart),[PolarChart](#polarchart),[RadarChart](#radarchart),[RingChart](#ringchart),[ScatterChart](#scatterchart),[SimplifiedBarChart](#simplifiedbarchart),[SimplifiedCandlestickChart](#simplifiedcandlestickchart),[SimplifiedLineChart](#simplifiedlinechart) + +### BaseChart.axis) + +public virtual void InitAxisRuntimeData(Axis axis) + +### BaseChart.chartHeight + +public float chartHeight +The height of chart. + +### BaseChart.chartHideFlags + +public override HideFlags chartHideFlags + +### BaseChart.chartMaxAnchor + +public Vector2 chartMaxAnchor + +### BaseChart.chartMinAnchor + +public Vector2 chartMinAnchor + +### BaseChart.chartPivot + +public Vector2 chartPivot + +### BaseChart.chartPosition + +public Vector3 chartPosition +The position of chart. + +### BaseChart.chartRect + +public Rect chartRect + +### BaseChart.chartSizeDelta + +public Vector2 chartSizeDelta + +### BaseChart.chartWidth + +public float chartWidth +The width of chart. + +### BaseChart.chartX + +public float chartX +The x of chart. + +### BaseChart.chartY + +public float chartY +The y of chart. + +### BaseChart.components + +public List<MainComponent> components + +### BaseChart.customDrawGaugePointerFunction + +public CustomDrawGaugePointerFunction customDrawGaugePointerFunction +自定义仪表盘指针绘制委托。 + +### BaseChart.debug + +public DebugInfo debug + +### BaseChart.onAxisPointerValueChanged + +public Action<Axis, double> onAxisPointerValueChanged +坐标轴变更数据索引时回调。参数:axis, dataIndex/dataValue + +### BaseChart.onDraw + +public Action<VertexHelper> onDraw +自定义绘制回调。在绘制Serie前调用。 + +### BaseChart.onDrawAfterSerie + +public Action<VertexHelper, Serie> onDrawAfterSerie +自定义Serie绘制回调。在每个Serie绘制完后调用。 + +### BaseChart.onDrawBeforeSerie + +public Action<VertexHelper, Serie> onDrawBeforeSerie +自定义Serie绘制回调。在每个Serie绘制完前调用。 + +### BaseChart.onDrawTop + +public Action<VertexHelper> onDrawTop +自定义Top层绘制回调。在绘制Tooltip前调用。 + +### BaseChart.onDrawUpper + +public Action<VertexHelper> onDrawUpper +自定义Upper层绘制回调。在绘制Tooltip前调用。 + +### BaseChart.onInit + +public Action onInit +The callback function of chart init. + +### BaseChart.onLegendClick + +public Action<Legend, int, string, bool> onLegendClick +the callback function of click legend. + +### BaseChart.onLegendEnter + +public Action<Legend, int, string> onLegendEnter +the callback function of enter legend. + +### BaseChart.onLegendExit + +public Action<Legend, int, string> onLegendExit +the callback function of exit legend. + +### BaseChart.onPointerClickBar + +public Action<PointerEventData, int> onPointerClickBar +the callback function of click bar. + +### BaseChart.onPointerClickPie + +public Action<PointerEventData, int, int> onPointerClickPie +the callback function of pointer click pie area. + +### BaseChart.onPointerEnterPie + +public Action<int, int> onPointerEnterPie +the callback function of pointer enter pie area. + +### BaseChart.onSerieClick + +public Action<SerieEventData> onSerieClick + +> Since `v3.6.0` + +the callback function of pointer click serie. + +### BaseChart.onSerieDown + +public Action<SerieEventData> onSerieDown + +> Since `v3.6.0` + +the callback function of pointer down serie. + +### BaseChart.onSerieEnter + +public Action<SerieEventData> onSerieEnter + +> Since `v3.6.0` + +the callback function of pointer enter serie. + +### BaseChart.onSerieExit + +public Action<SerieEventData> onSerieExit + +> Since `v3.6.0` + +the callback function of pointer exit serie. + +### BaseChart.onUpdate + +public Action onUpdate +The callback function of chart update. + +### BaseChart.series + +public List<Serie> series + +### BaseChart.settings + +public Settings settings +Global parameter setting component. + +### BaseChart.theme + +public ThemeStyle theme + +### BaseChart.typeListForComponent + +public Dictionary<Type, FieldInfo> typeListForComponent + +### BaseChart.typeListForSerie + +public Dictionary<Type, FieldInfo> typeListForSerie + +### BaseChart.AddChartComponent + +public MainComponent AddChartComponent(Type type) + +### BaseChart.AddChartComponent<T> + +public T AddChartComponent<T>() where T : MainComponent + +### BaseChart.AddChartComponentWhenNoExist<T> + +public T AddChartComponentWhenNoExist<T>() where T : MainComponent + +### BaseChart.AddData + +public SerieData AddData(int serieIndex, DateTime time, double yValue, string dataName = null, string dataId = null) +Add a (time,y) data to serie. + +public SerieData AddData(int serieIndex, double data, string dataName = null, string dataId = null) +Add a data to serie. + +public SerieData AddData(int serieIndex, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null) + +public SerieData AddData(int serieIndex, double xValue, double yValue, string dataName = null, string dataId = null) +Add a (x,y) data to serie. + +public SerieData AddData(int serieIndex, List<double> multidimensionalData, string dataName = null, string dataId = null) +Add an arbitray dimension data to serie,such as (x,y,z,...). + +public SerieData AddData(int serieIndex, params double[] multidimensionalData) +Add an arbitray dimension data to serie,such as (x,y,z,...). + +public SerieData AddData(string serieName, DateTime time, double yValue, string dataName = null, string dataId = null) +Add a (time,y) data to serie. + +public SerieData AddData(string serieName, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null) + +public SerieData AddData(string serieName, double xValue, double yValue, string dataName = null, string dataId = null) +Add a (x,y) data to serie. + +public SerieData AddData(string serieName, List<double> multidimensionalData, string dataName = null, string dataId = null) +Add an arbitray dimension data to serie,such as (x,y,z,...). + +public SerieData AddData(string serieName, params double[] multidimensionalData) +Add an arbitray dimension data to serie,such as (x,y,z,...). -|public method|since|description| -|--|--|--| -|onAxisPointerValueChanged||public Action<Axis, double> onAxisPointerValueChanged
坐标轴变更数据索引时回调。参数:axis, dataIndex/dataValue | -|onDraw||public Action<VertexHelper> onDraw
自定义绘制回调。在绘制Serie前调用。 | -|onDrawAfterSerie||public Action<VertexHelper, Serie> onDrawAfterSerie
自定义Serie绘制回调。在每个Serie绘制完后调用。 | -|onDrawBeforeSerie||public Action<VertexHelper, Serie> onDrawBeforeSerie
自定义Serie绘制回调。在每个Serie绘制完前调用。 | -|onDrawTop||public Action<VertexHelper> onDrawTop
自定义Top层绘制回调。在绘制Tooltip前调用。 | -|onDrawUpper||public Action<VertexHelper> onDrawUpper
自定义Upper层绘制回调。在绘制Tooltip前调用。 | -|onInit||public Action onInit
The callback function of chart init. | -|onLegendClick||public Action<Legend, int, string, bool> onLegendClick
the callback function of click legend. | -|onLegendEnter||public Action<Legend, int, string> onLegendEnter
the callback function of enter legend. | -|onLegendExit||public Action<Legend, int, string> onLegendExit
the callback function of exit legend. | -|onPointerClickBar||public Action<PointerEventData, int> onPointerClickBar
the callback function of click bar. | -|onPointerClickPie||public Action<PointerEventData, int, int> onPointerClickPie
the callback function of pointer click pie area. | -|onPointerEnterPie||public Action<int, int> onPointerEnterPie
the callback function of pointer enter pie area. | -|onSerieClick|v3.6.0|public Action<SerieEventData> onSerieClick
the callback function of pointer click serie. | -|onSerieDown|v3.6.0|public Action<SerieEventData> onSerieDown
the callback function of pointer down serie. | -|onSerieEnter|v3.6.0|public Action<SerieEventData> onSerieEnter
the callback function of pointer enter serie. | -|onSerieExit|v3.6.0|public Action<SerieEventData> onSerieExit
the callback function of pointer exit serie. | -|onUpdate||public Action onUpdate
The callback function of chart update. | -|AddChartComponent()||public MainComponent AddChartComponent(Type type)| -|AddChartComponent<T>()||public T AddChartComponent<T>() where T : MainComponent| -|AddChartComponentWhenNoExist<T>()||public T AddChartComponentWhenNoExist<T>() where T : MainComponent| -|AddData()||public SerieData AddData(int serieIndex, DateTime time, double yValue, string dataName = null, string dataId = null)
Add a (time,y) data to serie. | -|AddData()||public SerieData AddData(int serieIndex, double data, string dataName = null, string dataId = null)
Add a data to serie. | -|AddData()||public SerieData AddData(int serieIndex, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)| -|AddData()||public SerieData AddData(int serieIndex, double xValue, double yValue, string dataName = null, string dataId = null)
Add a (x,y) data to serie. | -|AddData()||public SerieData AddData(int serieIndex, List<double> multidimensionalData, string dataName = null, string dataId = null)
Add an arbitray dimension data to serie,such as (x,y,z,...). | -|AddData()||public SerieData AddData(int serieIndex, params double[] multidimensionalData)
Add an arbitray dimension data to serie,such as (x,y,z,...). | -|AddData()||public SerieData AddData(string serieName, DateTime time, double yValue, string dataName = null, string dataId = null)
Add a (time,y) data to serie. | -|AddData()||public SerieData AddData(string serieName, double data, string dataName = null, string dataId = null)
Add a data to serie. | -|AddData()||public SerieData AddData(string serieName, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)| -|AddData()||public SerieData AddData(string serieName, double xValue, double yValue, string dataName = null, string dataId = null)
Add a (x,y) data to serie. | -|AddData()||public SerieData AddData(string serieName, List<double> multidimensionalData, string dataName = null, string dataId = null)
Add an arbitray dimension data to serie,such as (x,y,z,...). | -|AddData()||public SerieData AddData(string serieName, params double[] multidimensionalData)
Add an arbitray dimension data to serie,such as (x,y,z,...). | -|AddLink()||public SerieDataLink AddLink(int serieIndex, string sourceId, string targetId, double value = 0)
Add a link data to serie. | -|AddSerie<T>()||public T AddSerie<T>(string serieName = null, bool show = true, bool addToHead = false) where T : Serie| -|AddXAxisData()||public void AddXAxisData(string category, int xAxisIndex = 0)
Add a category data to xAxis. | -|AddXAxisIcon()||public void AddXAxisIcon(Sprite icon, int xAxisIndex = 0)
Add an icon to xAxis. | -|AddYAxisData()||public void AddYAxisData(string category, int yAxisIndex = 0)
Add a category data to yAxis. | -|AddYAxisIcon()||public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0)
Add an icon to yAxis. | -|AnimationEnable()||public void AnimationEnable(bool flag)
Whether enable serie animations. | -|AnimationFadeIn()||public void AnimationFadeIn(bool reset = true)
Start all serie fadein animations. | -|AnimationFadeOut()||public void AnimationFadeOut()
Start all serie fadeout animations. | -|AnimationPause()||public void AnimationPause()
Pause all animations. | -|AnimationReset()||public void AnimationReset()
Reset all animations. | -|AnimationResume()||public void AnimationResume()
Resume all animations. | -|CanAddChartComponent()||public bool CanAddChartComponent(Type type)| -|CanAddSerie()||public bool CanAddSerie(Type type)| -|CanAddSerie<T>()||public bool CanAddSerie<T>() where T : Serie| -|CancelTooltip()|v3.7.0|public void CancelTooltip()
cancel tooltip. | -|CanMultipleComponent()||public bool CanMultipleComponent(Type type)| -|ClampInChart()||public void ClampInChart(ref Vector3 pos)| -|ClampInGrid()||public Vector3 ClampInGrid(GridCoord grid, Vector3 pos)| -|ClearComponentData()|v3.4.0|public virtual void ClearComponentData()
Clear the data of all components. | -|ClearData()||public virtual void ClearData()
Clear all components and series data. Note: serie only empties the data and does not remove serie. | -|ClearSerieData()|v3.4.0|public virtual void ClearSerieData()
Clear the data of all series. | -|ClearSerieLinks()|v3.10.0|public virtual void ClearSerieLinks()
Clear the link data of all series. | -|ClickLegendButton()||public void ClickLegendButton(int legendIndex, string legendName, bool show)
点击图例按钮 | -|ConvertSerie()||public bool ConvertSerie(Serie serie, Type type)| -|ConvertSerie<T>()||public bool ConvertSerie<T>(Serie serie) where T : Serie| -|ConvertXYAxis()||public void ConvertXYAxis(int index)
转换X轴和Y轴的配置 | -|EnsureChartComponent<T>()|v3.6.0|public T EnsureChartComponent<T>() where T : MainComponent
Ensure the chart has the component, if not, add it. Note: it may fail to add. | -|GenerateDefaultSerieName()||public string GenerateDefaultSerieName()| -|GetAllSerieDataCount()||public int GetAllSerieDataCount()| -|GetChartBackgroundColor()||public Color32 GetChartBackgroundColor()| -|GetChartComponent<T>()||public T GetChartComponent<T>(int index = 0) where T : MainComponent| -|GetChartComponentNum()||public int GetChartComponentNum(Type type)| -|GetChartComponentNum<T>()||public int GetChartComponentNum<T>() where T : MainComponent| -|GetChartComponents<T>()||public List<MainComponent> GetChartComponents<T>() where T : MainComponent| -|GetData()||public double GetData(int serieIndex, int dataIndex, int dimension = 1)| -|GetData()||public double GetData(string serieName, int dataIndex, int dimension = 1)| -|GetDataZoomOfAxis()||public DataZoom GetDataZoomOfAxis(Axis axis)| -|GetDataZoomOfSerie()||public void GetDataZoomOfSerie(Serie serie, out DataZoom xDataZoom, out DataZoom yDataZoom)| -|GetGrid()||public GridCoord GetGrid(Vector2 local)| -|GetGridOfDataZoom()||public GridCoord GetGridOfDataZoom(DataZoom dataZoom)| -|GetItemColor()||public Color32 GetItemColor(Serie serie)| -|GetItemColor()||public Color32 GetItemColor(Serie serie, SerieData serieData)| -|GetItemColor()||public Color32 GetItemColor(Serie serie, SerieData serieData, int colorIndex)| -|GetLegendRealShowNameColor()||public Color32 GetLegendRealShowNameColor(string name)| -|GetLegendRealShowNameIndex()||public int GetLegendRealShowNameIndex(string name)| -|GetMarkColor()|v3.4.0|public Color32 GetMarkColor(Serie serie, SerieData serieData)
获得Serie的标识颜色。 | -|GetOrAddChartComponent<T>()||public T GetOrAddChartComponent<T>() where T : MainComponent| -|GetPainter()||public Painter GetPainter(int index)| -|GetSerie()||public Serie GetSerie(int serieIndex)| -|GetSerie()||public Serie GetSerie(string serieName)| -|GetSerie<T>()||public T GetSerie<T>() where T : Serie| -|GetSerie<T>()||public T GetSerie<T>(int serieIndex) where T : Serie| -|GetSerieBarGap<T>()||public float GetSerieBarGap<T>() where T : Serie| -|GetSerieBarRealCount<T>()||public int GetSerieBarRealCount<T>() where T : Serie| -|GetSerieIndexIfStack<T>()||public int GetSerieIndexIfStack<T>(Serie currSerie) where T : Serie| -|GetSerieSameStackTotalValue<T>()||public double GetSerieSameStackTotalValue<T>(string stack, int dataIndex) where T : Serie| -|GetSeriesMinMaxValue()||public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue)| -|GetSerieTotalGap<T>()||public float GetSerieTotalGap<T>(float categoryWidth, float gap, int index) where T : Serie| -|GetSerieTotalWidth<T>()||public float GetSerieTotalWidth<T>(float categoryWidth, float gap, int realBarCount) where T : Serie| -|GetTitlePosition()||public Vector3 GetTitlePosition(Title title)| -|GetVisualMapOfSerie()||public VisualMap GetVisualMapOfSerie(Serie serie)| -|GetXDataZoomOfSerie()||public DataZoom GetXDataZoomOfSerie(Serie serie)| -|GetXLerpColor()||public Color32 GetXLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)| -|GetYLerpColor()||public Color32 GetYLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)| -|HasChartComponent()||public bool HasChartComponent(Type type)| -|HasChartComponent<T>()||public bool HasChartComponent<T>()| -|HasSerie()||public bool HasSerie(Type type)| -|HasSerie<T>()||public bool HasSerie<T>() where T : Serie| -|Init()||public void Init(bool defaultChart = true)| -|InitAxisRuntimeData()||public virtual void InitAxisRuntimeData(Axis axis) { }| -|InsertSerie()||public void InsertSerie(Serie serie, int index = -1, bool addToHead = false)| -|InsertSerie<T>()||public T InsertSerie<T>(int index, string serieName = null, bool show = true) where T : Serie| -|Internal_CheckAnimation()||public void Internal_CheckAnimation()| -|IsActiveByLegend()||public virtual bool IsActiveByLegend(string legendName)
Whether serie is activated. | -|IsAllAxisCategory()||public bool IsAllAxisCategory()
纯类目轴。 | -|IsAllAxisValue()||public bool IsAllAxisValue()
reutrn true when all the show axis is `Value` type. | -|IsInAnyGrid()||public bool IsInAnyGrid(Vector2 local)| -|IsInChart()||public bool IsInChart(float x, float y)| -|IsInChart()||public bool IsInChart(Vector2 local)
坐标是否在图表范围内 | -|IsSerieName()||public bool IsSerieName(string name)| -|MoveDownSerie()||public bool MoveDownSerie(int serieIndex)| -|MoveUpSerie()||public bool MoveUpSerie(int serieIndex)| -|OnAfterDeserialize()||public void OnAfterDeserialize()| -|OnBeforeSerialize()||public void OnBeforeSerialize()| -|OnBeginDrag()||public override void OnBeginDrag(PointerEventData eventData)| -|OnDataZoomRangeChanged()||public virtual void OnDataZoomRangeChanged(DataZoom dataZoom)| -|OnDrag()||public override void OnDrag(PointerEventData eventData)| -|OnEndDrag()||public override void OnEndDrag(PointerEventData eventData)| -|OnLegendButtonClick()||public virtual void OnLegendButtonClick(int index, string legendName, bool show)| -|OnLegendButtonEnter()||public virtual void OnLegendButtonEnter(int index, string legendName)| -|OnLegendButtonExit()||public virtual void OnLegendButtonExit(int index, string legendName)| -|OnPointerClick()||public override void OnPointerClick(PointerEventData eventData)| -|OnPointerDown()||public override void OnPointerDown(PointerEventData eventData)| -|OnPointerEnter()||public override void OnPointerEnter(PointerEventData eventData)| -|OnPointerExit()||public override void OnPointerExit(PointerEventData eventData)| -|OnPointerUp()||public override void OnPointerUp(PointerEventData eventData)| -|OnScroll()||public override void OnScroll(PointerEventData eventData)| -|RefreshBasePainter()||public void RefreshBasePainter()| -|RefreshChart()||public void RefreshChart()
Redraw chart in next frame. | -|RefreshChart()||public void RefreshChart(int serieIndex)
Redraw chart serie in next frame. | -|RefreshChart()||public void RefreshChart(Serie serie)
Redraw chart serie in next frame. | -|RefreshDataZoom()||public void RefreshDataZoom()
在下一帧刷新DataZoom | -|RefreshGraph()||public override void RefreshGraph()| -|RefreshPainter()||public void RefreshPainter(int index)| -|RefreshPainter()||public void RefreshPainter(Serie serie)| -|RefreshTopPainter()||public void RefreshTopPainter()| -|RefreshUpperPainter()||public void RefreshUpperPainter()| -|RemoveAllChartComponent()||public void RemoveAllChartComponent()| -|RemoveAllSerie()|v3.2.0|public virtual void RemoveAllSerie()
Remove all of them Serie. This interface is used when Serie needs to be removed only, and RemoveData() is generally used in other cases. | -|RemoveChartComponent()||public bool RemoveChartComponent(MainComponent component)| -|RemoveChartComponent()||public bool RemoveChartComponent(Type type, int index = 0)| -|RemoveChartComponent<T>()||public bool RemoveChartComponent<T>(int index = 0)| -|RemoveChartComponents()||public int RemoveChartComponents(Type type)| -|RemoveChartComponents<T>()||public int RemoveChartComponents<T>()| -|RemoveData()||public virtual void RemoveData()
Empty all component data and remove all series. Use the chart again and again to tell the truth. Note: The component only clears the data part, and the parameters are retained and not reset. | -|RemoveData()||public virtual void RemoveData(string serieName)
Remove legend and serie by name. | -|RemoveSerie()||public void RemoveSerie(int serieIndex)| -|RemoveSerie()||public void RemoveSerie(Serie serie)| -|RemoveSerie()||public void RemoveSerie(string serieName)| -|RemoveSerie<T>()||public void RemoveSerie<T>() where T : Serie| -|ReplaceSerie()||public bool ReplaceSerie(Serie oldSerie, Serie newSerie)| -|ResetChartStatus()|v3.10.0|public void ResetChartStatus()
reset chart status. When some parameters are set, due to the animation effect, the chart status may not be correct. | -|ResetDataIndex()||public bool ResetDataIndex(int serieIndex)
重置serie的数据项索引。避免数据项索引异常。 | -|SetBasePainterMaterial()||public void SetBasePainterMaterial(Material material)
设置Base Painter的材质球 | -|SetInsertDataToHead()|v3.11.0|public void SetInsertDataToHead(bool insertDataToHead)
set insert data to head. | -|SetMaxCache()||public void SetMaxCache(int maxCache)
设置可缓存的最大数据量。当数据量超过该值时,会自动删除第一个值再加入最新值。 | -|SetPainterActive()||public void SetPainterActive(int index, bool flag)| -|SetSerieActive()||public void SetSerieActive(int serieIndex, bool active)
Whether to show serie. | -|SetSerieActive()||public void SetSerieActive(Serie serie, bool active)| -|SetSerieActive()||public void SetSerieActive(string serieName, bool active)
Whether to show serie. | -|SetSeriePainterMaterial()||public void SetSeriePainterMaterial(Material material)
设置Serie Painter的材质球 | -|SetTopPainterMaterial()||public void SetTopPainterMaterial(Material material)
设置Top Painter的材质球 | -|SetUpperPainterMaterial()||public void SetUpperPainterMaterial(Material material)
设置Upper Painter的材质球 | -|TriggerTooltip()|v3.7.0|public bool TriggerTooltip(int dataIndex, int serieIndex = 0)
trigger tooltip by data index. | -|TriggerTooltip()|v3.7.0|public bool TriggerTooltip(Vector3 localPosition)
trigger tooltip by chart local position. | -|TryAddChartComponent()||public bool TryAddChartComponent(Type type)| -|TryAddChartComponent<T>()||public bool TryAddChartComponent<T>() where T : MainComponent| -|TryAddChartComponent<T>()||public bool TryAddChartComponent<T>(out T component) where T : MainComponent| -|TryGetChartComponent<T>()||public bool TryGetChartComponent<T>(out T component, int index = 0)| -|UpdateData()||public bool UpdateData(int serieIndex, int dataIndex, double value)
Update serie data by serie index. | -|UpdateData()||public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value)
更新指定系列指定索引指定维数的数据。维数从0开始。 | -|UpdateData()||public bool UpdateData(int serieIndex, int dataIndex, List<double> multidimensionalData)
更新指定系列指定索引的数据项的多维数据。 | -|UpdateData()||public bool UpdateData(string serieName, int dataIndex, double value)
Update serie data by serie name. | -|UpdateData()||public bool UpdateData(string serieName, int dataIndex, int dimension, double value)
更新指定系列指定索引指定维数的数据。维数从0开始。 | -|UpdateData()||public bool UpdateData(string serieName, int dataIndex, List<double> multidimensionalData)
更新指定系列指定索引的数据项的多维数据。 | -|UpdateDataName()||public bool UpdateDataName(int serieIndex, int dataIndex, string dataName)
Update serie data name. | -|UpdateDataName()||public bool UpdateDataName(string serieName, int dataIndex, string dataName)
Update serie data name. | -|UpdateLegendColor()||public virtual void UpdateLegendColor(string legendName, bool active)| -|UpdateTheme()||public bool UpdateTheme(ThemeType theme)
Update chart theme. | -|UpdateTheme()||public void UpdateTheme(Theme theme)
Update chart theme info. | -|UpdateXAxisData()||public void UpdateXAxisData(int index, string category, int xAxisIndex = 0)
Update category data. | -|UpdateXAxisIcon()||public void UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)
Update xAxis icon. | -|UpdateYAxisData()||public void UpdateYAxisData(int index, string category, int yAxisIndex = 0)
Update category data. | -|UpdateYAxisIcon()||public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0)
更新Y轴图标。 | +### BaseChart.AddLink + +public SerieDataLink AddLink(int serieIndex, string sourceId, string targetId, double value = 0) +Add a link data to serie. + +### BaseChart.AddSerie<T> + +public T AddSerie<T>(string serieName = null, bool show = true, bool addToHead = false) where T : Serie + +### BaseChart.AddXAxisData + +public void AddXAxisData(string category, int xAxisIndex = 0) +Add a category data to xAxis. + +### BaseChart.AddXAxisIcon + +public void AddXAxisIcon(Sprite icon, int xAxisIndex = 0) +Add an icon to xAxis. + +### BaseChart.AddYAxisData + +public void AddYAxisData(string category, int yAxisIndex = 0) +Add a category data to yAxis. + +### BaseChart.AddYAxisIcon + +public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0) +Add an icon to yAxis. + +### BaseChart.AnimationEnable + +public void AnimationEnable(bool flag) +Whether enable serie animations. + +### BaseChart.AnimationFadeIn + +public void AnimationFadeIn(bool reset = true) +Start all serie fadein animations. + +### BaseChart.AnimationFadeOut + +public void AnimationFadeOut() +Start all serie fadeout animations. + +### BaseChart.AnimationPause + +public void AnimationPause() +Pause all animations. + +### BaseChart.AnimationReset + +public void AnimationReset() +Reset all animations. + +### BaseChart.AnimationResume + +public void AnimationResume() +Resume all animations. + +### BaseChart.CanAddChartComponent + +public bool CanAddChartComponent(Type type) + +### BaseChart.CanAddSerie + +public bool CanAddSerie(Type type) + +### BaseChart.CanAddSerie<T> + +public bool CanAddSerie<T>() where T : Serie + +### BaseChart.CancelTooltip + +public void CancelTooltip() + +> Since `v3.7.0` + +cancel tooltip. + +### BaseChart.CanMultipleComponent + +public bool CanMultipleComponent(Type type) + +### BaseChart.ClampInChart + +public void ClampInChart(ref Vector3 pos) + +### BaseChart.ClampInGrid + +public Vector3 ClampInGrid(GridCoord grid, Vector3 pos) + +### BaseChart.ClearComponentData + +public virtual void ClearComponentData() + +> Since `v3.4.0` + +Clear the data of all components. + +### BaseChart.ClearData + +public virtual void ClearData() +Clear all components and series data. Note: serie only empties the data and does not remove serie. + +### BaseChart.ClearSerieData + +public virtual void ClearSerieData() + +> Since `v3.4.0` + +Clear the data of all series. + +### BaseChart.ClearSerieLinks + +public virtual void ClearSerieLinks() + +> Since `v3.10.0` + +Clear the link data of all series. + +### BaseChart.ClickLegendButton + +public void ClickLegendButton(int legendIndex, string legendName, bool show) +点击图例按钮 + +### BaseChart.ConvertSerie + +public bool ConvertSerie(Serie serie, Type type) + +### BaseChart.ConvertSerie<T> + +public bool ConvertSerie<T>(Serie serie) where T : Serie + +### BaseChart.ConvertXYAxis + +public void ConvertXYAxis(int index) +转换X轴和Y轴的配置 + +### BaseChart.EnsureChartComponent<T> + +public T EnsureChartComponent<T>() where T : MainComponent + +> Since `v3.6.0` + +Ensure the chart has the component, if not, add it. Note: it may fail to add. + +### BaseChart.GenerateDefaultSerieName + +public string GenerateDefaultSerieName() + +### BaseChart.GetAllSerieDataCount + +public int GetAllSerieDataCount() + +### BaseChart.GetChartBackgroundColor + +public Color32 GetChartBackgroundColor() + +### BaseChart.GetChartComponent<T> + +public T GetChartComponent<T>(int index = 0) where T : MainComponent + +### BaseChart.GetChartComponentNum + +public int GetChartComponentNum(Type type) + +### BaseChart.GetChartComponentNum<T> + +public int GetChartComponentNum<T>() where T : MainComponent + +### BaseChart.GetChartComponents<T> + +public List<MainComponent> GetChartComponents<T>() where T : MainComponent + +### BaseChart.GetData + +public double GetData(int serieIndex, int dataIndex, int dimension = 1) + + +### BaseChart.GetDataZoomOfAxis + +public DataZoom GetDataZoomOfAxis(Axis axis) + +### BaseChart.GetDataZoomOfSerie + +public void GetDataZoomOfSerie(Serie serie, out DataZoom xDataZoom, out DataZoom yDataZoom) + +### BaseChart.GetGrid + +public GridCoord GetGrid(Vector2 local) + +### BaseChart.GetGridOfDataZoom + +public GridCoord GetGridOfDataZoom(DataZoom dataZoom) + +### BaseChart.GetItemColor + +public Color32 GetItemColor(Serie serie) + +public Color32 GetItemColor(Serie serie, SerieData serieData, int colorIndex) + + +### BaseChart.GetLegendRealShowNameColor + +public Color32 GetLegendRealShowNameColor(string name) + +### BaseChart.GetLegendRealShowNameIndex + +public int GetLegendRealShowNameIndex(string name) + +### BaseChart.GetMarkColor + +public Color32 GetMarkColor(Serie serie, SerieData serieData) + +> Since `v3.4.0` + +获得Serie的标识颜色。 + +### BaseChart.GetOrAddChartComponent<T> + +public T GetOrAddChartComponent<T>() where T : MainComponent + +### BaseChart.GetPainter + +public Painter GetPainter(int index) + +### BaseChart.GetSerie + +public Serie GetSerie(int serieIndex) + + +### BaseChart.GetSerie<T> + +public T GetSerie<T>(int serieIndex) where T : Serie + + +### BaseChart.GetSerieBarGap<T> + +public float GetSerieBarGap<T>() where T : Serie + +### BaseChart.GetSerieBarRealCount<T> + +public int GetSerieBarRealCount<T>() where T : Serie + +### BaseChart.GetSerieIndexIfStack<T> + +public int GetSerieIndexIfStack<T>(Serie currSerie) where T : Serie + +### BaseChart.GetSerieSameStackTotalValue<T> + +public double GetSerieSameStackTotalValue<T>(string stack, int dataIndex) where T : Serie + +### BaseChart.GetSeriesMinMaxValue + +public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue) + +### BaseChart.GetSerieTotalGap<T> + +public float GetSerieTotalGap<T>(float categoryWidth, float gap, int index) where T : Serie + +### BaseChart.GetSerieTotalWidth<T> + +public float GetSerieTotalWidth<T>(float categoryWidth, float gap, int realBarCount) where T : Serie + +### BaseChart.GetTitlePosition + +public Vector3 GetTitlePosition(Title title) + +### BaseChart.GetVisualMapOfSerie + +public VisualMap GetVisualMapOfSerie(Serie serie) + +### BaseChart.GetXDataZoomOfSerie + +public DataZoom GetXDataZoomOfSerie(Serie serie) + +### BaseChart.GetXLerpColor + +public Color32 GetXLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid) + +### BaseChart.GetYLerpColor + +public Color32 GetYLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid) + +### BaseChart.HasChartComponent + +public bool HasChartComponent(Type type) + +### BaseChart.HasChartComponent<T> + +public bool HasChartComponent<T>() + +### BaseChart.HasSerie + +public bool HasSerie(Type type) + +### BaseChart.HasSerie<T> + +public bool HasSerie<T>() where T : Serie + +### BaseChart.Init + +public void Init(bool defaultChart = true) + +### BaseChart.InitAxisRuntimeData + +public virtual void InitAxisRuntimeData(Axis axis) { } + +### BaseChart.InsertSerie + +public void InsertSerie(Serie serie, int index = -1, bool addToHead = false) + +### BaseChart.InsertSerie<T> + +public T InsertSerie<T>(int index, string serieName = null, bool show = true) where T : Serie + +### BaseChart.Internal_CheckAnimation + +public void Internal_CheckAnimation() + +### BaseChart.IsActiveByLegend + +public virtual bool IsActiveByLegend(string legendName) +Whether serie is activated. + +### BaseChart.IsAllAxisCategory + +public bool IsAllAxisCategory() +纯类目轴。 + +### BaseChart.IsAllAxisValue + +public bool IsAllAxisValue() +reutrn true when all the show axis is `Value` type. + +### BaseChart.IsInAnyGrid + +public bool IsInAnyGrid(Vector2 local) + +### BaseChart.IsInChart + +public bool IsInChart(float x, float y) + + +### BaseChart.IsSerieName + +public bool IsSerieName(string name) + +### BaseChart.MoveDownSerie + +public bool MoveDownSerie(int serieIndex) + +### BaseChart.MoveUpSerie + +public bool MoveUpSerie(int serieIndex) + +### BaseChart.OnAfterDeserialize + +public void OnAfterDeserialize() + +### BaseChart.OnBeforeSerialize + +public void OnBeforeSerialize() + +### BaseChart.OnBeginDrag + +public override void OnBeginDrag(PointerEventData eventData) + +### BaseChart.OnDataZoomRangeChanged + +public virtual void OnDataZoomRangeChanged(DataZoom dataZoom) + +### BaseChart.OnDrag + +public override void OnDrag(PointerEventData eventData) + +### BaseChart.OnEndDrag + +public override void OnEndDrag(PointerEventData eventData) + +### BaseChart.OnLegendButtonClick + +public virtual void OnLegendButtonClick(int index, string legendName, bool show) + +### BaseChart.OnLegendButtonEnter + +public virtual void OnLegendButtonEnter(int index, string legendName) + +### BaseChart.OnLegendButtonExit + +public virtual void OnLegendButtonExit(int index, string legendName) + +### BaseChart.OnPointerClick + +public override void OnPointerClick(PointerEventData eventData) + +### BaseChart.OnPointerDown + +public override void OnPointerDown(PointerEventData eventData) + +### BaseChart.OnPointerEnter + +public override void OnPointerEnter(PointerEventData eventData) + +### BaseChart.OnPointerExit + +public override void OnPointerExit(PointerEventData eventData) + +### BaseChart.OnPointerUp + +public override void OnPointerUp(PointerEventData eventData) + +### BaseChart.OnScroll + +public override void OnScroll(PointerEventData eventData) + +### BaseChart.RefreshBasePainter + +public void RefreshBasePainter() + +### BaseChart.RefreshChart + +public void RefreshChart(int serieIndex) +Redraw chart serie in next frame. + +public void RefreshChart(Serie serie) +Redraw chart serie in next frame. + + +### BaseChart.RefreshDataZoom + +public void RefreshDataZoom() +在下一帧刷新DataZoom + +### BaseChart.RefreshGraph + +public override void RefreshGraph() + +### BaseChart.RefreshPainter + +public void RefreshPainter(Serie serie) + + +### BaseChart.RefreshTopPainter + +public void RefreshTopPainter() + +### BaseChart.RefreshUpperPainter + +public void RefreshUpperPainter() + +### BaseChart.RemoveAllChartComponent + +public void RemoveAllChartComponent() + +### BaseChart.RemoveAllSerie + +public virtual void RemoveAllSerie() + +> Since `v3.2.0` + +Remove all of them Serie. This interface is used when Serie needs to be removed only, and RemoveData() is generally used in other cases. + +### BaseChart.RemoveChartComponent + +public bool RemoveChartComponent(MainComponent component) + + +### BaseChart.RemoveChartComponent<T> + +public bool RemoveChartComponent<T>(int index = 0) + +### BaseChart.RemoveChartComponents + +public int RemoveChartComponents(Type type) + +### BaseChart.RemoveChartComponents<T> + +public int RemoveChartComponents<T>() + +### BaseChart.RemoveData + +public virtual void RemoveData(string serieName) +Remove legend and serie by name. + + +### BaseChart.RemoveSerie + +public void RemoveSerie(int serieIndex) + +public void RemoveSerie(Serie serie) + + +### BaseChart.RemoveSerie<T> + +public void RemoveSerie<T>() where T : Serie + +### BaseChart.ReplaceSerie + +public bool ReplaceSerie(Serie oldSerie, Serie newSerie) + +### BaseChart.ResetChartStatus + +public void ResetChartStatus() + +> Since `v3.10.0` + +reset chart status. When some parameters are set, due to the animation effect, the chart status may not be correct. + +### BaseChart.ResetDataIndex + +public bool ResetDataIndex(int serieIndex) +重置serie的数据项索引。避免数据项索引异常。 + +### BaseChart.SetBasePainterMaterial + +public void SetBasePainterMaterial(Material material) +设置Base Painter的材质球 + +### BaseChart.SetInsertDataToHead + +public void SetInsertDataToHead(bool insertDataToHead) + +> Since `v3.11.0` + +set insert data to head. + +### BaseChart.SetMaxCache + +public void SetMaxCache(int maxCache) +设置可缓存的最大数据量。当数据量超过该值时,会自动删除第一个值再加入最新值。 + +### BaseChart.SetPainterActive + +public void SetPainterActive(int index, bool flag) + +### BaseChart.SetSerieActive + +public void SetSerieActive(int serieIndex, bool active) +Whether to show serie. + +public void SetSerieActive(Serie serie, bool active) + + +### BaseChart.SetSeriePainterMaterial + +public void SetSeriePainterMaterial(Material material) +设置Serie Painter的材质球 + +### BaseChart.SetTopPainterMaterial + +public void SetTopPainterMaterial(Material material) +设置Top Painter的材质球 + +### BaseChart.SetUpperPainterMaterial + +public void SetUpperPainterMaterial(Material material) +设置Upper Painter的材质球 + +### BaseChart.TriggerTooltip + +public bool TriggerTooltip(Vector3 localPosition) + +> Since `v3.7.0` + +trigger tooltip by chart local position. + + +### BaseChart.TryAddChartComponent + +public bool TryAddChartComponent(Type type) + +### BaseChart.TryAddChartComponent<T> + +public bool TryAddChartComponent<T>(out T component) where T : MainComponent + + +### BaseChart.TryGetChartComponent<T> + +public bool TryGetChartComponent<T>(out T component, int index = 0) + +### BaseChart.UpdateData + +public bool UpdateData(int serieIndex, int dataIndex, double value) +Update serie data by serie index. + +public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value) +更新指定系列指定索引指定维数的数据。维数从0开始。 + +public bool UpdateData(int serieIndex, int dataIndex, List<double> multidimensionalData) +更新指定系列指定索引的数据项的多维数据。 + +public bool UpdateData(string serieName, int dataIndex, int dimension, double value) +更新指定系列指定索引指定维数的数据。维数从0开始。 + +public bool UpdateData(string serieName, int dataIndex, List<double> multidimensionalData) +更新指定系列指定索引的数据项的多维数据。 + + +### BaseChart.UpdateDataName + +public bool UpdateDataName(int serieIndex, int dataIndex, string dataName) +Update serie data name. + + +### BaseChart.UpdateLegendColor + +public virtual void UpdateLegendColor(string legendName, bool active) + +### BaseChart.UpdateTheme + +public void UpdateTheme(Theme theme) +Update chart theme info. + + +### BaseChart.UpdateXAxisData + +public void UpdateXAxisData(int index, string category, int xAxisIndex = 0) +Update category data. + +### BaseChart.UpdateXAxisIcon + +public void UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0) +Update xAxis icon. + +### BaseChart.UpdateYAxisData + +public void UpdateYAxisData(int index, string category, int yAxisIndex = 0) +Update category data. + +### BaseChart.UpdateYAxisIcon + +public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0) +更新Y轴图标。 ## BaseGraph -> class in XCharts.Runtime / Inherits from: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic),[IPointerDownHandler](https://docs.unity3d.com/ScriptReference/30_search.html?q=ipointerdownhandler),[IPointerUpHandler](https://docs.unity3d.com/ScriptReference/30_search.html?q=ipointeruphandler),[](#) / Subclasses: [BaseChart](#basechart),[UIComponent](#uicomponent) +class in XCharts.Runtime / Inherits from: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic),[IPointerDownHandler](https://docs.unity3d.com/ScriptReference/30_search.html?q=ipointerdownhandler),[IPointerUpHandler](https://docs.unity3d.com/ScriptReference/30_search.html?q=ipointeruphandler),[](#) / Subclasses: [BaseChart](#basechart),[UIComponent](#uicomponent) +### BaseGraph.chartHideFlags -|public method|since|description| -|--|--|--| -|onBeginDrag||public Action<PointerEventData, BaseGraph> onBeginDrag
鼠标开始拖拽回调。 | -|onDrag||public Action<PointerEventData, BaseGraph> onDrag
鼠标拖拽回调。 | -|onEndDrag||public Action<PointerEventData, BaseGraph> onEndDrag
鼠标结束拖拽回调。 | -|onPointerClick||public Action<PointerEventData, BaseGraph> onPointerClick
鼠标点击回调。 | -|onPointerDown||public Action<PointerEventData, BaseGraph> onPointerDown
鼠标按下回调。 | -|onPointerEnter||public Action<PointerEventData, BaseGraph> onPointerEnter
鼠标进入回调。 | -|onPointerExit||public Action<PointerEventData, BaseGraph> onPointerExit
鼠标退出回调。 | -|onPointerUp||public Action<PointerEventData, BaseGraph> onPointerUp
鼠标弹起回调。 | -|onScroll||public Action<PointerEventData, BaseGraph> onScroll
鼠标滚动回调。 | -|CheckWarning()||public string CheckWarning()
检测警告信息。 | -|LocalPointToScreenPoint()|v3.7.0|public Vector2 LocalPointToScreenPoint(Vector2 localPoint)
chart local point to screen point. | -|LocalPointToWorldPoint()|v3.7.0|public Vector2 LocalPointToWorldPoint(Vector2 localPoint)
chart local point to world point. | -|OnBeginDrag()||public virtual void OnBeginDrag(PointerEventData eventData)| -|OnDrag()||public virtual void OnDrag(PointerEventData eventData)| -|OnEndDrag()||public virtual void OnEndDrag(PointerEventData eventData)| -|OnPointerClick()||public virtual void OnPointerClick(PointerEventData eventData)| -|OnPointerDown()||public virtual void OnPointerDown(PointerEventData eventData)| -|OnPointerEnter()||public virtual void OnPointerEnter(PointerEventData eventData)| -|OnPointerExit()||public virtual void OnPointerExit(PointerEventData eventData)| -|OnPointerUp()||public virtual void OnPointerUp(PointerEventData eventData)| -|OnScroll()||public virtual void OnScroll(PointerEventData eventData)| -|RebuildChartObject()||public void RebuildChartObject()
移除并重新创建所有图表的Object。 | -|RefreshAllComponent()||public void RefreshAllComponent()| -|RefreshGraph()||public virtual void RefreshGraph()
Redraw graph in next frame. | -|SaveAsImage()||public void SaveAsImage(string imageType = "png", string savePath = "")
保存图表为图片。 | -|ScreenPointToChartPoint()||public bool ScreenPointToChartPoint(Vector2 screenPoint, out Vector2 chartPoint)| -|SetPainterDirty()||public void SetPainterDirty()
重新初始化Painter | -|SetSize()||public virtual void SetSize(float width, float height)
设置图形的宽高(在非stretch pivot下才有效,其他情况需要自己调整RectTransform) | +public virtual HideFlags chartHideFlags + +### BaseGraph.clickPos + +public Vector2 clickPos + +### BaseGraph.forceOpenRaycastTarget + +public bool forceOpenRaycastTarget +强制开启鼠标事件检测。 + +### BaseGraph.graphAnchoredPosition + +public Vector2 graphAnchoredPosition + +### BaseGraph.graphHeight + +public float graphHeight +The height of graph. + +### BaseGraph.graphMaxAnchor + +public Vector2 graphMaxAnchor + +### BaseGraph.graphMinAnchor + +public Vector2 graphMinAnchor + +### BaseGraph.graphPivot + +public Vector2 graphPivot + +### BaseGraph.graphPosition + +public Vector3 graphPosition +The position of graph. + +### BaseGraph.graphRect + +public Rect graphRect + +### BaseGraph.graphSizeDelta + +public Vector2 graphSizeDelta + +### BaseGraph.graphWidth + +public float graphWidth +The width of graph. + +### BaseGraph.graphX + +public float graphX +The x of graph. + +### BaseGraph.graphY + +public float graphY +The y of graph. + +### BaseGraph.isPointerClick + +public bool isPointerClick +Whether the mouse click the chart. + +### BaseGraph.isPointerInChart + +public bool isPointerInChart +Whether the mouse pointer is in the chart. + +### BaseGraph.onBeginDrag + +public Action<PointerEventData, BaseGraph> onBeginDrag +鼠标开始拖拽回调。 + +### BaseGraph.onDrag + +public Action<PointerEventData, BaseGraph> onDrag +鼠标拖拽回调。 + +### BaseGraph.onEndDrag + +public Action<PointerEventData, BaseGraph> onEndDrag +鼠标结束拖拽回调。 + +### BaseGraph.onPointerClick + +public Action<PointerEventData, BaseGraph> onPointerClick +鼠标点击回调。 + +### BaseGraph.onPointerDown + +public Action<PointerEventData, BaseGraph> onPointerDown +鼠标按下回调。 + +### BaseGraph.onPointerEnter + +public Action<PointerEventData, BaseGraph> onPointerEnter +鼠标进入回调。 + +### BaseGraph.onPointerExit + +public Action<PointerEventData, BaseGraph> onPointerExit +鼠标退出回调。 + +### BaseGraph.onPointerUp + +public Action<PointerEventData, BaseGraph> onPointerUp +鼠标弹起回调。 + +### BaseGraph.onScroll + +public Action<PointerEventData, BaseGraph> onScroll +鼠标滚动回调。 + +### BaseGraph.painter + +public Painter painter + +### BaseGraph.pointerPos + +public Vector2 pointerPos +The postion of pointer move. + +### BaseGraph.warningInfo + +public string warningInfo +警告信息。 + +### BaseGraph.CheckWarning + +public string CheckWarning() +检测警告信息。 + +### BaseGraph.LocalPointToScreenPoint + +public Vector2 LocalPointToScreenPoint(Vector2 localPoint) + +> Since `v3.7.0` + +chart local point to screen point. + +### BaseGraph.LocalPointToWorldPoint + +public Vector2 LocalPointToWorldPoint(Vector2 localPoint) + +> Since `v3.7.0` + +chart local point to world point. + +### BaseGraph.OnBeginDrag + +public virtual void OnBeginDrag(PointerEventData eventData) + +### BaseGraph.OnDrag + +public virtual void OnDrag(PointerEventData eventData) + +### BaseGraph.OnEndDrag + +public virtual void OnEndDrag(PointerEventData eventData) + +### BaseGraph.OnPointerClick + +public virtual void OnPointerClick(PointerEventData eventData) + +### BaseGraph.OnPointerDown + +public virtual void OnPointerDown(PointerEventData eventData) + +### BaseGraph.OnPointerEnter + +public virtual void OnPointerEnter(PointerEventData eventData) + +### BaseGraph.OnPointerExit + +public virtual void OnPointerExit(PointerEventData eventData) + +### BaseGraph.OnPointerUp + +public virtual void OnPointerUp(PointerEventData eventData) + +### BaseGraph.OnScroll + +public virtual void OnScroll(PointerEventData eventData) + +### BaseGraph.RebuildChartObject + +public void RebuildChartObject() +移除并重新创建所有图表的Object。 + +### BaseGraph.RefreshAllComponent + +public void RefreshAllComponent() + +### BaseGraph.RefreshGraph + +public virtual void RefreshGraph() +Redraw graph in next frame. + +### BaseGraph.SaveAsImage + +public void SaveAsImage(string imageType = "png", string savePath = "") +保存图表为图片。 + +### BaseGraph.ScreenPointToChartPoint + +public bool ScreenPointToChartPoint(Vector2 screenPoint, out Vector2 chartPoint) + +### BaseGraph.SetPainterDirty + +public void SetPainterDirty() +重新初始化Painter + +### BaseGraph.SetSize + +public virtual void SetSize(float width, float height) +设置图形的宽高(在非stretch pivot下才有效,其他情况需要自己调整RectTransform) ## BaseLine -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [AxisLine](#axisline),[AxisMinorSplitLine](#axisminorsplitline),[AxisMinorTick](#axisminortick),[AxisSplitLine](#axissplitline),[AxisTick](#axistick) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [AxisLine](#axisline),[AxisMinorSplitLine](#axisminorsplitline),[AxisMinorTick](#axisminortick),[AxisSplitLine](#axissplitline),[AxisTick](#axistick) Settings related to base line. -|public method|since|description| -|--|--|--| -|BaseLine()||public BaseLine()| -|BaseLine()||public BaseLine(bool show) : base()| -|Copy()||public void Copy(BaseLine axisLine)| -|GetColor()||public Color32 GetColor(Color32 themeColor)| -|GetLength()||public float GetLength(float themeLength)| -|GetType()||public LineStyle.Type GetType(LineStyle.Type themeType)| -|GetWidth()||public float GetWidth(float themeWidth)| +### BaseLine.BaseLine + +public BaseLine(bool show) : base() + + +### BaseLine.Copy + +public void Copy(BaseLine axisLine) + +### BaseLine.GetColor + +public Color32 GetColor(Color32 themeColor) + +### BaseLine.GetLength + +public float GetLength(float themeLength) + +### BaseLine.GetType + +public LineStyle.Type GetType(LineStyle.Type themeType) + +### BaseLine.GetWidth + +public float GetWidth(float themeWidth) ## BaseScatter -> class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) / Subclasses: [EffectScatter](#effectscatter),[Scatter](#scatter) +class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) / Subclasses: [EffectScatter](#effectscatter),[Scatter](#scatter) +### BaseScatter.containerIndex + +public int containerIndex + +### BaseScatter.containterInstanceId + +public int containterInstanceId ## BaseSerie -> class in XCharts.Runtime / Subclasses: [Serie](#serie) +class in XCharts.Runtime / Subclasses: [Serie](#serie) + +### BaseSerie.anyDirty + +public bool anyDirty + +### BaseSerie.ClearData() + +public virtual void ClearData() + +### BaseSerie.componentDirty + +public virtual bool componentDirty + +### BaseSerie.defaultColorBy + +public virtual SerieColorBy defaultColorBy + +### BaseSerie.gameObject + +public GameObject gameObject + +### BaseSerie.handler + +public SerieHandler handler + +### BaseSerie.multiDimensionLabel + +public virtual bool multiDimensionLabel + +### BaseSerie.OnBeforeSerialize() + +public virtual void OnBeforeSerialize() + +### BaseSerie.OnDataUpdate() + +public virtual void OnDataUpdate() + +### BaseSerie.painter + +public Painter painter + +### BaseSerie.refreshComponent + +public Action refreshComponent + +### BaseSerie.titleJustForSerie + +public virtual bool titleJustForSerie + +### BaseSerie.useSortData + +public virtual bool useSortData + +### BaseSerie.vertsDirty + +public virtual bool vertsDirty + +### BaseSerie.ClearComponentDirty + +public virtual void ClearComponentDirty() -|public method|since|description| -|--|--|--| -|ClearComponentDirty()||public static void ClearComponentDirty(ChildComponent component)| -|ClearComponentDirty()||public virtual void ClearComponentDirty()| -|ClearData()||public virtual void ClearData() { }| -|ClearDirty()||public virtual void ClearDirty()| -|ClearVerticesDirty()||public static void ClearVerticesDirty(ChildComponent component)| -|ClearVerticesDirty()||public virtual void ClearVerticesDirty()| -|IsComponentDirty()||public static bool IsComponentDirty(ChildComponent component)| -|IsVertsDirty()||public static bool IsVertsDirty(ChildComponent component)| -|OnAfterDeserialize()||public virtual void OnAfterDeserialize()| -|OnBeforeSerialize()||public virtual void OnBeforeSerialize() { }| -|OnDataUpdate()||public virtual void OnDataUpdate() { }| -|OnRemove()||public virtual void OnRemove()| -|RefreshLabel()||public void RefreshLabel()| -|SetAllDirty()||public virtual void SetAllDirty()| -|SetComponentDirty()||public virtual void SetComponentDirty()| -|SetVerticesDirty()||public virtual void SetVerticesDirty()| +### BaseSerie.ClearData + +public virtual void ClearData() { } + +### BaseSerie.ClearDirty + +public virtual void ClearDirty() + +### BaseSerie.ClearVerticesDirty + +public virtual void ClearVerticesDirty() + + +### BaseSerie.IsComponentDirty + +public static bool IsComponentDirty(ChildComponent component) + +### BaseSerie.IsVertsDirty + +public static bool IsVertsDirty(ChildComponent component) + +### BaseSerie.OnAfterDeserialize + +public virtual void OnAfterDeserialize() + +### BaseSerie.OnBeforeSerialize + +public virtual void OnBeforeSerialize() { } + +### BaseSerie.OnDataUpdate + +public virtual void OnDataUpdate() { } + +### BaseSerie.OnRemove + +public virtual void OnRemove() + +### BaseSerie.RefreshLabel + +public void RefreshLabel() + +### BaseSerie.SetAllDirty + +public virtual void SetAllDirty() + +### BaseSerie.SetComponentDirty + +public virtual void SetComponentDirty() + +### BaseSerie.SetVerticesDirty + +public virtual void SetVerticesDirty() ## BlurStyle -> class in XCharts.Runtime / Inherits from: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) > Since `v3.2.0` @@ -981,1488 +2741,3667 @@ Configurations of blur state. ## BorderStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) > Since `v3.10.0` The style of border. -|public method|since|description| -|--|--|--| -|GetRuntimeBorderColor()||public Color32 GetRuntimeBorderColor()| -|GetRuntimeBorderWidth()||public float GetRuntimeBorderWidth()| -|GetRuntimeCornerRadius()||public float[] GetRuntimeCornerRadius()| +### BorderStyle.GetRuntimeBorderColor + +public Color32 GetRuntimeBorderColor() + +### BorderStyle.GetRuntimeBorderWidth + +public float GetRuntimeBorderWidth() + +### BorderStyle.GetRuntimeCornerRadius + +public float[] GetRuntimeCornerRadius() ## CalendarCoord -> class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) +### CalendarCoord.IsPointerEnter -|public method|since|description| -|--|--|--| -|IsPointerEnter()||public bool IsPointerEnter()| -|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)| +public bool IsPointerEnter() + +### CalendarCoord.UpdateRuntimeData + +public void UpdateRuntimeData(BaseChart chart) ## Candlestick -> class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +### Candlestick.containerIndex -|public method|since|description| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| +public int containerIndex + +### Candlestick.containterInstanceId + +public int containterInstanceId + +### Candlestick.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## CandlestickChart -> class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) +class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) A candlestick chart is a style of financial chart used to describe price movements of a security, derivative, or currency. ## ChartCached -> class in XCharts.Runtime +class in XCharts.Runtime +### ChartCached.ColorToDotStr -|public method|since|description| -|--|--|--| -|ColorToDotStr()||public static string ColorToDotStr(Color color)| -|ColorToStr()||public static string ColorToStr(Color color)| -|FloatToStr()||public static string FloatToStr(double value, string numericFormatter = "F", int precision = 0)| -|GetSerieLabelName()||public static string GetSerieLabelName(string prefix, int i, int j)| -|GetString()||public static string GetString(string prefix, int suffix)| -|IntToStr()||public static string IntToStr(int value, string numericFormatter = "")| -|NumberToDateStr()||public static string NumberToDateStr(double timestamp, string formatter)| -|NumberToDateTime()||public static DateTime NumberToDateTime(double timestamp)| -|NumberToStr()||public static string NumberToStr(double value, string formatter)| -|NumberToTimeSpan()||public static TimeSpan NumberToTimeSpan(double timestamp)| -|NumberToTimeStr()||public static string NumberToTimeStr(double timestamp, string formatter)| +public static string ColorToDotStr(Color color) + +### ChartCached.ColorToStr + +public static string ColorToStr(Color color) + +### ChartCached.FloatToStr + +public static string FloatToStr(double value, string numericFormatter = "F", int precision = 0) + +### ChartCached.GetSerieLabelName + +public static string GetSerieLabelName(string prefix, int i, int j) + +### ChartCached.GetString + +public static string GetString(string prefix, int suffix) + +### ChartCached.IntToStr + +public static string IntToStr(int value, string numericFormatter = "") + +### ChartCached.NumberToDateStr + +public static string NumberToDateStr(double timestamp, string formatter) + +### ChartCached.NumberToDateTime + +public static DateTime NumberToDateTime(double timestamp) + +### ChartCached.NumberToStr + +public static string NumberToStr(double value, string formatter) + +### ChartCached.NumberToTimeSpan + +public static TimeSpan NumberToTimeSpan(double timestamp) + +### ChartCached.NumberToTimeStr + +public static string NumberToTimeStr(double timestamp, string formatter) ## ChartConst -> class in XCharts.Runtime - +class in XCharts.Runtime ## ChartDrawer -> class in XCharts.Runtime - +class in XCharts.Runtime ## ChartHelper -> class in XCharts.Runtime +class in XCharts.Runtime + +### ChartHelper.ignoreVector3 + +public static Vector3 ignoreVector3 + +### ChartHelper.sb + +public static StringBuilder sb + +### ChartHelper.ActiveAllObject + +public static void ActiveAllObject(Transform parent, bool active, string match = null) + +### ChartHelper.AddIcon + +public static Image AddIcon(string name, Transform parent, IconStyle iconStyle) + +### ChartHelper.Cancat + +public static string Cancat(string str1, int i) -|public method|since|description| -|--|--|--| -|ActiveAllObject()||public static void ActiveAllObject(Transform parent, bool active, string match = null)| -|AddIcon()||public static Image AddIcon(string name, Transform parent, IconStyle iconStyle)| -|Cancat()||public static string Cancat(string str1, int i)| -|Cancat()||public static string Cancat(string str1, string str2)| -|ClearEventListener()||public static void ClearEventListener(GameObject obj)| -|CopyArray<T>()||public static bool CopyArray<T>(T[] toList, T[] fromList)| -|CopyList<T>()||public static bool CopyList<T>(List<T> toList, List<T> fromList)| -|DestoryGameObject()||public static void DestoryGameObject(GameObject go)| -|DestoryGameObject()||public static void DestoryGameObject(Transform parent, string childName)| -|DestoryGameObjectByMatch()||public static void DestoryGameObjectByMatch(Transform parent, string containString)| -|DestroyAllChildren()||public static void DestroyAllChildren(Transform parent)| -|EnsureComponent<T>()||public static T EnsureComponent<T>(GameObject gameObject) where T : Component
Ensure that the game object has the specified component, add it if not. | -|EnsureComponent<T>()||public static T EnsureComponent<T>(Transform transform) where T : Component
Ensure that the transform has the specified component, add it if not. | -|GetActualValue()||public static float GetActualValue(float valueOrRate, float total, float maxRate = 1.5f)| -|GetAngle360()||public static float GetAngle360(Vector2 from, Vector2 to)
获得0-360的角度(12点钟方向为0度) | -|GetBlurColor()||public static Color32 GetBlurColor(Color32 color, float a = 0.3f)| -|GetColor()||public static Color32 GetColor(string hexColorStr)| -|GetDire()||public static Vector3 GetDire(float angle, bool isDegree = false)| -|GetFullName()||public static string GetFullName(Transform transform)| -|GetHighlightColor()||public static Color32 GetHighlightColor(Color32 color, float rate = 0.8f)| -|GetLastValue()||public static Vector3 GetLastValue(List<Vector3> list)| -|GetMaxCeilRate()||public static double GetMaxCeilRate(double value, double ceilRate)| -|GetMaxDivisibleValue()||public static double GetMaxDivisibleValue(double max, double ceilRate)| -|GetMaxLogValue()||public static double GetMaxLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)| -|GetMinCeilRate()||public static double GetMinCeilRate(double value, double ceilRate)| -|GetMinDivisibleValue()||public static double GetMinDivisibleValue(double min, double ceilRate)| -|GetMinLogValue()||public static double GetMinLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)| -|GetOrAddComponent<T>()||public static T GetOrAddComponent<T>(GameObject gameObject) where T : Component| -|GetOrAddComponent<T>()||public static T GetOrAddComponent<T>(Transform transform) where T : Component| -|GetPointList()||public static void GetPointList(ref List<Vector3> posList, Vector3 sp, Vector3 ep, float k = 30f)| -|GetPos()||public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)| -|GetPosition()||public static Vector3 GetPosition(Vector3 center, float angle, float radius)| -|GetSelectColor()||public static Color32 GetSelectColor(Color32 color, float rate = 0.8f)| -|GetVertialDire()||public static Vector3 GetVertialDire(Vector3 dire)| -|HideAllObject()||public static void HideAllObject(GameObject obj, string match = null)| -|HideAllObject()||public static void HideAllObject(Transform parent, string match = null)| -|IsActiveByScale()||public static bool IsActiveByScale(GameObject gameObject)| -|IsActiveByScale()||public static bool IsActiveByScale(Image image)| -|IsActiveByScale()||public static bool IsActiveByScale(Transform transform)| -|IsClearColor()||public static bool IsClearColor(Color color)| -|IsClearColor()||public static bool IsClearColor(Color32 color)| -|IsColorAlphaZero()||public static bool IsColorAlphaZero(Color color)| -|IsEquals()||public static bool IsEquals(double d1, double d2)| -|IsEquals()||public static bool IsEquals(float d1, float d2)| -|IsIngore()||public static bool IsIngore(Vector3 pos)| -|IsInRect()||public static bool IsInRect(Vector3 pos, float xMin, float xMax, float yMin, float yMax)| -|IsPointInQuadrilateral()||public static bool IsPointInQuadrilateral(Vector3 P, Vector3 A, Vector3 B, Vector3 C, Vector3 D)| -|IsValueEqualsColor()||public static bool IsValueEqualsColor(Color color1, Color color2)| -|IsValueEqualsColor()||public static bool IsValueEqualsColor(Color32 color1, Color32 color2)| -|IsValueEqualsList<T>()||public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2)| -|IsValueEqualsString()||public static bool IsValueEqualsString(string str1, string str2)| -|IsValueEqualsVector2()||public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)| -|IsValueEqualsVector3()||public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2)| -|IsZeroVector()||public static bool IsZeroVector(Vector3 pos)| -|ParseFloatFromString()||public static List<float> ParseFloatFromString(string jsonData)| -|ParseStringFromString()||public static List<string> ParseStringFromString(string jsonData)| -|RemoveComponent<T>()||public static void RemoveComponent<T>(GameObject gameObject)| -|RotateRound()||public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)| -|SaveAsImage()||public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "")| -|SetActive()||public static bool SetActive(GameObject gameObject, bool active)| -|SetActive()||public static bool SetActive(Image image, bool active)| -|SetActive()||public static bool SetActive(Text text, bool active)| -|SetActive()||public static bool SetActive(Transform transform, bool active)
通过设置scale实现是否显示,优化性能,减少GC | -|SetBackground()||public static void SetBackground(Image background, Background imageStyle)| -|SetBackground()||public static void SetBackground(Image background, ImageStyle imageStyle)| -|SetColorOpacity()||public static void SetColorOpacity(ref Color32 color, float opacity)| +### ChartHelper.ClearEventListener + +public static void ClearEventListener(GameObject obj) + +### ChartHelper.CopyArray<T> + +public static bool CopyArray<T>(T[] toList, T[] fromList) + +### ChartHelper.CopyList<T> + +public static bool CopyList<T>(List<T> toList, List<T> fromList) + +### ChartHelper.DestoryGameObject + +public static void DestoryGameObject(GameObject go) + + +### ChartHelper.DestoryGameObjectByMatch + +public static void DestoryGameObjectByMatch(Transform parent, string containString) + +### ChartHelper.DestroyAllChildren + +public static void DestroyAllChildren(Transform parent) + +### ChartHelper.EnsureComponent<T> + +public static T EnsureComponent<T>(GameObject gameObject) where T : Component +Ensure that the game object has the specified component, add it if not. + + +### ChartHelper.GetActualValue + +public static float GetActualValue(float valueOrRate, float total, float maxRate = 1.5f) + +### ChartHelper.GetAngle360 + +public static float GetAngle360(Vector2 from, Vector2 to) +获得0-360的角度(12点钟方向为0度) + +### ChartHelper.GetBlurColor + +public static Color32 GetBlurColor(Color32 color, float a = 0.3f) + +### ChartHelper.GetColor + +public static Color32 GetColor(string hexColorStr) + +### ChartHelper.GetDire + +public static Vector3 GetDire(float angle, bool isDegree = false) + +### ChartHelper.GetFullName + +public static string GetFullName(Transform transform) + +### ChartHelper.GetHighlightColor + +public static Color32 GetHighlightColor(Color32 color, float rate = 0.8f) + +### ChartHelper.GetLastValue + +public static Vector3 GetLastValue(List<Vector3> list) + +### ChartHelper.GetMaxCeilRate + +public static double GetMaxCeilRate(double value, double ceilRate) + +### ChartHelper.GetMaxDivisibleValue + +public static double GetMaxDivisibleValue(double max, double ceilRate) + +### ChartHelper.GetMaxLogValue + +public static double GetMaxLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber) + +### ChartHelper.GetMinCeilRate + +public static double GetMinCeilRate(double value, double ceilRate) + +### ChartHelper.GetMinDivisibleValue + +public static double GetMinDivisibleValue(double min, double ceilRate) + +### ChartHelper.GetMinLogValue + +public static double GetMinLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber) + +### ChartHelper.GetOrAddComponent<T> + +public static T GetOrAddComponent<T>(GameObject gameObject) where T : Component + + +### ChartHelper.GetPointList + +public static void GetPointList(ref List<Vector3> posList, Vector3 sp, Vector3 ep, float k = 30f) + +### ChartHelper.GetPos + +public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false) + +### ChartHelper.GetPosition + +public static Vector3 GetPosition(Vector3 center, float angle, float radius) + +### ChartHelper.GetSelectColor + +public static Color32 GetSelectColor(Color32 color, float rate = 0.8f) + +### ChartHelper.GetVertialDire + +public static Vector3 GetVertialDire(Vector3 dire) + +### ChartHelper.HideAllObject + +public static void HideAllObject(Transform parent, string match = null) + + +### ChartHelper.IsActiveByScale + +public static bool IsActiveByScale(Image image) + +public static bool IsActiveByScale(Transform transform) + + +### ChartHelper.IsClearColor + +public static bool IsClearColor(Color color) + + +### ChartHelper.IsColorAlphaZero + +public static bool IsColorAlphaZero(Color color) + +### ChartHelper.IsEquals + +public static bool IsEquals(float d1, float d2) + + +### ChartHelper.IsIngore + +public static bool IsIngore(Vector3 pos) + +### ChartHelper.IsInRect + +public static bool IsInRect(Vector3 pos, float xMin, float xMax, float yMin, float yMax) + +### ChartHelper.IsPointInQuadrilateral + +public static bool IsPointInQuadrilateral(Vector3 P, Vector3 A, Vector3 B, Vector3 C, Vector3 D) + +### ChartHelper.IsValueEqualsColor + +public static bool IsValueEqualsColor(Color color1, Color color2) + + +### ChartHelper.IsValueEqualsList<T> + +public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2) + +### ChartHelper.IsValueEqualsString + +public static bool IsValueEqualsString(string str1, string str2) + +### ChartHelper.IsValueEqualsVector2 + +public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2) + +### ChartHelper.IsValueEqualsVector3 + +public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2) + +### ChartHelper.IsZeroVector + +public static bool IsZeroVector(Vector3 pos) + +### ChartHelper.ParseFloatFromString + +public static List<float> ParseFloatFromString(string jsonData) + +### ChartHelper.ParseStringFromString + +public static List<string> ParseStringFromString(string jsonData) + +### ChartHelper.RemoveComponent<T> + +public static void RemoveComponent<T>(GameObject gameObject) + +### ChartHelper.RotateRound + +public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle) + +### ChartHelper.SaveAsImage + +public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "") + +### ChartHelper.SetActive + +public static bool SetActive(Image image, bool active) + +public static bool SetActive(Text text, bool active) + +public static bool SetActive(Transform transform, bool active) +通过设置scale实现是否显示,优化性能,减少GC + + +### ChartHelper.SetBackground + +public static void SetBackground(Image background, Background imageStyle) + + +### ChartHelper.SetColorOpacity + +public static void SetColorOpacity(ref Color32 color, float opacity) ## ChartLabel -> class in XCharts.Runtime / Inherits from: [Image](https://docs.unity3d.com/ScriptReference/30_search.html?q=image) +class in XCharts.Runtime / Inherits from: [Image](https://docs.unity3d.com/ScriptReference/30_search.html?q=image) +### ChartLabel.hideIconIfTextEmpty -|public method|since|description| -|--|--|--| -|GetHeight()||public float GetHeight()| -|GetPosition()||public Vector3 GetPosition()| -|GetTextHeight()||public float GetTextHeight()| -|GetTextWidth()||public float GetTextWidth()| -|GetWidth()||public float GetWidth()| -|IsActiveByScale()||public bool IsActiveByScale()| -|SetActive()||public void SetActive(bool flag, bool force = false)| -|SetIcon()||public void SetIcon(Image image)| -|SetIconActive()||public void SetIconActive(bool flag)| -|SetIconSize()||public void SetIconSize(float width, float height)| -|SetIconSprite()||public void SetIconSprite(Sprite sprite)| -|SetPadding()||public void SetPadding(float[] padding)| -|SetPosition()||public void SetPosition(Vector3 position)| -|SetRectPosition()||public void SetRectPosition(Vector3 position)| -|SetRotate()||public void SetRotate(float rotate)| -|SetSize()||public void SetSize(float width, float height)| -|SetText()||public bool SetText(string text)| -|SetTextActive()||public void SetTextActive(bool flag)| -|SetTextColor()||public void SetTextColor(Color color)| -|SetTextPadding()||public void SetTextPadding(TextPadding padding)| -|SetTextRotate()||public void SetTextRotate(float rotate)| -|UpdateIcon()||public void UpdateIcon(IconStyle iconStyle, Sprite sprite = null, Color color = default(Color))| +public bool hideIconIfTextEmpty + +### ChartLabel.isAnimationEnd + +public bool isAnimationEnd + +### ChartLabel.isIconActive + +public bool isIconActive + +### ChartLabel.rect + +public Rect rect + +### ChartLabel.GetHeight + +public float GetHeight() + +### ChartLabel.GetPosition + +public Vector3 GetPosition() + +### ChartLabel.GetTextHeight + +public float GetTextHeight() + +### ChartLabel.GetTextWidth + +public float GetTextWidth() + +### ChartLabel.GetWidth + +public float GetWidth() + +### ChartLabel.IsActiveByScale + +public bool IsActiveByScale() + +### ChartLabel.SetActive + +public void SetActive(bool flag, bool force = false) + +### ChartLabel.SetIcon + +public void SetIcon(Image image) + +### ChartLabel.SetIconActive + +public void SetIconActive(bool flag) + +### ChartLabel.SetIconSize + +public void SetIconSize(float width, float height) + +### ChartLabel.SetIconSprite + +public void SetIconSprite(Sprite sprite) + +### ChartLabel.SetPadding + +public void SetPadding(float[] padding) + +### ChartLabel.SetPosition + +public void SetPosition(Vector3 position) + +### ChartLabel.SetRectPosition + +public void SetRectPosition(Vector3 position) + +### ChartLabel.SetRotate + +public void SetRotate(float rotate) + +### ChartLabel.SetSize + +public void SetSize(float width, float height) + +### ChartLabel.SetText + +public bool SetText(string text) + +### ChartLabel.SetTextActive + +public void SetTextActive(bool flag) + +### ChartLabel.SetTextColor + +public void SetTextColor(Color color) + +### ChartLabel.SetTextPadding + +public void SetTextPadding(TextPadding padding) + +### ChartLabel.SetTextRotate + +public void SetTextRotate(float rotate) + +### ChartLabel.UpdateIcon + +public void UpdateIcon(IconStyle iconStyle, Sprite sprite = null, Color color = default(Color)) ## ChartObject -> class in XCharts.Runtime +class in XCharts.Runtime +### ChartObject.Destroy -|public method|since|description| -|--|--|--| -|Destroy()||public virtual void Destroy()| +public virtual void Destroy() ## ChartText -> class in XCharts.Runtime +class in XCharts.Runtime + +### ChartText.tmpText + +public TextMeshProUGUI tmpText + +### ChartText.ChartText + +public ChartText(GameObject textParent) -|public method|since|description| -|--|--|--| -|ChartText()||public ChartText()| -|ChartText()||public ChartText(GameObject textParent)| -|GetColor()||public Color GetColor()| -|GetPreferredHeight()||public float GetPreferredHeight()| -|GetPreferredText()||public string GetPreferredText(string content, string suffix, float maxWidth)| -|GetPreferredWidth()||public float GetPreferredWidth()| -|GetPreferredWidth()||public float GetPreferredWidth(string content)| -|GetText()||public string GetText()| -|SetActive()||public void SetActive(bool flag)| -|SetAlignment()||public void SetAlignment(TextAnchor alignment)| -|SetColor()||public void SetColor(Color color)| -|SetFont()||public void SetFont(Font font)| -|SetFont()||public void SetFont(TMP_FontAsset font)| -|SetFontAndSizeAndStyle()||public void SetFontAndSizeAndStyle(TextStyle textStyle, ComponentTheme theme)| -|SetFontSize()||public void SetFontSize(float fontSize)| -|SetFontStyle()||public void SetFontStyle(FontStyle fontStyle)| -|SetLineSpacing()||public void SetLineSpacing(float lineSpacing)| -|SetLocalEulerAngles()||public void SetLocalEulerAngles(Vector3 position)| -|SetLocalPosition()||public void SetLocalPosition(Vector3 position)| -|SetRectPosition()||public void SetRectPosition(Vector3 position)| -|SetSizeDelta()||public void SetSizeDelta(Vector2 sizeDelta)| -|SetText()||public void SetText(string text)| +### ChartText.GetColor + +public Color GetColor() + +### ChartText.GetPreferredHeight + +public float GetPreferredHeight() + +### ChartText.GetPreferredText + +public string GetPreferredText(string content, string suffix, float maxWidth) + +### ChartText.GetPreferredWidth + +public float GetPreferredWidth() + + +### ChartText.GetText + +public string GetText() + +### ChartText.SetActive + +public void SetActive(bool flag) + +### ChartText.SetAlignment + +public void SetAlignment(TextAnchor alignment) + +### ChartText.SetColor + +public void SetColor(Color color) + +### ChartText.SetFont + +public void SetFont(TMP_FontAsset font) + + +### ChartText.SetFontAndSizeAndStyle + +public void SetFontAndSizeAndStyle(TextStyle textStyle, ComponentTheme theme) + +### ChartText.SetFontSize + +public void SetFontSize(float fontSize) + +### ChartText.SetFontStyle + +public void SetFontStyle(FontStyle fontStyle) + +### ChartText.SetLineSpacing + +public void SetLineSpacing(float lineSpacing) + +### ChartText.SetLocalEulerAngles + +public void SetLocalEulerAngles(Vector3 position) + +### ChartText.SetLocalPosition + +public void SetLocalPosition(Vector3 position) + +### ChartText.SetRectPosition + +public void SetRectPosition(Vector3 position) + +### ChartText.SetSizeDelta + +public void SetSizeDelta(Vector2 sizeDelta) + +### ChartText.SetText + +public void SetText(string text) ## CheckHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### CheckHelper.CheckChart + +public static string CheckChart(BaseChart chart) -|public method|since|description| -|--|--|--| -|CheckChart()||public static string CheckChart(BaseChart chart)| -|CheckChart()||public static string CheckChart(BaseGraph chart)| ## ChildComponent -> class in XCharts.Runtime / Subclasses: [AnimationStyle](#animationstyle),[AxisAnimation](#axisanimation),[AxisName](#axisname),[AxisSplitArea](#axissplitarea),[AreaStyle](#areastyle),[ArrowStyle](#arrowstyle),[BaseLine](#baseline),[BorderStyle](#borderstyle),[IconStyle](#iconstyle),[ImageStyle](#imagestyle),[ItemStyle](#itemstyle),[Level](#level),[LevelStyle](#levelstyle),[LineArrow](#linearrow),[LineStyle](#linestyle),[Location](#location),[MLValue](#mlvalue),[MarqueeStyle](#marqueestyle),[Padding](#padding),[StageColor](#stagecolor),[SymbolStyle](#symbolstyle),[TextLimit](#textlimit),[TextStyle](#textstyle),[CommentItem](#commentitem),[CommentMarkStyle](#commentmarkstyle),[LabelLine](#labelline),[LabelStyle](#labelstyle),[MarkAreaData](#markareadata),[MarkLineData](#marklinedata),[StateStyle](#statestyle),[VisualMapRange](#visualmaprange),[ViewControl](#viewcontrol),[UIComponentTheme](#uicomponenttheme),[SerieData](#seriedata),[SerieDataLink](#seriedatalink),[ComponentTheme](#componenttheme),[SerieTheme](#serietheme),[ThemeStyle](#themestyle) +class in XCharts.Runtime / Subclasses: [AnimationStyle](#animationstyle),[AxisAnimation](#axisanimation),[AxisName](#axisname),[AxisSplitArea](#axissplitarea),[AreaStyle](#areastyle),[ArrowStyle](#arrowstyle),[BaseLine](#baseline),[BorderStyle](#borderstyle),[IconStyle](#iconstyle),[ImageStyle](#imagestyle),[ItemStyle](#itemstyle),[Level](#level),[LevelStyle](#levelstyle),[LineArrow](#linearrow),[LineStyle](#linestyle),[Location](#location),[MLValue](#mlvalue),[MarqueeStyle](#marqueestyle),[Padding](#padding),[StageColor](#stagecolor),[SymbolStyle](#symbolstyle),[TextLimit](#textlimit),[TextStyle](#textstyle),[CommentItem](#commentitem),[CommentMarkStyle](#commentmarkstyle),[LabelLine](#labelline),[LabelStyle](#labelstyle),[MarkAreaData](#markareadata),[MarkLineData](#marklinedata),[StateStyle](#statestyle),[VisualMapRange](#visualmaprange),[ViewControl](#viewcontrol),[UIComponentTheme](#uicomponenttheme),[SerieData](#seriedata),[SerieDataLink](#seriedatalink),[ComponentTheme](#componenttheme),[SerieTheme](#serietheme),[ThemeStyle](#themestyle) + +### ChildComponent.anyDirty + +public bool anyDirty +需要重绘图表或重新初始化组件。 + +### ChildComponent.componentDirty + +public virtual bool componentDirty +组件重新初始化标记。 + +### ChildComponent.gameObject + +public GameObject gameObject + +### ChildComponent.index + +public virtual int index + +### ChildComponent.painter + +public Painter painter + +### ChildComponent.refreshComponent + +public Action refreshComponent + +### ChildComponent.vertsDirty + +public virtual bool vertsDirty +图表重绘标记。 + +### ChildComponent.ClearComponentDirty + +public virtual void ClearComponentDirty() -|public method|since|description| -|--|--|--| -|ClearComponentDirty()||public static void ClearComponentDirty(ChildComponent component)| -|ClearComponentDirty()||public virtual void ClearComponentDirty()| -|ClearDirty()||public virtual void ClearDirty()| -|ClearVerticesDirty()||public static void ClearVerticesDirty(ChildComponent component)| -|ClearVerticesDirty()||public virtual void ClearVerticesDirty()| -|IsComponentDirty()||public static bool IsComponentDirty(ChildComponent component)| -|IsVertsDirty()||public static bool IsVertsDirty(ChildComponent component)| -|SetAllDirty()||public virtual void SetAllDirty()| -|SetComponentDirty()||public virtual void SetComponentDirty()| -|SetVerticesDirty()||public virtual void SetVerticesDirty()| +### ChildComponent.ClearDirty + +public virtual void ClearDirty() + +### ChildComponent.ClearVerticesDirty + +public virtual void ClearVerticesDirty() + + +### ChildComponent.IsComponentDirty + +public static bool IsComponentDirty(ChildComponent component) + +### ChildComponent.IsVertsDirty + +public static bool IsVertsDirty(ChildComponent component) + +### ChildComponent.SetAllDirty + +public virtual void SetAllDirty() + +### ChildComponent.SetComponentDirty + +public virtual void SetComponentDirty() + +### ChildComponent.SetVerticesDirty + +public virtual void SetVerticesDirty() ## ColorUtil -> class in XCharts.Runtime +class in XCharts.Runtime +### ColorUtil.GetColor -|public method|since|description| -|--|--|--| -|GetColor()||public static Color32 GetColor(string hexColorStr)
Convert the html string to color. | +public static Color32 GetColor(string hexColorStr) +Convert the html string to color. ## Comment -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) comment of chart. -|public method|since|description| -|--|--|--| -|GetLabelStyle()||public LabelStyle GetLabelStyle(int index)| -|GetMarkStyle()||public CommentMarkStyle GetMarkStyle(int index)| -|OnChanged()||public void OnChanged()
Callback handling when parameters change. | +### Comment.items + +public List<CommentItem> items +The items of comment. + +### Comment.show + +public bool show +Set this to false to prevent the comment from showing. + +### Comment.GetLabelStyle + +public LabelStyle GetLabelStyle(int index) + +### Comment.GetMarkStyle + +public CommentMarkStyle GetMarkStyle(int index) + +### Comment.OnChanged + +public void OnChanged() +Callback handling when parameters change. ## CommentItem -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) comment of chart. +### CommentItem.content + +public string content +content of comment. + +### CommentItem.markRect + +public Rect markRect +the mark rect of comment. + +### CommentItem.markStyle + +public CommentMarkStyle markStyle +the mark rect style. + +### CommentItem.show + +public bool show +Set this to false to prevent this comment item from showing. + ## CommentMarkStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) the comment mark style. +### CommentMarkStyle.lineStyle + +public LineStyle lineStyle +line style of comment mark area. + +### CommentMarkStyle.show + +public bool show +Set this to false to prevent this comment item from showing. + ## ComponentHandlerAttribute -> class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### ComponentHandlerAttribute.ComponentHandlerAttribute + +public ComponentHandlerAttribute(Type handler, bool allowMultiple, int order = 3) -|public method|since|description| -|--|--|--| -|ComponentHandlerAttribute()||public ComponentHandlerAttribute(Type handler, bool allowMultiple, int order = 3)| -|ComponentHandlerAttribute()||public ComponentHandlerAttribute(Type handler, int order = 3)| ## ComponentHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### ComponentHelper.GetAngleAxis -|public method|since|description| -|--|--|--| -|GetAngleAxis()||public static AngleAxis GetAngleAxis(List<MainComponent> components, int polarIndex)| -|GetRadiusAxis()||public static RadiusAxis GetRadiusAxis(List<MainComponent> components, int polarIndex)| -|GetXAxisOnZeroOffset()||public static float GetXAxisOnZeroOffset(List<MainComponent> components, XAxis axis)| -|GetYAxisOnZeroOffset()||public static float GetYAxisOnZeroOffset(List<MainComponent> components, YAxis axis)| -|IsAnyCategoryOfYAxis()||public static bool IsAnyCategoryOfYAxis(List<MainComponent> components)| +public static AngleAxis GetAngleAxis(List<MainComponent> components, int polarIndex) + +### ComponentHelper.GetRadiusAxis + +public static RadiusAxis GetRadiusAxis(List<MainComponent> components, int polarIndex) + +### ComponentHelper.GetXAxisOnZeroOffset + +public static float GetXAxisOnZeroOffset(List<MainComponent> components, XAxis axis) + +### ComponentHelper.GetYAxisOnZeroOffset + +public static float GetYAxisOnZeroOffset(List<MainComponent> components, YAxis axis) + +### ComponentHelper.IsAnyCategoryOfYAxis + +public static bool IsAnyCategoryOfYAxis(List<MainComponent> components) ## ComponentTheme -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [BaseAxisTheme](#baseaxistheme),[DataZoomTheme](#datazoomtheme),[LegendTheme](#legendtheme),[SubTitleTheme](#subtitletheme),[TitleTheme](#titletheme),[TooltipTheme](#tooltiptheme),[VisualMapTheme](#visualmaptheme) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [BaseAxisTheme](#baseaxistheme),[DataZoomTheme](#datazoomtheme),[LegendTheme](#legendtheme),[SubTitleTheme](#subtitletheme),[TitleTheme](#titletheme),[TooltipTheme](#tooltiptheme),[VisualMapTheme](#visualmaptheme) +### ComponentTheme.ComponentTheme -|public method|since|description| -|--|--|--| -|ComponentTheme()||public ComponentTheme(ThemeType theme)| -|Copy()||public virtual void Copy(ComponentTheme theme)| -|Reset()||public virtual void Reset(ComponentTheme defaultTheme)| +public ComponentTheme(ThemeType theme) + +### ComponentTheme.Copy + +public virtual void Copy(ComponentTheme theme) + +### ComponentTheme.Reset + +public virtual void Reset(ComponentTheme defaultTheme) ## CoordOptionsAttribute -> class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### CoordOptionsAttribute.Contains<T> + +public bool Contains<T>() where T : CoordSystem + +### CoordOptionsAttribute.CoordOptionsAttribute + +public CoordOptionsAttribute(Type coord, Type coord2) + +public CoordOptionsAttribute(Type coord, Type coord2, Type coord3) + +public CoordOptionsAttribute(Type coord, Type coord2, Type coord3, Type coord4) -|public method|since|description| -|--|--|--| -|Contains<T>()||public bool Contains<T>() where T : CoordSystem| -|CoordOptionsAttribute()||public CoordOptionsAttribute(Type coord)| -|CoordOptionsAttribute()||public CoordOptionsAttribute(Type coord, Type coord2)| -|CoordOptionsAttribute()||public CoordOptionsAttribute(Type coord, Type coord2, Type coord3)| -|CoordOptionsAttribute()||public CoordOptionsAttribute(Type coord, Type coord2, Type coord3, Type coord4)| ## CoordSystem -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) / Subclasses: [RadarCoord](#radarcoord),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[GridCoord3D](#gridcoord3d),[ParallelCoord](#parallelcoord),[PolarCoord](#polarcoord),[SingleAxisCoord](#singleaxiscoord) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) / Subclasses: [RadarCoord](#radarcoord),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[GridCoord3D](#gridcoord3d),[ParallelCoord](#parallelcoord),[PolarCoord](#polarcoord),[SingleAxisCoord](#singleaxiscoord) Coordinate system component. ## DataHelper -> class in XCharts.Runtime - +class in XCharts.Runtime ## DataZoom -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent),[IUpdateRuntimeData](#iupdateruntimedata) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent),[IUpdateRuntimeData](#iupdateruntimedata) DataZoom component is used for zooming a specific area, which enables user to investigate data in detail, or get an overview of the data, or get rid of outlier points. -|public method|since|description| -|--|--|--| -|GetBackgroundColor()||public Color32 GetBackgroundColor(Color32 themeColor)| -|GetBorderColor()||public Color32 GetBorderColor(Color32 themeColor)| -|GetFillerColor()||public Color32 GetFillerColor(Color32 themeColor)| -|IsContainsAxis()||public bool IsContainsAxis(Axis axis)| -|IsContainsXAxis()||public bool IsContainsXAxis(int index)| -|IsContainsYAxis()||public bool IsContainsYAxis(int index)| -|IsInEndZoom()||public bool IsInEndZoom(Vector2 pos)
给定的坐标是否在结束活动条触发区域内 | -|IsInMarqueeArea()||public bool IsInMarqueeArea(SerieData serieData)| -|IsInMarqueeArea()||public bool IsInMarqueeArea(Vector2 pos)| -|IsInSelectedZoom()||public bool IsInSelectedZoom(int totalIndex, int index, bool invert)| -|IsInSelectedZoom()||public bool IsInSelectedZoom(Vector2 pos)
给定的坐标是否在选中区域内 | -|IsInStartZoom()||public bool IsInStartZoom(Vector2 pos)
给定的坐标是否在开始活动条触发区域内 | -|IsInZoom()||public bool IsInZoom(Vector2 pos)
给定的坐标是否在缩放区域内 | -|SetDefaultValue()||public override void SetDefaultValue()| -|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)| +### DataZoom.realtime + +public bool realtime +Whether to show data shadow in dataZoom-silder component, to indicate the data tendency in brief. + +### DataZoom.startEndFunction + +public CustomDataZoomStartEndFunction startEndFunction +start和end变更委托。 + +### DataZoom.GetBackgroundColor + +public Color32 GetBackgroundColor(Color32 themeColor) + +### DataZoom.GetBorderColor + +public Color32 GetBorderColor(Color32 themeColor) + +### DataZoom.GetFillerColor + +public Color32 GetFillerColor(Color32 themeColor) + +### DataZoom.IsContainsAxis + +public bool IsContainsAxis(Axis axis) + +### DataZoom.IsContainsXAxis + +public bool IsContainsXAxis(int index) + +### DataZoom.IsContainsYAxis + +public bool IsContainsYAxis(int index) + +### DataZoom.IsInEndZoom + +public bool IsInEndZoom(Vector2 pos) +给定的坐标是否在结束活动条触发区域内 + +### DataZoom.IsInMarqueeArea + +public bool IsInMarqueeArea(Vector2 pos) + + +### DataZoom.IsInSelectedZoom + +public bool IsInSelectedZoom(int totalIndex, int index, bool invert) + + +### DataZoom.IsInStartZoom + +public bool IsInStartZoom(Vector2 pos) +给定的坐标是否在开始活动条触发区域内 + +### DataZoom.IsInZoom + +public bool IsInZoom(Vector2 pos) +给定的坐标是否在缩放区域内 + +### DataZoom.SetDefaultValue + +public override void SetDefaultValue() + +### DataZoom.UpdateRuntimeData + +public void UpdateRuntimeData(BaseChart chart) + +## DataZoom.FilterMode + +class in XCharts.Runtime + +Generally dataZoom component zoom or roam coordinate system through data filtering and set the windows of axes internally. Its behaviours vary according to filtering mode settings. + +Options: + +- `Filter`: data that outside the window will be filtered, which may lead to some changes of windows of other axes. For each data item, it will be filtered if one of the relevant dimensions is out of the window. +- `WeakFilter`: data that outside the window will be filtered, which may lead to some changes of windows of other axes. For each data item, it will be filtered only if all of the relevant dimensions are out of the same side of the window. +- `Empty`: data that outside the window will be set to NaN, which will not lead to changes of windows of other axes. +- `None`: Do not filter data. + +## DataZoom.RangeMode + +class in XCharts.Runtime + +The value type of start and end.取值类型 + +Options: + +- `//Value`: The value type of start and end.取值类型 +- `Percent`: percent value. ## DataZoomContext -> class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) +class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) +### DataZoomContext.endValue + +public double endValue +运行时实际范围的结束值 + +### DataZoomContext.height + +public float height + +### DataZoomContext.invert + +public bool invert + +### DataZoomContext.isCoordinateDrag + +public bool isCoordinateDrag + +### DataZoomContext.isDrag + +public bool isDrag + +### DataZoomContext.isEndDrag + +public bool isEndDrag + +### DataZoomContext.isMarqueeDrag + +public bool isMarqueeDrag + +### DataZoomContext.isStartDrag + +public bool isStartDrag + +### DataZoomContext.marqueeEndPos + +public Vector3 marqueeEndPos + +### DataZoomContext.marqueeRect + +public Rect marqueeRect + +### DataZoomContext.marqueeStartPos + +public Vector3 marqueeStartPos + +### DataZoomContext.startValue + +public double startValue +运行时实际范围的开始值 + +### DataZoomContext.width + +public float width + +### DataZoomContext.x + +public float x + +### DataZoomContext.y + +public float y ## DataZoomHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### DataZoomHelper.UpdateDataZoomRuntimeStartEndValue -|public method|since|description| -|--|--|--| -|UpdateDataZoomRuntimeStartEndValue()||public static void UpdateDataZoomRuntimeStartEndValue(DataZoom dataZoom, Serie serie)| -|UpdateDataZoomRuntimeStartEndValue<T>()||public static void UpdateDataZoomRuntimeStartEndValue<T>(BaseChart chart) where T : Serie| +public static void UpdateDataZoomRuntimeStartEndValue(DataZoom dataZoom, Serie serie) + +### DataZoomHelper.UpdateDataZoomRuntimeStartEndValue<T> + +public static void UpdateDataZoomRuntimeStartEndValue<T>(BaseChart chart) where T : Serie ## DataZoomTheme -> class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +### DataZoomTheme.Copy -|public method|since|description| -|--|--|--| -|Copy()||public void Copy(DataZoomTheme theme)| -|DataZoomTheme()||public DataZoomTheme(ThemeType theme) : base(theme)| +public void Copy(DataZoomTheme theme) + +### DataZoomTheme.DataZoomTheme + +public DataZoomTheme(ThemeType theme) : base(theme) ## DateTimeUtil -> class in XCharts.Runtime +class in XCharts.Runtime + +### DateTimeUtil.GetDateTime + +public static DateTime GetDateTime(double timestamp, bool local = true) + +### DateTimeUtil.GetDefaultDateTimeString + +public static string GetDefaultDateTimeString(int timestamp, double range = 0) + +### DateTimeUtil.GetTimestamp + +public static int GetTimestamp(DateTime time, bool local = false) + +public static int GetTimestamp(string dateTime, bool local = false) -|public method|since|description| -|--|--|--| -|GetDateTime()||public static DateTime GetDateTime(double timestamp, bool local = true)| -|GetDefaultDateTimeString()||public static string GetDefaultDateTimeString(int timestamp, double range = 0)| -|GetTimestamp()||public static int GetTimestamp()| -|GetTimestamp()||public static int GetTimestamp(DateTime time, bool local = false)| -|GetTimestamp()||public static int GetTimestamp(string dateTime, bool local = false)| -|IsDateOrTimeRegex()||public static bool IsDateOrTimeRegex(string regex)| -|IsDateOrTimeRegex()||public static bool IsDateOrTimeRegex(string regex, ref bool date, ref string formatter)| +### DateTimeUtil.IsDateOrTimeRegex + +public static bool IsDateOrTimeRegex(string regex, ref bool date, ref string formatter) + ## DebugInfo -> class in XCharts.Runtime +class in XCharts.Runtime +### DebugInfo.avgFps -|public method|since|description| -|--|--|--| -|Init()||public void Init(BaseChart chart)| -|Update()||public void Update()| +public float avgFps +The average frame rate. + +### DebugInfo.foldSeries + +public bool foldSeries +Whether to fold series in inspector view. + +### DebugInfo.fps + +public float fps +frame rate. + +### DebugInfo.refreshCount + +public int refreshCount +The fefresh count of chart per second. + +### DebugInfo.show + +public bool show +Whether show debug component. + +### DebugInfo.showAllChartObject + +public bool showAllChartObject +Whether show children components of chart in hierarchy view. + +### DebugInfo.Init + +public void Init(BaseChart chart) + +### DebugInfo.Update + +public void Update() ## DefaultAnimationAttribute -> class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### DefaultAnimationAttribute.DefaultAnimationAttribute + +public DefaultAnimationAttribute(AnimationType handler, bool enableSerieDataAddedAnimation) -|public method|since|description| -|--|--|--| -|DefaultAnimationAttribute()||public DefaultAnimationAttribute(AnimationType handler)| -|DefaultAnimationAttribute()||public DefaultAnimationAttribute(AnimationType handler, bool enableSerieDataAddedAnimation)| ## DefaultTooltipAttribute -> class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### DefaultTooltipAttribute.DefaultTooltipAttribute -|public method|since|description| -|--|--|--| -|DefaultTooltipAttribute()||public DefaultTooltipAttribute(Tooltip.Type type, Tooltip.Trigger trigger)| +public DefaultTooltipAttribute(Tooltip.Type type, Tooltip.Trigger trigger) ## DefineSymbolsUtil -> class in XCharts.Runtime +class in XCharts.Runtime +### DefineSymbolsUtil.AddGlobalDefine -|public method|since|description| -|--|--|--| -|AddGlobalDefine()||public static void AddGlobalDefine(string symbol)| -|RemoveGlobalDefine()||public static void RemoveGlobalDefine(string symbol)| +public static void AddGlobalDefine(string symbol) + +### DefineSymbolsUtil.RemoveGlobalDefine + +public static void RemoveGlobalDefine(string symbol) ## EffectScatter -> class in XCharts.Runtime / Inherits from: [BaseScatter](#basescatter) +class in XCharts.Runtime / Inherits from: [BaseScatter](#basescatter) +### EffectScatter.AddDefaultSerie -|public method|since|description| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## EmphasisStyle -> class in XCharts.Runtime / Inherits from: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) > Since `v3.2.0` Configurations of emphasis state. +## EmphasisStyle.BlurScope + +class in XCharts.Runtime + +blur scope. + +Options: + +- `GridCoord`: coordinate system. +- `Series`: series. +- `Global`: global. + +## EmphasisStyle.FocusType + +class in XCharts.Runtime + +focus type. + +Options: + +- `None`: Do not fade out other data, it's by default. +- `Self`: Only focus (not fade out) the element of the currently highlighted data. +- `Series`: Focus on all elements of the series which the currently highlighted data belongs to. + ## EndLabelStyle -> class in XCharts.Runtime / Inherits from: [LabelStyle](#labelstyle) +class in XCharts.Runtime / Inherits from: [LabelStyle](#labelstyle) +### EndLabelStyle.EndLabelStyle -|public method|since|description| -|--|--|--| -|EndLabelStyle()||public EndLabelStyle()| +public EndLabelStyle() ## FormatterHelper -> class in XCharts.Runtime +class in XCharts.Runtime + +### FormatterHelper.NeedFormat + +public static bool NeedFormat(string content) + +### FormatterHelper.ReplaceAxisLabelContent + +public static void ReplaceAxisLabelContent(ref string content, string value) -|public method|since|description| -|--|--|--| -|NeedFormat()||public static bool NeedFormat(string content)| -|ReplaceAxisLabelContent()||public static void ReplaceAxisLabelContent(ref string content, string numericFormatter, double value)| -|ReplaceAxisLabelContent()||public static void ReplaceAxisLabelContent(ref string content, string value)| -|TrimAndReplaceLine()||public static string TrimAndReplaceLine(string content)| -|TrimAndReplaceLine()||public static string TrimAndReplaceLine(StringBuilder sb)| +### FormatterHelper.TrimAndReplaceLine + +public static string TrimAndReplaceLine(string content) + ## GraphData -> class in XCharts.Runtime +class in XCharts.Runtime the data struct of graph. -|public method|since|description| -|--|--|--| -|AddEdge()||public GraphEdge AddEdge(string nodeId1, string nodeId2, double value)| -|AddNode()||public GraphNode AddNode(string nodeId, string nodeName, int dataIndex, double value)| -|BreadthFirstTraverse()||public void BreadthFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse)| -|Clear()||public void Clear()| -|DeepFirstTraverse()||public void DeepFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse)| -|EachNode()||public void EachNode(System.Action<GraphNode> onEach)| -|ExpandAllNodes()||public void ExpandAllNodes(bool flag, int level = -1)| -|ExpandNode()||public void ExpandNode(string nodeId, bool flag)| -|GetDepthNodes()||public List<List<GraphNode>> GetDepthNodes()| -|GetEdge()||public GraphEdge GetEdge(string nodeId1, string nodeId2)| -|GetExpandedNodesCount()||public static int GetExpandedNodesCount(List<GraphNode> nodes)| -|GetMaxDepth()||public int GetMaxDepth()| -|GetNode()||public GraphNode GetNode(string nodeId)| -|GetNodeDepth()||// public int GetNodeDepth(GraphNode node)| -|GetNodeDepth()||// public void GetNodeDepth(GraphNode node, ref int depth, int recursiveCount = 0)| -|GetNodeDepth()||public int GetNodeDepth(GraphNode node, int recursiveCount = 0)| -|GetNodesTotalValue()||public static double GetNodesTotalValue(List<GraphNode> nodes)| -|GetRootNodes()||public List<GraphNode> GetRootNodes()| -|GraphData()||public GraphData(bool directed)| -|IsAllNodeInZeroPosition()||public bool IsAllNodeInZeroPosition()| -|Refresh()||public void Refresh()| +### GraphData.AddEdge + +public GraphEdge AddEdge(string nodeId1, string nodeId2, double value) + +### GraphData.AddNode + +public GraphNode AddNode(string nodeId, string nodeName, int dataIndex, double value) + +### GraphData.BreadthFirstTraverse + +public void BreadthFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse) + +### GraphData.Clear + +public void Clear() + +### GraphData.DeepFirstTraverse + +public void DeepFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse) + +### GraphData.EachNode + +public void EachNode(System.Action<GraphNode> onEach) + +### GraphData.ExpandAllNodes + +public void ExpandAllNodes(bool flag, int level = -1) + +### GraphData.ExpandNode + +public void ExpandNode(string nodeId, bool flag) + +### GraphData.GetDepthNodes + +public List<List<GraphNode>> GetDepthNodes() + +### GraphData.GetEdge + +public GraphEdge GetEdge(string nodeId1, string nodeId2) + +### GraphData.GetExpandedNodesCount + +public static int GetExpandedNodesCount(List<GraphNode> nodes) + +### GraphData.GetMaxDepth + +public int GetMaxDepth() + +### GraphData.GetNode + +public GraphNode GetNode(string nodeId) + +### GraphData.GetNodeDepth + +// public void GetNodeDepth(GraphNode node, ref int depth, int recursiveCount = 0) + +public int GetNodeDepth(GraphNode node, int recursiveCount = 0) + + +### GraphData.GetNodesTotalValue + +public static double GetNodesTotalValue(List<GraphNode> nodes) + +### GraphData.GetRootNodes + +public List<GraphNode> GetRootNodes() + +### GraphData.GraphData + +public GraphData(bool directed) + +### GraphData.IsAllNodeInZeroPosition + +public bool IsAllNodeInZeroPosition() + +### GraphData.Refresh + +public void Refresh() ## GraphEdge -> class in XCharts.Runtime +class in XCharts.Runtime The edge of graph. -|public method|since|description| -|--|--|--| -|GraphEdge()||public GraphEdge(GraphNode node1, GraphNode node2, double value)| -|IsPointInEdge()||public bool IsPointInEdge(Vector2 point)| +### GraphEdge.GraphEdge + +public GraphEdge(GraphNode node1, GraphNode node2, double value) + +### GraphEdge.IsPointInEdge + +public bool IsPointInEdge(Vector2 point) ## GraphNode -> class in XCharts.Runtime +class in XCharts.Runtime The node of graph. -|public method|since|description| -|--|--|--| -|Expand()||public void Expand(bool flag)| -|GraphNode()||public GraphNode(string id, string name, int dataIndex)| -|IsAllInEdgesCollapsed()||public bool IsAllInEdgesCollapsed()| -|IsAnyInEdgesExpanded()||public bool IsAnyInEdgesExpanded()| -|ToString()||public override string ToString()| +### GraphNode.degree + +public int degree + +### GraphNode.inDegree + +public int inDegree + +### GraphNode.outDegree + +public int outDegree + +### GraphNode.Expand + +public void Expand(bool flag) + +### GraphNode.GraphNode + +public GraphNode(string id, string name, int dataIndex) + +### GraphNode.IsAllInEdgesCollapsed + +public bool IsAllInEdgesCollapsed() + +### GraphNode.IsAnyInEdgesExpanded + +public bool IsAnyInEdgesExpanded() + +### GraphNode.ToString + +public override string ToString() ## GridCoord -> class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) Grid component. -|public method|since|description| -|--|--|--| -|BoundaryPoint()||public bool BoundaryPoint(Vector3 sp, Vector3 ep, ref List<Vector3> point)
给定的线段和Grid边界的交点 | -|BoundaryPoint()||public bool BoundaryPoint(Vector3 sp, Vector3 ep, ref Vector3 point)
给定的线段和Grid边界的交点 | -|Clamp()|v3.7.0|public void Clamp(ref Vector3 pos)
Clamp the position of pos to the grid. | -|ClampX()|v3.7.0|public void ClampX(ref Vector3 pos)
Clamp the x position of pos to the grid. | -|ClampY()|v3.7.0|public void ClampY(ref Vector3 pos)
Clamp the y position of pos to the grid. | -|Contains()||public bool Contains(float x, float y)
Whether the given position is in the grid. | -|Contains()||public bool Contains(Vector3 pos)
Whether the given position is in the grid. | -|Contains()|v3.7.0|public bool Contains(Vector3 pos, bool isYAxis)
Whether the given position is in the grid. | -|ContainsX()|v3.7.0|public bool ContainsX(float x)
Whether the given x is in the grid. | -|ContainsY()|v3.7.0|public bool ContainsY(float y)
Whether the given y is in the grid. | -|IsPointerEnter()||public bool IsPointerEnter()
Whether the pointer is in the grid. | -|NotAnyIntersect()|v3.10.0|public bool NotAnyIntersect(Vector3 sp, Vector3 ep)
Determines whether a given line segment will not intersect the Grid boundary at all. | -|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)| +### GridCoord.BoundaryPoint + +public bool BoundaryPoint(Vector3 sp, Vector3 ep, ref List<Vector3> point) +给定的线段和Grid边界的交点 + + +### GridCoord.Clamp + +public void Clamp(ref Vector3 pos) + +> Since `v3.7.0` + +Clamp the position of pos to the grid. + +### GridCoord.ClampX + +public void ClampX(ref Vector3 pos) + +> Since `v3.7.0` + +Clamp the x position of pos to the grid. + +### GridCoord.ClampY + +public void ClampY(ref Vector3 pos) + +> Since `v3.7.0` + +Clamp the y position of pos to the grid. + +### GridCoord.Contains + +public bool Contains(float x, float y) +Whether the given position is in the grid. + +public bool Contains(Vector3 pos, bool isYAxis) + +> Since `v3.7.0` + +Whether the given position is in the grid. + + +### GridCoord.ContainsX + +public bool ContainsX(float x) + +> Since `v3.7.0` + +Whether the given x is in the grid. + +### GridCoord.ContainsY + +public bool ContainsY(float y) + +> Since `v3.7.0` + +Whether the given y is in the grid. + +### GridCoord.IsPointerEnter + +public bool IsPointerEnter() +Whether the pointer is in the grid. + +### GridCoord.NotAnyIntersect + +public bool NotAnyIntersect(Vector3 sp, Vector3 ep) + +> Since `v3.10.0` + +Determines whether a given line segment will not intersect the Grid boundary at all. + +### GridCoord.UpdateRuntimeData + +public void UpdateRuntimeData(BaseChart chart) ## GridCoord3D -> class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) > Since `v3.11.0` Grid component. -|public method|since|description| -|--|--|--| -|Clamp()||public void Clamp(ref Vector3 pos)
Clamp the position of pos to the grid. | -|Contains()||public bool Contains(Vector3 pos)
Whether the given position is in the grid. | -|IsLeft()||public bool IsLeft()
The opening of the coordinate system faces to the left. 坐标系开口朝向左边。 | -|IsPointerEnter()||public bool IsPointerEnter()
Whether the pointer is in the grid. | -|NotAnyIntersect()||public bool NotAnyIntersect(Vector3 sp, Vector3 ep)
Determines whether a given line segment will not intersect the Grid boundary at all. | -|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)| +### GridCoord3D.Clamp + +public void Clamp(ref Vector3 pos) +Clamp the position of pos to the grid. + +### GridCoord3D.Contains + +public bool Contains(Vector3 pos) +Whether the given position is in the grid. + +### GridCoord3D.IsLeft + +public bool IsLeft() +The opening of the coordinate system faces to the left. 坐标系开口朝向左边。 + +### GridCoord3D.IsPointerEnter + +public bool IsPointerEnter() +Whether the pointer is in the grid. + +### GridCoord3D.NotAnyIntersect + +public bool NotAnyIntersect(Vector3 sp, Vector3 ep) +Determines whether a given line segment will not intersect the Grid boundary at all. + +### GridCoord3D.UpdateRuntimeData + +public void UpdateRuntimeData(BaseChart chart) ## GridCoord3DContext -> class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) - +class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) ## GridCoordContext -> class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) - +class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) ## GridLayout -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent),[IUpdateRuntimeData](#iupdateruntimedata) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent),[IUpdateRuntimeData](#iupdateruntimedata) > Since `v3.8.0` Grid layout component. Used to manage the layout of multiple `GridCoord`, and the number of rows and columns of the grid can be controlled by `row` and `column`. -|public method|since|description| -|--|--|--| -|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)| +### GridLayout.UpdateRuntimeData + +public void UpdateRuntimeData(BaseChart chart) ## GridLayoutContext -> class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) - +class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) ## Heatmap -> class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +### Heatmap.containerIndex -|public method|since|description| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| +public int containerIndex + +### Heatmap.containterInstanceId + +public int containterInstanceId + +### Heatmap.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## HeatmapChart -> class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) +class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) Heat map mainly use colors to represent values, which must be used along with visualMap component. It can be used in either rectangular coordinate or geographic coordinate. But the behaviour on them are quite different. Rectangular coordinate must have two categories to use it. -|public method|since|description| -|--|--|--| -|DefaultCountHeatmapChart()||public void DefaultCountHeatmapChart()
default count heatmap chart. | +### HeatmapChart.DefaultCountHeatmapChart + +public void DefaultCountHeatmapChart() +default count heatmap chart. + +## HeatmapType + +class in XCharts.Runtime + +The mapping type of heatmap. + +Options: + +- `Data`: Data mapping type.By default, the second dimension data is used as the color map. +- `Count`: Number mapping type.The number of occurrences of a statistic in a divided grid, as a color map. ## IconStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +### IconStyle.align -|public method|since|description| -|--|--|--| -|Clone()||public IconStyle Clone()| -|Copy()||public void Copy(IconStyle iconStyle)| -|Reset()||public void Reset()| +public Align align +水平方向对齐方式。 + +### IconStyle.autoHideWhenLabelEmpty + +public bool autoHideWhenLabelEmpty +当label内容为空时是否自动隐藏图标 + +### IconStyle.color + +public Color color +图标颜色。 + +### IconStyle.height + +public float height +图标高。 + +### IconStyle.layer + +public Layer layer +显示在上层还是在下层。 + +### IconStyle.offset + +public Vector3 offset +图标偏移。 + +### IconStyle.show + +public bool show +Whether the data icon is show. + +### IconStyle.sprite + +public Sprite sprite +The image of icon. + +### IconStyle.type + +public Image.Type type +How to display the icon. + +### IconStyle.width + +public float width +图标宽。 + +### IconStyle.Clone + +public IconStyle Clone() + +### IconStyle.Copy + +public void Copy(IconStyle iconStyle) + +### IconStyle.Reset + +public void Reset() + +## IconStyle.Layer + +class in XCharts.Runtime + +Options: + +- `UnderText`: The icon is display under the label text. 图标在标签文字下 +- `AboveText`: The icon is display above the label text. 图标在标签文字上 ## IgnoreDoc -> class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### IgnoreDoc.IgnoreDoc -|public method|since|description| -|--|--|--| -|IgnoreDoc()||public IgnoreDoc()| +public IgnoreDoc() ## ImageStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) +### ImageStyle.autoColor -|public method|since|description| -|--|--|--| -|Clone()||public ImageStyle Clone()| -|Copy()||public void Copy(ImageStyle imageStyle)| -|Reset()||public void Reset()| +public bool autoColor +是否自动颜色。 + +### ImageStyle.color + +public Color color +图标颜色。 + +### ImageStyle.height + +public float height +图标高。 + +### ImageStyle.show + +public bool show +Whether the data icon is show. + +### ImageStyle.sprite + +public Sprite sprite +The image of icon. + +### ImageStyle.type + +public Image.Type type +How to display the image. + +### ImageStyle.width + +public float width +图标宽。 + +### ImageStyle.Clone + +public ImageStyle Clone() + +### ImageStyle.Copy + +public void Copy(ImageStyle imageStyle) + +### ImageStyle.Reset + +public void Reset() ## Indicator -> class in XCharts.Runtime +class in XCharts.Runtime Indicator of radar chart, which is used to assign multiple variables(dimensions) in radar chart. -|public method|since|description| -|--|--|--| -|AddIndicator()||public RadarCoord.Indicator AddIndicator(string name, double min, double max)| -|AddIndicator()||public void AddIndicator(RadarCoord.Indicator indicator)| -|AddIndicatorList()|v3.3.0|public void AddIndicatorList(List<string> nameList, double min = 0, double max = 0)| -|ClearData()||public override void ClearData()| -|GetFormatterIndicatorContent()||public string GetFormatterIndicatorContent(int indicatorIndex)| -|GetFormatterIndicatorContent()||public string GetFormatterIndicatorContent(string indicatorName)| -|GetIndicator()||public RadarCoord.Indicator GetIndicator(int indicatorIndex)| -|GetIndicatorMax()||public double GetIndicatorMax(int index)| -|GetIndicatorMin()||public double GetIndicatorMin(int index)| -|GetIndicatorName()||public string GetIndicatorName(int indicatorIndex)| -|GetIndicatorPosition()||public Vector3 GetIndicatorPosition(int index)| -|IsInIndicatorRange()||public bool IsInIndicatorRange(int index, double value)| -|IsInRange()||public bool IsInRange(double value)| -|IsPointerEnter()||public bool IsPointerEnter()| -|SetDefaultValue()||public override void SetDefaultValue()| -|UpdateIndicator()||public bool UpdateIndicator(int indicatorIndex, string name, double min, double max)| +### Indicator.indicatorList + +public List<Indicator> indicatorList +the indicator list. + +### Indicator.max + +public double max +The maximum value of indicator, with default value of 0, but we recommend to set it manually. + +### Indicator.min + +public double min +The minimum value of indicator, with default value of 0. + +### Indicator.name + +public string name +The name of indicator. + +### Indicator.show + +public bool show +[default:true] Set this to false to prevent the radar from showing. + +### Indicator.text + +public Text text +the text conponent of indicator. + +### Indicator.AddIndicator + +public RadarCoord.Indicator AddIndicator(string name, double min, double max) + + +### Indicator.AddIndicatorList + +public void AddIndicatorList(List<string> nameList, double min = 0, double max = 0) + +> Since `v3.3.0` + + +### Indicator.ClearData + +public override void ClearData() + +### Indicator.GetFormatterIndicatorContent + +public string GetFormatterIndicatorContent(string indicatorName) + + +### Indicator.GetIndicator + +public RadarCoord.Indicator GetIndicator(int indicatorIndex) + +### Indicator.GetIndicatorMax + +public double GetIndicatorMax(int index) + +### Indicator.GetIndicatorMin + +public double GetIndicatorMin(int index) + +### Indicator.GetIndicatorName + +public string GetIndicatorName(int indicatorIndex) + +### Indicator.GetIndicatorPosition + +public Vector3 GetIndicatorPosition(int index) + +### Indicator.IsInIndicatorRange + +public bool IsInIndicatorRange(int index, double value) + +### Indicator.IsInRange + +public bool IsInRange(double value) + +### Indicator.IsPointerEnter + +public bool IsPointerEnter() + +### Indicator.SetDefaultValue + +public override void SetDefaultValue() + +### Indicator.UpdateIndicator + +public bool UpdateIndicator(int indicatorIndex, string name, double min, double max) ## INeedSerieContainer -> class in XCharts.Runtime / Subclasses: [Bar](#bar),[SimplifiedBar](#simplifiedbar),[Candlestick](#candlestick),[SimplifiedCandlestick](#simplifiedcandlestick),[Heatmap](#heatmap),[Line](#line),[SimplifiedLine](#simplifiedline),[Parallel](#parallel),[Radar](#radar),[BaseScatter](#basescatter) - +class in XCharts.Runtime / Subclasses: [Bar](#bar),[SimplifiedBar](#simplifiedbar),[Candlestick](#candlestick),[SimplifiedCandlestick](#simplifiedcandlestick),[Heatmap](#heatmap),[Line](#line),[SimplifiedLine](#simplifiedline),[Parallel](#parallel),[Radar](#radar),[BaseScatter](#basescatter) ## InputHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### InputHelper.GetKeyDown -|public method|since|description| -|--|--|--| -|GetKeyDown()||public static bool GetKeyDown(KeyCode keyCode)| -|GetTouch()||public static Touch GetTouch(int v)| +public static bool GetKeyDown(KeyCode keyCode) + +### InputHelper.GetTouch + +public static Touch GetTouch(int v) ## InteractData -> class in XCharts.Runtime +class in XCharts.Runtime + +### InteractData.Reset + +public void Reset() + +### InteractData.SetColor + +public void SetColor(ref bool needInteract, Color32 color, Color32 toColor) -|public method|since|description| -|--|--|--| -|Reset()||public void Reset()| -|SetColor()||public void SetColor(ref bool needInteract, Color32 color)| -|SetColor()||public void SetColor(ref bool needInteract, Color32 color, Color32 toColor)| -|SetPosition()||public void SetPosition(ref bool needInteract, Vector3 pos)| -|SetValue()||public void SetValue(ref bool needInteract, float value, bool highlight, float rate = 1.3f)| -|SetValue()||public void SetValue(ref bool needInteract, float value, bool previousValueZero = false)| -|SetValueAndColor()||public void SetValueAndColor(ref bool needInteract, float value, Color32 color)| -|SetValueAndColor()||public void SetValueAndColor(ref bool needInteract, float value, Color32 color, Color32 toColor)| -|ToString()||public override string ToString()| -|TryGetColor()||public bool TryGetColor(ref Color32 color, ref bool interacting, float animationDuration = 250)| -|TryGetColor()||public bool TryGetColor(ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)| -|TryGetPosition()||public bool TryGetPosition(ref Vector3 pos, ref bool interacting, float animationDuration = 250)| -|TryGetValue()||public bool TryGetValue(ref float value, ref bool interacting, float animationDuration = 250)| -|TryGetValueAndColor()||public bool TryGetValueAndColor(ref float value, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)| -|TryGetValueAndColor()||public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref bool interacting, float animationDuration = 250)| -|TryGetValueAndColor()||public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)| +### InteractData.SetPosition + +public void SetPosition(ref bool needInteract, Vector3 pos) + +### InteractData.SetValue + +public void SetValue(ref bool needInteract, float value, bool previousValueZero = false) + + +### InteractData.SetValueAndColor + +public void SetValueAndColor(ref bool needInteract, float value, Color32 color, Color32 toColor) + + +### InteractData.ToString + +public override string ToString() + +### InteractData.TryGetColor + +public bool TryGetColor(ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250) + + +### InteractData.TryGetPosition + +public bool TryGetPosition(ref Vector3 pos, ref bool interacting, float animationDuration = 250) + +### InteractData.TryGetValue + +public bool TryGetValue(ref float value, ref bool interacting, float animationDuration = 250) + +### InteractData.TryGetValueAndColor + +public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref bool interacting, float animationDuration = 250) + +public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250) + ## IPropertyChanged -> class in XCharts.Runtime / Subclasses: [Location](#location),[Comment](#comment),[Legend](#legend),[Title](#title) +class in XCharts.Runtime / Subclasses: [Location](#location),[Comment](#comment),[Legend](#legend),[Title](#title) 属性变更接口 ## ISerieComponent -> class in XCharts.Runtime / Subclasses: [AreaStyle](#areastyle),[ImageStyle](#imagestyle),[LineArrow](#linearrow),[LabelLine](#labelline),[LabelStyle](#labelstyle),[BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle),[TitleStyle](#titlestyle) +class in XCharts.Runtime / Subclasses: [AreaStyle](#areastyle),[ImageStyle](#imagestyle),[LineArrow](#linearrow),[LabelLine](#labelline),[LabelStyle](#labelstyle),[BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle),[TitleStyle](#titlestyle) The interface for serie component. ## ISerieContainer -> class in XCharts.Runtime / Subclasses: [RadarCoord](#radarcoord),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[GridCoord3D](#gridcoord3d),[ParallelCoord](#parallelcoord),[PolarCoord](#polarcoord) - +class in XCharts.Runtime / Subclasses: [RadarCoord](#radarcoord),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[GridCoord3D](#gridcoord3d),[ParallelCoord](#parallelcoord),[PolarCoord](#polarcoord) ## ISerieDataComponent -> class in XCharts.Runtime / Subclasses: [AreaStyle](#areastyle),[ImageStyle](#imagestyle),[ItemStyle](#itemstyle),[LineStyle](#linestyle),[SerieSymbol](#seriesymbol),[LabelLine](#labelline),[LabelStyle](#labelstyle),[BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle),[TitleStyle](#titlestyle) +class in XCharts.Runtime / Subclasses: [AreaStyle](#areastyle),[ImageStyle](#imagestyle),[ItemStyle](#itemstyle),[LineStyle](#linestyle),[SerieSymbol](#seriesymbol),[LabelLine](#labelline),[LabelStyle](#labelstyle),[BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle),[TitleStyle](#titlestyle) The interface for serie data component. ## ISimplifiedSerie -> class in XCharts.Runtime / Subclasses: [SimplifiedBar](#simplifiedbar),[SimplifiedCandlestick](#simplifiedcandlestick),[SimplifiedLine](#simplifiedline) - +class in XCharts.Runtime / Subclasses: [SimplifiedBar](#simplifiedbar),[SimplifiedCandlestick](#simplifiedcandlestick),[SimplifiedLine](#simplifiedline) ## ItemStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieDataComponent](#iseriedatacomponent) 图形样式。 -|public method|since|description| -|--|--|--| -|GetBorderColor()||public Color32 GetBorderColor(Color32 defaultColor)| -|GetBorderColor0()||public Color32 GetBorderColor0(Color32 defaultColor)| -|GetColor()||public Color32 GetColor()| -|GetColor()||public Color32 GetColor(Color32 defaultColor)| -|GetColor0()||public Color32 GetColor0()| -|GetColor0()||public Color32 GetColor0(Color32 defaultColor)| -|GetGradientColor()||public Color32 GetGradientColor(float value, Color32 defaultColor)| -|GetToColor()||public Color32 GetToColor()| -|IsNeedCorner()||public bool IsNeedCorner()| -|IsNeedGradient()||public bool IsNeedGradient()| -|Reset()||public void Reset()| +### ItemStyle.GetBorderColor + +public Color32 GetBorderColor(Color32 defaultColor) + +### ItemStyle.GetBorderColor0 + +public Color32 GetBorderColor0(Color32 defaultColor) + +### ItemStyle.GetColor + +public Color32 GetColor(Color32 defaultColor) + + +### ItemStyle.GetColor0 + +public Color32 GetColor0(Color32 defaultColor) + + +### ItemStyle.GetGradientColor + +public Color32 GetGradientColor(float value, Color32 defaultColor) + +### ItemStyle.GetToColor + +public Color32 GetToColor() + +### ItemStyle.IsNeedCorner + +public bool IsNeedCorner() + +### ItemStyle.IsNeedGradient + +public bool IsNeedGradient() + +### ItemStyle.Reset + +public void Reset() ## IUpdateRuntimeData -> class in XCharts.Runtime / Subclasses: [SingleAxis](#singleaxis),[DataZoom](#datazoom),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[GridLayout](#gridlayout),[GridCoord3D](#gridcoord3d),[ParallelCoord](#parallelcoord) - +class in XCharts.Runtime / Subclasses: [SingleAxis](#singleaxis),[DataZoom](#datazoom),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[GridLayout](#gridlayout),[GridCoord3D](#gridcoord3d),[ParallelCoord](#parallelcoord) ## JsonUtil -> class in XCharts.Runtime +class in XCharts.Runtime +### JsonUtil.GetJsonArray<T> + +public static T[] GetJsonArray<T>(string json) + +### JsonUtil.GetJsonObject<T> + +public static T GetJsonObject<T>(string json) + +### JsonUtil.GetWebJson<T> + +public static IEnumerator GetWebJson<T>(string url, Action<T> callback) -|public method|since|description| -|--|--|--| -|GetJsonArray<T>()||public static T[] GetJsonArray<T>(string json)| -|GetJsonObject<T>()||public static T GetJsonObject<T>(string json)| -|GetWebJson<T>()||public static IEnumerator GetWebJson<T>(string url, Action<T[]> callback)| -|GetWebJson<T>()||public static IEnumerator GetWebJson<T>(string url, Action<T> callback)| ## LabelLine -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) 标签的引导线 -|public method|since|description| -|--|--|--| -|GetEndSymbolOffset()||public Vector3 GetEndSymbolOffset()| -|GetStartSymbolOffset()||public Vector3 GetStartSymbolOffset()| -|Reset()||public void Reset()| +### LabelLine.GetEndSymbolOffset + +public Vector3 GetEndSymbolOffset() + +### LabelLine.GetStartSymbolOffset + +public Vector3 GetStartSymbolOffset() + +### LabelLine.Reset + +public void Reset() + +## LabelLine.LineType + +class in XCharts.Runtime + +标签视觉引导线类型 + +Options: + +- `BrokenLine`: 折线 +- `Curves`: 曲线 +- `HorizontalLine`: 水平线 ## LabelStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) / Subclasses: [AxisLabel](#axislabel),[EndLabelStyle](#endlabelstyle),[TitleStyle](#titlestyle) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) / Subclasses: [AxisLabel](#axislabel),[EndLabelStyle](#endlabelstyle),[TitleStyle](#titlestyle) Text label of chart, to explain some data information about graphic item like value, name and so on. -|public method|since|description| -|--|--|--| -|Clone()||public virtual LabelStyle Clone()| -|Copy()||public virtual void Copy(LabelStyle label)| -|GetColor()||public Color GetColor(Color defaultColor)| -|GetFormatterContent()||public virtual string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false)| -|GetFormatterContent()||public virtual string GetFormatterContent(int labelIndex, string category)| -|GetFormatterDateTime()||public string GetFormatterDateTime(int labelIndex, double value, double minValue, double maxValue)| -|GetOffset()||public Vector3 GetOffset(float radius)| -|IsAutoSize()||public bool IsAutoSize()| -|IsDefaultPosition()||public bool IsDefaultPosition(Position position)| -|IsInside()||public bool IsInside()
whether the label is inside. | -|Reset()||public void Reset()| +### LabelStyle.Clone + +public virtual LabelStyle Clone() + +### LabelStyle.Copy + +public virtual void Copy(LabelStyle label) + +### LabelStyle.GetColor + +public Color GetColor(Color defaultColor) + +### LabelStyle.GetFormatterContent + +public virtual string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false) + + +### LabelStyle.GetFormatterDateTime + +public string GetFormatterDateTime(int labelIndex, double value, double minValue, double maxValue) + +### LabelStyle.GetOffset + +public Vector3 GetOffset(float radius) + +### LabelStyle.IsAutoSize + +public bool IsAutoSize() + +### LabelStyle.IsDefaultPosition + +public bool IsDefaultPosition(Position position) + +### LabelStyle.IsInside + +public bool IsInside() +whether the label is inside. + +### LabelStyle.Reset + +public void Reset() + +## LabelStyle.Position + +class in XCharts.Runtime + +The position of label. + +Options: + +- `Default`: The position of label. +- `Outside`: Outside of sectors of pie chart, which relates to corresponding sector through visual guide line. +- `Inside`: Inside the sectors of pie chart. +- `Center`: In the center of pie chart. +- `Top`: top of symbol. +- `Bottom`: the bottom of symbol. +- `Left`: the left of symbol. +- `Right`: the right of symbol. +- `Start`: the start of line. +- `Middle`: the middle of line. +- `End`: the end of line. ## Lang -> class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject) +class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject) Language. -|public method|since|description| -|--|--|--| -|GetCandlestickDimensionName()||public string GetCandlestickDimensionName(int i)| -|GetDay()||public string GetDay(int day)| -|GetMonthAbbr()||public string GetMonthAbbr(int month)| +### Lang.GetCandlestickDimensionName + +public string GetCandlestickDimensionName(int i) + +### Lang.GetDay + +public string GetDay(int day) + +### Lang.GetMonthAbbr + +public string GetMonthAbbr(int month) ## LangCandlestick -> class in XCharts.Runtime +class in XCharts.Runtime +### LangCandlestick.List<string>() + +public List<string> dimensionNames = new List<string>() ## LangTime -> class in XCharts.Runtime +class in XCharts.Runtime +### LangTime.List<string> + +public List<string> dayOfMonth = new List<string>() + +public List<string> dayOfWeek = new List<string>() + +public List<string> dayOfWeekAbbr = new List<string>() + +public List<string> monthAbbr = new List<string>() -|public method|since|description| -|--|--|--| -|List<string>()||public List<string> dayOfMonth = new List<string>()| -|List<string>()||public List<string> dayOfWeek = new List<string>()| -|List<string>()||public List<string> dayOfWeekAbbr = new List<string>()| -|List<string>()||public List<string> monthAbbr = new List<string>()| -|List<string>()||public List<string> months = new List<string>()| ## LayerHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### LayerHelper.IsFixedWidthHeight -|public method|since|description| -|--|--|--| -|IsFixedWidthHeight()||public static bool IsFixedWidthHeight(RectTransform rt)| -|IsStretchPivot()||public static bool IsStretchPivot(RectTransform rt)| +public static bool IsFixedWidthHeight(RectTransform rt) + +### LayerHelper.IsStretchPivot + +public static bool IsStretchPivot(RectTransform rt) ## Legend -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) Legend component.The legend component shows different sets of tags, colors, and names. You can control which series are not displayed by clicking on the legend. -|public method|since|description| -|--|--|--| -|AddData()||public void AddData(string name)
Add legend data. | -|ClearComponentDirty()||public override void ClearComponentDirty()| -|ClearData()||public override void ClearData()
Clear legend data. | -|ContainsData()||public bool ContainsData(string name)
Whether include in legend data by the specified name. | -|GetColor()||public Color GetColor(int index)| -|GetData()||public string GetData(int index)
Gets the legend for the specified index. | -|GetIcon()||public Sprite GetIcon(int index)
Gets the legend button for the specified index. | -|GetIndex()||public int GetIndex(string legendName)
Gets the index of the specified legend. | -|GetPosition()||public Vector3 GetPosition(int index, Vector3 defaultPos)| -|OnChanged()||public void OnChanged()
Callback handling when parameters change. | -|RemoveButton()||public void RemoveButton()
Remove all legend buttons. | -|RemoveData()||public void RemoveData(string name)
Removes the legend with the specified name. | -|SetButton()||public void SetButton(string name, LegendItem item, int total)
Bind buttons to legends. | -|UpdateButtonColor()||public void UpdateButtonColor(string name, Color color)
Update the legend button color. | -|UpdateContentColor()||public void UpdateContentColor(string name, Color color)
Update the text color of legend. | +### Legend.vertsDirty + +public override bool vertsDirty +图表是否需要刷新(图例组件不需要刷新图表) + +### Legend.AddData + +public void AddData(string name) +Add legend data. + +### Legend.ClearComponentDirty + +public override void ClearComponentDirty() + +### Legend.ClearData + +public override void ClearData() +Clear legend data. + +### Legend.ContainsData + +public bool ContainsData(string name) +Whether include in legend data by the specified name. + +### Legend.GetColor + +public Color GetColor(int index) + +### Legend.GetData + +public string GetData(int index) +Gets the legend for the specified index. + +### Legend.GetIcon + +public Sprite GetIcon(int index) +Gets the legend button for the specified index. + +### Legend.GetIndex + +public int GetIndex(string legendName) +Gets the index of the specified legend. + +### Legend.GetPosition + +public Vector3 GetPosition(int index, Vector3 defaultPos) + +### Legend.OnChanged + +public void OnChanged() +Callback handling when parameters change. + +### Legend.RemoveButton + +public void RemoveButton() +Remove all legend buttons. + +### Legend.RemoveData + +public void RemoveData(string name) +Removes the legend with the specified name. + +### Legend.SetButton + +public void SetButton(string name, LegendItem item, int total) +Bind buttons to legends. + +### Legend.UpdateButtonColor + +public void UpdateButtonColor(string name, Color color) +Update the legend button color. + +### Legend.UpdateContentColor + +public void UpdateContentColor(string name, Color color) +Update the text color of legend. + +## Legend.SelectedMode + +class in XCharts.Runtime + +Selected mode of legend, which controls whether series can be toggled displaying by clicking legends. + +Options: + +- `Multiple`: 多选。 +- `Single`: 单选。 +- `None`: 无法选择。 + +## Legend.Type + +class in XCharts.Runtime + +Legend component.The legend component shows different sets of tags, colors, and names. You can control which series are not displayed by clicking on the legend. + +Options: + +- `Auto`: 自动匹配。 +- `Custom`: 自定义图标。 +- `EmptyCircle`: 空心圆。 +- `Circle`: 圆形。 +- `Rect`: 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。 +- `Triangle`: 三角形。 +- `Diamond`: 菱形。 +- `Candlestick`: 烛台(可用于K线图)。 ## LegendContext -> class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) +class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) +### LegendContext.background + +public Image background + +### LegendContext.center + +public Vector2 center + +### LegendContext.height + +public float height +运行时图例的总高度 + +### LegendContext.width + +public float width +运行时图例的总宽度 ## LegendHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### LegendHelper.CheckDataHighlighted -|public method|since|description| -|--|--|--| -|CheckDataHighlighted()||public static int CheckDataHighlighted(Serie serie, string legendName, bool heighlight)| -|CheckDataShow()||public static bool CheckDataShow(Serie serie, string legendName, bool show)| -|GetContentColor()||public static Color GetContentColor(BaseChart chart, int legendIndex, string legendName, Legend legend, ThemeStyle theme, bool active)| -|GetIconColor()||public static Color GetIconColor(BaseChart chart, Legend legend, int readIndex, string legendName, bool active)| -|ResetItemPosition()||public static void ResetItemPosition(Legend legend, Vector3 chartPos, float chartWidth, float chartHeight)| -|SetLegendBackground()||public static void SetLegendBackground(Legend legend, ImageStyle style)| +public static int CheckDataHighlighted(Serie serie, string legendName, bool heighlight) + +### LegendHelper.CheckDataShow + +public static bool CheckDataShow(Serie serie, string legendName, bool show) + +### LegendHelper.GetContentColor + +public static Color GetContentColor(BaseChart chart, int legendIndex, string legendName, Legend legend, ThemeStyle theme, bool active) + +### LegendHelper.GetIconColor + +public static Color GetIconColor(BaseChart chart, Legend legend, int readIndex, string legendName, bool active) + +### LegendHelper.ResetItemPosition + +public static void ResetItemPosition(Legend legend, Vector3 chartPos, float chartWidth, float chartHeight) + +### LegendHelper.SetLegendBackground + +public static void SetLegendBackground(Legend legend, ImageStyle style) ## LegendItem -> class in XCharts.Runtime +class in XCharts.Runtime +### LegendItem.button -|public method|since|description| -|--|--|--| -|GetIconColor()||public Color GetIconColor()| -|GetIconRect()||public Rect GetIconRect()| -|SetActive()||public void SetActive(bool active)| -|SetBackground()||public void SetBackground(ImageStyle imageStyle)| -|SetButton()||public void SetButton(Button button)| -|SetContent()||public bool SetContent(string content)| -|SetContentBackgroundColor()||public void SetContentBackgroundColor(Color color)| -|SetContentColor()||public void SetContentColor(Color color)| -|SetContentPosition()||public void SetContentPosition(Vector3 offset)| -|SetIcon()||public void SetIcon(Image icon)| -|SetIconActive()||public void SetIconActive(bool active)| -|SetIconColor()||public void SetIconColor(Color color)| -|SetIconImage()||public void SetIconImage(Sprite image)| -|SetIconSize()||public void SetIconSize(float width, float height)| -|SetObject()||public void SetObject(GameObject obj)| -|SetPosition()||public void SetPosition(Vector3 position)| -|SetText()||public void SetText(ChartText text)| -|SetTextBackground()||public void SetTextBackground(Image image)| +public Button button + +### LegendItem.gameObject + +public GameObject gameObject + +### LegendItem.index + +public int index + +### LegendItem.legendName + +public string legendName + +### LegendItem.name + +public string name + +### LegendItem.text + +public ChartText text + +### LegendItem.GetIconColor + +public Color GetIconColor() + +### LegendItem.GetIconRect + +public Rect GetIconRect() + +### LegendItem.SetActive + +public void SetActive(bool active) + +### LegendItem.SetBackground + +public void SetBackground(ImageStyle imageStyle) + +### LegendItem.SetButton + +public void SetButton(Button button) + +### LegendItem.SetContent + +public bool SetContent(string content) + +### LegendItem.SetContentBackgroundColor + +public void SetContentBackgroundColor(Color color) + +### LegendItem.SetContentColor + +public void SetContentColor(Color color) + +### LegendItem.SetContentPosition + +public void SetContentPosition(Vector3 offset) + +### LegendItem.SetIcon + +public void SetIcon(Image icon) + +### LegendItem.SetIconActive + +public void SetIconActive(bool active) + +### LegendItem.SetIconColor + +public void SetIconColor(Color color) + +### LegendItem.SetIconImage + +public void SetIconImage(Sprite image) + +### LegendItem.SetIconSize + +public void SetIconSize(float width, float height) + +### LegendItem.SetObject + +public void SetObject(GameObject obj) + +### LegendItem.SetPosition + +public void SetPosition(Vector3 position) + +### LegendItem.SetText + +public void SetText(ChartText text) + +### LegendItem.SetTextBackground + +public void SetTextBackground(Image image) ## LegendTheme -> class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +### LegendTheme.Copy -|public method|since|description| -|--|--|--| -|Copy()||public void Copy(LegendTheme theme)| -|LegendTheme()||public LegendTheme(ThemeType theme) : base(theme)| +public void Copy(LegendTheme theme) + +### LegendTheme.LegendTheme + +public LegendTheme(ThemeType theme) : base(theme) ## Level -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +### Level.depth + +public int depth +the depth of level. + +### Level.itemStyle + +public ItemStyle itemStyle +the item style of level. + +### Level.label + +public LabelStyle label +the label style of level. + +### Level.lineStyle + +public LineStyle lineStyle +the line style of level. + +### Level.upperLabel + +public LabelStyle upperLabel +the upper label style of level. ## LevelStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) > Since `v3.10.0` +### LevelStyle.levels + +public List<Level> levels +各层节点对应的配置。当enableLevels为true时生效,levels[0]对应的第一层的配置,levels[1]对应第二层,依次类推。当levels中没有对应层时用默认的设置。 + +### LevelStyle.show + +public bool show +是否启用LevelStyle ## Line -> class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +### Line.containerIndex -|public method|since|description| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| -|ConvertSerie()||public static Line ConvertSerie(Serie serie)| +public int containerIndex + +### Line.containterInstanceId + +public int containterInstanceId + +### Line.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) + +### Line.ConvertSerie + +public static Line ConvertSerie(Serie serie) ## LineArrow -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent) +## LineArrow.Position + +class in XCharts.Runtime + +Options: + +- `End`: 末端箭头 +- `Start`: 头端箭头 ## LineChart -> class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) +class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) Line chart relates all the data points symbol by broken lines, which is used to show the trend of data changing. It could be used in both rectangular coordinate andpolar coordinate. -|public method|since|description| -|--|--|--| -|DefaultAreaLineChart()||public void DefaultAreaLineChart()
default area line chart. | -|DefaultDashLineChart()||public void DefaultDashLineChart()
default dash line chart. | -|DefaultLogLineChart()||public void DefaultLogLineChart()
default logarithmic line chart. | -|DefaultSmoothAreaLineChart()||public void DefaultSmoothAreaLineChart()
default smooth area line chart. | -|DefaultSmoothLineChart()||public void DefaultSmoothLineChart()
default smooth line chart. | -|DefaultStackAreaLineChart()||public void DefaultStackAreaLineChart()
default stack area line chart. | -|DefaultStackLineChart()||public void DefaultStackLineChart()
default stack line chart. | -|DefaultStepLineChart()||public void DefaultStepLineChart()
default step line chart. | -|DefaultTimeLineChart()||public void DefaultTimeLineChart()
default time line chart. | +### LineChart.DefaultAreaLineChart + +public void DefaultAreaLineChart() +default area line chart. + +### LineChart.DefaultDashLineChart + +public void DefaultDashLineChart() +default dash line chart. + +### LineChart.DefaultLogLineChart + +public void DefaultLogLineChart() +default logarithmic line chart. + +### LineChart.DefaultSmoothAreaLineChart + +public void DefaultSmoothAreaLineChart() +default smooth area line chart. + +### LineChart.DefaultSmoothLineChart + +public void DefaultSmoothLineChart() +default smooth line chart. + +### LineChart.DefaultStackAreaLineChart + +public void DefaultStackAreaLineChart() +default stack area line chart. + +### LineChart.DefaultStackLineChart + +public void DefaultStackLineChart() +default stack line chart. + +### LineChart.DefaultStepLineChart + +public void DefaultStepLineChart() +default step line chart. + +### LineChart.DefaultTimeLineChart + +public void DefaultTimeLineChart() +default time line chart. ## LineHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### LineHelper.GetDataAverageRate -|public method|since|description| -|--|--|--| -|GetDataAverageRate()||public static int GetDataAverageRate(Serie serie, float axisLength, int maxCount, bool isYAxis)| -|GetLineWidth()||public static float GetLineWidth(ref bool interacting, Serie serie, float defaultWidth)| +public static int GetDataAverageRate(Serie serie, float axisLength, int maxCount, bool isYAxis) + +### LineHelper.GetLineWidth + +public static float GetLineWidth(ref bool interacting, Serie serie, float defaultWidth) ## LineStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISerieDataComponent](#iseriedatacomponent) The style of line. -|public method|since|description| -|--|--|--| -|Clone()||public LineStyle Clone()| -|Copy()||public void Copy(LineStyle lineStyle)| -|GetColor()||public Color32 GetColor()| -|GetColor()||public Color32 GetColor(Color32 themeColor)| -|GetGradientColor()||public Color32 GetGradientColor(float value, Color32 defaultColor)| -|GetLength()||public float GetLength(float themeLength)| -|GetType()||public Type GetType(Type themeType)| -|GetWidth()||public float GetWidth(float themeWidth)| -|IsNeedGradient()||public bool IsNeedGradient()| -|IsNotSolidLine()||public bool IsNotSolidLine()| -|LineStyle()||public LineStyle()| -|LineStyle()||public LineStyle(float width)| -|LineStyle()||public LineStyle(LineStyle.Type type)| -|LineStyle()||public LineStyle(LineStyle.Type type, float width)| +### LineStyle.Clone + +public LineStyle Clone() + +### LineStyle.Copy + +public void Copy(LineStyle lineStyle) + +### LineStyle.GetColor + +public Color32 GetColor(Color32 themeColor) + + +### LineStyle.GetGradientColor + +public Color32 GetGradientColor(float value, Color32 defaultColor) + +### LineStyle.GetLength + +public float GetLength(float themeLength) + +### LineStyle.GetType + +public Type GetType(Type themeType) + +### LineStyle.GetWidth + +public float GetWidth(float themeWidth) + +### LineStyle.IsNeedGradient + +public bool IsNeedGradient() + +### LineStyle.IsNotSolidLine + +public bool IsNotSolidLine() + +### LineStyle.LineStyle + +public LineStyle(float width) + +public LineStyle(LineStyle.Type type) + +public LineStyle(LineStyle.Type type, float width) + + +## LineStyle.Type + +class in XCharts.Runtime + +线的类型。 + +Options: + +- `Solid`: 实线 +- `Dashed`: 虚线 +- `Dotted`: 点线 +- `DashDot`: 点划线 +- `DashDotDot`: 双点划线 +- `None`: 双点划线 + +## LineType + +class in XCharts.Runtime + +the type of line chart. + +Options: + +- `Normal`: the normal line chart, +- `Smooth`: the smooth line chart, +- `StepStart`: step line. +- `StepMiddle`: step line. +- `StepEnd`: step line. ## ListFor -> class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) / Subclasses: [ListForComponent](#listforcomponent),[ListForSerie](#listforserie) +class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) / Subclasses: [ListForComponent](#listforcomponent),[ListForSerie](#listforserie) +### ListFor.ListFor -|public method|since|description| -|--|--|--| -|ListFor()||public ListFor(Type type)| +public ListFor(Type type) ## ListForComponent -> class in XCharts.Runtime / Inherits from: [ListFor](#listfor) +class in XCharts.Runtime / Inherits from: [ListFor](#listfor) +### ListForComponent.ListForComponent -|public method|since|description| -|--|--|--| -|ListForComponent()||public ListForComponent(Type type) : base(type)| +public ListForComponent(Type type) : base(type) ## ListForSerie -> class in XCharts.Runtime / Inherits from: [ListFor](#listfor) +class in XCharts.Runtime / Inherits from: [ListFor](#listfor) +### ListForSerie.ListForSerie -|public method|since|description| -|--|--|--| -|ListForSerie()||public ListForSerie(Type type) : base(type)| +public ListForSerie(Type type) : base(type) ## ListPool<T> -> class in XCharts.Runtime +class in XCharts.Runtime +### ListPool<T>.ClearAll -|public method|since|description| -|--|--|--| -|ClearAll()||public static void ClearAll()| -|Get()||public static List<T> Get()| -|Release()||public static void Release(List<T> toRelease)| +public static void ClearAll() + +### ListPool<T>.Get + +public static List<T> Get() + +### ListPool<T>.Release + +public static void Release(List<T> toRelease) ## Location -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[IPropertyChanged](#ipropertychanged) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[IPropertyChanged](#ipropertychanged) Location type. Quick to set the general location. -|public method|since|description| -|--|--|--| -|GetPosition()||public Vector3 GetPosition(float chartWidth, float chartHeight)
返回在坐标系中的具体位置 | -|IsBottom()||public bool IsBottom()| -|IsCenter()||public bool IsCenter()| -|IsTop()||public bool IsTop()| -|OnChanged()||public void OnChanged()
属性变更时更新textAnchor,minAnchor,maxAnchor,pivot | -|UpdateRuntimeData()||public void UpdateRuntimeData(float chartWidth, float chartHeight)| +### Location.runtimeAnchorMax + +public Vector2 runtimeAnchorMax + +### Location.runtimeAnchorMin + +public Vector2 runtimeAnchorMin +the minimum achor. + +### Location.runtimeBottom + +public float runtimeBottom + +### Location.runtimeLeft + +public float runtimeLeft + +### Location.runtimePivot + +public Vector2 runtimePivot +the povot. + +### Location.runtimeRight + +public float runtimeRight + +### Location.runtimeTextAlignment + +public TextAnchor runtimeTextAlignment +the anchor of text. + +### Location.runtimeTMPTextAlignment + +public TextAlignmentOptions runtimeTMPTextAlignment + +### Location.runtimeTop + +public float runtimeTop + +### Location.GetPosition + +public Vector3 GetPosition(float chartWidth, float chartHeight) +返回在坐标系中的具体位置 + +### Location.IsBottom + +public bool IsBottom() + +### Location.IsCenter + +public bool IsCenter() + +### Location.IsTop + +public bool IsTop() + +### Location.OnChanged + +public void OnChanged() +属性变更时更新textAnchor,minAnchor,maxAnchor,pivot + +### Location.UpdateRuntimeData + +public void UpdateRuntimeData(float chartWidth, float chartHeight) + +## Location.Align + +class in XCharts.Runtime + +对齐方式 + +Options: + +- `TopLeft`: 对齐方式 +- `TopRight`: 对齐方式 +- `TopCenter`: 对齐方式 +- `BottomLeft`: 对齐方式 +- `BottomRight`: 对齐方式 +- `BottomCenter`: 对齐方式 +- `Center`: 对齐方式 +- `CenterLeft`: 对齐方式 +- `CenterRight`: 对齐方式 ## MainComponent -> class in XCharts.Runtime / Inherits from: [IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=icomparable) / Subclasses: [Axis](#axis),[Background](#background),[Comment](#comment),[DataZoom](#datazoom),[Legend](#legend),[MarkArea](#markarea),[MarkLine](#markline),[Settings](#settings),[Title](#title),[Tooltip](#tooltip),[VisualMap](#visualmap),[GridLayout](#gridlayout),[CoordSystem](#coordsystem) +class in XCharts.Runtime / Inherits from: [IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=icomparable) / Subclasses: [Axis](#axis),[Background](#background),[Comment](#comment),[DataZoom](#datazoom),[Legend](#legend),[MarkArea](#markarea),[MarkLine](#markline),[Settings](#settings),[Title](#title),[Tooltip](#tooltip),[VisualMap](#visualmap),[GridLayout](#gridlayout),[CoordSystem](#coordsystem) +### MainComponent.anyDirty -|public method|since|description| -|--|--|--| -|ClearComponentDirty()||public virtual void ClearComponentDirty()| -|ClearData()||public virtual void ClearData() { }| -|ClearDirty()||public virtual void ClearDirty()| -|ClearVerticesDirty()||public virtual void ClearVerticesDirty()| -|CompareTo()||public int CompareTo(object obj)| -|OnRemove()||public virtual void OnRemove()| -|Reset()||public virtual void Reset() { }| -|ResetStatus()||public virtual void ResetStatus() { }| -|SetAllDirty()||public virtual void SetAllDirty()| -|SetComponentDirty()||public virtual void SetComponentDirty()| -|SetDefaultValue()||public virtual void SetDefaultValue() { }| -|SetVerticesDirty()||public virtual void SetVerticesDirty()| +public bool anyDirty +需要重绘图表或重新初始化组件。 + +### MainComponent.ClearData() + +public virtual void ClearData() + +### MainComponent.componentDirty + +public virtual bool componentDirty +组件重新初始化标记。 + +### MainComponent.gameObject + +public GameObject gameObject + +### MainComponent.index + +public int index + +### MainComponent.instanceId + +public int instanceId + +### MainComponent.painter + +public Painter painter + +### MainComponent.refreshComponent + +public Action refreshComponent + +### MainComponent.Reset() + +public virtual void Reset() + +### MainComponent.ResetStatus() + +public virtual void ResetStatus() + +### MainComponent.SetDefaultValue() + +public virtual void SetDefaultValue() + +### MainComponent.vertsDirty + +public virtual bool vertsDirty +图表重绘标记。 + +### MainComponent.ClearComponentDirty + +public virtual void ClearComponentDirty() + +### MainComponent.ClearData + +public virtual void ClearData() { } + +### MainComponent.ClearDirty + +public virtual void ClearDirty() + +### MainComponent.ClearVerticesDirty + +public virtual void ClearVerticesDirty() + +### MainComponent.CompareTo + +public int CompareTo(object obj) + +### MainComponent.OnRemove + +public virtual void OnRemove() + +### MainComponent.Reset + +public virtual void Reset() { } + +### MainComponent.ResetStatus + +public virtual void ResetStatus() { } + +### MainComponent.SetAllDirty + +public virtual void SetAllDirty() + +### MainComponent.SetComponentDirty + +public virtual void SetComponentDirty() + +### MainComponent.SetDefaultValue + +public virtual void SetDefaultValue() { } + +### MainComponent.SetVerticesDirty + +public virtual void SetVerticesDirty() ## MainComponentContext -> class in XCharts.Runtime / Subclasses: [AxisContext](#axiscontext),[DataZoomContext](#datazoomcontext),[LegendContext](#legendcontext),[RadarCoordContext](#radarcoordcontext),[VisualMapContext](#visualmapcontext),[GridCoordContext](#gridcoordcontext),[GridLayoutContext](#gridlayoutcontext),[GridCoord3DContext](#gridcoord3dcontext),[ParallelCoordContext](#parallelcoordcontext),[PolarCoordContext](#polarcoordcontext) - +class in XCharts.Runtime / Subclasses: [AxisContext](#axiscontext),[DataZoomContext](#datazoomcontext),[LegendContext](#legendcontext),[RadarCoordContext](#radarcoordcontext),[VisualMapContext](#visualmapcontext),[GridCoordContext](#gridcoordcontext),[GridLayoutContext](#gridlayoutcontext),[GridCoord3DContext](#gridcoord3dcontext),[ParallelCoordContext](#parallelcoordcontext),[PolarCoordContext](#polarcoordcontext) ## MainComponentHandler -> class in XCharts.Runtime / Subclasses: [AxisHandler<T>](#axishandlert),[MainComponentHandler<T>](#maincomponenthandlert) +class in XCharts.Runtime / Subclasses: [AxisHandler<T>](#axishandlert),[MainComponentHandler<T>](#maincomponenthandlert) +### MainComponentHandler.attribute -|public method|since|description| -|--|--|--| -|BeforceSerieUpdate()||public virtual void BeforceSerieUpdate() { }| -|CheckComponent()||public virtual void CheckComponent(StringBuilder sb) { }| -|DrawBase()||public virtual void DrawBase(VertexHelper vh) { }| -|DrawTop()||public virtual void DrawTop(VertexHelper vh) { }| -|DrawUpper()||public virtual void DrawUpper(VertexHelper vh) { }| -|InitComponent()||public virtual void InitComponent() { }| -|OnBeginDrag()||public virtual void OnBeginDrag(PointerEventData eventData) { }| -|OnDrag()||public virtual void OnDrag(PointerEventData eventData) { }| -|OnEndDrag()||public virtual void OnEndDrag(PointerEventData eventData) { }| -|OnPointerClick()||public virtual void OnPointerClick(PointerEventData eventData) { }| -|OnPointerDown()||public virtual void OnPointerDown(PointerEventData eventData) { }| -|OnPointerEnter()||public virtual void OnPointerEnter(PointerEventData eventData) { }| -|OnPointerExit()||public virtual void OnPointerExit(PointerEventData eventData) { }| -|OnPointerUp()||public virtual void OnPointerUp(PointerEventData eventData) { }| -|OnScroll()||public virtual void OnScroll(PointerEventData eventData) { }| -|OnSerieDataUpdate()||public virtual void OnSerieDataUpdate(int serieIndex) { }| -|RemoveComponent()||public virtual void RemoveComponent() { }| -|Update()||public virtual void Update() { }| +public ComponentHandlerAttribute attribute + +### MainComponentHandler.BeforceSerieUpdate() + +public virtual void BeforceSerieUpdate() + +### MainComponentHandler.chart + +public BaseChart chart + +### MainComponentHandler.eventData) + +public virtual void OnBeginDrag(PointerEventData eventData) + +### MainComponentHandler.eventData) + +public virtual void OnDrag(PointerEventData eventData) + +### MainComponentHandler.eventData) + +public virtual void OnEndDrag(PointerEventData eventData) + +### MainComponentHandler.eventData) + +public virtual void OnPointerClick(PointerEventData eventData) + +### MainComponentHandler.eventData) + +public virtual void OnPointerDown(PointerEventData eventData) + +### MainComponentHandler.eventData) + +public virtual void OnPointerEnter(PointerEventData eventData) + +### MainComponentHandler.eventData) + +public virtual void OnPointerExit(PointerEventData eventData) + +### MainComponentHandler.eventData) + +public virtual void OnPointerUp(PointerEventData eventData) + +### MainComponentHandler.eventData) + +public virtual void OnScroll(PointerEventData eventData) + +### MainComponentHandler.InitComponent() + +public virtual void InitComponent() + +### MainComponentHandler.inited + +public bool inited + +### MainComponentHandler.order + +public int order + +### MainComponentHandler.RemoveComponent() + +public virtual void RemoveComponent() + +### MainComponentHandler.sb) + +public virtual void CheckComponent(StringBuilder sb) + +### MainComponentHandler.serieIndex) + +public virtual void OnSerieDataUpdate(int serieIndex) + +### MainComponentHandler.Update() + +public virtual void Update() + +### MainComponentHandler.vh) + +public virtual void DrawBase(VertexHelper vh) + +### MainComponentHandler.vh) + +public virtual void DrawTop(VertexHelper vh) + +### MainComponentHandler.vh) + +public virtual void DrawUpper(VertexHelper vh) + +### MainComponentHandler.BeforceSerieUpdate + +public virtual void BeforceSerieUpdate() { } + +### MainComponentHandler.CheckComponent + +public virtual void CheckComponent(StringBuilder sb) { } + +### MainComponentHandler.DrawBase + +public virtual void DrawBase(VertexHelper vh) { } + +### MainComponentHandler.DrawTop + +public virtual void DrawTop(VertexHelper vh) { } + +### MainComponentHandler.DrawUpper + +public virtual void DrawUpper(VertexHelper vh) { } + +### MainComponentHandler.InitComponent + +public virtual void InitComponent() { } + +### MainComponentHandler.OnBeginDrag + +public virtual void OnBeginDrag(PointerEventData eventData) { } + +### MainComponentHandler.OnDrag + +public virtual void OnDrag(PointerEventData eventData) { } + +### MainComponentHandler.OnEndDrag + +public virtual void OnEndDrag(PointerEventData eventData) { } + +### MainComponentHandler.OnPointerClick + +public virtual void OnPointerClick(PointerEventData eventData) { } + +### MainComponentHandler.OnPointerDown + +public virtual void OnPointerDown(PointerEventData eventData) { } + +### MainComponentHandler.OnPointerEnter + +public virtual void OnPointerEnter(PointerEventData eventData) { } + +### MainComponentHandler.OnPointerExit + +public virtual void OnPointerExit(PointerEventData eventData) { } + +### MainComponentHandler.OnPointerUp + +public virtual void OnPointerUp(PointerEventData eventData) { } + +### MainComponentHandler.OnScroll + +public virtual void OnScroll(PointerEventData eventData) { } + +### MainComponentHandler.OnSerieDataUpdate + +public virtual void OnSerieDataUpdate(int serieIndex) { } + +### MainComponentHandler.RemoveComponent + +public virtual void RemoveComponent() { } + +### MainComponentHandler.Update + +public virtual void Update() { } ## MainComponentHandler<T> -> class in XCharts.Runtime / Inherits from: [MainComponentHandler](#maincomponenthandler) +class in XCharts.Runtime / Inherits from: [MainComponentHandler](#maincomponenthandler) +### MainComponentHandler<T>.component + +public T component ## MarkArea -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) Used to mark an area in chart. For example, mark a time interval. -|public method|since|description| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()| +### MarkArea.runtimeLabel + +public ChartLabel runtimeLabel +Used to mark an area in chart. For example, mark a time interval. + +### MarkArea.runtimeLabelPosition + +public Vector3 runtimeLabelPosition + +### MarkArea.runtimeRect + +public Rect runtimeRect + +### MarkArea.SetDefaultValue + +public override void SetDefaultValue() ## MarkAreaData -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) 标域的数据。 +### MarkAreaData.runtimeValue + +public double runtimeValue +标域的数据。 + +## MarkAreaType + +class in XCharts.Runtime + +标域类型 + +Options: + +- `None`: 标域类型 +- `Min`: 最小值。 +- `Max`: 最大值。 +- `Average`: 平均值。 +- `Median`: 中位数。 + ## MarkLine -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) Use a line in the chart to illustrate. -|public method|since|description| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()| +### MarkLine.SetDefaultValue + +public override void SetDefaultValue() ## MarkLineData -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) > Since `v3.9.0` Data of marking line. +### MarkLineData.runtimeCurrentEndPosition + +public Vector3 runtimeCurrentEndPosition + +### MarkLineData.runtimeEndPosition + +public Vector3 runtimeEndPosition + +### MarkLineData.runtimeInGrid + +public bool runtimeInGrid + +### MarkLineData.runtimeLabel + +public ChartLabel runtimeLabel + +### MarkLineData.runtimeStartPosition + +public Vector3 runtimeStartPosition + +### MarkLineData.runtimeValue + +public double runtimeValue + +## MarkLineType + +class in XCharts.Runtime + +标线类型 + +Options: + +- `None`: 标线类型 +- `Min`: 最小值。 +- `Max`: 最大值。 +- `Average`: 平均值。 +- `Median`: 中位数。 + ## MarqueeStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) > Since `v3.5.0` Marquee style. It can be used for the DataZoom component. 选取框样式。可用于DataZoom组件。 -|public method|since|description| -|--|--|--| -|onEnd||public Action<DataZoom> onEnd
Customize the callback at the end of the selection. | -|onGoing||public Action<DataZoom> onGoing
Custom checkboxes select ongoing callbacks. | -|onStart||public Action<DataZoom> onStart
Customize the callback to the start of the selection of the checkbox. | +### MarqueeStyle.apply + +public bool apply +Check whether the scope is applied to the DataZoom. If this parameter is set to true, the range after the selection is complete is the DataZoom selection range. + +### MarqueeStyle.areaStyle + +public AreaStyle areaStyle +The area style of marquee. + +### MarqueeStyle.lineStyle + +public LineStyle lineStyle +The line style of marquee border. + +### MarqueeStyle.onEnd + +public Action<DataZoom> onEnd +Customize the callback at the end of the selection. + +### MarqueeStyle.onGoing + +public Action<DataZoom> onGoing +Custom checkboxes select ongoing callbacks. + +### MarqueeStyle.onStart + +public Action<DataZoom> onStart +Customize the callback to the start of the selection of the checkbox. + +### MarqueeStyle.realRect + +public bool realRect +Whether to select the actual box selection area. When true, the actual range between the mouse's actual point and the end point is used as the box selection area. ## MathUtil -> class in XCharts.Runtime +class in XCharts.Runtime +### MathUtil.Abs -|public method|since|description| -|--|--|--| -|Abs()||public static double Abs(double d)| -|Approximately()||public static bool Approximately(double a, double b)| -|Clamp()||public static double Clamp(double d, double min, double max)| -|Clamp01()||public static double Clamp01(double value)| -|GetPrecision()||public static int GetPrecision(double value)| -|IsInteger()||public static bool IsInteger(double value)| -|Lerp()||public static double Lerp(double a, double b, double t)| +public static double Abs(double d) + +### MathUtil.Approximately + +public static bool Approximately(double a, double b) + +### MathUtil.Clamp + +public static double Clamp(double d, double min, double max) + +### MathUtil.Clamp01 + +public static double Clamp01(double value) + +### MathUtil.GetPrecision + +public static int GetPrecision(double value) + +### MathUtil.IsInteger + +public static bool IsInteger(double value) + +### MathUtil.Lerp + +public static double Lerp(double a, double b, double t) ## MLValue -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) > Since `v3.8.0` 多样式数值。 -|public method|since|description| -|--|--|--| -|GetValue()||public float GetValue(float total)
Get the value by type. | -|MLValue()||public MLValue(float value)| -|MLValue()||public MLValue(Type type, float value)| +### MLValue.type + +public Type type + +### MLValue.value + +public float value + +### MLValue.GetValue + +public float GetValue(float total) +Get the value by type. + +### MLValue.MLValue + +public MLValue(Type type, float value) + + +## MLValue.Type + +class in XCharts.Runtime + +the type of value. + +Options: + +- `Percent`: Percent value form. +- `Absolute`: Absolute value form. +- `Extra`: Extra value form. ## MonoBehaviour -> class in / Subclasses: [XLog](#xlog) - +class in / Subclasses: [XLog](#xlog) ## ObjectPool<T> where T -> class in XCharts.Runtime / Inherits from: [new()](#new()) +class in XCharts.Runtime / Inherits from: [new()](#new()) +### ObjectPool<T> where T.countActive -|public method|since|description| -|--|--|--| -|ClearAll()||public void ClearAll()| -|Get()||public T Get()| -|new()||public class ObjectPool<T> where T : new()| -|ObjectPool()||public ObjectPool(UnityAction<T> actionOnGet, UnityAction<T> actionOnRelease, bool newIfEmpty = true)| -|Release()||public void Release(T element)| +public int countActive + +### ObjectPool<T> where T.countAll + +public int countAll + +### ObjectPool<T> where T.countInactive + +public int countInactive + +### ObjectPool<T> where T.ClearAll + +public void ClearAll() + +### ObjectPool<T> where T.Get + +public T Get() + +### ObjectPool<T> where T.new + +public class ObjectPool<T> where T : new() + +### ObjectPool<T> where T.ObjectPool + +public ObjectPool(UnityAction<T> actionOnGet, UnityAction<T> actionOnRelease, bool newIfEmpty = true) + +### ObjectPool<T> where T.Release + +public void Release(T element) + +## Orient + +class in XCharts.Runtime + +the layout is horizontal or vertical. + +Options: + +- `Horizonal`: 水平 +- `Vertical`: 垂直 ## Padding -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [TextPadding](#textpadding) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [TextPadding](#textpadding) padding setting of item or text. -|public method|since|description| -|--|--|--| -|Padding()||public Padding() { }| -|Padding()||public Padding(float top, float right, float bottom, float left)| -|SetPadding()||public void SetPadding(float top, float right, float bottom, float left)| +### Padding.Padding() + +public Padding() + +### Padding.Padding + +public Padding(float top, float right, float bottom, float left) + + +### Padding.SetPadding + +public void SetPadding(float top, float right, float bottom, float left) ## Painter -> class in XCharts.Runtime / Inherits from: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic) +class in XCharts.Runtime / Inherits from: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic) +### Painter.index -|public method|since|description| -|--|--|--| -|onPopulateMesh||public Action<VertexHelper, Painter> onPopulateMesh| -|CheckRefresh()||public void CheckRefresh()| -|Init()||public void Init()| -|Refresh()||public void Refresh()| -|SetActive()||public void SetActive(bool flag, bool isDebugMode = false)| +public int index + +### Painter.onPopulateMesh + +public Action<VertexHelper, Painter> onPopulateMesh + +### Painter.type + +public Type type + +### Painter.CheckRefresh + +public void CheckRefresh() + +### Painter.Init + +public void Init() + +### Painter.Refresh + +public void Refresh() + +### Painter.SetActive + +public void SetActive(bool flag, bool isDebugMode = false) + +## Painter.Type + +class in XCharts.Runtime + +Options: + +- `Base`: +- `Serie`: +- `Top`: ## Parallel -> class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +### Parallel.containerIndex -|public method|since|description| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| +public int containerIndex + +### Parallel.containterInstanceId + +public int containterInstanceId + +### Parallel.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## ParallelAxis -> class in XCharts.Runtime / Inherits from: [Axis](#axis) +class in XCharts.Runtime / Inherits from: [Axis](#axis) +### ParallelAxis.SetDefaultValue -|public method|since|description| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()| +public override void SetDefaultValue() ## ParallelChart -> class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) +class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) Parallel Coordinates is a common way of visualizing high-dimensional geometry and analyzing multivariate data. ## ParallelCoord -> class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) Grid component. -|public method|since|description| -|--|--|--| -|Contains()||public bool Contains(float x, float y)| -|Contains()||public bool Contains(Vector3 pos)| -|IsPointerEnter()||public bool IsPointerEnter()| -|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)| +### ParallelCoord.Contains + +public bool Contains(float x, float y) + + +### ParallelCoord.IsPointerEnter + +public bool IsPointerEnter() + +### ParallelCoord.UpdateRuntimeData + +public void UpdateRuntimeData(BaseChart chart) ## ParallelCoordContext -> class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) - +class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) ## Pie -> class in XCharts.Runtime / Inherits from: [Serie](#serie) +class in XCharts.Runtime / Inherits from: [Serie](#serie) +### Pie.defaultColorBy -|public method|since|description| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| -|ConvertSerie()||public static Pie ConvertSerie(Serie serie)| +public override SerieColorBy defaultColorBy + +### Pie.titleJustForSerie + +public override bool titleJustForSerie + +### Pie.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) + +### Pie.ConvertSerie + +public static Pie ConvertSerie(Serie serie) ## PieChart -> class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) +class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) The pie chart is mainly used for showing proportion of different categories. Each arc length represents the proportion of data quantity. -|public method|since|description| -|--|--|--| -|DefaultAreaRosePieChart()||public void DefaultAreaRosePieChart()
default area rose pie chart. | -|DefaultDonutPieChart()||public void DefaultDonutPieChart()
default donut pie chart. | -|DefaultLabelDonutPieChart()||public void DefaultLabelDonutPieChart()
default label donut pie chart. | -|DefaultLabelPieChart()||public void DefaultLabelPieChart()
default label pie chart. | -|DefaultRadiusRosePieChart()||public void DefaultRadiusRosePieChart()
default rose pie chart. | +### PieChart.DefaultAreaRosePieChart + +public void DefaultAreaRosePieChart() +default area rose pie chart. + +### PieChart.DefaultDonutPieChart + +public void DefaultDonutPieChart() +default donut pie chart. + +### PieChart.DefaultLabelDonutPieChart + +public void DefaultLabelDonutPieChart() +default label donut pie chart. + +### PieChart.DefaultLabelPieChart + +public void DefaultLabelPieChart() +default label pie chart. + +### PieChart.DefaultRadiusRosePieChart + +public void DefaultRadiusRosePieChart() +default rose pie chart. ## PolarAxisTheme -> class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) +### PolarAxisTheme.base(theme) -|public method|since|description| -|--|--|--| -|PolarAxisTheme()||public PolarAxisTheme(ThemeType theme) : base(theme) { }| +public PolarAxisTheme(ThemeType theme) : base(theme) + +### PolarAxisTheme.PolarAxisTheme + +public PolarAxisTheme(ThemeType theme) : base(theme) { } ## PolarChart -> class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) +class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) Polar coordinates are usually used in a circular layout. -|public method|since|description| -|--|--|--| -|DefaultHeatmapPolarChart()||public void DefaultHeatmapPolarChart()
default heatmap polar chart. | -|DefaultRadialBarPolarChart()||public void DefaultRadialBarPolarChart()
default radial bar polar chart. | -|DefaultTangentialBarPolarChart()||public void DefaultTangentialBarPolarChart()
default tangential bar polar chart. | +### PolarChart.DefaultHeatmapPolarChart + +public void DefaultHeatmapPolarChart() +default heatmap polar chart. + +### PolarChart.DefaultRadialBarPolarChart + +public void DefaultRadialBarPolarChart() +default radial bar polar chart. + +### PolarChart.DefaultTangentialBarPolarChart + +public void DefaultTangentialBarPolarChart() +default tangential bar polar chart. ## PolarCoord -> class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[ISerieContainer](#iseriecontainer) Polar coordinate can be used in scatter and line chart. Every polar coordinate has an angleAxis and a radiusAxis. -|public method|since|description| -|--|--|--| -|Contains()||public bool Contains(Vector3 pos)| -|IsPointerEnter()||public bool IsPointerEnter()| +### PolarCoord.Contains + +public bool Contains(Vector3 pos) + +### PolarCoord.IsPointerEnter + +public bool IsPointerEnter() ## PolarCoordContext -> class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) - +class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) ## PropertyUtil -> class in XCharts.Runtime +class in XCharts.Runtime + +### PropertyUtil.SetClass<T> + +public static bool SetClass<T>(ref T currentValue, T newValue, bool notNull = false) where T : class + +### PropertyUtil.SetColor + +public static bool SetColor(ref Color32 currentValue, Color32 newValue) -|public method|since|description| -|--|--|--| -|SetClass<T>()||public static bool SetClass<T>(ref T currentValue, T newValue, bool notNull = false) where T : class| -|SetColor()||public static bool SetColor(ref Color currentValue, Color newValue)| -|SetColor()||public static bool SetColor(ref Color32 currentValue, Color32 newValue)| -|SetStruct<T>()||public static bool SetStruct<T>(ref T currentValue, T newValue) where T : struct| +### PropertyUtil.SetStruct<T> + +public static bool SetStruct<T>(ref T currentValue, T newValue) where T : struct ## Radar -> class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +### Radar.containerIndex -|public method|since|description| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| +public int containerIndex + +### Radar.containterInstanceId + +public int containterInstanceId + +### Radar.defaultColorBy + +public override SerieColorBy defaultColorBy + +### Radar.multiDimensionLabel + +public override bool multiDimensionLabel + +### Radar.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## RadarAxisTheme -> class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) +### RadarAxisTheme.RadarAxisTheme -|public method|since|description| -|--|--|--| -|RadarAxisTheme()||public RadarAxisTheme(ThemeType theme) : base(theme)| +public RadarAxisTheme(ThemeType theme) : base(theme) ## RadarChart -> class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) +class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) Radar chart is mainly used to show multi-variable data, such as the analysis of a football player's varied attributes. It relies radar component. -|public method|since|description| -|--|--|--| -|DefaultCircleRadarChart()||public void DefaultCircleRadarChart()
default circle radar chart. | +### RadarChart.DefaultCircleRadarChart + +public void DefaultCircleRadarChart() +default circle radar chart. ## RadarCoord -> class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[ISerieContainer](#iseriecontainer) Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适用于雷达图。 +## RadarCoord.PositionType + +class in XCharts.Runtime + +The position type of radar. + +Options: + +- `Vertice`: Display at the vertex. +- `Between`: Display at the middle of line. + +## RadarCoord.Shape + +class in XCharts.Runtime + +Radar render type, in which 'Polygon' and 'Circle' are supported. + +Options: + +- `Polygon`: Radar render type, in which 'Polygon' and 'Circle' are supported. +- `Circle`: Radar render type, in which 'Polygon' and 'Circle' are supported. + ## RadarCoordContext -> class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) +class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) +### RadarCoordContext.center + +public Vector3 center +the center position of radar in container. + +### RadarCoordContext.dataRadius + +public float dataRadius + +### RadarCoordContext.isPointerEnter + +public bool isPointerEnter + +### RadarCoordContext.radius + +public float radius +the true radius of radar. + +## RadarType + +class in XCharts.Runtime + +the type of radar. + +Options: + +- `Multiple`: multiple radar. +- `Single`: single radar. ## RadiusAxis -> class in XCharts.Runtime / Inherits from: [Axis](#axis) +class in XCharts.Runtime / Inherits from: [Axis](#axis) Radial axis of polar coordinate. -|public method|since|description| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()
Radial axis of polar coordinate. | +### RadiusAxis.SetDefaultValue + +public override void SetDefaultValue() +Radial axis of polar coordinate. ## RadiusAxisTheme -> class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) +### RadiusAxisTheme.base(theme) -|public method|since|description| -|--|--|--| -|RadiusAxisTheme()||public RadiusAxisTheme(ThemeType theme) : base(theme) { }| +public RadiusAxisTheme(ThemeType theme) : base(theme) + +### RadiusAxisTheme.RadiusAxisTheme + +public RadiusAxisTheme(ThemeType theme) : base(theme) { } ## ReflectionUtil -> class in XCharts.Runtime +class in XCharts.Runtime +### ReflectionUtil.DeepCloneSerializeField -|public method|since|description| -|--|--|--| -|DeepCloneSerializeField()||public static object DeepCloneSerializeField(object obj)| -|InvokeListAdd()||public static void InvokeListAdd(object obj, FieldInfo field, object item)| -|InvokeListAddTo<T>()||public static void InvokeListAddTo<T>(object obj, FieldInfo field, Action<T> callback)| -|InvokeListClear()||public static void InvokeListClear(object obj, FieldInfo field)| -|InvokeListCount()||public static int InvokeListCount(object obj, FieldInfo field)| -|InvokeListGet<T>()||public static T InvokeListGet<T>(object obj, FieldInfo field, int i)| +public static object DeepCloneSerializeField(object obj) + +### ReflectionUtil.InvokeListAdd + +public static void InvokeListAdd(object obj, FieldInfo field, object item) + +### ReflectionUtil.InvokeListAddTo<T> + +public static void InvokeListAddTo<T>(object obj, FieldInfo field, Action<T> callback) + +### ReflectionUtil.InvokeListClear + +public static void InvokeListClear(object obj, FieldInfo field) + +### ReflectionUtil.InvokeListCount + +public static int InvokeListCount(object obj, FieldInfo field) + +### ReflectionUtil.InvokeListGet<T> + +public static T InvokeListGet<T>(object obj, FieldInfo field, int i) ## RequireChartComponentAttribute -> class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### RequireChartComponentAttribute.RequireChartComponentAttribute + +public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2) + +public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2, Type requiredComponent3) -|public method|since|description| -|--|--|--| -|RequireChartComponentAttribute()||public RequireChartComponentAttribute(Type requiredComponent)| -|RequireChartComponentAttribute()||public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2)| -|RequireChartComponentAttribute()||public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2, Type requiredComponent3)| ## Ring -> class in XCharts.Runtime / Inherits from: [Serie](#serie) +class in XCharts.Runtime / Inherits from: [Serie](#serie) +### Ring.defaultColorBy -|public method|since|description| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| -|GetDataTotal()||public override double GetDataTotal(int dimension, SerieData serieData = null)| +public override SerieColorBy defaultColorBy + +### Ring.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) + +### Ring.GetDataTotal + +public override double GetDataTotal(int dimension, SerieData serieData = null) ## RingChart -> class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) +class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) Ring chart is mainly used to show the proportion of each item and the relationship between the items. -|public method|since|description| -|--|--|--| -|DefaultMultipleRingChart()||public void DefaultMultipleRingChart()
default multiple ring chart. | +### RingChart.DefaultMultipleRingChart + +public void DefaultMultipleRingChart() +default multiple ring chart. + +## RoseType + +class in XCharts.Runtime + +Whether to show as Nightingale chart, which distinguishs data through radius. + +Options: + +- `None`: Don't show as Nightingale chart. +- `Radius`: Use central angle to show the percentage of data, radius to show data size. +- `Area`: All the sectors will share the same central angle, the data size is shown only through radiuses. ## RuntimeUtil -> class in XCharts.Runtime +class in XCharts.Runtime + +### RuntimeUtil.GetAllAssemblyTypes + +public static IEnumerable<Type> GetAllAssemblyTypes() + +### RuntimeUtil.GetAllTypesDerivedFrom + +public static IEnumerable<Type> GetAllTypesDerivedFrom(Type type) + +### RuntimeUtil.GetAllTypesDerivedFrom<T> + +public static IEnumerable<Type> GetAllTypesDerivedFrom<T>() + +### RuntimeUtil.GetAttribute<T> + +public static T GetAttribute<T>(this MemberInfo type, bool check = true) where T : Attribute -|public method|since|description| -|--|--|--| -|GetAllAssemblyTypes()||public static IEnumerable<Type> GetAllAssemblyTypes()| -|GetAllTypesDerivedFrom()||public static IEnumerable<Type> GetAllTypesDerivedFrom(Type type)| -|GetAllTypesDerivedFrom<T>()||public static IEnumerable<Type> GetAllTypesDerivedFrom<T>()| -|GetAttribute<T>()||public static T GetAttribute<T>(this MemberInfo type, bool check = true) where T : Attribute| -|GetAttribute<T>()||public static T GetAttribute<T>(this Type type, bool check = true) where T : Attribute| -|HasSubclass()||public static bool HasSubclass(Type type)| +### RuntimeUtil.HasSubclass + +public static bool HasSubclass(Type type) + +## SampleType + +class in XCharts.Runtime + +sample type of line chart. + +Options: + +- `Peak`: Take a peak. When the average value of the filter point is greater than or equal to 'sampleAverage', take the maximum value; If you do it the other way around, you get the minimum. +- `Average`: Take the average of the filter points. +- `Max`: Take the maximum value of the filter point. +- `Min`: Take the minimum value of the filter point. +- `Sum`: Take the sum of the filter points. ## Scatter -> class in XCharts.Runtime / Inherits from: [BaseScatter](#basescatter) +class in XCharts.Runtime / Inherits from: [BaseScatter](#basescatter) +### Scatter.AddDefaultSerie -|public method|since|description| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## ScatterChart -> class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) +class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) Scatter chart is mainly used to show the relationship between two data dimensions. -|public method|since|description| -|--|--|--| -|DefaultBubbleChart()||public void DefaultBubbleChart()
default bubble chart. | +### ScatterChart.DefaultBubbleChart + +public void DefaultBubbleChart() +default bubble chart. ## SelectStyle -> class in XCharts.Runtime / Inherits from: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) > Since `v3.2.0` @@ -2470,887 +6409,2683 @@ Configurations of select state. ## Serie -> class in XCharts.Runtime / Inherits from: [BaseSerie](#baseserie),[IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=icomparable) / Subclasses: [SerieHandler<T>](#seriehandlert),[Bar](#bar),[SimplifiedBar](#simplifiedbar),[Candlestick](#candlestick),[SimplifiedCandlestick](#simplifiedcandlestick),[Heatmap](#heatmap),[Line](#line),[SimplifiedLine](#simplifiedline),[Parallel](#parallel),[Pie](#pie),[Radar](#radar),[Ring](#ring),[BaseScatter](#basescatter) +class in XCharts.Runtime / Inherits from: [BaseSerie](#baseserie),[IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=icomparable) / Subclasses: [SerieHandler<T>](#seriehandlert),[Bar](#bar),[SimplifiedBar](#simplifiedbar),[Candlestick](#candlestick),[SimplifiedCandlestick](#simplifiedcandlestick),[Heatmap](#heatmap),[Line](#line),[SimplifiedLine](#simplifiedline),[Parallel](#parallel),[Pie](#pie),[Radar](#radar),[Ring](#ring),[BaseScatter](#basescatter) 系列。系列一般由数据和配置组成,用来表示具体的图表图形,如折线图的一条折线,柱图的一组柱子等。一个图表中可以包含多个不同类型的系列。 -|public method|since|description| -|--|--|--| -|onClick||public Action<SerieEventData> onClick
event callback when click serie. | -|onDown||public Action<SerieEventData> onDown
event callback when mouse down on serie. | -|onEnter||public Action<SerieEventData> onEnter
event callback when mouse enter serie. | -|onExit||public Action<SerieEventData> onExit
event callback when mouse leave serie. | -|AddChildData()||public SerieData AddChildData(SerieData parent, double value, string name, string id)| -|AddChildData()||public SerieData AddChildData(SerieData parent, List<double> value, string name, string id)| -|AddChildData()||public void AddChildData(SerieData parent, SerieData serieData)| -|AddData()||public SerieData AddData(double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)
添加 (open, close, lowest, heighest) 数据 | -|AddData()||public SerieData AddData(List<double> valueList, string dataName = null, string dataId = null)
将一组数据添加到系列中。 如果数据只有一个,默认添加到维度Y中。 | -|AddData()||public SerieData AddData(params double[] values)
添加任意维数据到系列中。 | -|AddExtraComponent<T>()||public T AddExtraComponent<T>() where T : ChildComponent, ISerieComponent| -|AddLink()||public virtual SerieDataLink AddLink(string sourceId, string targetId, double value = 0)
Add a link data. | -|AddSerieData()||public virtual void AddSerieData(SerieData serieData)| -|AddXYData()||public SerieData AddXYData(double xValue, double yValue, string dataName = null, string dataId = null)
添加(x,y)数据到维度X和维度Y | -|AddYData()||public SerieData AddYData(double value, string dataName = null, string dataId = null)
添加一个数据到维度Y(此时维度X对应的数据是索引) | -|AnimationEnable()||public void AnimationEnable(bool flag)
启用或取消初始动画 | -|AnimationFadeIn()||public void AnimationFadeIn()
渐入动画 | -|AnimationFadeOut()||public void AnimationFadeOut()
渐出动画 | -|AnimationPause()||public void AnimationPause()
暂停动画 | -|AnimationReset()||public void AnimationReset()
重置动画 | -|AnimationRestart()||public void AnimationRestart()
重置动画 | -|AnimationResume()||public void AnimationResume()
继续动画 | -|CanAddComponent()||public bool CanAddComponent(Type type)| -|CanAddComponent<T>()||public bool CanAddComponent<T>() where T : ChildComponent, ISerieComponent| -|ClearComponentDirty()||public override void ClearComponentDirty()| -|ClearData()||public override void ClearData()
清空所有数据 | -|ClearDirty()||public override void ClearDirty()| -|ClearHighlight()||public void ClearHighlight()
清除所有数据的高亮标志 | -|ClearLinks()||public void ClearLinks()
清空所有Link数据 | -|ClearSerieNameDirty()||public void ClearSerieNameDirty()| -|ClearVerticesDirty()||public override void ClearVerticesDirty()| -|Clone()||public Serie Clone()| -|Clone<T>()||public T Clone<T>() where T : Serie| -|CompareTo()||public int CompareTo(object obj)| -|EnsureComponent()||public ISerieComponent EnsureComponent(Type type)| -|EnsureComponent<T>()||public T EnsureComponent<T>() where T : ChildComponent, ISerieComponent
Ensure the serie has the component. If not, add it. | -|GetBarWidth()||public float GetBarWidth(float categoryWidth, int barCount = 0, float defaultRate = 0.6f)| -|GetComponent()||public ISerieComponent GetComponent(Type type)| -|GetComponent<T>()||public T GetComponent<T>() where T : ChildComponent, ISerieComponent| -|GetData()||public double GetData(int index, int dimension, DataZoom dataZoom = null)
获得指定index指定维数的数据 | -|GetDataList()||public List<SerieData> GetDataList(DataZoom dataZoom = null)
获得系列的数据列表 | -|GetDataTotal()||public virtual double GetDataTotal(int dimension, SerieData serieData = null)| -|GetSerieData()||public SerieData GetSerieData(int index, DataZoom dataZoom = null)
获得指定索引的数据项 | -|GetSerieData()||public SerieData GetSerieData(SerieData parent, string id)| -|GetSerieData()||public SerieData GetSerieData(string id, DataZoom dataZoom = null)| -|GetXYData()||public void GetXYData(int index, DataZoom dataZoom, out double xValue, out double yVlaue)
获得指定索引的维度X和维度Y的数据 | -|GetYCurrData()||public double GetYCurrData(int index, DataZoom dataZoom = null)| -|GetYData()||public double GetYData(int index, DataZoom dataZoom = null)
获得维度Y索引对应的数据 | -|GetYData()||public void GetYData(int index, out double yData, out string dataName, DataZoom dataZoom = null)
获得维度Y索引对应的数据和数据名 | -|IsIgnoreIndex()||public bool IsIgnoreIndex(int index, int dimension = 1)| -|IsIgnorePoint()||public bool IsIgnorePoint(int index)| -|IsIgnoreValue()||public bool IsIgnoreValue(double value)| -|IsIgnoreValue()||public bool IsIgnoreValue(SerieData serieData, double value)| -|IsIgnoreValue()||public bool IsIgnoreValue(SerieData serieData, int dimension = 1)| -|IsLegendName()||public bool IsLegendName(string legendName)| -|IsMinShowLabelValue()||public bool IsMinShowLabelValue(double value)| -|IsMinShowLabelValue()||public bool IsMinShowLabelValue(int index, int dimension = 1)| -|IsMinShowLabelValue()||public bool IsMinShowLabelValue(SerieData serieData, int dimension = 1)| -|IsPerformanceMode()||public bool IsPerformanceMode()
是否为性能模式。性能模式下不绘制Symbol,不刷新Label,不单独设置数据项配置。 | -|IsSerie<T>()||public bool IsSerie<T>() where T : Serie| -|IsSerieDataLegendName()||public bool IsSerieDataLegendName(string legendName)| -|IsSerieLegendName()||public bool IsSerieLegendName(string legendName)| -|IsUseCoord<T>()||public bool IsUseCoord<T>() where T : CoordSystem| -|RemoveAllComponents()||public void RemoveAllComponents()
Remove all extra components. | -|RemoveComponent()||public void RemoveComponent(Type type)| -|RemoveComponent<T>()||public void RemoveComponent<T>() where T : ISerieComponent| -|RemoveData()||public void RemoveData(int index)
移除指定索引的数据 | -|ResetDataIndex()||public bool ResetDataIndex()
重置数据项索引。避免部分数据项的索引异常。 | -|ResetInteract()||public void ResetInteract()| -|SetAllDirty()||public override void SetAllDirty()| -|SetCoord<T>()||public bool SetCoord<T>() where T : CoordSystem| -|SetHighlight()||public void SetHighlight(int index, bool flag)
设置指定索引的数据为高亮状态 | -|SetVerticesDirty()||public override void SetVerticesDirty()| -|UpdateData()||public bool UpdateData(int index, int dimension, double value)
更新指定索引指定维数的数据 | -|UpdateData()||public bool UpdateData(int index, List<double> values)
更新指定索引的数据项数据列表 | -|UpdateDataName()||public bool UpdateDataName(int index, string name)| -|UpdateXYData()||public bool UpdateXYData(int index, double xValue, double yValue)
更新指定索引的维度X和维度Y的数据 | -|UpdateYData()||public bool UpdateYData(int index, double value)
更新指定索引的维度Y数据 | +### Serie.areaStyle + +public AreaStyle areaStyle +The style of area. + +### Serie.blurStyle + +public BlurStyle blurStyle +style of blur state. + +### Serie.colorByData + +public bool colorByData +取色策略是否为按数据项分配。 + +### Serie.data + +public List<SerieData> data +系列中的数据内容数组。SerieData可以设置1到n维数据。 + +### Serie.dataCount + +public int dataCount +the count of data list. + +### Serie.dataDirty + +public bool dataDirty + +### Serie.emphasisStyle + +public EmphasisStyle emphasisStyle +style of emphasis state. + +### Serie.endLabel + +public LabelStyle endLabel + +### Serie.highlight + +public bool highlight +Whether the serie is highlighted. + +### Serie.index + +public int index +The index of serie. + +### Serie.interactDirty + +public bool interactDirty + +### Serie.label + +public LabelStyle label +Text label of graphic element,to explain some data information about graphic item like value, name and so on. + +### Serie.labelDirty + +public bool labelDirty + +### Serie.labelLine + +public LabelLine labelLine +The line of label. + +### Serie.legendName + +public string legendName +Legend name. When the serie name is not empty, the legend name is the series name; Otherwise, it is index. + +### Serie.lineArrow + +public LineArrow lineArrow +The arrow of line. + +### Serie.links + +public List<SerieDataLink> links +数据节点的边。 + +### Serie.nameDirty + +public bool nameDirty + +### Serie.onClick + +public Action<SerieEventData> onClick +event callback when click serie. + +### Serie.onDown + +public Action<SerieEventData> onDown +event callback when mouse down on serie. + +### Serie.onEnter + +public Action<SerieEventData> onEnter +event callback when mouse enter serie. + +### Serie.onExit + +public Action<SerieEventData> onExit +event callback when mouse leave serie. + +### Serie.selectStyle + +public SelectStyle selectStyle +style of select state. + +### Serie.showDataDimension + +public int showDataDimension +数据项里的数据维数。 + +### Serie.showDataName + +public bool showDataName +在Editor的inpsector上是否显示name参数 + +### Serie.titleDirty + +public bool titleDirty + +### Serie.titleStyle + +public TitleStyle titleStyle +the icon of data. + +### Serie.AddChildData + +public SerieData AddChildData(SerieData parent, List<double> value, string name, string id) + +public void AddChildData(SerieData parent, SerieData serieData) + + +### Serie.AddData + +public SerieData AddData(List<double> valueList, string dataName = null, string dataId = null) +将一组数据添加到系列中。 如果数据只有一个,默认添加到维度Y中。 + +public SerieData AddData(params double[] values) +添加任意维数据到系列中。 + + +### Serie.AddExtraComponent<T> + +public T AddExtraComponent<T>() where T : ChildComponent, ISerieComponent + +### Serie.AddLink + +public virtual SerieDataLink AddLink(string sourceId, string targetId, double value = 0) +Add a link data. + +### Serie.AddSerieData + +public virtual void AddSerieData(SerieData serieData) + +### Serie.AddXYData + +public SerieData AddXYData(double xValue, double yValue, string dataName = null, string dataId = null) +添加(x,y)数据到维度X和维度Y + +### Serie.AddYData + +public SerieData AddYData(double value, string dataName = null, string dataId = null) +添加一个数据到维度Y(此时维度X对应的数据是索引) + +### Serie.AnimationEnable + +public void AnimationEnable(bool flag) +启用或取消初始动画 + +### Serie.AnimationFadeIn + +public void AnimationFadeIn() +渐入动画 + +### Serie.AnimationFadeOut + +public void AnimationFadeOut() +渐出动画 + +### Serie.AnimationPause + +public void AnimationPause() +暂停动画 + +### Serie.AnimationReset + +public void AnimationReset() +重置动画 + +### Serie.AnimationRestart + +public void AnimationRestart() +重置动画 + +### Serie.AnimationResume + +public void AnimationResume() +继续动画 + +### Serie.CanAddComponent + +public bool CanAddComponent(Type type) + +### Serie.CanAddComponent<T> + +public bool CanAddComponent<T>() where T : ChildComponent, ISerieComponent + +### Serie.ClearComponentDirty + +public override void ClearComponentDirty() + +### Serie.ClearData + +public override void ClearData() +清空所有数据 + +### Serie.ClearDirty + +public override void ClearDirty() + +### Serie.ClearHighlight + +public void ClearHighlight() +清除所有数据的高亮标志 + +### Serie.ClearLinks + +public void ClearLinks() +清空所有Link数据 + +### Serie.ClearSerieNameDirty + +public void ClearSerieNameDirty() + +### Serie.ClearVerticesDirty + +public override void ClearVerticesDirty() + +### Serie.Clone + +public Serie Clone() + +### Serie.Clone<T> + +public T Clone<T>() where T : Serie + +### Serie.CompareTo + +public int CompareTo(object obj) + +### Serie.EnsureComponent + +public ISerieComponent EnsureComponent(Type type) + +### Serie.EnsureComponent<T> + +public T EnsureComponent<T>() where T : ChildComponent, ISerieComponent +Ensure the serie has the component. If not, add it. + +### Serie.GetBarWidth + +public float GetBarWidth(float categoryWidth, int barCount = 0, float defaultRate = 0.6f) + +### Serie.GetComponent + +public ISerieComponent GetComponent(Type type) + +### Serie.GetComponent<T> + +public T GetComponent<T>() where T : ChildComponent, ISerieComponent + +### Serie.GetData + +public double GetData(int index, int dimension, DataZoom dataZoom = null) +获得指定index指定维数的数据 + +### Serie.GetDataList + +public List<SerieData> GetDataList(DataZoom dataZoom = null) +获得系列的数据列表 + +### Serie.GetDataTotal + +public virtual double GetDataTotal(int dimension, SerieData serieData = null) + +### Serie.GetSerieData + +public SerieData GetSerieData(SerieData parent, string id) + +public SerieData GetSerieData(string id, DataZoom dataZoom = null) + + +### Serie.GetXYData + +public void GetXYData(int index, DataZoom dataZoom, out double xValue, out double yVlaue) +获得指定索引的维度X和维度Y的数据 + +### Serie.GetYCurrData + +public double GetYCurrData(int index, DataZoom dataZoom = null) + +### Serie.GetYData + +public void GetYData(int index, out double yData, out string dataName, DataZoom dataZoom = null) +获得维度Y索引对应的数据和数据名 + + +### Serie.IsIgnoreIndex + +public bool IsIgnoreIndex(int index, int dimension = 1) + +### Serie.IsIgnorePoint + +public bool IsIgnorePoint(int index) + +### Serie.IsIgnoreValue + +public bool IsIgnoreValue(double value) + +public bool IsIgnoreValue(SerieData serieData, double value) + + +### Serie.IsLegendName + +public bool IsLegendName(string legendName) + +### Serie.IsMinShowLabelValue + +public bool IsMinShowLabelValue(double value) + +public bool IsMinShowLabelValue(SerieData serieData, int dimension = 1) + + +### Serie.IsPerformanceMode + +public bool IsPerformanceMode() +是否为性能模式。性能模式下不绘制Symbol,不刷新Label,不单独设置数据项配置。 + +### Serie.IsSerie<T> + +public bool IsSerie<T>() where T : Serie + +### Serie.IsSerieDataLegendName + +public bool IsSerieDataLegendName(string legendName) + +### Serie.IsSerieLegendName + +public bool IsSerieLegendName(string legendName) + +### Serie.IsUseCoord<T> + +public bool IsUseCoord<T>() where T : CoordSystem + +### Serie.RemoveAllComponents + +public void RemoveAllComponents() +Remove all extra components. + +### Serie.RemoveComponent + +public void RemoveComponent(Type type) + +### Serie.RemoveComponent<T> + +public void RemoveComponent<T>() where T : ISerieComponent + +### Serie.RemoveData + +public void RemoveData(int index) +移除指定索引的数据 + +### Serie.ResetDataIndex + +public bool ResetDataIndex() +重置数据项索引。避免部分数据项的索引异常。 + +### Serie.ResetInteract + +public void ResetInteract() + +### Serie.SetAllDirty + +public override void SetAllDirty() + +### Serie.SetCoord<T> + +public bool SetCoord<T>() where T : CoordSystem + +### Serie.SetHighlight + +public void SetHighlight(int index, bool flag) +设置指定索引的数据为高亮状态 + +### Serie.SetVerticesDirty + +public override void SetVerticesDirty() + +### Serie.UpdateData + +public bool UpdateData(int index, List<double> values) +更新指定索引的数据项数据列表 + + +### Serie.UpdateDataName + +public bool UpdateDataName(int index, string name) + +### Serie.UpdateXYData + +public bool UpdateXYData(int index, double xValue, double yValue) +更新指定索引的维度X和维度Y的数据 + +### Serie.UpdateYData + +public bool UpdateYData(int index, double value) +更新指定索引的维度Y数据 + +## SerieColorBy + +class in XCharts.Runtime + +The policy to take color from theme. + +Options: + +- `Default`: Select state. +- `Serie`: assigns the colors in the palette by serie, so that all data in the same series are in the same color. +- `Data`: assigns colors in the palette according to data items, with each data item using a different color. ## SerieComponentAttribute -> class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) The attribute for serie component. -|public method|since|description| -|--|--|--| -|Contains()||public bool Contains(Type type)| -|Contains<T>()||public bool Contains<T>() where T : ISerieComponent| -|SerieComponentAttribute()||public SerieComponentAttribute()| -|SerieComponentAttribute()||public SerieComponentAttribute(Type type1)| -|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2)| -|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2, Type type3)| -|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4)| -|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5)| -|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6)| -|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7)| +### SerieComponentAttribute.Contains + +public bool Contains(Type type) + +### SerieComponentAttribute.Contains<T> + +public bool Contains<T>() where T : ISerieComponent + +### SerieComponentAttribute.SerieComponentAttribute + +public SerieComponentAttribute(Type type1) + +public SerieComponentAttribute(Type type1, Type type2) + +public SerieComponentAttribute(Type type1, Type type2, Type type3) + +public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4) + +public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5) + +public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6) + +public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7) + ## SerieContext -> class in XCharts.Runtime +class in XCharts.Runtime +### SerieContext.titleObject + +public ChartLabel titleObject +绘制点 ## SerieConvertAttribute -> class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) The attribute for which serie types can be converted to. -|public method|since|description| -|--|--|--| -|Contains()||public bool Contains(Type type)| -|Contains<T>()||public bool Contains<T>() where T : Serie| -|SerieConvertAttribute()||public SerieConvertAttribute(Type serie)| -|SerieConvertAttribute()||public SerieConvertAttribute(Type serie, Type serie2)| -|SerieConvertAttribute()||public SerieConvertAttribute(Type serie, Type serie2, Type serie3)| -|SerieConvertAttribute()||public SerieConvertAttribute(Type serie, Type serie2, Type serie3, Type serie4)| +### SerieConvertAttribute.Contains + +public bool Contains(Type type) + +### SerieConvertAttribute.Contains<T> + +public bool Contains<T>() where T : Serie + +### SerieConvertAttribute.SerieConvertAttribute + +public SerieConvertAttribute(Type serie, Type serie2) + +public SerieConvertAttribute(Type serie, Type serie2, Type serie3) + +public SerieConvertAttribute(Type serie, Type serie2, Type serie3, Type serie4) + ## SerieData -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) A data item of serie. -|public method|since|description| -|--|--|--| -|ClearComponentDirty()||public override void ClearComponentDirty()| -|ClearVerticesDirty()||public override void ClearVerticesDirty()| -|EnsureComponent()|v3.6.0|public ISerieDataComponent EnsureComponent(Type type)
Ensure the serie data has the component, if not, add it. | -|EnsureComponent<T>()|v3.6.0|public T EnsureComponent<T>() where T : ChildComponent, ISerieDataComponent
Ensure the serie data has the component, if not, add it. | -|GetAddAnimationData()||public double GetAddAnimationData(double min, double max, float animationDuration = 500f, bool unscaledTime = false)| -|GetComponent<T>()||public T GetComponent<T>() where T : ChildComponent, ISerieDataComponent
Get the component of the serie data. return null if not exist. | -|GetCurrData()||public double GetCurrData(int index, AnimationStyle animation, bool inverse = false, bool loop = false)| -|GetCurrData()||public double GetCurrData(int index, AnimationStyle animation, bool inverse, double min, double max, bool loop = false)| -|GetCurrData()||public double GetCurrData(int index, float dataAddDuration = 500f, float animationDuration = 500f, bool unscaledTime = false, bool inverse = false)| -|GetCurrData()||public double GetCurrData(int index, float dataAddDuration, float animationDuration, bool inverse, double min, double max, bool unscaledTime, bool loop = false)| -|GetData()||public double GetData(int index, bool inverse = false)| -|GetData()||public double GetData(int index, double min, double max)| -|GetFirstData()||public double GetFirstData(bool unscaledTime, float animationDuration = 500f)| -|GetLabelHeight()||public float GetLabelHeight()| -|GetLabelWidth()||public float GetLabelWidth()| -|GetLastData()||public double GetLastData()| -|GetMaxData()||public double GetMaxData(bool inverse = false)
the maxinum value. | -|GetMinData()||public double GetMinData(bool inverse = false)
the mininum value. | -|GetMinMaxData()||public void GetMinMaxData(int startDimensionIndex, bool inverse, out double min, out double max)| -|GetOrAddComponent<T>()||public T GetOrAddComponent<T>() where T : ChildComponent, ISerieDataComponent| -|GetPreviousData()||public double GetPreviousData(int index, bool inverse = false)| -|GetTotalData()||public double GetTotalData()| -|IsDataChanged()||public bool IsDataChanged()| -|IsInPolygon()||public bool IsInPolygon(Vector2 p)| -|List<string>()||public static List<string> extraFieldList = new List<string>()
A data item of serie. | -|OnAdd()||public void OnAdd(AnimationStyle animation, double startValue = 0)| -|RemoveAllComponent()||public void RemoveAllComponent()| -|RemoveComponent()||public void RemoveComponent(Type type)| -|RemoveComponent<T>()||public void RemoveComponent<T>() where T : ISerieDataComponent| -|Reset()||public void Reset()| -|SetIconActive()||public void SetIconActive(bool flag)| -|SetLabelActive()||public void SetLabelActive(bool flag)| -|SetPolygon()||public void SetPolygon(params Vector2[] points)| -|SetPolygon()||public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4)| -|SetPolygon()||public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p5)| -|UpdateData()||public bool UpdateData(int dimension, double value)| -|UpdateData()||public bool UpdateData(int dimension, double value, bool updateAnimation, bool unscaledTime, float animationDuration = 500f)| +### SerieData.areaStyle + +public AreaStyle areaStyle + +### SerieData.blurStyle + +public BlurStyle blurStyle +淡出状态的样式。 + +### SerieData.data + +public List<double> data +An arbitrary dimension data list of data item. + +### SerieData.emphasisStyle + +public EmphasisStyle emphasisStyle +高亮状态的样式 + +### SerieData.id + +public string id +the id of data. + +### SerieData.index + +public override int index +the index of SerieData. + +### SerieData.itemStyle + +public ItemStyle itemStyle +单个数据项的样式设置。 + +### SerieData.labelLine + +public LabelLine labelLine + +### SerieData.labelObject + +public ChartLabel labelObject + +### SerieData.labelStyle + +public LabelStyle labelStyle +单个数据项的标签设置。 + +### SerieData.legendName + +public string legendName +数据项图例名称。当数据项名称不为空时,图例名称即为系列名称;反之则为索引index。 + +### SerieData.lineStyle + +public LineStyle lineStyle + +### SerieData.name + +public string name +the name of data item. + +### SerieData.parentId + +public string parentId +the id of parent SerieData. + +### SerieData.radius + +public float radius +自定义半径。可用在饼图中自定义某个数据项的半径。 + +### SerieData.selected + +public bool selected +Whether the data item is selected. + +### SerieData.selectStyle + +public SelectStyle selectStyle +选中状态的样式。 + +### SerieData.show + +public bool show +[default:true] Whether the data item is showed. + +### SerieData.state + +public SerieState state +the state of serie data. + +### SerieData.symbol + +public SerieSymbol symbol +单个数据项的标记设置。 + +### SerieData.titleObject + +public ChartLabel titleObject + +### SerieData.titleStyle + +public TitleStyle titleStyle + +### SerieData.ClearComponentDirty + +public override void ClearComponentDirty() + +### SerieData.ClearVerticesDirty + +public override void ClearVerticesDirty() + +### SerieData.EnsureComponent + +public ISerieDataComponent EnsureComponent(Type type) + +> Since `v3.6.0` + +Ensure the serie data has the component, if not, add it. + +### SerieData.EnsureComponent<T> + +public T EnsureComponent<T>() where T : ChildComponent, ISerieDataComponent + +> Since `v3.6.0` + +Ensure the serie data has the component, if not, add it. + +### SerieData.GetAddAnimationData + +public double GetAddAnimationData(double min, double max, float animationDuration = 500f, bool unscaledTime = false) + +### SerieData.GetComponent<T> + +public T GetComponent<T>() where T : ChildComponent, ISerieDataComponent +Get the component of the serie data. return null if not exist. + +### SerieData.GetCurrData + +public double GetCurrData(int index, AnimationStyle animation, bool inverse, double min, double max, bool loop = false) + +public double GetCurrData(int index, float dataAddDuration = 500f, float animationDuration = 500f, bool unscaledTime = false, bool inverse = false) + +public double GetCurrData(int index, float dataAddDuration, float animationDuration, bool inverse, double min, double max, bool unscaledTime, bool loop = false) + + +### SerieData.GetData + +public double GetData(int index, double min, double max) + + +### SerieData.GetFirstData + +public double GetFirstData(bool unscaledTime, float animationDuration = 500f) + +### SerieData.GetLabelHeight + +public float GetLabelHeight() + +### SerieData.GetLabelWidth + +public float GetLabelWidth() + +### SerieData.GetLastData + +public double GetLastData() + +### SerieData.GetMaxData + +public double GetMaxData(bool inverse = false) +the maxinum value. + +### SerieData.GetMinData + +public double GetMinData(bool inverse = false) +the mininum value. + +### SerieData.GetMinMaxData + +public void GetMinMaxData(int startDimensionIndex, bool inverse, out double min, out double max) + +### SerieData.GetOrAddComponent<T> + +public T GetOrAddComponent<T>() where T : ChildComponent, ISerieDataComponent + +### SerieData.GetPreviousData + +public double GetPreviousData(int index, bool inverse = false) + +### SerieData.GetTotalData + +public double GetTotalData() + +### SerieData.IsDataChanged + +public bool IsDataChanged() + +### SerieData.IsInPolygon + +public bool IsInPolygon(Vector2 p) + +### SerieData.List<string> + +public static List<string> extraFieldList = new List<string>() +A data item of serie. + +### SerieData.OnAdd + +public void OnAdd(AnimationStyle animation, double startValue = 0) + +### SerieData.RemoveAllComponent + +public void RemoveAllComponent() + +### SerieData.RemoveComponent + +public void RemoveComponent(Type type) + +### SerieData.RemoveComponent<T> + +public void RemoveComponent<T>() where T : ISerieDataComponent + +### SerieData.Reset + +public void Reset() + +### SerieData.SetIconActive + +public void SetIconActive(bool flag) + +### SerieData.SetLabelActive + +public void SetLabelActive(bool flag) + +### SerieData.SetPolygon + +public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) + +public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p5) + + +### SerieData.UpdateData + +public bool UpdateData(int dimension, double value) + ## SerieDataComponentAttribute -> class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) The attribute for serie data component. -|public method|since|description| -|--|--|--| -|Contains()||public bool Contains(Type type)| -|Contains<T>()||public bool Contains<T>() where T : ISerieComponent| -|SerieDataComponentAttribute()||public SerieDataComponentAttribute()| -|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1)| -|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2)| -|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2, Type type3)| -|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4)| -|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5)| -|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6)| -|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7)| +### SerieDataComponentAttribute.Contains + +public bool Contains(Type type) + +### SerieDataComponentAttribute.Contains<T> + +public bool Contains<T>() where T : ISerieComponent + +### SerieDataComponentAttribute.SerieDataComponentAttribute + +public SerieDataComponentAttribute(Type type1) + +public SerieDataComponentAttribute(Type type1, Type type2) + +public SerieDataComponentAttribute(Type type1, Type type2, Type type3) + +public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4) + +public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5) + +public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6) + +public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7) + ## SerieDataContext -> class in XCharts.Runtime +class in XCharts.Runtime +### SerieDataContext.Reset -|public method|since|description| -|--|--|--| -|Reset()||public void Reset()| +public void Reset() ## SerieDataExtraFieldAttribute -> class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### SerieDataExtraFieldAttribute.Contains + +public bool Contains(string field) + +### SerieDataExtraFieldAttribute.SerieDataExtraFieldAttribute + +public SerieDataExtraFieldAttribute(string field1) + +public SerieDataExtraFieldAttribute(string field1, string field2) + +public SerieDataExtraFieldAttribute(string field1, string field2, string field3) + +public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4) + +public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5) + +public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6) + +public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6, string field7) -|public method|since|description| -|--|--|--| -|Contains()||public bool Contains(string field)| -|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute()| -|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1)| -|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2)| -|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2, string field3)| -|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4)| -|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5)| -|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6)| -|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6, string field7)| ## SerieDataLink -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) > Since `v3.10.0` the link of serie data. Used for sankey chart. Sankey chart only supports directed acyclic graph. make sure the data link is directed acyclic graph. +## SerieDataSortType + +class in XCharts.Runtime + +the sort type of serie data. + +Options: + +- `None`: In the order of data. +- `Ascending`: Sort data in ascending order. +- `Descending`: Sort data in descending order. + ## SerieEventData -> class in XCharts.Runtime +class in XCharts.Runtime the data of serie event. -|public method|since|description| -|--|--|--| -|Reset()||public void Reset()| +### SerieEventData.dataIndex + +public int dataIndex +the index of data in serie.data. + +### SerieEventData.dimension + +public int dimension +the dimension of data. + +### SerieEventData.pointerPos + +public Vector3 pointerPos +the position of pointer in chart. + +### SerieEventData.serieIndex + +public int serieIndex +the index of serie in chart.series. + +### SerieEventData.value + +public double value +the value of data. + +### SerieEventData.Reset + +public void Reset() ## SerieEventDataPool -> class in XCharts.Runtime +class in XCharts.Runtime +### SerieEventDataPool.Get -|public method|since|description| -|--|--|--| -|Get()||public static SerieEventData Get(Vector3 pos, int serieIndex, int dataIndex, int dimension, double value)| -|Release()||public static void Release(SerieEventData toRelease)| +public static SerieEventData Get(Vector3 pos, int serieIndex, int dataIndex, int dimension, double value) + +### SerieEventDataPool.Release + +public static void Release(SerieEventData toRelease) ## SerieHandler -> class in XCharts.Runtime +class in XCharts.Runtime +### SerieHandler.AfterUpdate() -|public method|since|description| -|--|--|--| -|AfterUpdate()||public virtual void AfterUpdate() { }| -|BeforeUpdate()||public virtual void BeforeUpdate() { }| -|CheckComponent()||public virtual void CheckComponent(StringBuilder sb) { }| -|DrawBase()||public virtual void DrawBase(VertexHelper vh) { }| -|DrawSerie()||public virtual void DrawSerie(VertexHelper vh) { }| -|DrawTop()||public virtual void DrawTop(VertexHelper vh) { }| -|DrawUpper()||public virtual void DrawUpper(VertexHelper vh) { }| -|ForceUpdateSerieContext()||public virtual void ForceUpdateSerieContext() { }| -|InitComponent()||public virtual void InitComponent() { }| -|OnBeginDrag()||public virtual void OnBeginDrag(PointerEventData eventData) { }| -|OnDataUpdate()||public virtual void OnDataUpdate() { }| -|OnDrag()||public virtual void OnDrag(PointerEventData eventData) { }| -|OnEndDrag()||public virtual void OnEndDrag(PointerEventData eventData) { }| -|OnLegendButtonClick()||public virtual void OnLegendButtonClick(int index, string legendName, bool show) { }| -|OnLegendButtonEnter()||public virtual void OnLegendButtonEnter(int index, string legendName) { }| -|OnLegendButtonExit()||public virtual void OnLegendButtonExit(int index, string legendName) { }| -|OnPointerClick()||public virtual void OnPointerClick(PointerEventData eventData) { }| -|OnPointerDown()||public virtual void OnPointerDown(PointerEventData eventData) { }| -|OnPointerEnter()||public virtual void OnPointerEnter(PointerEventData eventData) { }| -|OnPointerExit()||public virtual void OnPointerExit(PointerEventData eventData) { }| -|OnPointerUp()||public virtual void OnPointerUp(PointerEventData eventData) { }| -|OnScroll()||public virtual void OnScroll(PointerEventData eventData) { }| -|RefreshLabelInternal()||public virtual void RefreshLabelInternal() { }| -|RefreshLabelNextFrame()||public virtual void RefreshLabelNextFrame() { }| -|RemoveComponent()||public virtual void RemoveComponent() { }| -|Update()||public virtual void Update() { }| -|UpdateSerieContext()||public virtual void UpdateSerieContext() { }| +public virtual void AfterUpdate() + +### SerieHandler.attribute + +public SerieHandlerAttribute attribute + +### SerieHandler.BeforeUpdate() + +public virtual void BeforeUpdate() + +### SerieHandler.chart + +public BaseChart chart + +### SerieHandler.defaultDimension + +public virtual int defaultDimension + +### SerieHandler.eventData) + +public virtual void OnBeginDrag(PointerEventData eventData) + +### SerieHandler.eventData) + +public virtual void OnDrag(PointerEventData eventData) + +### SerieHandler.eventData) + +public virtual void OnEndDrag(PointerEventData eventData) + +### SerieHandler.eventData) + +public virtual void OnPointerClick(PointerEventData eventData) + +### SerieHandler.eventData) + +public virtual void OnPointerDown(PointerEventData eventData) + +### SerieHandler.eventData) + +public virtual void OnPointerEnter(PointerEventData eventData) + +### SerieHandler.eventData) + +public virtual void OnPointerExit(PointerEventData eventData) + +### SerieHandler.eventData) + +public virtual void OnPointerUp(PointerEventData eventData) + +### SerieHandler.eventData) + +public virtual void OnScroll(PointerEventData eventData) + +### SerieHandler.ForceUpdateSerieContext() + +public virtual void ForceUpdateSerieContext() + +### SerieHandler.GetPointerItemDataDimension() + +public virtual int GetPointerItemDataDimension() + +### SerieHandler.GetPointerItemDataIndex() + +public virtual int GetPointerItemDataIndex() + +### SerieHandler.InitComponent() + +public virtual void InitComponent() + +### SerieHandler.inited + +public bool inited + +### SerieHandler.legendName) + +public virtual void OnLegendButtonEnter(int index, string legendName) + +### SerieHandler.legendName) + +public virtual void OnLegendButtonExit(int index, string legendName) + +### SerieHandler.OnDataUpdate() + +public virtual void OnDataUpdate() + +### SerieHandler.RefreshLabelInternal() + +public virtual void RefreshLabelInternal() + +### SerieHandler.RefreshLabelNextFrame() + +public virtual void RefreshLabelNextFrame() + +### SerieHandler.RemoveComponent() + +public virtual void RemoveComponent() + +### SerieHandler.sb) + +public virtual void CheckComponent(StringBuilder sb) + +### SerieHandler.show) + +public virtual void OnLegendButtonClick(int index, string legendName, bool show) + +### SerieHandler.Update() + +public virtual void Update() + +### SerieHandler.UpdateSerieContext() + +public virtual void UpdateSerieContext() + +### SerieHandler.vh) + +public virtual void DrawBase(VertexHelper vh) + +### SerieHandler.vh) + +public virtual void DrawSerie(VertexHelper vh) + +### SerieHandler.vh) + +public virtual void DrawTop(VertexHelper vh) + +### SerieHandler.vh) + +public virtual void DrawUpper(VertexHelper vh) + +### SerieHandler.AfterUpdate + +public virtual void AfterUpdate() { } + +### SerieHandler.BeforeUpdate + +public virtual void BeforeUpdate() { } + +### SerieHandler.CheckComponent + +public virtual void CheckComponent(StringBuilder sb) { } + +### SerieHandler.DrawBase + +public virtual void DrawBase(VertexHelper vh) { } + +### SerieHandler.DrawSerie + +public virtual void DrawSerie(VertexHelper vh) { } + +### SerieHandler.DrawTop + +public virtual void DrawTop(VertexHelper vh) { } + +### SerieHandler.DrawUpper + +public virtual void DrawUpper(VertexHelper vh) { } + +### SerieHandler.ForceUpdateSerieContext + +public virtual void ForceUpdateSerieContext() { } + +### SerieHandler.InitComponent + +public virtual void InitComponent() { } + +### SerieHandler.OnBeginDrag + +public virtual void OnBeginDrag(PointerEventData eventData) { } + +### SerieHandler.OnDataUpdate + +public virtual void OnDataUpdate() { } + +### SerieHandler.OnDrag + +public virtual void OnDrag(PointerEventData eventData) { } + +### SerieHandler.OnEndDrag + +public virtual void OnEndDrag(PointerEventData eventData) { } + +### SerieHandler.OnLegendButtonClick + +public virtual void OnLegendButtonClick(int index, string legendName, bool show) { } + +### SerieHandler.OnLegendButtonEnter + +public virtual void OnLegendButtonEnter(int index, string legendName) { } + +### SerieHandler.OnLegendButtonExit + +public virtual void OnLegendButtonExit(int index, string legendName) { } + +### SerieHandler.OnPointerClick + +public virtual void OnPointerClick(PointerEventData eventData) { } + +### SerieHandler.OnPointerDown + +public virtual void OnPointerDown(PointerEventData eventData) { } + +### SerieHandler.OnPointerEnter + +public virtual void OnPointerEnter(PointerEventData eventData) { } + +### SerieHandler.OnPointerExit + +public virtual void OnPointerExit(PointerEventData eventData) { } + +### SerieHandler.OnPointerUp + +public virtual void OnPointerUp(PointerEventData eventData) { } + +### SerieHandler.OnScroll + +public virtual void OnScroll(PointerEventData eventData) { } + +### SerieHandler.RefreshLabelInternal + +public virtual void RefreshLabelInternal() { } + +### SerieHandler.RefreshLabelNextFrame + +public virtual void RefreshLabelNextFrame() { } + +### SerieHandler.RemoveComponent + +public virtual void RemoveComponent() { } + +### SerieHandler.Update + +public virtual void Update() { } + +### SerieHandler.UpdateSerieContext + +public virtual void UpdateSerieContext() { } ## SerieHandler where T -> class in / Subclasses: [SerieHandler<T>](#seriehandlert) - +class in / Subclasses: [SerieHandler<T>](#seriehandlert) ## SerieHandler<T> -> class in XCharts.Runtime / Inherits from: [SerieHandler where T](#seriehandler where t),[Serie](#serie) +class in XCharts.Runtime / Inherits from: [SerieHandler where T](#seriehandler where t),[Serie](#serie) +### SerieHandler<T>.labelObject -|public method|since|description| -|--|--|--| -|AfterUpdate()||public override void AfterUpdate()| -|BeforeUpdate()||public override void BeforeUpdate()| -|DrawLabelLineSymbol()||public void DrawLabelLineSymbol(VertexHelper vh, LabelLine labelLine, Vector3 startPos, Vector3 endPos, Color32 defaultColor)| -|ForceUpdateSerieContext()||public override void ForceUpdateSerieContext()| -|GetPointerItemDataDimension()||public override int GetPointerItemDataDimension()| -|GetPointerItemDataIndex()||public override int GetPointerItemDataIndex()| -|GetSerieDataAutoColor()||public virtual Color GetSerieDataAutoColor(SerieData serieData)| -|GetSerieDataLabelOffset()||public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label)| -|GetSerieDataLabelPosition()||public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label)| -|GetSerieDataTitlePosition()||public virtual Vector3 GetSerieDataTitlePosition(SerieData serieData, TitleStyle titleStyle)| -|InitComponent()||public override void InitComponent()| -|OnLegendButtonClick()||public override void OnLegendButtonClick(int index, string legendName, bool show)| -|OnLegendButtonEnter()||public override void OnLegendButtonEnter(int index, string legendName)| -|OnLegendButtonExit()||public override void OnLegendButtonExit(int index, string legendName)| -|OnPointerClick()||public override void OnPointerClick(PointerEventData eventData)| -|OnPointerDown()||public override void OnPointerDown(PointerEventData eventData)| -|RefreshEndLabelInternal()||public virtual void RefreshEndLabelInternal()| -|RefreshLabelInternal()||public override void RefreshLabelInternal()| -|RefreshLabelNextFrame()||public override void RefreshLabelNextFrame()| -|RemoveComponent()||public override void RemoveComponent()| -|Update()||public override void Update()| +public GameObject labelObject + +### SerieHandler<T>.serie + +public T serie + +### SerieHandler<T>.AfterUpdate + +public override void AfterUpdate() + +### SerieHandler<T>.BeforeUpdate + +public override void BeforeUpdate() + +### SerieHandler<T>.DrawLabelLineSymbol + +public void DrawLabelLineSymbol(VertexHelper vh, LabelLine labelLine, Vector3 startPos, Vector3 endPos, Color32 defaultColor) + +### SerieHandler<T>.ForceUpdateSerieContext + +public override void ForceUpdateSerieContext() + +### SerieHandler<T>.GetPointerItemDataDimension + +public override int GetPointerItemDataDimension() + +### SerieHandler<T>.GetPointerItemDataIndex + +public override int GetPointerItemDataIndex() + +### SerieHandler<T>.GetSerieDataAutoColor + +public virtual Color GetSerieDataAutoColor(SerieData serieData) + +### SerieHandler<T>.GetSerieDataLabelOffset + +public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label) + +### SerieHandler<T>.GetSerieDataLabelPosition + +public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label) + +### SerieHandler<T>.GetSerieDataTitlePosition + +public virtual Vector3 GetSerieDataTitlePosition(SerieData serieData, TitleStyle titleStyle) + +### SerieHandler<T>.InitComponent + +public override void InitComponent() + +### SerieHandler<T>.OnLegendButtonClick + +public override void OnLegendButtonClick(int index, string legendName, bool show) + +### SerieHandler<T>.OnLegendButtonEnter + +public override void OnLegendButtonEnter(int index, string legendName) + +### SerieHandler<T>.OnLegendButtonExit + +public override void OnLegendButtonExit(int index, string legendName) + +### SerieHandler<T>.OnPointerClick + +public override void OnPointerClick(PointerEventData eventData) + +### SerieHandler<T>.OnPointerDown + +public override void OnPointerDown(PointerEventData eventData) + +### SerieHandler<T>.RefreshEndLabelInternal + +public virtual void RefreshEndLabelInternal() + +### SerieHandler<T>.RefreshLabelInternal + +public override void RefreshLabelInternal() + +### SerieHandler<T>.RefreshLabelNextFrame + +public override void RefreshLabelNextFrame() + +### SerieHandler<T>.RemoveComponent + +public override void RemoveComponent() + +### SerieHandler<T>.Update + +public override void Update() ## SerieHandlerAttribute -> class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### SerieHandlerAttribute.SerieHandlerAttribute + +public SerieHandlerAttribute(Type handler, bool allowMultiple) -|public method|since|description| -|--|--|--| -|SerieHandlerAttribute()||public SerieHandlerAttribute(Type handler)| -|SerieHandlerAttribute()||public SerieHandlerAttribute(Type handler, bool allowMultiple)| ## SerieHelper -> class in XCharts.Runtime +class in XCharts.Runtime + +### SerieHelper.CloneSerie<T> + +public static T CloneSerie<T>(Serie serie) where T : Serie + +### SerieHelper.CopySerie + +public static void CopySerie(Serie oldSerie, Serie newSerie) + +### SerieHelper.GetAllMinMaxData + +public static void GetAllMinMaxData(Serie serie, double ceilRate = 0, DataZoom dataZoom = null) + +### SerieHelper.GetAreaStyle + +public static AreaStyle GetAreaStyle(Serie serie, SerieData serieData) + +### SerieHelper.GetAverageData + +public static double GetAverageData(Serie serie, int dimension = 1, DataZoom dataZoom = null) + +### SerieHelper.GetBlurStyle + +public static BlurStyle GetBlurStyle(Serie serie, SerieData serieData) + +### SerieHelper.GetEmphasisStyle + +public static EmphasisStyle GetEmphasisStyle(Serie serie, SerieData serieData) + +### SerieHelper.GetItemColor + +public static Color32 GetItemColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto, bool opacity = true) + +### SerieHelper.GetItemFormatter + +public static string GetItemFormatter(Serie serie, SerieData serieData, string defaultFormatter = null) + +### SerieHelper.GetItemMarker + +public static string GetItemMarker(Serie serie, SerieData serieData, string defaultMarker = null) + +### SerieHelper.GetItemStyle + +public static ItemStyle GetItemStyle(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) + +### SerieHelper.GetLineColor + +public static Color32 GetLineColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto) + +### SerieHelper.GetLineStyle + +public static LineStyle GetLineStyle(Serie serie, SerieData serieData) + +### SerieHelper.GetMaxData + +public static double GetMaxData(Serie serie, int dimension = 1, DataZoom dataZoom = null) + +### SerieHelper.GetMaxSerieData + +public static SerieData GetMaxSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null) + +### SerieHelper.GetMedianData + +public static double GetMedianData(Serie serie, int dimension = 1, DataZoom dataZoom = null) + +### SerieHelper.GetMinData + +public static double GetMinData(Serie serie, int dimension = 1, DataZoom dataZoom = null) + +### SerieHelper.GetMinMaxData + +public static void GetMinMaxData(Serie serie, out double min, out double max, DataZoom dataZoom = null, int dimension = 0) +Gets the maximum and minimum values of all data in the serie. + +### SerieHelper.GetMinSerieData + +public static SerieData GetMinSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null) + +### SerieHelper.GetNumericFormatter + +public static string GetNumericFormatter(Serie serie, SerieData serieData, string defaultFormatter = null) + +### SerieHelper.GetSelectStyle + +public static SelectStyle GetSelectStyle(Serie serie, SerieData serieData) + +### SerieHelper.GetSerieLabel + +public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) + +### SerieHelper.GetSerieLabelLine + +public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) + +### SerieHelper.GetSerieState + +public static SerieState GetSerieState(Serie serie, SerieData serieData, bool defaultSerieState = false) + +public static SerieState GetSerieState(SerieData serieData) -|public method|since|description| -|--|--|--| -|CloneSerie<T>()||public static T CloneSerie<T>(Serie serie) where T : Serie| -|CopySerie()||public static void CopySerie(Serie oldSerie, Serie newSerie)| -|GetAllMinMaxData()||public static void GetAllMinMaxData(Serie serie, double ceilRate = 0, DataZoom dataZoom = null)| -|GetAreaStyle()||public static AreaStyle GetAreaStyle(Serie serie, SerieData serieData)| -|GetAverageData()||public static double GetAverageData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| -|GetBlurStyle()||public static BlurStyle GetBlurStyle(Serie serie, SerieData serieData)| -|GetEmphasisStyle()||public static EmphasisStyle GetEmphasisStyle(Serie serie, SerieData serieData)| -|GetItemColor()||public static Color32 GetItemColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto, bool opacity = true)| -|GetItemFormatter()||public static string GetItemFormatter(Serie serie, SerieData serieData, string defaultFormatter = null)| -|GetItemMarker()||public static string GetItemMarker(Serie serie, SerieData serieData, string defaultMarker = null)| -|GetItemStyle()||public static ItemStyle GetItemStyle(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)| -|GetLineColor()||public static Color32 GetLineColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto)| -|GetLineStyle()||public static LineStyle GetLineStyle(Serie serie, SerieData serieData)| -|GetMaxData()||public static double GetMaxData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| -|GetMaxSerieData()||public static SerieData GetMaxSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| -|GetMedianData()||public static double GetMedianData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| -|GetMinData()||public static double GetMinData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| -|GetMinMaxData()||public static void GetMinMaxData(Serie serie, out double min, out double max, DataZoom dataZoom = null, int dimension = 0)
Gets the maximum and minimum values of all data in the serie. | -|GetMinSerieData()||public static SerieData GetMinSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| -|GetNumericFormatter()||public static string GetNumericFormatter(Serie serie, SerieData serieData, string defaultFormatter = null)| -|GetSelectStyle()||public static SelectStyle GetSelectStyle(Serie serie, SerieData serieData)| -|GetSerieLabel()||public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)| -|GetSerieLabelLine()||public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)| -|GetSerieState()||public static SerieState GetSerieState(Serie serie)| -|GetSerieState()||public static SerieState GetSerieState(Serie serie, SerieData serieData, bool defaultSerieState = false)| -|GetSerieState()||public static SerieState GetSerieState(SerieData serieData)| -|GetSerieSymbol()||public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)| -|GetStateStyle()||public static StateStyle GetStateStyle(Serie serie, SerieData serieData, SerieState state)| -|GetSysmbolSize()||public static float GetSysmbolSize(Serie serie, SerieData serieData, float defaultSize, SerieState state = SerieState.Auto, bool checkAnimation = false)| -|GetTitleStyle()||public static TitleStyle GetTitleStyle(Serie serie, SerieData serieData)| -|IsAllZeroValue()||public static bool IsAllZeroValue(Serie serie, int dimension = 1)
Whether the data for the specified dimension of serie are all 0. | -|IsDownPoint()||public static bool IsDownPoint(Serie serie, int index)| -|UpdateCenter()||public static void UpdateCenter(Serie serie, BaseChart chart)
更新运行时中心点和半径 | -|UpdateFilterData()||public static void UpdateFilterData(Serie serie, DataZoom dataZoom)
根据dataZoom更新数据列表缓存 | -|UpdateMinMaxData()||public static void UpdateMinMaxData(Serie serie, int dimension, double ceilRate = 0, DataZoom dataZoom = null)
获得指定维数的最大最小值 | -|UpdateRect()||public static void UpdateRect(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight)| -|UpdateSerieRuntimeFilterData()||public static void UpdateSerieRuntimeFilterData(Serie serie, bool filterInvisible = true)| +### SerieHelper.GetSerieSymbol + +public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) + +### SerieHelper.GetStateStyle + +public static StateStyle GetStateStyle(Serie serie, SerieData serieData, SerieState state) + +### SerieHelper.GetSysmbolSize + +public static float GetSysmbolSize(Serie serie, SerieData serieData, float defaultSize, SerieState state = SerieState.Auto, bool checkAnimation = false) + +### SerieHelper.GetTitleStyle + +public static TitleStyle GetTitleStyle(Serie serie, SerieData serieData) + +### SerieHelper.IsAllZeroValue + +public static bool IsAllZeroValue(Serie serie, int dimension = 1) +Whether the data for the specified dimension of serie are all 0. + +### SerieHelper.IsDownPoint + +public static bool IsDownPoint(Serie serie, int index) + +### SerieHelper.UpdateCenter + +public static void UpdateCenter(Serie serie, BaseChart chart) +更新运行时中心点和半径 + +### SerieHelper.UpdateFilterData + +public static void UpdateFilterData(Serie serie, DataZoom dataZoom) +根据dataZoom更新数据列表缓存 + +### SerieHelper.UpdateMinMaxData + +public static void UpdateMinMaxData(Serie serie, int dimension, double ceilRate = 0, DataZoom dataZoom = null) +获得指定维数的最大最小值 + +### SerieHelper.UpdateRect + +public static void UpdateRect(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight) + +### SerieHelper.UpdateSerieRuntimeFilterData + +public static void UpdateSerieRuntimeFilterData(Serie serie, bool filterInvisible = true) ## SerieLabelHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### SerieLabelHelper.CanShowLabel -|public method|since|description| -|--|--|--| -|CanShowLabel()||public static bool CanShowLabel(Serie serie, SerieData serieData, LabelStyle label, int dimesion)| -|GetLabelColor()||public static Color GetLabelColor(Serie serie, ThemeStyle theme, int index)| -|SetGaugeLabelText()||public static void SetGaugeLabelText(Serie serie)| +public static bool CanShowLabel(Serie serie, SerieData serieData, LabelStyle label, int dimesion) + +### SerieLabelHelper.GetLabelColor + +public static Color GetLabelColor(Serie serie, ThemeStyle theme, int index) + +### SerieLabelHelper.SetGaugeLabelText + +public static void SetGaugeLabelText(Serie serie) ## SerieLabelPool -> class in XCharts.Runtime +class in XCharts.Runtime +### SerieLabelPool.ClearAll -|public method|since|description| -|--|--|--| -|ClearAll()||public static void ClearAll()| -|Release()||public static void Release(GameObject element)| -|ReleaseAll()||public static void ReleaseAll(Transform parent)| +public static void ClearAll() + +### SerieLabelPool.Release + +public static void Release(GameObject element) + +### SerieLabelPool.ReleaseAll + +public static void ReleaseAll(Transform parent) ## SerieParams -> class in XCharts.Runtime - +class in XCharts.Runtime ## SeriesHelper -> class in XCharts.Runtime +class in XCharts.Runtime + +### SeriesHelper.GetLastStackSerie + +public static Serie GetLastStackSerie(List<Serie> series, Serie serie) +获得上一个同堆叠且显示的serie。 + +### SeriesHelper.GetLegalSerieNameList + +public static List<string> GetLegalSerieNameList(List<Serie> series) + +### SeriesHelper.GetMaxSerieDataCount + +public static int GetMaxSerieDataCount(List<Serie> series) + +### SeriesHelper.GetMinAnimationDuration + +public static float GetMinAnimationDuration(List<Serie> series) + +### SeriesHelper.GetNameColor + +public static Color GetNameColor(BaseChart chart, int index, string name) + +### SeriesHelper.GetStackSeries + +public static void GetStackSeries(List<Serie> series, ref Dictionary<int, List<Serie>> stackSeries) +获得堆叠系列列表 + +### SeriesHelper.IsAnyClipSerie + +public static bool IsAnyClipSerie(List<Serie> series) +是否有需裁剪的serie。 + +### SeriesHelper.IsLegalLegendName + +public static bool IsLegalLegendName(string name) + +### SeriesHelper.IsPercentStack<T> + +public static bool IsPercentStack<T>(List<Serie> series, string stackName) where T : Serie +是否时百分比堆叠 -|public method|since|description| -|--|--|--| -|GetLastStackSerie()||public static Serie GetLastStackSerie(List<Serie> series, Serie serie)
获得上一个同堆叠且显示的serie。 | -|GetLegalSerieNameList()||public static List<string> GetLegalSerieNameList(List<Serie> series)| -|GetMaxSerieDataCount()||public static int GetMaxSerieDataCount(List<Serie> series)| -|GetMinAnimationDuration()||public static float GetMinAnimationDuration(List<Serie> series)| -|GetNameColor()||public static Color GetNameColor(BaseChart chart, int index, string name)| -|GetStackSeries()||public static void GetStackSeries(List<Serie> series, ref Dictionary<int, List<Serie>> stackSeries)
获得堆叠系列列表 | -|IsAnyClipSerie()||public static bool IsAnyClipSerie(List<Serie> series)
是否有需裁剪的serie。 | -|IsLegalLegendName()||public static bool IsLegalLegendName(string name)| -|IsPercentStack<T>()||public static bool IsPercentStack<T>(List<Serie> series) where T : Serie
是否时百分比堆叠 | -|IsPercentStack<T>()||public static bool IsPercentStack<T>(List<Serie> series, string stackName) where T : Serie
是否时百分比堆叠 | -|IsStack()||public static bool IsStack(List<Serie> series)
是否由数据堆叠 | -|IsStack<T>()||public static bool IsStack<T>(List<Serie> series, string stackName) where T : Serie
是否堆叠 | -|UpdateSerieNameList()||public static void UpdateSerieNameList(BaseChart chart, ref List<string> serieNameList)
获得所有系列名,不包含空名字。 | -|UpdateStackDataList()||public static void UpdateStackDataList(List<Serie> series, Serie currSerie, DataZoom dataZoom, List<List<SerieData>> dataList)| +### SeriesHelper.IsStack + +public static bool IsStack(List<Serie> series) +是否由数据堆叠 + +### SeriesHelper.IsStack<T> + +public static bool IsStack<T>(List<Serie> series, string stackName) where T : Serie +是否堆叠 + +### SeriesHelper.UpdateSerieNameList + +public static void UpdateSerieNameList(BaseChart chart, ref List<string> serieNameList) +获得所有系列名,不包含空名字。 + +### SeriesHelper.UpdateStackDataList + +public static void UpdateStackDataList(List<Serie> series, Serie currSerie, DataZoom dataZoom, List<List<SerieData>> dataList) + +## SerieState + +class in XCharts.Runtime + +Serie state. Supports normal, emphasis, blur, and select states. + +Options: + +- `Normal`: Normal state. +- `Emphasis`: Emphasis state. +- `Blur`: Blur state. +- `Select`: Select state. +- `Auto`: Auto state. ## SerieSymbol -> class in XCharts.Runtime / Inherits from: [SymbolStyle](#symbolstyle),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [SymbolStyle](#symbolstyle),[ISerieDataComponent](#iseriedatacomponent) 系列数据项的标记的图形 -|public method|since|description| -|--|--|--| -|GetSize()||public float GetSize(List<double> data, float themeSize)
根据指定的sizeType获得标记的大小 | -|Reset()||public override void Reset()| -|ShowSymbol()||public bool ShowSymbol(int dataIndex, int dataCount)| +### SerieSymbol.GetSize + +public float GetSize(List<double> data, float themeSize) +根据指定的sizeType获得标记的大小 + +### SerieSymbol.Reset + +public override void Reset() + +### SerieSymbol.ShowSymbol + +public bool ShowSymbol(int dataIndex, int dataCount) ## SerieTheme -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +### SerieTheme.Copy -|public method|since|description| -|--|--|--| -|Copy()||public void Copy(SerieTheme theme)| -|SerieTheme()||public SerieTheme(ThemeType theme)| +public void Copy(SerieTheme theme) + +### SerieTheme.SerieTheme + +public SerieTheme(ThemeType theme) ## Settings -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) Global parameter setting component. The default value can be used in general, and can be adjusted when necessary. -|public method|since|description| -|--|--|--| -|Copy()||public void Copy(Settings settings)| -|Reset()||public override void Reset()| +### Settings.show + +public bool show + +### Settings.Copy + +public void Copy(Settings settings) + +### Settings.Reset + +public override void Reset() ## SimplifiedBar -> class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) +class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) +### SimplifiedBar.containerIndex -|public method|since|description| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| -|ConvertSerie()||public static SimplifiedBar ConvertSerie(Serie serie)| +public int containerIndex + +### SimplifiedBar.containterInstanceId + +public int containterInstanceId + +### SimplifiedBar.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) + +### SimplifiedBar.ConvertSerie + +public static SimplifiedBar ConvertSerie(Serie serie) ## SimplifiedBarChart -> class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) +class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) A simplified bar chart is a simplified mode of a bar chart that provides better performance by simplifying components and configurations. ## SimplifiedCandlestick -> class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) +class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) +### SimplifiedCandlestick.containerIndex -|public method|since|description| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| -|ConvertSerie()||public static SimplifiedCandlestick ConvertSerie(Serie serie)| +public int containerIndex + +### SimplifiedCandlestick.containterInstanceId + +public int containterInstanceId + +### SimplifiedCandlestick.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) + +### SimplifiedCandlestick.ConvertSerie + +public static SimplifiedCandlestick ConvertSerie(Serie serie) ## SimplifiedCandlestickChart -> class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) +class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) A simplified candlestick chart is a simplified mode of a bar chart that provides better performance by simplifying components and configurations. ## SimplifiedLine -> class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) +class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) +### SimplifiedLine.containerIndex -|public method|since|description| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| -|ConvertSerie()||public static SimplifiedLine ConvertSerie(Serie serie)| +public int containerIndex + +### SimplifiedLine.containterInstanceId + +public int containterInstanceId + +### SimplifiedLine.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) + +### SimplifiedLine.ConvertSerie + +public static SimplifiedLine ConvertSerie(Serie serie) ## SimplifiedLineChart -> class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) +class in XCharts.Runtime / Inherits from: [BaseChart](#basechart) A simplified line chart is a simplified mode of a bar chart that provides better performance by simplifying components and configurations. ## Since -> class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### Since.Since -|public method|since|description| -|--|--|--| -|Since()||public Since(string version)| +public Since(string version) ## SingleAxis -> class in XCharts.Runtime / Inherits from: [Axis](#axis),[IUpdateRuntimeData](#iupdateruntimedata) +class in XCharts.Runtime / Inherits from: [Axis](#axis),[IUpdateRuntimeData](#iupdateruntimedata) Single axis. -|public method|since|description| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()| -|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)| +### SingleAxis.SetDefaultValue + +public override void SetDefaultValue() + +### SingleAxis.UpdateRuntimeData + +public void UpdateRuntimeData(BaseChart chart) ## SingleAxisCoord -> class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem) - +class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem) ## StageColor -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +### StageColor.color -|public method|since|description| -|--|--|--| -|StageColor()||public StageColor(float percent, Color32 color)| +public Color32 color +颜色。 + +### StageColor.percent + +public float percent +结束位置百分比。 + +### StageColor.StageColor + +public StageColor(float percent, Color32 color) ## StateStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle) > Since `v3.2.0` the state style of serie. -|public method|since|description| -|--|--|--| -|ClearComponentDirty()||public override void ClearComponentDirty()| -|ClearVerticesDirty()||public override void ClearVerticesDirty()| -|Reset()||public void Reset()| +### StateStyle.ClearComponentDirty + +public override void ClearComponentDirty() + +### StateStyle.ClearVerticesDirty + +public override void ClearVerticesDirty() + +### StateStyle.Reset + +public void Reset() ## SubTitleTheme -> class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +### SubTitleTheme.SubTitleTheme -|public method|since|description| -|--|--|--| -|SubTitleTheme()||public SubTitleTheme(ThemeType theme) : base(theme)| +public SubTitleTheme(ThemeType theme) : base(theme) ## SVG -> class in XUGL +class in XUGL + +### SVG.DrawPath + +public static void DrawPath(VertexHelper vh, SVGPath path) -|public method|since|description| -|--|--|--| -|DrawPath()||public static void DrawPath(VertexHelper vh, string path)| -|DrawPath()||public static void DrawPath(VertexHelper vh, SVGPath path)| -|Test()||public static void Test(VertexHelper vh)| +### SVG.Test + +public static void Test(VertexHelper vh) ## SVGPath -> class in XUGL +class in XUGL +### SVGPath.AddSegment -|public method|since|description| -|--|--|--| -|AddSegment()||public void AddSegment(SVGPathSeg seg)| -|Draw()||public void Draw(VertexHelper vh)| -|Parse()||public static SVGPath Parse(string path)| +public void AddSegment(SVGPathSeg seg) + +### SVGPath.Draw + +public void Draw(VertexHelper vh) + +### SVGPath.Parse + +public static SVGPath Parse(string path) ## SVGPathSeg -> class in XUGL +class in XUGL +### SVGPathSeg.p1 -|public method|since|description| -|--|--|--| -|SVGPathSeg()||public SVGPathSeg(SVGPathSegType type)| +public Vector2 p1 + +### SVGPathSeg.p2 + +public Vector2 p2 + +### SVGPathSeg.p3 + +public Vector2 p3 + +### SVGPathSeg.x + +public float x + +### SVGPathSeg.y + +public float y + +### SVGPathSeg.SVGPathSeg + +public SVGPathSeg(SVGPathSegType type) + +## SVGPathSegType + +class in XUGL + +Options: + +- `M`: move to +- `L`: line to +- `H`: horizontal line to +- `V`: vertial line to +- `C`: curve to +- `S`: smooth curve to +- `Q`: quadratic bezier curve +- `T`: smooth quadratic bezier curve to +- `A`: elliptical Arc +- `Z`: close path + +## SymbolSizeType + +class in XCharts.Runtime + +The way to get serie symbol size. + +Options: + +- `Custom`: Specify constant for symbol size. +- `FromData`: Specify the dataIndex and dataScale to calculate symbol size. +- `Function`: Specify function for symbol size. ## SymbolStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [SerieSymbol](#seriesymbol) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [SerieSymbol](#seriesymbol) 系列数据项的标记的图形 -|public method|since|description| -|--|--|--| -|GetColor()||public Color32 GetColor(Color32 defaultColor)| -|Reset()||public virtual void Reset()| +### SymbolStyle.animationSize + +public List<float> animationSize +the setting for effect scatter. + +### SymbolStyle.offset3 + +public Vector3 offset3 + +### SymbolStyle.GetColor + +public Color32 GetColor(Color32 defaultColor) + +### SymbolStyle.Reset + +public virtual void Reset() + +## SymbolType + +class in XCharts.Runtime + +the type of symbol. + +Options: + +- `None`: 不显示标记。 +- `Custom`: 自定义标记。 +- `Circle`: 圆形。 +- `EmptyCircle`: 空心圆。 +- `Rect`: 正方形。可通过设置`itemStyle`的`cornerRadius`变成圆角矩形。 +- `EmptyRect`: 空心正方形。 +- `Triangle`: 三角形。 +- `EmptyTriangle`: 空心三角形。 +- `Diamond`: 菱形。 +- `EmptyDiamond`: 空心菱形。 +- `Arrow`: 箭头。 +- `EmptyArrow`: 空心箭头。 +- `Plus`: 加号。 +- `Minus`: 减号。 ## TextLimit -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) Text character limitation and adaptation component. When the length of the text exceeds the set length, it is cropped and suffixes are appended to the end.Only valid in the category axis. -|public method|since|description| -|--|--|--| -|Clone()||public TextLimit Clone()| -|Copy()||public void Copy(TextLimit textLimit)| -|GetLimitContent()||public string GetLimitContent(string content)| -|SetRelatedText()||public void SetRelatedText(ChartText txt, float labelWidth)| +### TextLimit.Clone + +public TextLimit Clone() + +### TextLimit.Copy + +public void Copy(TextLimit textLimit) + +### TextLimit.GetLimitContent + +public string GetLimitContent(string content) + +### TextLimit.SetRelatedText + +public void SetRelatedText(ChartText txt, float labelWidth) ## TextPadding -> class in XCharts.Runtime / Inherits from: [Padding](#padding) +class in XCharts.Runtime / Inherits from: [Padding](#padding) Settings related to text. -|public method|since|description| -|--|--|--| -|TextPadding()||public TextPadding() { }| -|TextPadding()||public TextPadding(float top, float right, float bottom, float left)| +### TextPadding.TextPadding() + +public TextPadding() +Settings related to text. + +### TextPadding.TextPadding + +public TextPadding(float top, float right, float bottom, float left) + ## TextStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) Settings related to text. -|public method|since|description| -|--|--|--| -|Copy()||public void Copy(TextStyle textStyle)| -|GetAlignment()||public TextAnchor GetAlignment(TextAnchor defaultAlignment)| -|GetColor()||public Color GetColor(Color defaultColor)| -|GetFontSize()||public int GetFontSize(ComponentTheme defaultTheme)| -|TextStyle()||public TextStyle() { }| -|TextStyle()||public TextStyle(int fontSize)| -|TextStyle()||public TextStyle(int fontSize, FontStyle fontStyle)| -|TextStyle()||public TextStyle(int fontSize, FontStyle fontStyle, Color color)| -|TextStyle()||public TextStyle(int fontSize, FontStyle fontStyle, Color color, int rorate)| -|UpdateAlignmentByLocation()||public void UpdateAlignmentByLocation(Location location)| +### TextStyle.TextStyle() + +public TextStyle() + +### TextStyle.Copy + +public void Copy(TextStyle textStyle) + +### TextStyle.GetAlignment + +public TextAnchor GetAlignment(TextAnchor defaultAlignment) + +### TextStyle.GetColor + +public Color GetColor(Color defaultColor) + +### TextStyle.GetFontSize + +public int GetFontSize(ComponentTheme defaultTheme) + +### TextStyle.TextStyle + +public TextStyle(int fontSize) + +public TextStyle(int fontSize, FontStyle fontStyle) + +public TextStyle(int fontSize, FontStyle fontStyle, Color color) + +public TextStyle(int fontSize, FontStyle fontStyle, Color color, int rorate) + + +### TextStyle.UpdateAlignmentByLocation + +public void UpdateAlignmentByLocation(Location location) ## Theme -> class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject) +class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject) Theme. -|public method|since|description| -|--|--|--| -|CheckWarning()||public void CheckWarning(StringBuilder sb)| -|CloneTheme()||public Theme CloneTheme()
克隆主题。 | -|CopyTheme()||public bool CopyTheme(ThemeType theme)| -|CopyTheme()||public void CopyTheme(Theme theme)
copy all configurations from theme. | -|GetColor()||public Color32 GetColor(int index)
Gets the color of the specified index from the palette. | -|GetColor()||public static Color32 GetColor(string hexColorStr)
Convert the html string to color. | -|GetColorStr()||public string GetColorStr(int index)
Gets the hexadecimal color string of the specified index from the palette. | -|GetHashCode()||public override int GetHashCode()| -|ResetTheme()||public bool ResetTheme()
Clear all custom configurations. | -|ResetToDarkTheme()||public static void ResetToDarkTheme(Theme theme)
dark theme. | -|ResetToDefaultTheme()||public static void ResetToDefaultTheme(Theme theme)
default theme. | -|SetColorPalette()||public void SetColorPalette(List<string> hexColorStringList)| -|SetDefaultFont()||public void SetDefaultFont()| -|SyncFontToSubComponent()||public void SyncFontToSubComponent()| -|SyncTMPFontToSubComponent()||public void SyncTMPFontToSubComponent()| +### Theme.axis + +public AxisTheme axis + +### Theme.colorPalette + +public List<Color32> colorPalette +The color list of palette. If no color is set in series, the colors would be adopted sequentially and circularly from this list as the colors of series. + +### Theme.common + +public ComponentTheme common + +### Theme.dataZoom + +public DataZoomTheme dataZoom + +### Theme.legend + +public LegendTheme legend + +### Theme.serie + +public SerieTheme serie + +### Theme.subTitle + +public SubTitleTheme subTitle + +### Theme.title + +public TitleTheme title + +### Theme.tooltip + +public TooltipTheme tooltip + +### Theme.visualMap + +public VisualMapTheme visualMap + +### Theme.CheckWarning + +public void CheckWarning(StringBuilder sb) + +### Theme.CloneTheme + +public Theme CloneTheme() +克隆主题。 + +### Theme.CopyTheme + +public void CopyTheme(Theme theme) +copy all configurations from theme. + + +### Theme.GetColor + +public static Color32 GetColor(string hexColorStr) +Convert the html string to color. + + +### Theme.GetColorStr + +public string GetColorStr(int index) +Gets the hexadecimal color string of the specified index from the palette. + +### Theme.GetHashCode + +public override int GetHashCode() + +### Theme.ResetTheme + +public bool ResetTheme() +Clear all custom configurations. + +### Theme.ResetToDarkTheme + +public static void ResetToDarkTheme(Theme theme) +dark theme. + +### Theme.ResetToDefaultTheme + +public static void ResetToDefaultTheme(Theme theme) +default theme. + +### Theme.SetColorPalette + +public void SetColorPalette(List<string> hexColorStringList) + +### Theme.SetDefaultFont + +public void SetDefaultFont() + +### Theme.SyncFontToSubComponent + +public void SyncFontToSubComponent() + +### Theme.SyncTMPFontToSubComponent + +public void SyncTMPFontToSubComponent() ## ThemeStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) Theme. -|public method|since|description| -|--|--|--| -|CheckWarning()||public void CheckWarning(StringBuilder sb)| -|GetBackgroundColor()||public Color32 GetBackgroundColor(Background background)| -|GetColor()||public Color32 GetColor(int index)
Gets the color of the specified index from the palette. | -|GetColor()||public static Color32 GetColor(string hexColorStr)
Convert the html string to color. | -|GetColorStr()||public string GetColorStr(int index)
Gets the hexadecimal color string of the specified index from the palette. | -|SyncSharedThemeColorToCustom()||public void SyncSharedThemeColorToCustom()| +### ThemeStyle.axis + +public AxisTheme axis + +### ThemeStyle.common + +public ComponentTheme common + +### ThemeStyle.customColorPalette + +public List<Color32> customColorPalette + +### ThemeStyle.dataZoom + +public DataZoomTheme dataZoom + +### ThemeStyle.legend + +public LegendTheme legend + +### ThemeStyle.serie + +public SerieTheme serie + +### ThemeStyle.show + +public bool show + +### ThemeStyle.subTitle + +public SubTitleTheme subTitle + +### ThemeStyle.title + +public TitleTheme title + +### ThemeStyle.tooltip + +public TooltipTheme tooltip + +### ThemeStyle.visualMap + +public VisualMapTheme visualMap + +### ThemeStyle.CheckWarning + +public void CheckWarning(StringBuilder sb) + +### ThemeStyle.GetBackgroundColor + +public Color32 GetBackgroundColor(Background background) + +### ThemeStyle.GetColor + +public static Color32 GetColor(string hexColorStr) +Convert the html string to color. + + +### ThemeStyle.GetColorStr + +public string GetColorStr(int index) +Gets the hexadecimal color string of the specified index from the palette. + +### ThemeStyle.SyncSharedThemeColorToCustom + +public void SyncSharedThemeColorToCustom() + +## ThemeType + +class in XCharts.Runtime + +主题 + +Options: + +- `Default`: 默认主题。 +- `Light`: 亮主题。 +- `Dark`: 暗主题。 +- `Custom`: 自定义主题。 ## Title -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) Title component, including main title and subtitle. -|public method|since|description| -|--|--|--| -|ClearComponentDirty()||public override void ClearComponentDirty()| -|OnChanged()||public void OnChanged()| +### Title.show + +public bool show +[default:true] Set this to false to prevent the title from showing. + +### Title.text + +public string text +The main title text, supporting \n for newlines. + +### Title.vertsDirty + +public override bool vertsDirty + +### Title.ClearComponentDirty + +public override void ClearComponentDirty() + +### Title.OnChanged + +public void OnChanged() ## TitleStyle -> class in XCharts.Runtime / Inherits from: [LabelStyle](#labelstyle),[ISerieDataComponent](#iseriedatacomponent),[ISerieComponent](#iseriecomponent) +class in XCharts.Runtime / Inherits from: [LabelStyle](#labelstyle),[ISerieDataComponent](#iseriedatacomponent),[ISerieComponent](#iseriecomponent) the title of serie. ## TitleTheme -> class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +### TitleTheme.TitleTheme -|public method|since|description| -|--|--|--| -|TitleTheme()||public TitleTheme(ThemeType theme) : base(theme)| +public TitleTheme(ThemeType theme) : base(theme) ## Tooltip -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) Tooltip component. -|public method|since|description| -|--|--|--| -|onClickIndex||public System.Action<int> onClickIndex
the callback of tooltip click index. | -|AddSerieDataIndex()||public void AddSerieDataIndex(int serieIndex, int dataIndex)| -|ClearComponentDirty()||public override void ClearComponentDirty()| -|ClearData()||public override void ClearData()| -|ClearSerieDataIndex()||public void ClearSerieDataIndex()| -|GetContentLabelStyle()||public LabelStyle GetContentLabelStyle(int index)| -|IsActive()||public bool IsActive()
提示框是否显示 | -|isAnySerieDataIndex()||public bool isAnySerieDataIndex()| -|IsSelected()||public bool IsSelected()
当前提示框是否选中数据项 | -|IsSelected()||public bool IsSelected(int index)
指定索引的数据项是否被提示框选中 | -|IsTriggerAxis()||public bool IsTriggerAxis()| -|IsTriggerItem()||public bool IsTriggerItem()| -|KeepTop()||public void KeepTop()
Keep Tooltiop displayed at the top. | -|SetActive()||public void SetActive(bool flag)
设置Tooltip组件是否显示 | -|SetContentActive()||public void SetContentActive(bool flag)
设置文本框是否显示 | -|UpdateContentPos()||public void UpdateContentPos(Vector2 pos, float width, float height)
更新文本框位置 | +### Tooltip.alwayShowContent + +public bool alwayShowContent +Whether to trigger after always display. + +### Tooltip.backgroundColor + +public Color backgroundColor +The background color of tooltip. + +### Tooltip.backgroundImage + +public Sprite backgroundImage +The background image of tooltip. + +### Tooltip.backgroundType + +public Image.Type backgroundType +The background type of tooltip. + +### Tooltip.fixedHeight + +public float fixedHeight +Fixed height. Higher priority than minHeight. + +### Tooltip.fixedWidth + +public float fixedWidth +Fixed width. Higher priority than minWidth. + +### Tooltip.ignoreDataDefaultContent + +public string ignoreDataDefaultContent +The default display character information for ignored data. + +### Tooltip.ignoreDataShow + +public bool ignoreDataShow +Whether to show ignored data on tooltip. + +### Tooltip.itemFormatter + +public string itemFormatter +a string template formatter for a single Serie or data item content. Support for wrapping lines with \n. 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.
{e} is the name of the data item serieData that is currently indicated or whose index is 0.
{f} is sum of data.
{y} is category value of y axis.
{.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).
{d:0.##} indicates that a formatted string with a value specified separately is 0.## (used for percentage, reserved 2 valid digits while avoiding the situation similar to "100.00%" when using f2 ).
Example: "{a}, {c}", "{a1}, {c1: f1}", "{a1}, {c1:0: f1}", "{a1} : {c1:1-1: f1}"
+ +### Tooltip.marker + +public string marker +the marker of serie. + +### Tooltip.minHeight + +public float minHeight +Minimum height. If fixedHeight has a value, take priority over fixedHeight. + +### Tooltip.minWidth + +public float minWidth +Minimum width. If fixedWidth has a value, get fixedWidth first. + +### Tooltip.offset + +public Vector2 offset +The position offset of tooltip relative to the mouse position. + +### Tooltip.onClickIndex + +public System.Action<int> onClickIndex +the callback of tooltip click index. + +### Tooltip.paddingLeftRight + +public int paddingLeftRight +the text padding of left and right. defaut:5. + +### Tooltip.paddingTopBottom + +public int paddingTopBottom +the text padding of top and bottom. defaut:5. + +### Tooltip.runtimeDataIndex + +public List<int> runtimeDataIndex +The data index currently indicated by Tooltip. + +### Tooltip.showContent + +public bool showContent +Whether to show the tooltip floating layer, whose default value is true. It should be configurated to be false, if you only need tooltip to trigger the event or show the axisPointer without content. + +### Tooltip.titleFormatter + +public string titleFormatter +String template formatter for tooltip title content. \n line wrapping is supported. The placeholder {i} can be set separately to indicate that title is ignored and not displayed. Template variables are {.}, {a}, {b}, {c}, {d}, {e}, {f}, and {g}.
{.} is the dot of the corresponding color of serie currently indicated or index 0.
{a} is the series name name of serie currently indicated or index 0.
{b} is the name of the serie data item serieData currently indicated or index 0, or the category value (such as the X-axis of a line chart).
{c} is the value of the serie y-dimension (dimesion is 1) currently indicated or index is 0.
{d} is the serie y-dimensional (dimesion 1) percentage value of the currently indicated or index 0, note without the % sign.
{e} is the name of the serie data item serieData currently indicated or whose index is 0.
{h} is the hexadecimal color value of serieData for the serie data item currently indicated or index 0.
{f} is the sum of data.
{g} indicates the total number of data.
{y} is category value of y axis.
{.1} represents a dot of the corresponding color with serie specified as index 1.
The 1 in {a1}, {b1}, {c1} represents serie where index is specified as 1.
{c1:2} represents the third data of the current indicator data item in serie with index 1 (one data item has multiple data, index 2 represents the third data).
{c1:2-2} represents the third data of serie third data item with index 1 (that is, the number of data items must be specified when specifying the number of data items).
{d1:2:f2} indicates that a format string with a single value is f2 (numericFormatter is used if no value is specified).
{d:0.##} indicates that the format string with a value specified alone is 0.## # (for percentages, preserving a 2-digit significant number while avoiding the "100.00%" situation with f2).
example: "{a}, {c}", "{a1}, {c1: f1}", "{a1}, {c1:0: f1}", "{a1}, {c1:1-1: f1}" + +### Tooltip.AddSerieDataIndex + +public void AddSerieDataIndex(int serieIndex, int dataIndex) + +### Tooltip.ClearComponentDirty + +public override void ClearComponentDirty() + +### Tooltip.ClearData + +public override void ClearData() + +### Tooltip.ClearSerieDataIndex + +public void ClearSerieDataIndex() + +### Tooltip.GetContentLabelStyle + +public LabelStyle GetContentLabelStyle(int index) + +### Tooltip.IsActive + +public bool IsActive() +提示框是否显示 + +### Tooltip.isAnySerieDataIndex + +public bool isAnySerieDataIndex() + +### Tooltip.IsSelected + +public bool IsSelected(int index) +指定索引的数据项是否被提示框选中 + + +### Tooltip.IsTriggerAxis + +public bool IsTriggerAxis() + +### Tooltip.IsTriggerItem + +public bool IsTriggerItem() + +### Tooltip.KeepTop + +public void KeepTop() +Keep Tooltiop displayed at the top. + +### Tooltip.SetActive + +public void SetActive(bool flag) +设置Tooltip组件是否显示 + +### Tooltip.SetContentActive + +public void SetContentActive(bool flag) +设置文本框是否显示 + +### Tooltip.UpdateContentPos + +public void UpdateContentPos(Vector2 pos, float width, float height) +更新文本框位置 + +## Tooltip.Position + +class in XCharts.Runtime + +Position type. + +Options: + +- `Auto`: Auto. The mobile platform is displayed at the top, and the non-mobile platform follows the mouse position. +- `Custom`: Custom. Fully customize display position (x,y). +- `FixedX`: Just fix the coordinate X. Y follows the mouse position. +- `FixedY`: + +## Tooltip.Trigger + +class in XCharts.Runtime + +Trigger strategy. + +Options: + +- `Item`: Triggered by data item, which is mainly used for charts that don't have a category axis like scatter charts or pie charts. +- `Axis`: Triggered by axes, which is mainly used for charts that have category axes, like bar charts or line charts. +- `None`: Trigger nothing. +- `Auto`: Auto select trigger according to serie type. + +## Tooltip.TriggerOn + +class in XCharts.Runtime + +the condition of trigger tooltip. + +Options: + +- `MouseMove`: Trigger when mouse move. +- `Click`: Trigger when mouse click. + +## Tooltip.Type + +class in XCharts.Runtime + +Indicator type. + +Options: + +- `Line`: line indicator. +- `Shadow`: shadow crosshair indicator. +- `None`: no indicator displayed. +- `Cross`: crosshair indicator, which is actually the shortcut of enable two axisPointers of two orthometric axes. +- `Auto`: Auto select indicator according to serie type. ## TooltipContext -> class in XCharts.Runtime - +class in XCharts.Runtime ## TooltipData -> class in XCharts.Runtime - +class in XCharts.Runtime ## TooltipHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### TooltipHelper.GetItemNumericFormatter -|public method|since|description| -|--|--|--| -|GetItemNumericFormatter()||public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData)| -|GetLineColor()||public static Color32 GetLineColor(Tooltip tooltip, Color32 defaultColor)| -|IsIgnoreFormatter()||public static bool IsIgnoreFormatter(string itemFormatter)| -|LimitInRect()||public static void LimitInRect(Tooltip tooltip, Rect chartRect)| +public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData) + +### TooltipHelper.GetLineColor + +public static Color32 GetLineColor(Tooltip tooltip, Color32 defaultColor) + +### TooltipHelper.IsIgnoreFormatter + +public static bool IsIgnoreFormatter(string itemFormatter) + +### TooltipHelper.LimitInRect + +public static void LimitInRect(Tooltip tooltip, Rect chartRect) ## TooltipTheme -> class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +### TooltipTheme.Copy -|public method|since|description| -|--|--|--| -|Copy()||public void Copy(TooltipTheme theme)| -|TooltipTheme()||public TooltipTheme(ThemeType theme) : base(theme)| +public void Copy(TooltipTheme theme) + +### TooltipTheme.TooltipTheme + +public TooltipTheme(ThemeType theme) : base(theme) ## TooltipView -> class in XCharts.Runtime +class in XCharts.Runtime +### TooltipView.CreateView -|public method|since|description| -|--|--|--| -|CreateView()||public static TooltipView CreateView(Tooltip tooltip, ThemeStyle theme, Transform parent)| -|GetCurrentPos()||public Vector3 GetCurrentPos()| -|GetTargetPos()||public Vector3 GetTargetPos()| -|Refresh()||public void Refresh()| -|SetActive()||public void SetActive(bool flag)| -|Update()||public void Update()| -|UpdatePosition()||public void UpdatePosition(Vector3 pos)| +public static TooltipView CreateView(Tooltip tooltip, ThemeStyle theme, Transform parent) + +### TooltipView.GetCurrentPos + +public Vector3 GetCurrentPos() + +### TooltipView.GetTargetPos + +public Vector3 GetTargetPos() + +### TooltipView.Refresh + +public void Refresh() + +### TooltipView.SetActive + +public void SetActive(bool flag) + +### TooltipView.Update + +public void Update() + +### TooltipView.UpdatePosition + +public void UpdatePosition(Vector3 pos) ## TooltipViewItem -> class in XCharts.Runtime - +class in XCharts.Runtime ## UGL -> class in XUGL +class in XUGL UGUI Graphics Library. -|public method|since|description| -|--|--|--| -|DrawDiamond()||public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color)
Draw a diamond. 画菱形(钻石形状) | -|DrawDiamond()||public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color, Color32 toColor)
Draw a diamond. 画菱形(钻石形状) | -|DrawDiamond()||public static void DrawDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, Color32 color, Color32 toColor)| -|DrawEllipse()||public static void DrawEllipse(VertexHelper vh, Vector3 center, float w, float h, Color32 color, float smoothness = 1)| -|DrawEmptyDiamond()||public static void DrawEmptyDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, float tickness, Color32 color)| -|DrawEmptyDiamond()||public static void DrawEmptyDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, float tickness, Color32 color, Color32 emptyColor)| -|DrawEmptyTriangle()||public static void DrawEmptyTriangle(VertexHelper vh, Vector3 pos, float size, float tickness, Color32 color)| -|DrawEmptyTriangle()||public static void DrawEmptyTriangle(VertexHelper vh, Vector3 pos, float size, float tickness, Color32 color, Color32 backgroundColor)| -|DrawLine()||public static void DrawLine(VertexHelper vh, List<Vector3> points, float width, Color32 color, bool smooth, bool closepath = false)| -|DrawLine()||public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color)
Draw a line. 画直线 | -|DrawLine()||public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color, Color32 toColor)
Draw a line. 画直线 | -|DrawMinus()||public static void DrawMinus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color)
Draw minus sign. | -|DrawPlus()||public static void DrawPlus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color)
Draw plus sign. | -|DrawPolygon()||public static void DrawPolygon(VertexHelper vh, List<Vector3> points, Color32 color)
填充任意多边形(目前只支持凸多边形) | -|DrawRectangle()||public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color)| -|DrawRectangle()||public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color, Color32 toColor)| -|DrawRectangle()||public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color)| -|DrawRectangle()||public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color, Color32 toColor)| -|DrawRectangle()||public static void DrawRectangle(VertexHelper vh, Vector3 p1, Vector3 p2, float radius, Color32 color)
Draw a rectangle. 画带长方形 | -|DrawSquare()||public static void DrawSquare(VertexHelper vh, Vector3 center, float radius, Color32 color)
Draw a square. 画正方形 | -|DrawSvgPath()||public static void DrawSvgPath(VertexHelper vh, string path)| -|DrawTriangle()||public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color)| -|DrawTriangle()||public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color, Color32 toColor)| +### UGL.DrawDiamond + +public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color, Color32 toColor) +Draw a diamond. 画菱形(钻石形状) + +public static void DrawDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, Color32 color, Color32 toColor) + + +### UGL.DrawEllipse + +public static void DrawEllipse(VertexHelper vh, Vector3 center, float w, float h, Color32 color, float smoothness = 1) + +### UGL.DrawEmptyDiamond + +public static void DrawEmptyDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, float tickness, Color32 color, Color32 emptyColor) + + +### UGL.DrawEmptyTriangle + +public static void DrawEmptyTriangle(VertexHelper vh, Vector3 pos, float size, float tickness, Color32 color, Color32 backgroundColor) + + +### UGL.DrawLine + +public static void DrawLine(VertexHelper vh, List<Vector3> points, float width, Color32 color, bool smooth, bool closepath = false) + +public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color, Color32 toColor) +Draw a line. 画直线 + + +### UGL.DrawMinus + +public static void DrawMinus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color) +Draw minus sign. + +### UGL.DrawPlus + +public static void DrawPlus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color) +Draw plus sign. + +### UGL.DrawPolygon + +public static void DrawPolygon(VertexHelper vh, List<Vector3> points, Color32 color) +填充任意多边形(目前只支持凸多边形) + +### UGL.DrawRectangle + +public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color) + +public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color, Color32 toColor) + +public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color) + +public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color, Color32 toColor) + + +### UGL.DrawSquare + +public static void DrawSquare(VertexHelper vh, Vector3 center, float radius, Color32 color) +Draw a square. 画正方形 + +### UGL.DrawSvgPath + +public static void DrawSvgPath(VertexHelper vh, string path) + +### UGL.DrawTriangle + +public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color, Color32 toColor) + + +## UGL.Direction + +class in XUGL + +曲线方向 + +Options: + +- `XAxis`: 沿X轴方向 +- `YAxis`: 沿Y轴方向 +- `Random`: 随机无序的。如一个闭合的环状曲线。 ## UGLExample -> class in XUGL / Inherits from: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic) - +class in XUGL / Inherits from: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic) ## UGLHelper -> class in XUGL +class in XUGL + +### UGLHelper.GetAngle360 + +public static float GetAngle360(Vector2 from, Vector2 to) +获得0-360的角度(12点钟方向为0度) + +### UGLHelper.GetBezier + +public static Vector3 GetBezier(float t, Vector3 sp, Vector3 cp, Vector3 ep) + +### UGLHelper.GetBezier2 + +public static Vector3 GetBezier2(float t, Vector3 sp, Vector3 p1, Vector3 p2, Vector3 ep) + +### UGLHelper.GetBezierList + +public static List<Vector3> GetBezierList(Vector3 sp, Vector3 ep, int segment, Vector3 cp) + +### UGLHelper.GetDire + +public static Vector3 GetDire(float angle, bool isDegree = false) + +### UGLHelper.GetIntersection + +public static bool GetIntersection(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, ref List<Vector3> intersection) +获得两直线的交点 -|public method|since|description| -|--|--|--| -|GetAngle360()||public static float GetAngle360(Vector2 from, Vector2 to)
获得0-360的角度(12点钟方向为0度) | -|GetBezier()||public static Vector3 GetBezier(float t, Vector3 sp, Vector3 cp, Vector3 ep)| -|GetBezier2()||public static Vector3 GetBezier2(float t, Vector3 sp, Vector3 p1, Vector3 p2, Vector3 ep)| -|GetBezierList()||public static List<Vector3> GetBezierList(Vector3 sp, Vector3 ep, int segment, Vector3 cp)| -|GetDire()||public static Vector3 GetDire(float angle, bool isDegree = false)| -|GetIntersection()||public static bool GetIntersection(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, ref List<Vector3> intersection)
获得两直线的交点 | -|GetIntersection()||public static bool GetIntersection(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, ref Vector3 intersection)
获得两直线的交点 | -|GetPos()||public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)| -|GetVertialDire()||public static Vector3 GetVertialDire(Vector3 dire)| -|IsClearColor()||public static bool IsClearColor(Color color)| -|IsClearColor()||public static bool IsClearColor(Color32 color)| -|IsPointInPolygon()||public static bool IsPointInPolygon(Vector3 p, List<Vector2> polyons)| -|IsPointInPolygon()||public static bool IsPointInPolygon(Vector3 p, List<Vector3> polyons)| -|IsPointInPolygon()||public static bool IsPointInPolygon(Vector3 p, params Vector3[] polyons)| -|IsPointInTriangle()||public static bool IsPointInTriangle(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 check)| -|IsValueEqualsColor()||public static bool IsValueEqualsColor(Color color1, Color color2)| -|IsValueEqualsColor()||public static bool IsValueEqualsColor(Color32 color1, Color32 color2)| -|IsValueEqualsList<T>()||public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2)| -|IsValueEqualsString()||public static bool IsValueEqualsString(string str1, string str2)| -|IsValueEqualsVector2()||public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)| -|IsValueEqualsVector3()||public static bool IsValueEqualsVector3(Vector3 v1, Vector2 v2)| -|IsValueEqualsVector3()||public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2)| -|IsZeroVector()||public static bool IsZeroVector(Vector3 pos)| -|RotateRound()||public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)| +### UGLHelper.GetPos + +public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false) + +### UGLHelper.GetVertialDire + +public static Vector3 GetVertialDire(Vector3 dire) + +### UGLHelper.IsClearColor + +public static bool IsClearColor(Color color) + + +### UGLHelper.IsPointInPolygon + +public static bool IsPointInPolygon(Vector3 p, List<Vector2> polyons) + +public static bool IsPointInPolygon(Vector3 p, params Vector3[] polyons) + + +### UGLHelper.IsPointInTriangle + +public static bool IsPointInTriangle(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 check) + +### UGLHelper.IsValueEqualsColor + +public static bool IsValueEqualsColor(Color color1, Color color2) + + +### UGLHelper.IsValueEqualsList<T> + +public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2) + +### UGLHelper.IsValueEqualsString + +public static bool IsValueEqualsString(string str1, string str2) + +### UGLHelper.IsValueEqualsVector2 + +public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2) + +### UGLHelper.IsValueEqualsVector3 + +public static bool IsValueEqualsVector3(Vector3 v1, Vector2 v2) + + +### UGLHelper.IsZeroVector + +public static bool IsZeroVector(Vector3 pos) + +### UGLHelper.RotateRound + +public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle) ## UIComponent -> class in XCharts.Runtime / Inherits from: [BaseGraph](#basegraph) +class in XCharts.Runtime / Inherits from: [BaseGraph](#basegraph) UI组件基类。 -|public method|since|description| -|--|--|--| -|SetAllDirty()||public override void SetAllDirty()| -|SetDataDirty()|v3.9.0|public void SetDataDirty()| -|SetVerticesDirty()||public override void SetVerticesDirty()| -|UpdateTheme()||public bool UpdateTheme(ThemeType theme)
Update chart theme. | +### UIComponent.background + +public Background background +背景样式。 + +### UIComponent.chartHideFlags + +public override HideFlags chartHideFlags + +### UIComponent.theme + +public UIComponentTheme theme + +### UIComponent.SetAllDirty + +public override void SetAllDirty() + +### UIComponent.SetDataDirty + +public void SetDataDirty() + +> Since `v3.9.0` + + +### UIComponent.SetVerticesDirty + +public override void SetVerticesDirty() + +### UIComponent.UpdateTheme + +public bool UpdateTheme(ThemeType theme) +Update chart theme. ## UIComponentTheme -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +### UIComponentTheme.show -|public method|since|description| -|--|--|--| -|GetBackgroundColor()||public Color32 GetBackgroundColor(Background background)| +public bool show + +### UIComponentTheme.GetBackgroundColor + +public Color32 GetBackgroundColor(Background background) ## UIHelper -> class in XCharts.Runtime +class in XCharts.Runtime UI帮助类。 ## ViewControl -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) > Since `v3.11.0` @@ -3358,218 +9093,620 @@ View control component in 3D coordinate system. ## VisualMap -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) VisualMap component. Mapping data to visual elements such as colors. -|public method|since|description| -|--|--|--| -|AddColors()||public void AddColors(List<Color32> colors)| -|AddColors()||public void AddColors(List<string> colors)| -|ClearComponentDirty()||public override void ClearComponentDirty()| -|ClearVerticesDirty()||public override void ClearVerticesDirty()| -|GetColor()||public Color32 GetColor(double value)| -|GetColor()||public Color32 GetColor(double xValue, double yValue, double zValue, byte alpha = 255)| -|GetIndex()||public int GetIndex(double value)| -|GetValue()||public double GetValue(Vector3 pos, Rect chartRect)| -|IsInRangeMaxRect()||public bool IsInRangeMaxRect(Vector3 local, Rect chartRect, float triangleLen)| -|IsInRangeMinRect()||public bool IsInRangeMinRect(Vector3 local, Rect chartRect, float triangleLen)| -|IsInRangeRect()||public bool IsInRangeRect(Vector3 local, Rect chartRect)| -|IsInRect()||public bool IsInRect(Vector3 local, Rect chartRect, float triangleLen = 20)| -|IsInSelectedValue()||public bool IsInSelectedValue(double value)| -|IsPiecewise()||public bool IsPiecewise()| +### VisualMap.range + +public double[] range +Specifies the position of the numeric value corresponding to the handle. Range should be within the range of [min,max]. + +### VisualMap.runtimeRangeMaxHeight + +public float runtimeRangeMaxHeight + +### VisualMap.runtimeRangeMinHeight + +public float runtimeRangeMinHeight + +### VisualMap.text + +public string[] text +Text on both ends. + +### VisualMap.textGap + +public float[] textGap +The distance between the two text bodies. + +### VisualMap.vertsDirty + +public override bool vertsDirty + +### VisualMap.AddColors + +public void AddColors(List<string> colors) + + +### VisualMap.ClearComponentDirty + +public override void ClearComponentDirty() + +### VisualMap.ClearVerticesDirty + +public override void ClearVerticesDirty() + +### VisualMap.GetColor + +public Color32 GetColor(double value) + + +### VisualMap.GetIndex + +public int GetIndex(double value) + +### VisualMap.GetValue + +public double GetValue(Vector3 pos, Rect chartRect) + +### VisualMap.IsInRangeMaxRect + +public bool IsInRangeMaxRect(Vector3 local, Rect chartRect, float triangleLen) + +### VisualMap.IsInRangeMinRect + +public bool IsInRangeMinRect(Vector3 local, Rect chartRect, float triangleLen) + +### VisualMap.IsInRangeRect + +public bool IsInRangeRect(Vector3 local, Rect chartRect) + +### VisualMap.IsInRect + +public bool IsInRect(Vector3 local, Rect chartRect, float triangleLen = 20) + +### VisualMap.IsInSelectedValue + +public bool IsInSelectedValue(double value) + +### VisualMap.IsPiecewise + +public bool IsPiecewise() + +## VisualMap.SelectedMode + +class in XCharts.Runtime + +选择模式 + +Options: + +- `Multiple`: 多选。 +- `Single`: 单选。 + +## VisualMap.Type + +class in XCharts.Runtime + +类型。分为连续型和分段型。 + +Options: + +- `Continuous`: 连续型。 +- `Piecewise`: 分段型。 ## VisualMapContext -> class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) +class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentcontext) +### VisualMapContext.max + +public double max + +### VisualMapContext.maxDrag + +public bool maxDrag + +### VisualMapContext.min + +public double min + +### VisualMapContext.minDrag + +public bool minDrag + +### VisualMapContext.pointerIndex + +public int pointerIndex +鼠标悬停选中的index + +### VisualMapContext.pointerValue + +public double pointerValue ## VisualMapHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### VisualMapHelper.AutoSetLineMinMax -|public method|since|description| -|--|--|--| -|AutoSetLineMinMax()||public static void AutoSetLineMinMax(VisualMap visualMap, Serie serie, bool isY, Axis axis, Axis relativedAxis)| -|GetDimension()||public static int GetDimension(VisualMap visualMap, int defaultDimension)| -|IsNeedAreaGradient()||public static bool IsNeedAreaGradient(VisualMap visualMap)| -|IsNeedGradient()||public static bool IsNeedGradient(VisualMap visualMap)| -|IsNeedLineGradient()||public static bool IsNeedLineGradient(VisualMap visualMap)| -|SetMinMax()||public static void SetMinMax(VisualMap visualMap, double min, double max)| +public static void AutoSetLineMinMax(VisualMap visualMap, Serie serie, bool isY, Axis axis, Axis relativedAxis) + +### VisualMapHelper.GetDimension + +public static int GetDimension(VisualMap visualMap, int defaultDimension) + +### VisualMapHelper.IsNeedAreaGradient + +public static bool IsNeedAreaGradient(VisualMap visualMap) + +### VisualMapHelper.IsNeedGradient + +public static bool IsNeedGradient(VisualMap visualMap) + +### VisualMapHelper.IsNeedLineGradient + +public static bool IsNeedLineGradient(VisualMap visualMap) + +### VisualMapHelper.SetMinMax + +public static void SetMinMax(VisualMap visualMap, double min, double max) ## VisualMapRange -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +### VisualMapRange.color -|public method|since|description| -|--|--|--| -|Contains()||public bool Contains(double value, double minMaxRange)| +public Color32 color +颜色 + +### VisualMapRange.label + +public string label +文字描述 + +### VisualMapRange.max + +public double max +范围最大值 + +### VisualMapRange.min + +public double min +范围最小值 + +### VisualMapRange.Contains + +public bool Contains(double value, double minMaxRange) ## VisualMapTheme -> class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +### VisualMapTheme.Copy -|public method|since|description| -|--|--|--| -|Copy()||public void Copy(VisualMapTheme theme)| -|VisualMapTheme()||public VisualMapTheme(ThemeType theme) : base(theme)| +public void Copy(VisualMapTheme theme) + +### VisualMapTheme.VisualMapTheme + +public VisualMapTheme(ThemeType theme) : base(theme) ## Wrapper<T> -> class in XCharts.Runtime - +class in XCharts.Runtime ## XAxis -> class in XCharts.Runtime / Inherits from: [Axis](#axis) +class in XCharts.Runtime / Inherits from: [Axis](#axis) The x axis in cartesian(rectangular) coordinate. -|public method|since|description| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()
The x axis in cartesian(rectangular) coordinate. | +### XAxis.SetDefaultValue + +public override void SetDefaultValue() +The x axis in cartesian(rectangular) coordinate. ## XAxis3D -> class in XCharts.Runtime / Inherits from: [Axis](#axis) +class in XCharts.Runtime / Inherits from: [Axis](#axis) > Since `v3.11.0` The x axis in cartesian(rectangular) coordinate. -|public method|since|description| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()
The x axis in cartesian(rectangular) coordinate. | +### XAxis3D.SetDefaultValue + +public override void SetDefaultValue() +The x axis in cartesian(rectangular) coordinate. ## XChartsMgr -> class in XCharts.Runtime +class in XCharts.Runtime + +### XChartsMgr.fullVersion + +public static string fullVersion + +### XChartsMgr.AddChart + +public static void AddChart(BaseChart chart) + +### XChartsMgr.ContainsChart + +public static bool ContainsChart(BaseChart chart) -|public method|since|description| -|--|--|--| -|AddChart()||public static void AddChart(BaseChart chart)| -|ContainsChart()||public static bool ContainsChart(BaseChart chart)| -|ContainsChart()||public static bool ContainsChart(string chartName)| -|GetChart()||public static BaseChart GetChart(string chartName)| -|GetCharts()||public static List<BaseChart> GetCharts(string chartName)| -|GetPackageFullPath()||public static string GetPackageFullPath()| -|GetRepeatChartNameInfo()||public static string GetRepeatChartNameInfo(BaseChart chart, string chartName)| -|IsRepeatChartName()||public static bool IsRepeatChartName(BaseChart chart, string chartName = null)| -|RemoveAllChartObject()||public static void RemoveAllChartObject()| -|RemoveChart()||public static void RemoveChart(string chartName)| +### XChartsMgr.GetChart + +public static BaseChart GetChart(string chartName) + +### XChartsMgr.GetCharts + +public static List<BaseChart> GetCharts(string chartName) + +### XChartsMgr.GetPackageFullPath + +public static string GetPackageFullPath() + +### XChartsMgr.GetRepeatChartNameInfo + +public static string GetRepeatChartNameInfo(BaseChart chart, string chartName) + +### XChartsMgr.IsRepeatChartName + +public static bool IsRepeatChartName(BaseChart chart, string chartName = null) + +### XChartsMgr.RemoveAllChartObject + +public static void RemoveAllChartObject() + +### XChartsMgr.RemoveChart + +public static void RemoveChart(string chartName) ## XCResourceImporterWindow -> class in XCharts.Runtime / Inherits from: [UnityEditor.EditorWindow](https://docs.unity3d.com/ScriptReference/30_search.html?q=unityeditor.editorwindow) +class in XCharts.Runtime / Inherits from: [UnityEditor.EditorWindow](https://docs.unity3d.com/ScriptReference/30_search.html?q=unityeditoreditorwindow) +### XCResourceImporterWindow.ShowPackageImporterWindow -|public method|since|description| -|--|--|--| -|ShowPackageImporterWindow()||public static void ShowPackageImporterWindow()| +public static void ShowPackageImporterWindow() ## XCResourcesImporter -> class in XCharts.Runtime +class in XCharts.Runtime +### XCResourcesImporter.OnDestroy() -|public method|since|description| -|--|--|--| -|OnDestroy()||public void OnDestroy() { }| -|OnGUI()||public void OnGUI()| -|XCResourcesImporter()||public XCResourcesImporter() { }| +public void OnDestroy() + +### XCResourcesImporter.XCResourcesImporter() + +public XCResourcesImporter() + +### XCResourcesImporter.OnDestroy + +public void OnDestroy() { } + +### XCResourcesImporter.OnGUI + +public void OnGUI() + +### XCResourcesImporter.XCResourcesImporter + +public XCResourcesImporter() { } ## XCSettings -> class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject) +class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject) +### XCSettings.axisLineType -|public method|since|description| -|--|--|--| -|AddCustomTheme()||public static bool AddCustomTheme(Theme theme)| -|ExistAssetFile()||public static bool ExistAssetFile()| -|GetSettingAssetPath()||public static string GetSettingAssetPath()| +public static LineStyle.Type axisLineType + +### XCSettings.axisLineWidth + +public static float axisLineWidth + +### XCSettings.axisSplitLineType + +public static LineStyle.Type axisSplitLineType + +### XCSettings.axisSplitLineWidth + +public static float axisSplitLineWidth + +### XCSettings.axisTickLength + +public static float axisTickLength + +### XCSettings.axisTickWidth + +public static float axisTickWidth + +### XCSettings.cicleSmoothness + +public static float cicleSmoothness + +### XCSettings.customThemes + +public static List<Theme> customThemes + +### XCSettings.dataZoomBorderWidth + +public static float dataZoomBorderWidth + +### XCSettings.dataZoomDataLineWidth + +public static float dataZoomDataLineWidth + +### XCSettings.editorShowAllListData + +public static bool editorShowAllListData + +### XCSettings.font + +public static Font font + +### XCSettings.fontSizeLv1 + +public static int fontSizeLv1 +一级字体大小。 + +### XCSettings.fontSizeLv2 + +public static int fontSizeLv2 + +### XCSettings.fontSizeLv3 + +public static int fontSizeLv3 + +### XCSettings.fontSizeLv4 + +public static int fontSizeLv4 + +### XCSettings.gaugeAxisLineWidth + +public static float gaugeAxisLineWidth + +### XCSettings.gaugeAxisSplitLineLength + +public static float gaugeAxisSplitLineLength + +### XCSettings.gaugeAxisSplitLineWidth + +public static float gaugeAxisSplitLineWidth + +### XCSettings.gaugeAxisTickLength + +public static float gaugeAxisTickLength + +### XCSettings.gaugeAxisTickWidth + +public static float gaugeAxisTickWidth + +### XCSettings.lang + +public static Lang lang + +### XCSettings.lineSegmentDistance + +public static float lineSegmentDistance + +### XCSettings.lineSmoothness + +public static float lineSmoothness + +### XCSettings.lineSmoothStyle + +public static float lineSmoothStyle + +### XCSettings.maxPainter + +public static int maxPainter + +### XCSettings.serieCandlestickBorderWidth + +public static float serieCandlestickBorderWidth + +### XCSettings.serieLineSymbolSize + +public static float serieLineSymbolSize + +### XCSettings.serieLineWidth + +public static float serieLineWidth + +### XCSettings.serieScatterSymbolSize + +public static float serieScatterSymbolSize + +### XCSettings.serieSelectedRate + +public static float serieSelectedRate + +### XCSettings.tmpFont + +public static TMP_FontAsset tmpFont + +### XCSettings.tootipLineWidth + +public static float tootipLineWidth + +### XCSettings.visualMapBorderWidth + +public static float visualMapBorderWidth + +### XCSettings.visualMapTriangeLen + +public static float visualMapTriangeLen + +### XCSettings.AddCustomTheme + +public static bool AddCustomTheme(Theme theme) + +### XCSettings.ExistAssetFile + +public static bool ExistAssetFile() + +### XCSettings.GetSettingAssetPath + +public static string GetSettingAssetPath() ## XCThemeMgr -> class in XCharts.Runtime +class in XCharts.Runtime + +### XCThemeMgr.AddTheme + +public static void AddTheme(Theme theme) + +### XCThemeMgr.CheckReloadTheme + +public static void CheckReloadTheme() + +### XCThemeMgr.ContainsTheme + +public static bool ContainsTheme(string themeName) + +### XCThemeMgr.ExportTheme + +public static bool ExportTheme(Theme theme) -|public method|since|description| -|--|--|--| -|AddTheme()||public static void AddTheme(Theme theme)| -|CheckReloadTheme()||public static void CheckReloadTheme()| -|ContainsTheme()||public static bool ContainsTheme(string themeName)| -|ExportTheme()||public static bool ExportTheme(Theme theme)| -|ExportTheme()||public static bool ExportTheme(Theme theme, string themeNewName)| -|GetAllThemeNames()||public static List<string> GetAllThemeNames()| -|GetTheme()||public static Theme GetTheme(string themeName)| -|GetTheme()||public static Theme GetTheme(ThemeType type)| -|GetThemeAssetPath()||public static string GetThemeAssetPath(string themeName)| -|GetThemeList()||public static List<Theme> GetThemeList()| -|LoadTheme()||public static Theme LoadTheme(string themeName)| -|LoadTheme()||public static Theme LoadTheme(ThemeType type)| -|ReloadThemeList()||public static void ReloadThemeList()
重新加载主题列表 | -|SwitchTheme()||public static void SwitchTheme(BaseChart chart, string themeName)| +### XCThemeMgr.GetAllThemeNames + +public static List<string> GetAllThemeNames() + +### XCThemeMgr.GetTheme + +public static Theme GetTheme(string themeName) + + +### XCThemeMgr.GetThemeAssetPath + +public static string GetThemeAssetPath(string themeName) + +### XCThemeMgr.GetThemeList + +public static List<Theme> GetThemeList() + +### XCThemeMgr.LoadTheme + +public static Theme LoadTheme(string themeName) + + +### XCThemeMgr.ReloadThemeList + +public static void ReloadThemeList() +重新加载主题列表 + +### XCThemeMgr.SwitchTheme + +public static void SwitchTheme(BaseChart chart, string themeName) ## XLog -> class in XCharts.Runtime / Inherits from: [MonoBehaviour](#monobehaviour) +class in XCharts.Runtime / Inherits from: [MonoBehaviour](#monobehaviour) Log system. Used to output logs with date and log type, support output to file, support custom output log type. -|public method|since|description| -|--|--|--| -|CanLog()||public static bool CanLog(int level)| -|ClearAllLog()||public static void ClearAllLog()| -|Debug()||public static void Debug(string log)| -|EnableLog()||public static void EnableLog(int logType)| -|Error()||public static void Error(string log)| -|FlushLog()||public static void FlushLog()| -|GetNowTime()||public static string GetNowTime(string formatter = null)| -|GetTimestamp()||public static ulong GetTimestamp()| -|Info()||public static void Info(string log)| -|Log()||public static void Log(string log)| -|LogError()||public static void LogError(string log)| -|LogWarning()||public static void LogWarning(string log)| -|Proto()||public static void Proto(string log)| -|Vital()||public static void Vital(string log)| -|Warning()||public static void Warning(string log)| +### XLog.CanLog + +public static bool CanLog(int level) + +### XLog.ClearAllLog + +public static void ClearAllLog() + +### XLog.Debug + +public static void Debug(string log) + +### XLog.EnableLog + +public static void EnableLog(int logType) + +### XLog.Error + +public static void Error(string log) + +### XLog.FlushLog + +public static void FlushLog() + +### XLog.GetNowTime + +public static string GetNowTime(string formatter = null) + +### XLog.GetTimestamp + +public static ulong GetTimestamp() + +### XLog.Info + +public static void Info(string log) + +### XLog.Log + +public static void Log(string log) + +### XLog.LogError + +public static void LogError(string log) + +### XLog.LogWarning + +public static void LogWarning(string log) + +### XLog.Proto + +public static void Proto(string log) + +### XLog.Vital + +public static void Vital(string log) + +### XLog.Warning + +public static void Warning(string log) ## YAxis -> class in XCharts.Runtime / Inherits from: [Axis](#axis) +class in XCharts.Runtime / Inherits from: [Axis](#axis) The x axis in cartesian(rectangular) coordinate. -|public method|since|description| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()
The x axis in cartesian(rectangular) coordinate. | +### YAxis.SetDefaultValue + +public override void SetDefaultValue() +The x axis in cartesian(rectangular) coordinate. ## YAxis3D -> class in XCharts.Runtime / Inherits from: [Axis](#axis) +class in XCharts.Runtime / Inherits from: [Axis](#axis) > Since `v3.11.0` The x axis in cartesian(rectangular) coordinate. -|public method|since|description| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()
The x axis in cartesian(rectangular) coordinate. | +### YAxis3D.SetDefaultValue + +public override void SetDefaultValue() +The x axis in cartesian(rectangular) coordinate. ## ZAxis3D -> class in XCharts.Runtime / Inherits from: [Axis](#axis) +class in XCharts.Runtime / Inherits from: [Axis](#axis) > Since `v3.11.0` The x axis in cartesian(rectangular) coordinate. -|public method|since|description| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()
The x axis in cartesian(rectangular) coordinate. | +### ZAxis3D.SetDefaultValue + +public override void SetDefaultValue() +The x axis in cartesian(rectangular) coordinate. diff --git a/Documentation~/en/configuration.md b/Documentation~/en/configuration.md index 630ba945..07f2d833 100644 --- a/Documentation~/en/configuration.md +++ b/Documentation~/en/configuration.md @@ -206,30 +206,22 @@ import APITable from '@site/src/components/APITable'; ## AngleAxis -> class in XCharts.Runtime / Inherits from: [Axis](#axis) +class in XCharts.Runtime / Inherits from: [Axis](#axis) Angle axis of Polar Coordinate. -```mdx-code-block - -``` +### AngleAxis.startAngle - -|field|default|since|comment| -|--|--|--|--| -|startAngle|0||Starting angle of axis. 0 degrees by default, standing for right position of center. - -```mdx-code-block - -``` +`float` `0` +Starting angle of axis. 0 degrees by default, standing for right position of center. ## AngleAxisTheme -> class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) ## AnimationAddition -> class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) > Since `v3.8.0` @@ -237,7 +229,7 @@ Data addition animation. ## AnimationChange -> class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) > Since `v3.8.0` @@ -245,7 +237,7 @@ Data change animation. ## AnimationFadeIn -> class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) > Since `v3.8.0` @@ -253,7 +245,7 @@ Fade in animation. ## AnimationFadeOut -> class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) > Since `v3.8.0` @@ -261,7 +253,7 @@ Fade out animation. ## AnimationHiding -> class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) > Since `v3.8.0` @@ -269,475 +261,804 @@ Data hiding animation. ## AnimationInfo -> class in XCharts.Runtime / Subclasses: [AnimationFadeIn](#animationfadein), [AnimationFadeOut](#animationfadeout), [AnimationChange](#animationchange), [AnimationAddition](#animationaddition), [AnimationHiding](#animationhiding), [AnimationInteraction](#animationinteraction) +class in XCharts.Runtime / Subclasses: [AnimationFadeIn](#animationfadein), [AnimationFadeOut](#animationfadeout), [AnimationChange](#animationchange), [AnimationAddition](#animationaddition), [AnimationHiding](#animationhiding), [AnimationInteraction](#animationinteraction) > Since `v3.8.0` the animation info. -```mdx-code-block - -``` +### AnimationInfo.delay +`float` `0` `v3.8.0` +the delay time before animation start. -|field|default|since|comment| -|--|--|--|--| -|enable|true|v3.8.0|whether enable animation. -|reverse|false|v3.8.0|whether enable reverse animation. -|delay|0|v3.8.0|the delay time before animation start. -|duration|1000|v3.8.0|the duration of animation. +### AnimationInfo.duration -```mdx-code-block - -``` +`float` `1000` `v3.8.0` +the duration of animation. + +### AnimationInfo.enable + +`bool` `true` `v3.8.0` +whether enable animation. + +### AnimationInfo.reverse + +`bool` `false` `v3.8.0` +whether enable reverse animation. ## AnimationInteraction -> class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / Inherits from: [AnimationInfo](#animationinfo) > Since `v3.8.0` Interactive animation of charts. -```mdx-code-block - -``` +### AnimationInteraction.offset +`MLValue` `v3.8.0` +the mlvalue of offset. Such as the offset of the pie chart when the sector is selected. [MLValue](#mlvalue) -|field|default|since|comment| -|--|--|--|--| -|width||v3.8.0|the mlvalue of width. [MLValue](#mlvalue)| -|radius||v3.8.0|the mlvalue of radius. [MLValue](#mlvalue)| -|offset||v3.8.0|the mlvalue of offset. Such as the offset of the pie chart when the sector is selected. [MLValue](#mlvalue)| +### AnimationInteraction.radius -```mdx-code-block - -``` +`MLValue` `v3.8.0` +the mlvalue of radius. [MLValue](#mlvalue) + +### AnimationInteraction.width + +`MLValue` `v3.8.0` +the mlvalue of width. [MLValue](#mlvalue) ## AnimationStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) the animation of serie. support animation type: fadeIn, fadeOut, change, addition. -```mdx-code-block - -``` +### AnimationStyle.addition + +`AnimationAddition` `v3.8.0` +Add data animation configuration. [AnimationAddition](#animationaddition) + +### AnimationStyle.change + +`AnimationChange` `v3.8.0` +Update data animation configuration. [AnimationChange](#animationchange) + +### AnimationStyle.easting + +`AnimationEasing` -|field|default|since|comment| -|--|--|--|--| -|enable|true||Whether to enable animation. -|type|||The type of animation.
`AnimationType`:
- `Default`: he default. An animation playback mode will be selected according to the actual situation.
- `LeftToRight`: Play the animation from left to right.
- `BottomToTop`: Play the animation from bottom to top.
- `InsideOut`: Play animations from the inside out.
- `AlongPath`: Play the animation along the path.
- `Clockwise`: Play the animation clockwise.
| -|easting|||
`AnimationEasing`:
- `Linear`:
| -|threshold|2000||Whether to set graphic number threshold to animation. Animation will be disabled when graphic number is larger than threshold. -|unscaledTime||v3.4.0|Animation updates independently of Time.timeScale. -|fadeIn||v3.8.0|Fade in animation configuration. [AnimationFadeIn](#animationfadein)| -|fadeOut||v3.8.0|Fade out animation configuration. [AnimationFadeOut](#animationfadeout)| -|change||v3.8.0|Update data animation configuration. [AnimationChange](#animationchange)| -|addition||v3.8.0|Add data animation configuration. [AnimationAddition](#animationaddition)| -|hiding||v3.8.0|Data hiding animation configuration. [AnimationHiding](#animationhiding)| -|interaction||v3.8.0|Interaction animation configuration. [AnimationInteraction](#animationinteraction)| +Options: -```mdx-code-block -
-``` +- `Linear`: + +### AnimationStyle.enable + +`bool` `true` +Whether to enable animation. + +### AnimationStyle.fadeIn + +`AnimationFadeIn` `v3.8.0` +Fade in animation configuration. [AnimationFadeIn](#animationfadein) + +### AnimationStyle.fadeOut + +`AnimationFadeOut` `v3.8.0` +Fade out animation configuration. [AnimationFadeOut](#animationfadeout) + +### AnimationStyle.hiding + +`AnimationHiding` `v3.8.0` +Data hiding animation configuration. [AnimationHiding](#animationhiding) + +### AnimationStyle.interaction + +`AnimationInteraction` `v3.8.0` +Interaction animation configuration. [AnimationInteraction](#animationinteraction) + +### AnimationStyle.threshold + +`int` `2000` +Whether to set graphic number threshold to animation. Animation will be disabled when graphic number is larger than threshold. + +### AnimationStyle.type + +`AnimationType` +The type of animation. + +Options: + +- `Default`: he default. An animation playback mode will be selected according to the actual situation. +- `LeftToRight`: Play the animation from left to right. +- `BottomToTop`: Play the animation from bottom to top. +- `InsideOut`: Play animations from the inside out. +- `AlongPath`: Play the animation along the path. +- `Clockwise`: Play the animation clockwise. + +### AnimationStyle.unscaledTime + +`bool` `v3.4.0` +Animation updates independently of Time.timeScale. ## AreaStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) The style of area. -```mdx-code-block - -``` +### AreaStyle.color +`Color32` +the color of area,default use serie color. -|field|default|since|comment| -|--|--|--|--| -|show|true||Set this to false to prevent the areafrom showing. -|origin|||the origin of area.
`AreaStyle.AreaOrigin`:
- `Auto`: to fill between axis line to data.
- `Start`: to fill between min axis value (when not inverse) to data.
- `End`: to fill between max axis value (when not inverse) to data.
| -|color|||the color of area,default use serie color. -|toColor|||Gradient color, start color to toColor. -|opacity|0.6f||Opacity of the component. Supports value from 0 to 1, and the component will not be drawn when set to 0. -|innerFill||v3.2.0|Whether to fill only polygonal areas. Currently, only convex polygons are supported. -|toTop|true|v3.6.0|Whether to fill the gradient color to the top. The default is true, which means that the gradient color is filled to the top. If it is false, the gradient color is filled to the actual position. +### AreaStyle.innerFill -```mdx-code-block -
-``` +`bool` `v3.2.0` +Whether to fill only polygonal areas. Currently, only convex polygons are supported. + +### AreaStyle.opacity + +`float` `0.6f` +Opacity of the component. Supports value from 0 to 1, and the component will not be drawn when set to 0. + +### AreaStyle.origin + +`AreaStyle.AreaOrigin` +the origin of area. + +Options: + +- `Auto`: to fill between axis line to data. +- `Start`: to fill between min axis value (when not inverse) to data. +- `End`: to fill between max axis value (when not inverse) to data. + +### AreaStyle.show + +`bool` `true` +Set this to false to prevent the areafrom showing. + +### AreaStyle.toColor + +`Color32` +Gradient color, start color to toColor. + +### AreaStyle.toTop + +`bool` `true` `v3.6.0` +Whether to fill the gradient color to the top. The default is true, which means that the gradient color is filled to the top. If it is false, the gradient color is filled to the actual position. ## ArrowStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) -```mdx-code-block - -``` +### ArrowStyle.color +`Color32` `Color.clear` +the color of arrow. -|field|default|since|comment| -|--|--|--|--| -|width|10||The widht of arrow. -|height|15||The height of arrow. -|offset|0||The offset of arrow. -|dent|3||The dent of arrow. -|color|Color.clear||the color of arrow. +### ArrowStyle.dent -```mdx-code-block - -``` +`float` `3` +The dent of arrow. + +### ArrowStyle.height + +`float` `15` +The height of arrow. + +### ArrowStyle.offset + +`float` `0` +The offset of arrow. + +### ArrowStyle.width + +`float` `10` +The widht of arrow. ## Axis -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) / Subclasses: [AngleAxis](#angleaxis), [ParallelAxis](#parallelaxis), [RadiusAxis](#radiusaxis), [SingleAxis](#singleaxis), [XAxis](#xaxis), [XAxis3D](#xaxis3d), [YAxis](#yaxis), [YAxis3D](#yaxis3d), [ZAxis3D](#zaxis3d) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) / Subclasses: [AngleAxis](#angleaxis), [ParallelAxis](#parallelaxis), [RadiusAxis](#radiusaxis), [SingleAxis](#singleaxis), [XAxis](#xaxis), [XAxis3D](#xaxis3d), [YAxis](#yaxis), [YAxis3D](#yaxis3d), [ZAxis3D](#zaxis3d) The axis in rectangular coordinate. -```mdx-code-block - -``` +### Axis.animation +`AxisAnimation` +animation of axis. [AxisAnimation](#axisanimation) -|field|default|since|comment| -|--|--|--|--| -|show|true||Whether to show axis. -|type|||the type of axis.
`Axis.AxisType`:
- `Value`: Numerical axis, suitable for continuous data.
- `Category`: Category axis, suitable for discrete category data. Data should only be set via data for this type.
- `Log`: Log axis, suitable for log data.
- `Time`: Time axis, suitable for continuous time series data.
| -|minMaxType|||the type of axis minmax.
`Axis.AxisMinMaxType`:
- `Default`: 0 - maximum.
- `MinMax`: minimum - maximum.
- `Custom`: Customize the minimum and maximum.
- `MinMaxAuto`: [since("v3.7.0")]minimum - maximum, automatically calculate the appropriate values.
| -|gridIndex|||The index of the grid on which the axis are located, by default, is in the first grid. -|polarIndex|||The index of the polar on which the axis are located, by default, is in the first polar. -|parallelIndex|||The index of the parallel on which the axis are located, by default, is in the first parallel. -|position|||the position of axis in grid.
`Axis.AxisPosition`:
- `Left`: the position of axis in grid.
- `Right`: the position of axis in grid.
- `Bottom`: the position of axis in grid.
- `Top`: the position of axis in grid.
- `Center`: the position of axis in grid.
| -|offset|||the offset of axis from the default position. Useful when the same position has multiple axes. -|min|||The minimun value of axis.Valid when `minMaxType` is `Custom` -|max|||The maximum value of axis.Valid when `minMaxType` is `Custom` -|splitNumber|0||Number of segments that the axis is split into. -|interval|0||Compulsively set segmentation interval for axis.This is unavailable for category axis. -|boundaryGap|true||The boundary gap on both sides of a coordinate axis, which is valid only for category axis with type: 'Category'. -|maxCache|0||The max number of axis data cache. -|logBase|10||Base of logarithm, which is valid only for numeric axes with type: 'Log'. -|logBaseE|false||On the log axis, if base e is the natural number, and is true, logBase fails. -|ceilRate|0||The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated. -|inverse|false||Whether the axis are reversed or not. Invalid in `Category` axis. -|clockwise|true||Whether the positive position of axis is in clockwise. True for clockwise by default. -|insertDataToHead|||Whether to add new data at the head or at the end of the list. -|minCategorySpacing|0|v3.11.0|The minimum spacing between categories. -|icons|||类目数据对应的图标。 -|data|||Category data, available in type: 'Category' axis. -|axisLine|||axis Line. [AxisLine](#axisline)| -|axisName|||axis name. [AxisName](#axisname)| -|axisTick|||axis tick. [AxisTick](#axistick)| -|axisLabel|||axis label. [AxisLabel](#axislabel)| -|splitLine|||axis split line. [AxisSplitLine](#axissplitline)| -|splitArea|||axis split area. [AxisSplitArea](#axissplitarea)| -|animation|||animation of axis. [AxisAnimation](#axisanimation)| -|minorTick||v3.2.0|axis minor tick. [AxisMinorTick](#axisminortick)| -|minorSplitLine||v3.2.0|axis minor split line. [AxisMinorSplitLine](#axisminorsplitline)| -|indicatorLabel||v3.4.0|Style of axis tooltip indicator label. [LabelStyle](#labelstyle)| +### Axis.axisLabel -```mdx-code-block -
-``` +`AxisLabel` +axis label. [AxisLabel](#axislabel) + +### Axis.axisLine + +`AxisLine` +axis Line. [AxisLine](#axisline) + +### Axis.axisName + +`AxisName` +axis name. [AxisName](#axisname) + +### Axis.axisTick + +`AxisTick` +axis tick. [AxisTick](#axistick) + +### Axis.boundaryGap + +`bool` `true` +The boundary gap on both sides of a coordinate axis, which is valid only for category axis with type: 'Category'. + +### Axis.ceilRate + +`double` `0` +The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated. + +### Axis.clockwise + +`bool` `true` +Whether the positive position of axis is in clockwise. True for clockwise by default. + +### Axis.data + +`List` +Category data, available in type: 'Category' axis. + +### Axis.gridIndex + +`int` +The index of the grid on which the axis are located, by default, is in the first grid. + +### Axis.icons + +`List` +类目数据对应的图标。 + +### Axis.indicatorLabel + +`LabelStyle` `v3.4.0` +Style of axis tooltip indicator label. [LabelStyle](#labelstyle) + +### Axis.insertDataToHead + +`bool` +Whether to add new data at the head or at the end of the list. + +### Axis.interval + +`double` `0` +Compulsively set segmentation interval for axis.This is unavailable for category axis. + +### Axis.inverse + +`bool` `false` +Whether the axis are reversed or not. Invalid in `Category` axis. + +### Axis.logBase + +`float` `10` +Base of logarithm, which is valid only for numeric axes with type: 'Log'. + +### Axis.logBaseE + +`bool` `false` +On the log axis, if base e is the natural number, and is true, logBase fails. + +### Axis.max + +`double` +The maximum value of axis.Valid when `minMaxType` is `Custom` + +### Axis.maxCache + +`int` `0` +The max number of axis data cache. + +### Axis.min + +`double` +The minimun value of axis.Valid when `minMaxType` is `Custom` + +### Axis.minCategorySpacing + +`float` `0` `v3.11.0` +The minimum spacing between categories. + +### Axis.minMaxType + +`Axis.AxisMinMaxType` +the type of axis minmax. + +Options: + +- `Default`: 0 - maximum. +- `MinMax`: minimum - maximum. +- `Custom`: Customize the minimum and maximum. +- `MinMaxAuto`: [since("v3.7.0")]minimum - maximum, automatically calculate the appropriate values. + +### Axis.minorSplitLine + +`AxisMinorSplitLine` `v3.2.0` +axis minor split line. [AxisMinorSplitLine](#axisminorsplitline) + +### Axis.minorTick + +`AxisMinorTick` `v3.2.0` +axis minor tick. [AxisMinorTick](#axisminortick) + +### Axis.offset + +`float` +the offset of axis from the default position. Useful when the same position has multiple axes. + +### Axis.parallelIndex + +`int` +The index of the parallel on which the axis are located, by default, is in the first parallel. + +### Axis.polarIndex + +`int` +The index of the polar on which the axis are located, by default, is in the first polar. + +### Axis.position + +`Axis.AxisPosition` +the position of axis in grid. + +Options: + +- `Left`: the position of axis in grid. +- `Right`: the position of axis in grid. +- `Bottom`: the position of axis in grid. +- `Top`: the position of axis in grid. +- `Center`: the position of axis in grid. + +### Axis.show + +`bool` `true` +Whether to show axis. + +### Axis.splitArea + +`AxisSplitArea` +axis split area. [AxisSplitArea](#axissplitarea) + +### Axis.splitLine + +`AxisSplitLine` +axis split line. [AxisSplitLine](#axissplitline) + +### Axis.splitNumber + +`int` `0` +Number of segments that the axis is split into. + +### Axis.type + +`Axis.AxisType` +the type of axis. + +Options: + +- `Value`: Numerical axis, suitable for continuous data. +- `Category`: Category axis, suitable for discrete category data. Data should only be set via data for this type. +- `Log`: Log axis, suitable for log data. +- `Time`: Time axis, suitable for continuous time series data. ## AxisAnimation -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) > Since `v3.9.0` animation style of axis. -```mdx-code-block - -``` +### AxisAnimation.duration +`float` +the duration of animation (ms). When it is set to 0, the animation duration will be automatically calculated according to the serie. -|field|default|since|comment| -|--|--|--|--| -|show|true||whether to enable animation. -|duration|||the duration of animation (ms). When it is set to 0, the animation duration will be automatically calculated according to the serie. -|unscaledTime|||Animation updates independently of Time.timeScale. +### AxisAnimation.show -```mdx-code-block - -``` +`bool` `true` +whether to enable animation. + +### AxisAnimation.unscaledTime + +`bool` +Animation updates independently of Time.timeScale. ## AxisLabel -> class in XCharts.Runtime / Inherits from: [LabelStyle](#labelstyle) +class in XCharts.Runtime / Inherits from: [LabelStyle](#labelstyle) Settings related to axis label. -```mdx-code-block - -``` +### AxisLabel.inside +`bool` `false` +Set this to true so the axis labels face the inside direction. -|field|default|since|comment| -|--|--|--|--| -|interval|0||The display interval of the axis label. -|inside|false||Set this to true so the axis labels face the inside direction. -|showAsPositiveNumber|false||Show negative number as positive number. -|onZero|false||刻度标签显示在0刻度上。 -|showStartLabel|true||Whether to display the first label. -|showEndLabel|true||Whether to display the last label. -|textLimit|||文本限制。 [TextLimit](#textlimit)| +### AxisLabel.interval -```mdx-code-block - -``` +`int` `0` +The display interval of the axis label. + +### AxisLabel.onZero + +`bool` `false` +刻度标签显示在0刻度上。 + +### AxisLabel.showAsPositiveNumber + +`bool` `false` +Show negative number as positive number. + +### AxisLabel.showEndLabel + +`bool` `true` +Whether to display the last label. + +### AxisLabel.showStartLabel + +`bool` `true` +Whether to display the first label. + +### AxisLabel.textLimit + +`TextLimit` +文本限制。 [TextLimit](#textlimit) ## AxisLine -> class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) +class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) Settings related to axis line. -```mdx-code-block - -``` +### AxisLine.arrow +`ArrowStyle` +the arrow of line. [ArrowStyle](#arrowstyle) -|field|default|since|comment| -|--|--|--|--| -|onZero|||When mutiple axes exists, this option can be used to specify which axis can be "onZero" to. -|showArrow|||Whether to show the arrow symbol of axis. -|arrow|||the arrow of line. [ArrowStyle](#arrowstyle)| +### AxisLine.onZero -```mdx-code-block - -``` +`bool` +When mutiple axes exists, this option can be used to specify which axis can be "onZero" to. + +### AxisLine.showArrow + +`bool` +Whether to show the arrow symbol of axis. ## AxisMinorSplitLine -> class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) +class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) > Since `v3.2.0` Minor split line of axis in grid area. -```mdx-code-block - -``` +### AxisMinorSplitLine.autoColor +`bool` +auto color. -|field|default|since|comment| -|--|--|--|--| -|distance|||The distance between the split line and axis line. -|autoColor|||auto color. +### AxisMinorSplitLine.distance -```mdx-code-block - -``` +`float` +The distance between the split line and axis line. ## AxisMinorTick -> class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) +class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) > Since `v3.2.0` Settings related to axis minor tick. -```mdx-code-block - -``` +### AxisMinorTick.autoColor +`bool` -|field|default|since|comment| -|--|--|--|--| -|splitNumber|5||Number of segments that the axis is split into. -|autoColor||| +### AxisMinorTick.splitNumber -```mdx-code-block - -``` +`int` `5` +Number of segments that the axis is split into. ## AxisName -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) the name of axis. -```mdx-code-block - -``` +### AxisName.labelStyle +`LabelStyle` +The text style of axis name. [LabelStyle](#labelstyle) -|field|default|since|comment| -|--|--|--|--| -|show|||Whether to show axis name. -|name|||the name of axis. -|onZero||v3.1.0|Whether the axis name position are the same with 0 position of YAxis. -|labelStyle|||The text style of axis name. [LabelStyle](#labelstyle)| +### AxisName.name -```mdx-code-block - -``` +`string` +the name of axis. + +### AxisName.onZero + +`bool` `v3.1.0` +Whether the axis name position are the same with 0 position of YAxis. + +### AxisName.show + +`bool` +Whether to show axis name. ## AxisSplitArea -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) Split area of axis in grid area, not shown by default. -```mdx-code-block - -``` +### AxisSplitArea.color +`List` +Color of split area. SplitArea color could also be set in color array, which the split lines would take as their colors in turns. Dark and light colors in turns are used by default. -|field|default|since|comment| -|--|--|--|--| -|show|||Set this to true to show the splitArea. -|color|||Color of split area. SplitArea color could also be set in color array, which the split lines would take as their colors in turns. Dark and light colors in turns are used by default. +### AxisSplitArea.show -```mdx-code-block - -``` +`bool` +Set this to true to show the splitArea. ## AxisSplitLine -> class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) +class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) Split line of axis in grid area. -```mdx-code-block - -``` +### AxisSplitLine.autoColor +`bool` +auto color. -|field|default|since|comment| -|--|--|--|--| -|interval|||Interval of Axis splitLine. -|distance|||The distance between the split line and axis line. -|autoColor|||auto color. -|showStartLine|true|v3.3.0|Whether to show the first split line. -|showEndLine|true|v3.3.0|Whether to show the last split line. -|showZLine|true|v3.11.0|Whether to show the Z axis part of the split line. Generally used for 3D coordinate systems. +### AxisSplitLine.distance -```mdx-code-block - -``` +`float` +The distance between the split line and axis line. + +### AxisSplitLine.interval + +`int` +Interval of Axis splitLine. + +### AxisSplitLine.showEndLine + +`bool` `true` `v3.3.0` +Whether to show the last split line. + +### AxisSplitLine.showStartLine + +`bool` `true` `v3.3.0` +Whether to show the first split line. + +### AxisSplitLine.showZLine + +`bool` `true` `v3.11.0` +Whether to show the Z axis part of the split line. Generally used for 3D coordinate systems. ## AxisTheme -> class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) ## AxisTick -> class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) +class in XCharts.Runtime / Inherits from: [BaseLine](#baseline) Settings related to axis tick. -```mdx-code-block - -``` +### AxisTick.alignWithLabel +`bool` +Align axis tick with label, which is available only when boundaryGap is set to be true in category axis. -|field|default|since|comment| -|--|--|--|--| -|alignWithLabel|||Align axis tick with label, which is available only when boundaryGap is set to be true in category axis. -|inside|||Set this to true so the axis labels face the inside direction. -|showStartTick|||Whether to display the first tick. -|showEndTick|||Whether to display the last tick. -|distance|||The distance between the tick line and axis line. -|splitNumber|0||Number of segments that the axis is split into. -|autoColor||| +### AxisTick.autoColor -```mdx-code-block - -``` +`bool` + +### AxisTick.distance + +`float` +The distance between the tick line and axis line. + +### AxisTick.inside + +`bool` +Set this to true so the axis labels face the inside direction. + +### AxisTick.showEndTick + +`bool` +Whether to display the last tick. + +### AxisTick.showStartTick + +`bool` +Whether to display the first tick. + +### AxisTick.splitNumber + +`int` `0` +Number of segments that the axis is split into. ## Background -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) Background component. -```mdx-code-block - -``` +### Background.autoColor +`bool` `true` +Whether to use theme background color for component color when the background component is on. -|field|default|since|comment| -|--|--|--|--| -|show|true||Whether to enable the background component. -|image|||the image of background. -|imageType|||the fill type of background image. -|imageColor|||背景图颜色。 -|imageWidth|0|v3.10.0|the width of background image. -|imageHeight|0|v3.10.0|the height of background image. -|autoColor|true||Whether to use theme background color for component color when the background component is on. -|borderStyle||v3.10.0|the border style of background. [BorderStyle](#borderstyle)| +### Background.borderStyle -```mdx-code-block - -``` +`BorderStyle` `v3.10.0` +the border style of background. [BorderStyle](#borderstyle) + +### Background.image + +`Sprite` +the image of background. + +### Background.imageColor + +`Color` +背景图颜色。 + +### Background.imageHeight + +`float` `0` `v3.10.0` +the height of background image. + +### Background.imageType + +`Image.Type` +the fill type of background image. + +### Background.imageWidth + +`float` `0` `v3.10.0` +the width of background image. + +### Background.show + +`bool` `true` +Whether to enable the background component. ## Bar -> class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) ## BaseAxisTheme -> class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) / Subclasses: [AxisTheme](#axistheme), [RadiusAxisTheme](#radiusaxistheme), [AngleAxisTheme](#angleaxistheme), [PolarAxisTheme](#polaraxistheme), [RadarAxisTheme](#radaraxistheme) +class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) / Subclasses: [AxisTheme](#axistheme), [RadiusAxisTheme](#radiusaxistheme), [AngleAxisTheme](#angleaxistheme), [PolarAxisTheme](#polaraxistheme), [RadarAxisTheme](#radaraxistheme) -```mdx-code-block - -``` +### BaseAxisTheme.lineColor +`Color32` +the color of line. -|field|default|since|comment| -|--|--|--|--| -|lineType|||the type of line.
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|lineWidth|1f||the width of line. -|lineLength|0f||the length of line. -|lineColor|||the color of line. -|splitLineType|||the type of split line.
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|splitLineWidth|1f||the width of split line. -|splitLineLength|0f||the length of split line. -|splitLineColor|||the color of split line. -|minorSplitLineColor|||the color of minor split line. -|tickWidth|1f||the width of tick. -|tickLength|5f||the length of tick. -|tickColor|||the color of tick. -|splitAreaColors|||the colors of split area. +### BaseAxisTheme.lineLength -```mdx-code-block -
-``` +`float` `0f` +the length of line. + +### BaseAxisTheme.lineType + +`LineStyle.Type` +the type of line. + +Options: + +- `Solid`: 实线 +- `Dashed`: 虚线 +- `Dotted`: 点线 +- `DashDot`: 点划线 +- `DashDotDot`: 双点划线 +- `None`: 双点划线 + +### BaseAxisTheme.lineWidth + +`float` `1f` +the width of line. + +### BaseAxisTheme.minorSplitLineColor + +`Color32` +the color of minor split line. + +### BaseAxisTheme.splitAreaColors + +`List` +the colors of split area. + +### BaseAxisTheme.splitLineColor + +`Color32` +the color of split line. + +### BaseAxisTheme.splitLineLength + +`float` `0f` +the length of split line. + +### BaseAxisTheme.splitLineType + +`LineStyle.Type` +the type of split line. + +Options: + +- `Solid`: 实线 +- `Dashed`: 虚线 +- `Dotted`: 点线 +- `DashDot`: 点划线 +- `DashDotDot`: 双点划线 +- `None`: 双点划线 + +### BaseAxisTheme.splitLineWidth + +`float` `1f` +the width of split line. + +### BaseAxisTheme.tickColor + +`Color32` +the color of tick. + +### BaseAxisTheme.tickLength + +`float` `5f` +the length of tick. + +### BaseAxisTheme.tickWidth + +`float` `1f` +the width of tick. ## BaseLine -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [AxisLine](#axisline), [AxisMinorSplitLine](#axisminorsplitline), [AxisMinorTick](#axisminortick), [AxisSplitLine](#axissplitline), [AxisTick](#axistick) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [AxisLine](#axisline), [AxisMinorSplitLine](#axisminorsplitline), [AxisMinorTick](#axisminortick), [AxisSplitLine](#axissplitline), [AxisTick](#axistick) Settings related to base line. -```mdx-code-block - -``` +### BaseLine.lineStyle +`LineStyle` +线条样式 [LineStyle](#linestyle) -|field|default|since|comment| -|--|--|--|--| -|show|||Set this to false to prevent the axis line from showing. -|lineStyle|||线条样式 [LineStyle](#linestyle)| +### BaseLine.show -```mdx-code-block - -``` +`bool` +Set this to false to prevent the axis line from showing. ## BaseScatter -> class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) / Subclasses: [EffectScatter](#effectscatter), [Scatter](#scatter) +class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) / Subclasses: [EffectScatter](#effectscatter), [Scatter](#scatter) ## BaseSerie -> class in XCharts.Runtime / Subclasses: [Serie](#serie) +class in XCharts.Runtime / Subclasses: [Serie](#serie) ## BlurStyle -> class in XCharts.Runtime / Inherits from: [StateStyle](#statestyle), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [StateStyle](#statestyle), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) > Since `v3.2.0` @@ -745,1094 +1066,1925 @@ Configurations of blur state. ## BorderStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) > Since `v3.10.0` The style of border. -```mdx-code-block - -``` +### BorderStyle.borderColor +`Color32` +the color of border. -|field|default|since|comment| -|--|--|--|--| -|show|false||whether the border is visible. -|borderWidth|||the width of border. -|borderColor|||the color of border. -|roundedCorner|true||whether the border is rounded corner. -|cornerRadius|||The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)). When is set to (1,1,1,1), all corners are rounded. +### BorderStyle.borderWidth -```mdx-code-block - -``` +`float` +the width of border. + +### BorderStyle.cornerRadius + +`float[]` +The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)). When is set to (1,1,1,1), all corners are rounded. + +### BorderStyle.roundedCorner + +`bool` `true` +whether the border is rounded corner. + +### BorderStyle.show + +`bool` `false` +whether the border is visible. ## CalendarCoord -> class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem), [IUpdateRuntimeData](#iupdateruntimedata), [ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem), [IUpdateRuntimeData](#iupdateruntimedata), [ISerieContainer](#iseriecontainer) ## Candlestick -> class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) ## ChartText -> class in XCharts.Runtime +class in XCharts.Runtime ## ChildComponent -> class in XCharts.Runtime / Subclasses: [AnimationStyle](#animationstyle), [AxisAnimation](#axisanimation), [AxisName](#axisname), [AxisSplitArea](#axissplitarea), [AreaStyle](#areastyle), [ArrowStyle](#arrowstyle), [BaseLine](#baseline), [BorderStyle](#borderstyle), [IconStyle](#iconstyle), [ImageStyle](#imagestyle), [ItemStyle](#itemstyle), [Level](#level), [LevelStyle](#levelstyle), [LineArrow](#linearrow), [LineStyle](#linestyle), [Location](#location), [MLValue](#mlvalue), [MarqueeStyle](#marqueestyle), [Padding](#padding), [StageColor](#stagecolor), [SymbolStyle](#symbolstyle), [TextLimit](#textlimit), [TextStyle](#textstyle), [CommentItem](#commentitem), [CommentMarkStyle](#commentmarkstyle), [LabelLine](#labelline), [LabelStyle](#labelstyle), [MarkAreaData](#markareadata), [MarkLineData](#marklinedata), [StateStyle](#statestyle), [VisualMapRange](#visualmaprange), [ViewControl](#viewcontrol), [UIComponentTheme](#uicomponenttheme), [SerieData](#seriedata), [SerieDataLink](#seriedatalink), [ComponentTheme](#componenttheme), [SerieTheme](#serietheme), [ThemeStyle](#themestyle) +class in XCharts.Runtime / Subclasses: [AnimationStyle](#animationstyle), [AxisAnimation](#axisanimation), [AxisName](#axisname), [AxisSplitArea](#axissplitarea), [AreaStyle](#areastyle), [ArrowStyle](#arrowstyle), [BaseLine](#baseline), [BorderStyle](#borderstyle), [IconStyle](#iconstyle), [ImageStyle](#imagestyle), [ItemStyle](#itemstyle), [Level](#level), [LevelStyle](#levelstyle), [LineArrow](#linearrow), [LineStyle](#linestyle), [Location](#location), [MLValue](#mlvalue), [MarqueeStyle](#marqueestyle), [Padding](#padding), [StageColor](#stagecolor), [SymbolStyle](#symbolstyle), [TextLimit](#textlimit), [TextStyle](#textstyle), [CommentItem](#commentitem), [CommentMarkStyle](#commentmarkstyle), [LabelLine](#labelline), [LabelStyle](#labelstyle), [MarkAreaData](#markareadata), [MarkLineData](#marklinedata), [StateStyle](#statestyle), [VisualMapRange](#visualmaprange), [ViewControl](#viewcontrol), [UIComponentTheme](#uicomponenttheme), [SerieData](#seriedata), [SerieDataLink](#seriedatalink), [ComponentTheme](#componenttheme), [SerieTheme](#serietheme), [ThemeStyle](#themestyle) ## Comment -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent), [IPropertyChanged](#ipropertychanged) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent), [IPropertyChanged](#ipropertychanged) comment of chart. -```mdx-code-block - -``` +### Comment.items +`List` +The items of comment. -|field|default|since|comment| -|--|--|--|--| -|show|true||Set this to false to prevent the comment from showing. -|labelStyle|||The text style of all comments. [LabelStyle](#labelstyle)| -|markStyle|||The text style of all comments. [CommentMarkStyle](#commentmarkstyle)| -|items|||The items of comment. +### Comment.labelStyle -```mdx-code-block - -``` +`LabelStyle` +The text style of all comments. [LabelStyle](#labelstyle) + +### Comment.markStyle + +`CommentMarkStyle` +The text style of all comments. [CommentMarkStyle](#commentmarkstyle) + +### Comment.show + +`bool` `true` +Set this to false to prevent the comment from showing. ## CommentItem -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) comment of chart. -```mdx-code-block - -``` +### CommentItem.content +`string` +content of comment. -|field|default|since|comment| -|--|--|--|--| -|show|true||Set this to false to prevent this comment item from showing. -|content|||content of comment. -|markRect|||the mark rect of comment. -|markStyle|||the mark rect style. [CommentMarkStyle](#commentmarkstyle)| -|labelStyle|||The text style of all comments. [LabelStyle](#labelstyle)| -|location||v3.5.0|The location of comment. [Location](#location)| +### CommentItem.labelStyle -```mdx-code-block - -``` +`LabelStyle` +The text style of all comments. [LabelStyle](#labelstyle) + +### CommentItem.location + +`Location` `v3.5.0` +The location of comment. [Location](#location) + +### CommentItem.markRect + +`Rect` +the mark rect of comment. + +### CommentItem.markStyle + +`CommentMarkStyle` +the mark rect style. [CommentMarkStyle](#commentmarkstyle) + +### CommentItem.show + +`bool` `true` +Set this to false to prevent this comment item from showing. ## CommentMarkStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) the comment mark style. -```mdx-code-block - -``` +### CommentMarkStyle.lineStyle +`LineStyle` +line style of comment mark area. [LineStyle](#linestyle) -|field|default|since|comment| -|--|--|--|--| -|show|true||Set this to false to prevent this comment item from showing. -|lineStyle|||line style of comment mark area. [LineStyle](#linestyle)| +### CommentMarkStyle.show -```mdx-code-block - -``` +`bool` `true` +Set this to false to prevent this comment item from showing. ## ComponentTheme -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [BaseAxisTheme](#baseaxistheme), [DataZoomTheme](#datazoomtheme), [LegendTheme](#legendtheme), [SubTitleTheme](#subtitletheme), [TitleTheme](#titletheme), [TooltipTheme](#tooltiptheme), [VisualMapTheme](#visualmaptheme) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [BaseAxisTheme](#baseaxistheme), [DataZoomTheme](#datazoomtheme), [LegendTheme](#legendtheme), [SubTitleTheme](#subtitletheme), [TitleTheme](#titletheme), [TooltipTheme](#tooltiptheme), [VisualMapTheme](#visualmaptheme) -```mdx-code-block - -``` +### ComponentTheme.font +`Font` +the font of text. -|field|default|since|comment| -|--|--|--|--| -|font|||the font of text. -|textColor|||the color of text. -|textBackgroundColor|||the color of text. -|fontSize|18||the font size of text. -|tMPFont|||the font of chart text。 +### ComponentTheme.fontSize -```mdx-code-block - -``` +`int` `18` +the font size of text. + +### ComponentTheme.textBackgroundColor + +`Color` +the color of text. + +### ComponentTheme.textColor + +`Color` +the color of text. + +### ComponentTheme.tMPFont + +`TMP_FontAsset` +the font of chart text。 ## CoordSystem -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) / Subclasses: [RadarCoord](#radarcoord), [CalendarCoord](#calendarcoord), [GridCoord](#gridcoord), [GridCoord3D](#gridcoord3d), [ParallelCoord](#parallelcoord), [PolarCoord](#polarcoord), [SingleAxisCoord](#singleaxiscoord) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) / Subclasses: [RadarCoord](#radarcoord), [CalendarCoord](#calendarcoord), [GridCoord](#gridcoord), [GridCoord3D](#gridcoord3d), [ParallelCoord](#parallelcoord), [PolarCoord](#polarcoord), [SingleAxisCoord](#singleaxiscoord) Coordinate system component. ## DataZoom -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent), [IUpdateRuntimeData](#iupdateruntimedata) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent), [IUpdateRuntimeData](#iupdateruntimedata) DataZoom component is used for zooming a specific area, which enables user to investigate data in detail, or get an overview of the data, or get rid of outlier points. -```mdx-code-block - -``` +### DataZoom.areaStyle +`AreaStyle` +阴影填充样式。 [AreaStyle](#areastyle) -|field|default|since|comment| -|--|--|--|--| -|enable|true||Whether to show dataZoom. -|filterMode|||The mode of data filter.
`DataZoom.FilterMode`:
- `Filter`: data that outside the window will be filtered, which may lead to some changes of windows of other axes. For each data item, it will be filtered if one of the relevant dimensions is out of the window.
- `WeakFilter`: data that outside the window will be filtered, which may lead to some changes of windows of other axes. For each data item, it will be filtered only if all of the relevant dimensions are out of the same side of the window.
- `Empty`: data that outside the window will be set to NaN, which will not lead to changes of windows of other axes.
- `None`: Do not filter data.
| -|xAxisIndexs|||Specify which xAxis is controlled by the dataZoom. -|yAxisIndexs|||Specify which yAxis is controlled by the dataZoom. -|supportInside|||Whether built-in support is supported. Built into the coordinate system to allow the user to zoom in and out of the coordinate system by mouse dragging, mouse wheel, finger swiping (on the touch screen). -|supportInsideScroll|true||Whether inside scrolling is supported. -|supportInsideDrag|true||Whether insde drag is supported. -|supportSlider|||Whether a slider is supported. There are separate sliders on which the user zooms or roams. -|supportMarquee|||Supported Box Selected. Provides a marquee for scaling the data area. -|showDataShadow|||Whether to show data shadow, to indicate the data tendency in brief. -|showDetail|||Whether to show detail, that is, show the detailed data information when dragging. -|zoomLock|||Specify whether to lock the size of window (selected area). -|fillerColor|||the color of dataZoom data area. -|borderColor|||the color of dataZoom border. -|borderWidth|||边框宽。 -|backgroundColor|||The background color of the component. -|left|||Distance between dataZoom component and the left side of the container. left value is a instant pixel value like 10 or float value [0-1]. -|right|||Distance between dataZoom component and the right side of the container. right value is a instant pixel value like 10 or float value [0-1]. -|top|||Distance between dataZoom component and the top side of the container. top value is a instant pixel value like 10 or float value [0-1]. -|bottom|||Distance between dataZoom component and the bottom side of the container. bottom value is a instant pixel value like 10 or float value [0-1]. -|rangeMode|||Use absolute value or percent value in DataZoom.start and DataZoom.end.
`DataZoom.RangeMode`:
- `//Value`: The value type of start and end.取值类型
- `Percent`: percent value.
| -|start|||The start percentage of the window out of the data extent, in the range of 0 ~ 100. -|end|||The end percentage of the window out of the data extent, in the range of 0 ~ 100. -|minShowNum|2||Minimum number of display data. Minimum number of data displayed when DataZoom is enlarged to maximum. -|scrollSensitivity|1.1f||The sensitivity of dataZoom scroll. The larger the number, the more sensitive it is. -|orient|||Specify whether the layout of dataZoom component is horizontal or vertical. What's more, it indicates whether the horizontal axis or vertical axis is controlled by default in catesian coordinate system.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|labelStyle|||label style. [LabelStyle](#labelstyle)| -|lineStyle|||阴影线条样式。 [LineStyle](#linestyle)| -|areaStyle|||阴影填充样式。 [AreaStyle](#areastyle)| -|marqueeStyle||v3.5.0|选取框样式。 [MarqueeStyle](#marqueestyle)| -|startLock||v3.6.0|Lock start value. -|endLock||v3.6.0|Lock end value. +### DataZoom.backgroundColor -```mdx-code-block -
-``` +`Color32` +The background color of the component. + +### DataZoom.borderColor + +`Color32` +the color of dataZoom border. + +### DataZoom.borderWidth + +`float` +边框宽。 + +### DataZoom.bottom + +`float` +Distance between dataZoom component and the bottom side of the container. bottom value is a instant pixel value like 10 or float value [0-1]. + +### DataZoom.enable + +`bool` `true` +Whether to show dataZoom. + +### DataZoom.end + +`float` +The end percentage of the window out of the data extent, in the range of 0 ~ 100. + +### DataZoom.endLock + +`bool` `v3.6.0` +Lock end value. + +### DataZoom.fillerColor + +`Color32` +the color of dataZoom data area. + +### DataZoom.filterMode + +`DataZoom.FilterMode` +The mode of data filter. + +Options: + +- `Filter`: data that outside the window will be filtered, which may lead to some changes of windows of other axes. For each data item, it will be filtered if one of the relevant dimensions is out of the window. +- `WeakFilter`: data that outside the window will be filtered, which may lead to some changes of windows of other axes. For each data item, it will be filtered only if all of the relevant dimensions are out of the same side of the window. +- `Empty`: data that outside the window will be set to NaN, which will not lead to changes of windows of other axes. +- `None`: Do not filter data. + +### DataZoom.labelStyle + +`LabelStyle` +label style. [LabelStyle](#labelstyle) + +### DataZoom.left + +`float` +Distance between dataZoom component and the left side of the container. left value is a instant pixel value like 10 or float value [0-1]. + +### DataZoom.lineStyle + +`LineStyle` +阴影线条样式。 [LineStyle](#linestyle) + +### DataZoom.marqueeStyle + +`MarqueeStyle` `v3.5.0` +选取框样式。 [MarqueeStyle](#marqueestyle) + +### DataZoom.minShowNum + +`int` `2` +Minimum number of display data. Minimum number of data displayed when DataZoom is enlarged to maximum. + +### DataZoom.orient + +`Orient` +Specify whether the layout of dataZoom component is horizontal or vertical. What's more, it indicates whether the horizontal axis or vertical axis is controlled by default in catesian coordinate system. + +Options: + +- `Horizonal`: 水平 +- `Vertical`: 垂直 + +### DataZoom.rangeMode + +`DataZoom.RangeMode` +Use absolute value or percent value in DataZoom.start and DataZoom.end. + +Options: + +- `//Value`: The value type of start and end.取值类型 +- `Percent`: percent value. + +### DataZoom.right + +`float` +Distance between dataZoom component and the right side of the container. right value is a instant pixel value like 10 or float value [0-1]. + +### DataZoom.scrollSensitivity + +`float` `1.1f` +The sensitivity of dataZoom scroll. The larger the number, the more sensitive it is. + +### DataZoom.showDataShadow + +`bool` +Whether to show data shadow, to indicate the data tendency in brief. + +### DataZoom.showDetail + +`bool` +Whether to show detail, that is, show the detailed data information when dragging. + +### DataZoom.start + +`float` +The start percentage of the window out of the data extent, in the range of 0 ~ 100. + +### DataZoom.startLock + +`bool` `v3.6.0` +Lock start value. + +### DataZoom.supportInside + +`bool` +Whether built-in support is supported. Built into the coordinate system to allow the user to zoom in and out of the coordinate system by mouse dragging, mouse wheel, finger swiping (on the touch screen). + +### DataZoom.supportInsideDrag + +`bool` `true` +Whether insde drag is supported. + +### DataZoom.supportInsideScroll + +`bool` `true` +Whether inside scrolling is supported. + +### DataZoom.supportMarquee + +`bool` +Supported Box Selected. Provides a marquee for scaling the data area. + +### DataZoom.supportSlider + +`bool` +Whether a slider is supported. There are separate sliders on which the user zooms or roams. + +### DataZoom.top + +`float` +Distance between dataZoom component and the top side of the container. top value is a instant pixel value like 10 or float value [0-1]. + +### DataZoom.xAxisIndexs + +`List` +Specify which xAxis is controlled by the dataZoom. + +### DataZoom.yAxisIndexs + +`List` +Specify which yAxis is controlled by the dataZoom. + +### DataZoom.zoomLock + +`bool` +Specify whether to lock the size of window (selected area). ## DataZoomTheme -> class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) -```mdx-code-block - -``` +### DataZoomTheme.backgroundColor +`Color32` +the background color of datazoom. -|field|default|since|comment| -|--|--|--|--| -|borderWidth|||the width of border line. -|dataLineWidth|||the width of data line. -|fillerColor|||the color of dataZoom data area. -|borderColor|||the color of dataZoom border. -|dataLineColor|||the color of data area line. -|dataAreaColor|||the color of data area line. -|backgroundColor|||the background color of datazoom. +### DataZoomTheme.borderColor -```mdx-code-block - -``` +`Color32` +the color of dataZoom border. + +### DataZoomTheme.borderWidth + +`float` +the width of border line. + +### DataZoomTheme.dataAreaColor + +`Color32` +the color of data area line. + +### DataZoomTheme.dataLineColor + +`Color32` +the color of data area line. + +### DataZoomTheme.dataLineWidth + +`float` +the width of data line. + +### DataZoomTheme.fillerColor + +`Color32` +the color of dataZoom data area. ## DebugInfo -> class in XCharts.Runtime +class in XCharts.Runtime -```mdx-code-block - -``` +### DebugInfo.foldSeries +`bool` `false` +Whether to fold series in inspector view. -|field|default|since|comment| -|--|--|--|--| -|show|true||Whether show debug component. -|showDebugInfo|false|| -|showAllChartObject|false||Whether show children components of chart in hierarchy view. -|foldSeries|false||Whether to fold series in inspector view. -|labelStyle||| [LabelStyle](#labelstyle)| +### DebugInfo.labelStyle -```mdx-code-block - -``` +`LabelStyle` + [LabelStyle](#labelstyle) + +### DebugInfo.show + +`bool` `true` +Whether show debug component. + +### DebugInfo.showAllChartObject + +`bool` `false` +Whether show children components of chart in hierarchy view. + +### DebugInfo.showDebugInfo + +`bool` `false` ## EffectScatter -> class in XCharts.Runtime / Inherits from: [BaseScatter](#basescatter) +class in XCharts.Runtime / Inherits from: [BaseScatter](#basescatter) ## EmphasisStyle -> class in XCharts.Runtime / Inherits from: [StateStyle](#statestyle), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [StateStyle](#statestyle), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) > Since `v3.2.0` Configurations of emphasis state. -```mdx-code-block - -``` +### EmphasisStyle.blurScope +`EmphasisStyle.BlurScope` +The range of fade out when focus is enabled. -|field|default|since|comment| -|--|--|--|--| -|scale|1.1f||Whether to scale to highlight the data in emphasis state. -|focus|||When the data is highlighted, whether to fade out of other data to focus the highlighted.
`EmphasisStyle.FocusType`:
- `None`: Do not fade out other data, it's by default.
- `Self`: Only focus (not fade out) the element of the currently highlighted data.
- `Series`: Focus on all elements of the series which the currently highlighted data belongs to.
| -|blurScope|||The range of fade out when focus is enabled.
`EmphasisStyle.BlurScope`:
- `GridCoord`: coordinate system.
- `Series`: series.
- `Global`: global.
| +Options: -```mdx-code-block -
-``` +- `GridCoord`: coordinate system. +- `Series`: series. +- `Global`: global. + +### EmphasisStyle.focus + +`EmphasisStyle.FocusType` +When the data is highlighted, whether to fade out of other data to focus the highlighted. + +Options: + +- `None`: Do not fade out other data, it's by default. +- `Self`: Only focus (not fade out) the element of the currently highlighted data. +- `Series`: Focus on all elements of the series which the currently highlighted data belongs to. + +### EmphasisStyle.scale + +`float` `1.1f` +Whether to scale to highlight the data in emphasis state. ## EndLabelStyle -> class in XCharts.Runtime / Inherits from: [LabelStyle](#labelstyle) +class in XCharts.Runtime / Inherits from: [LabelStyle](#labelstyle) ## GridCoord -> class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem), [IUpdateRuntimeData](#iupdateruntimedata), [ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem), [IUpdateRuntimeData](#iupdateruntimedata), [ISerieContainer](#iseriecontainer) Grid component. -```mdx-code-block - -``` +### GridCoord.backgroundColor +`Color32` +Background color of grid, which is transparent by default. -|field|default|since|comment| -|--|--|--|--| -|show|true||Whether to show the grid in rectangular coordinate. -|layoutIndex|-1|v3.8.0|The index of the grid layout component to which the grid belongs. The default is -1, which means that it does not belong to any grid layout component. When this value is set, the left, right, top, and bottom properties will be invalid. -|left|0.11f||Distance between grid component and the left side of the container. -|right|0.08f||Distance between grid component and the right side of the container. -|top|0.22f||Distance between grid component and the top side of the container. -|bottom|0.14f||Distance between grid component and the bottom side of the container. -|backgroundColor|||Background color of grid, which is transparent by default. -|showBorder|false||Whether to show the grid border. -|borderWidth|0f||Border width of grid. -|borderColor|||The color of grid border. +### GridCoord.borderColor -```mdx-code-block - -``` +`Color32` +The color of grid border. + +### GridCoord.borderWidth + +`float` `0f` +Border width of grid. + +### GridCoord.bottom + +`float` `0.14f` +Distance between grid component and the bottom side of the container. + +### GridCoord.layoutIndex + +`int` `-1` `v3.8.0` +The index of the grid layout component to which the grid belongs. The default is -1, which means that it does not belong to any grid layout component. When this value is set, the left, right, top, and bottom properties will be invalid. + +### GridCoord.left + +`float` `0.11f` +Distance between grid component and the left side of the container. + +### GridCoord.right + +`float` `0.08f` +Distance between grid component and the right side of the container. + +### GridCoord.show + +`bool` `true` +Whether to show the grid in rectangular coordinate. + +### GridCoord.showBorder + +`bool` `false` +Whether to show the grid border. + +### GridCoord.top + +`float` `0.22f` +Distance between grid component and the top side of the container. ## GridCoord3D -> class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem), [IUpdateRuntimeData](#iupdateruntimedata), [ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem), [IUpdateRuntimeData](#iupdateruntimedata), [ISerieContainer](#iseriecontainer) > Since `v3.11.0` Grid component. -```mdx-code-block - -``` +### GridCoord3D.bottom +`float` `0.15f` +Distance between grid component and the bottom side of the container. -|field|default|since|comment| -|--|--|--|--| -|show|true||Whether to show the grid in rectangular coordinate. -|left|0.15f||Distance between grid component and the left side of the container. -|right|0.2f||Distance between grid component and the right side of the container. -|top|0.3f||Distance between grid component and the top side of the container. -|bottom|0.15f||Distance between grid component and the bottom side of the container. -|showBorder|false||Whether to show the grid border. -|boxWidth|0.55f||The width of the box in the coordinate system. -|boxHeight|0.4f||The height of the box in the coordinate system. -|boxDepth|0.2f||The depth of the box in the coordinate system. -|xYExchanged|false|| -|viewControl|||View control component in 3D coordinate system. [ViewControl](#viewcontrol)| +### GridCoord3D.boxDepth -```mdx-code-block - -``` +`float` `0.2f` +The depth of the box in the coordinate system. + +### GridCoord3D.boxHeight + +`float` `0.4f` +The height of the box in the coordinate system. + +### GridCoord3D.boxWidth + +`float` `0.55f` +The width of the box in the coordinate system. + +### GridCoord3D.left + +`float` `0.15f` +Distance between grid component and the left side of the container. + +### GridCoord3D.right + +`float` `0.2f` +Distance between grid component and the right side of the container. + +### GridCoord3D.show + +`bool` `true` +Whether to show the grid in rectangular coordinate. + +### GridCoord3D.showBorder + +`bool` `false` +Whether to show the grid border. + +### GridCoord3D.top + +`float` `0.3f` +Distance between grid component and the top side of the container. + +### GridCoord3D.viewControl + +`ViewControl` +View control component in 3D coordinate system. [ViewControl](#viewcontrol) + +### GridCoord3D.xYExchanged + +`bool` `false` ## GridLayout -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent), [IUpdateRuntimeData](#iupdateruntimedata) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent), [IUpdateRuntimeData](#iupdateruntimedata) > Since `v3.8.0` Grid layout component. Used to manage the layout of multiple `GridCoord`, and the number of rows and columns of the grid can be controlled by `row` and `column`. -```mdx-code-block - -``` +### GridLayout.bottom +`float` `0.12f` +Distance between grid component and the bottom side of the container. -|field|default|since|comment| -|--|--|--|--| -|show|true||Whether to show the grid in rectangular coordinate. -|left|0.1f||Distance between grid component and the left side of the container. -|right|0.08f||Distance between grid component and the right side of the container. -|top|0.22f||Distance between grid component and the top side of the container. -|bottom|0.12f||Distance between grid component and the bottom side of the container. -|row|2||the row count of grid layout. -|column|2||the column count of grid layout. -|spacing|Vector2.zero||the spacing of grid layout. -|inverse|false||Whether to inverse the grid layout. +### GridLayout.column -```mdx-code-block - -``` +`int` `2` +the column count of grid layout. + +### GridLayout.inverse + +`bool` `false` +Whether to inverse the grid layout. + +### GridLayout.left + +`float` `0.1f` +Distance between grid component and the left side of the container. + +### GridLayout.right + +`float` `0.08f` +Distance between grid component and the right side of the container. + +### GridLayout.row + +`int` `2` +the row count of grid layout. + +### GridLayout.show + +`bool` `true` +Whether to show the grid in rectangular coordinate. + +### GridLayout.spacing + +`Vector2` `Vector2.zero` +the spacing of grid layout. + +### GridLayout.top + +`float` `0.22f` +Distance between grid component and the top side of the container. ## Heatmap -> class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) -```mdx-code-block - -``` +### Heatmap.heatmapType +`HeatmapType` `v3.3.0` +The mapping type of heatmap. -|field|default|since|comment| -|--|--|--|--| -|heatmapType||v3.3.0|The mapping type of heatmap.
`HeatmapType`:
- `Data`: Data mapping type.By default, the second dimension data is used as the color map.
- `Count`: Number mapping type.The number of occurrences of a statistic in a divided grid, as a color map.
| +Options: -```mdx-code-block -
-``` +- `Data`: Data mapping type.By default, the second dimension data is used as the color map. +- `Count`: Number mapping type.The number of occurrences of a statistic in a divided grid, as a color map. ## IconStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) -```mdx-code-block - -``` +### IconStyle.align +`Align` +水平方向对齐方式。 -|field|default|since|comment| -|--|--|--|--| -|show|false||Whether the data icon is show. -|layer|||显示在上层还是在下层。
`IconStyle.Layer`:
- `UnderText`: The icon is display under the label text. 图标在标签文字下
- `AboveText`: The icon is display above the label text. 图标在标签文字上
| -|align|||水平方向对齐方式。
`Align`:
- `Center`: Alignment mode.
- `Left`: Alignment mode.
- `Right`: Alignment mode.
| -|sprite|||The image of icon. -|type|||How to display the icon. -|color|||图标颜色。 -|width|20||图标宽。 -|height|20||图标高。 -|offset|||图标偏移。 -|autoHideWhenLabelEmpty|false||当label内容为空时是否自动隐藏图标 +Options: -```mdx-code-block -
-``` +- `Center`: Alignment mode. +- `Left`: Alignment mode. +- `Right`: Alignment mode. + +### IconStyle.autoHideWhenLabelEmpty + +`bool` `false` +当label内容为空时是否自动隐藏图标 + +### IconStyle.color + +`Color` +图标颜色。 + +### IconStyle.height + +`float` `20` +图标高。 + +### IconStyle.layer + +`IconStyle.Layer` +显示在上层还是在下层。 + +Options: + +- `UnderText`: The icon is display under the label text. 图标在标签文字下 +- `AboveText`: The icon is display above the label text. 图标在标签文字上 + +### IconStyle.offset + +`Vector3` +图标偏移。 + +### IconStyle.show + +`bool` `false` +Whether the data icon is show. + +### IconStyle.sprite + +`Sprite` +The image of icon. + +### IconStyle.type + +`Image.Type` +How to display the icon. + +### IconStyle.width + +`float` `20` +图标宽。 ## ImageStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) -```mdx-code-block - -``` +### ImageStyle.autoColor +`bool` +是否自动颜色。 -|field|default|since|comment| -|--|--|--|--| -|show|true||Whether the data icon is show. -|sprite|||The image of icon. -|type|||How to display the image. -|autoColor|||是否自动颜色。 -|color|||图标颜色。 -|width|0||图标宽。 -|height|0||图标高。 +### ImageStyle.color -```mdx-code-block - -``` +`Color` +图标颜色。 + +### ImageStyle.height + +`float` `0` +图标高。 + +### ImageStyle.show + +`bool` `true` +Whether the data icon is show. + +### ImageStyle.sprite + +`Sprite` +The image of icon. + +### ImageStyle.type + +`Image.Type` +How to display the image. + +### ImageStyle.width + +`float` `0` +图标宽。 ## Indicator -> class in XCharts.Runtime +class in XCharts.Runtime Indicator of radar chart, which is used to assign multiple variables(dimensions) in radar chart. -```mdx-code-block - -``` +### Indicator.axisLine +`AxisLine` +axis line. [AxisLine](#axisline) -|field|default|since|comment| -|--|--|--|--| -|name|||The name of indicator. -|max|||The maximum value of indicator, with default value of 0, but we recommend to set it manually. -|min|||The minimum value of indicator, with default value of 0. -|range|||Normal range. When the value is outside this range, the display color is automatically changed. -|show|||[default:true] Set this to false to prevent the radar from showing. -|shape|||Radar render type, in which 'Polygon' and 'Circle' are supported. -|radius|100||the radius of radar. -|splitNumber|5||Segments of indicator axis. -|center|||the center of radar chart. -|axisLine|||axis line. [AxisLine](#axisline)| -|axisName|||Name options for radar indicators. [AxisName](#axisname)| -|splitLine|||split line. [AxisSplitLine](#axissplitline)| -|splitArea|||Split area of axis in grid area. [AxisSplitArea](#axissplitarea)| -|indicator|true||Whether to show indicator. -|positionType|||The position type of indicator. -|indicatorGap|10||The gap of indicator and radar. -|ceilRate|0||The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated. -|isAxisTooltip|||是否Tooltip显示轴线上的所有数据。 -|outRangeColor|Color.red||The color displayed when data out of range. -|connectCenter|false||Whether serie data connect to radar center with line. -|lineGradient|true||Whether need gradient for data line. -|startAngle||v3.4.0|起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。 -|gridIndex|-1|v3.8.0|Index of layout component that serie uses. Default is -1 means not use layout, otherwise use the first layout component. -|indicatorList|||the indicator list. +### Indicator.axisName -```mdx-code-block - -``` +`AxisName` +Name options for radar indicators. [AxisName](#axisname) + +### Indicator.ceilRate + +`double` `0` +The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated. + +### Indicator.center + +`float[]` +the center of radar chart. + +### Indicator.connectCenter + +`bool` `false` +Whether serie data connect to radar center with line. + +### Indicator.gridIndex + +`int` `-1` `v3.8.0` +Index of layout component that serie uses. Default is -1 means not use layout, otherwise use the first layout component. + +### Indicator.indicator + +`bool` `true` +Whether to show indicator. + +### Indicator.indicatorGap + +`float` `10` +The gap of indicator and radar. + +### Indicator.indicatorList + +`List` +the indicator list. + +### Indicator.isAxisTooltip + +`bool` +是否Tooltip显示轴线上的所有数据。 + +### Indicator.lineGradient + +`bool` `true` +Whether need gradient for data line. + +### Indicator.max + +`double` +The maximum value of indicator, with default value of 0, but we recommend to set it manually. + +### Indicator.min + +`double` +The minimum value of indicator, with default value of 0. + +### Indicator.name + +`string` +The name of indicator. + +### Indicator.outRangeColor + +`Color32` `Color.red` +The color displayed when data out of range. + +### Indicator.positionType + +`PositionType` +The position type of indicator. + +### Indicator.radius + +`float` `100` +the radius of radar. + +### Indicator.range + +`double[]` +Normal range. When the value is outside this range, the display color is automatically changed. + +### Indicator.shape + +`Shape` +Radar render type, in which 'Polygon' and 'Circle' are supported. + +### Indicator.show + +`bool` +[default:true] Set this to false to prevent the radar from showing. + +### Indicator.splitArea + +`AxisSplitArea` +Split area of axis in grid area. [AxisSplitArea](#axissplitarea) + +### Indicator.splitLine + +`AxisSplitLine` +split line. [AxisSplitLine](#axissplitline) + +### Indicator.splitNumber + +`int` `5` +Segments of indicator axis. + +### Indicator.startAngle + +`float` `v3.4.0` +起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。 ## INeedSerieContainer -> class in XCharts.Runtime / Subclasses: [Bar](#bar), [SimplifiedBar](#simplifiedbar), [Candlestick](#candlestick), [SimplifiedCandlestick](#simplifiedcandlestick), [Heatmap](#heatmap), [Line](#line), [SimplifiedLine](#simplifiedline), [Parallel](#parallel), [Radar](#radar), [BaseScatter](#basescatter) +class in XCharts.Runtime / Subclasses: [Bar](#bar), [SimplifiedBar](#simplifiedbar), [Candlestick](#candlestick), [SimplifiedCandlestick](#simplifiedcandlestick), [Heatmap](#heatmap), [Line](#line), [SimplifiedLine](#simplifiedline), [Parallel](#parallel), [Radar](#radar), [BaseScatter](#basescatter) ## IPropertyChanged -> class in XCharts.Runtime / Subclasses: [Location](#location), [Comment](#comment), [Legend](#legend), [Title](#title) +class in XCharts.Runtime / Subclasses: [Location](#location), [Comment](#comment), [Legend](#legend), [Title](#title) 属性变更接口 ## ISerieComponent -> class in XCharts.Runtime / Subclasses: [AreaStyle](#areastyle), [ImageStyle](#imagestyle), [LineArrow](#linearrow), [LabelLine](#labelline), [LabelStyle](#labelstyle), [BlurStyle](#blurstyle), [EmphasisStyle](#emphasisstyle), [SelectStyle](#selectstyle), [TitleStyle](#titlestyle) +class in XCharts.Runtime / Subclasses: [AreaStyle](#areastyle), [ImageStyle](#imagestyle), [LineArrow](#linearrow), [LabelLine](#labelline), [LabelStyle](#labelstyle), [BlurStyle](#blurstyle), [EmphasisStyle](#emphasisstyle), [SelectStyle](#selectstyle), [TitleStyle](#titlestyle) The interface for serie component. ## ISerieContainer -> class in XCharts.Runtime / Subclasses: [RadarCoord](#radarcoord), [CalendarCoord](#calendarcoord), [GridCoord](#gridcoord), [GridCoord3D](#gridcoord3d), [ParallelCoord](#parallelcoord), [PolarCoord](#polarcoord) +class in XCharts.Runtime / Subclasses: [RadarCoord](#radarcoord), [CalendarCoord](#calendarcoord), [GridCoord](#gridcoord), [GridCoord3D](#gridcoord3d), [ParallelCoord](#parallelcoord), [PolarCoord](#polarcoord) ## ISerieDataComponent -> class in XCharts.Runtime / Subclasses: [AreaStyle](#areastyle), [ImageStyle](#imagestyle), [ItemStyle](#itemstyle), [LineStyle](#linestyle), [SerieSymbol](#seriesymbol), [LabelLine](#labelline), [LabelStyle](#labelstyle), [BlurStyle](#blurstyle), [EmphasisStyle](#emphasisstyle), [SelectStyle](#selectstyle), [TitleStyle](#titlestyle) +class in XCharts.Runtime / Subclasses: [AreaStyle](#areastyle), [ImageStyle](#imagestyle), [ItemStyle](#itemstyle), [LineStyle](#linestyle), [SerieSymbol](#seriesymbol), [LabelLine](#labelline), [LabelStyle](#labelstyle), [BlurStyle](#blurstyle), [EmphasisStyle](#emphasisstyle), [SelectStyle](#selectstyle), [TitleStyle](#titlestyle) The interface for serie data component. ## ISimplifiedSerie -> class in XCharts.Runtime / Subclasses: [SimplifiedBar](#simplifiedbar), [SimplifiedCandlestick](#simplifiedcandlestick), [SimplifiedLine](#simplifiedline) +class in XCharts.Runtime / Subclasses: [SimplifiedBar](#simplifiedbar), [SimplifiedCandlestick](#simplifiedcandlestick), [SimplifiedLine](#simplifiedline) ## ItemStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [ISerieDataComponent](#iseriedatacomponent) 图形样式。 -```mdx-code-block - -``` +### ItemStyle.backgroundColor +`Color32` +数据项背景颜色。 -|field|default|since|comment| -|--|--|--|--| -|show|true||是否启用。 -|color|||数据项颜色。 -|color0|||数据项颜色。 -|toColor|||Gradient color1. -|toColor2|||Gradient color2.Only valid in line diagrams. -|markColor||v3.6.0|Serie's mark color. It is only used to display Legend and Tooltip, and does not affect the drawing color. The default value is clear. -|backgroundColor|||数据项背景颜色。 -|backgroundWidth|||数据项背景宽度。 -|centerColor|||中心区域颜色。 -|centerGap|||中心区域间隙。 -|borderWidth|0||边框宽。 -|borderGap|0||边框间隙。 -|borderColor|||边框的颜色。 -|borderColor0|||边框的颜色。 -|borderToColor|||边框的渐变色。 -|opacity|1||透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 -|itemMarker|||提示框单项的字符标志。用在Tooltip中。 -|itemFormatter|||提示框单项的字符串模版格式器。具体配置参考`Tooltip`的`formatter` -|numericFormatter|||Standard number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
Date format: Starts with `date`, which is used to format DateTime. Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
Time format: Starts with `time`, which is used to format TimeSpan. Common time formats are: d day, HH hour, mm minute, ss second, fffffff fractional part. Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. For example: time:HH\:mm\:ss
number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
Note: The date and time formats are only supported by 'v3.12.0' or later.
-|cornerRadius|||The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)). +### ItemStyle.backgroundWidth -```mdx-code-block -
-``` +`float` +数据项背景宽度。 + +### ItemStyle.borderColor + +`Color32` +边框的颜色。 + +### ItemStyle.borderColor0 + +`Color32` +边框的颜色。 + +### ItemStyle.borderGap + +`float` `0` +边框间隙。 + +### ItemStyle.borderToColor + +`Color32` +边框的渐变色。 + +### ItemStyle.borderWidth + +`float` `0` +边框宽。 + +### ItemStyle.centerColor + +`Color32` +中心区域颜色。 + +### ItemStyle.centerGap + +`float` +中心区域间隙。 + +### ItemStyle.color + +`Color32` +数据项颜色。 + +### ItemStyle.color0 + +`Color32` +数据项颜色。 + +### ItemStyle.cornerRadius + +`float[]` +The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)). + +### ItemStyle.itemFormatter + +`string` +提示框单项的字符串模版格式器。具体配置参考`Tooltip`的`formatter` + +### ItemStyle.itemMarker + +`string` +提示框单项的字符标志。用在Tooltip中。 + +### ItemStyle.markColor + +`Color32` `v3.6.0` +Serie's mark color. It is only used to display Legend and Tooltip, and does not affect the drawing color. The default value is clear. + +### ItemStyle.numericFormatter + +`string` +Standard number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
Date format: Starts with `date`, which is used to format DateTime. Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
Time format: Starts with `time`, which is used to format TimeSpan. Common time formats are: d day, HH hour, mm minute, ss second, fffffff fractional part. Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. For example: time:HH\:mm\:ss
number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
Note: The date and time formats are only supported by 'v3.12.0' or later.
+ +### ItemStyle.opacity + +`float` `1` +透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 + +### ItemStyle.show + +`bool` `true` +是否启用。 + +### ItemStyle.toColor + +`Color32` +Gradient color1. + +### ItemStyle.toColor2 + +`Color32` +Gradient color2.Only valid in line diagrams. ## IUpdateRuntimeData -> class in XCharts.Runtime / Subclasses: [SingleAxis](#singleaxis), [DataZoom](#datazoom), [CalendarCoord](#calendarcoord), [GridCoord](#gridcoord), [GridLayout](#gridlayout), [GridCoord3D](#gridcoord3d), [ParallelCoord](#parallelcoord) +class in XCharts.Runtime / Subclasses: [SingleAxis](#singleaxis), [DataZoom](#datazoom), [CalendarCoord](#calendarcoord), [GridCoord](#gridcoord), [GridLayout](#gridlayout), [GridCoord3D](#gridcoord3d), [ParallelCoord](#parallelcoord) ## LabelLine -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) 标签的引导线 -```mdx-code-block - -``` +### LabelLine.endSymbol +`SymbolStyle` +The symbol of the end point of labelline. [SymbolStyle](#symbolstyle) -|field|default|since|comment| -|--|--|--|--| -|show|true||Whether the label line is showed. -|lineType|||the type of visual guide line.
`LabelLine.LineType`:
- `BrokenLine`: 折线
- `Curves`: 曲线
- `HorizontalLine`: 水平线
| -|lineColor|Color32(0,0,0,0)||the color of visual guild line. -|lineAngle|60||the angle of visual guild line. Valid for broken line and curve line. Invalid in Pie. -|lineWidth|1.0f||the width of visual guild line. -|lineGap|1.0f||the gap of container and guild line. -|lineLength1|25f||The length of the first segment of visual guide line. -|lineLength2|15f||The length of the second segment of visual guide line. -|lineEndX|0f|v3.8.0|The fixed x position of the end point of visual guide line. -|startSymbol|||The symbol of the start point of labelline. [SymbolStyle](#symbolstyle)| -|endSymbol|||The symbol of the end point of labelline. [SymbolStyle](#symbolstyle)| +### LabelLine.lineAngle -```mdx-code-block -
-``` +`float` `60` +the angle of visual guild line. Valid for broken line and curve line. Invalid in Pie. + +### LabelLine.lineColor + +`Color32` `Color32(0,0,0,0)` +the color of visual guild line. + +### LabelLine.lineEndX + +`float` `0f` `v3.8.0` +The fixed x position of the end point of visual guide line. + +### LabelLine.lineGap + +`float` `1.0f` +the gap of container and guild line. + +### LabelLine.lineLength1 + +`float` `25f` +The length of the first segment of visual guide line. + +### LabelLine.lineLength2 + +`float` `15f` +The length of the second segment of visual guide line. + +### LabelLine.lineType + +`LabelLine.LineType` +the type of visual guide line. + +Options: + +- `BrokenLine`: 折线 +- `Curves`: 曲线 +- `HorizontalLine`: 水平线 + +### LabelLine.lineWidth + +`float` `1.0f` +the width of visual guild line. + +### LabelLine.show + +`bool` `true` +Whether the label line is showed. + +### LabelLine.startSymbol + +`SymbolStyle` +The symbol of the start point of labelline. [SymbolStyle](#symbolstyle) ## LabelStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) / Subclasses: [AxisLabel](#axislabel), [EndLabelStyle](#endlabelstyle), [TitleStyle](#titlestyle) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) / Subclasses: [AxisLabel](#axislabel), [EndLabelStyle](#endlabelstyle), [TitleStyle](#titlestyle) Text label of chart, to explain some data information about graphic item like value, name and so on. -```mdx-code-block - -``` +### LabelStyle.autoOffset +`bool` `false` +Whether to automatically offset. When turned on, the Y offset will automatically determine the opening of the curve to determine whether to offset up or down. -|field|default|since|comment| -|--|--|--|--| -|show|true||Whether the label is showed. -|Position|||The position of label. -|autoOffset|false||Whether to automatically offset. When turned on, the Y offset will automatically determine the opening of the curve to determine whether to offset up or down. -|offset|||offset to the host graphic element. -|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 of x axis 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.
`{y}` : category value of y axis.
`{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 number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
Date format: Starts with `date`, which is used to format DateTime. Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
Time format: Starts with `time`, which is used to format TimeSpan. Common time formats are: d day, HH hour, mm minute, ss second, fffffff fractional part. Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. For example: time:HH\:mm\:ss
number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
Note: The date and time formats are only supported by 'v3.12.0' or later.
-|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. -|icon|||the sytle of icon. [IconStyle](#iconstyle)| -|background|||the sytle of background. [ImageStyle](#imagestyle)| -|textPadding|||the text padding of label. [TextPadding](#textpadding)| -|textStyle|||the sytle of text. [TextStyle](#textstyle)| +### LabelStyle.autoRotate -```mdx-code-block -
-``` +`bool` `false` `v3.6.0` +auto rotate of label. + +### LabelStyle.background + +`ImageStyle` +the sytle of background. [ImageStyle](#imagestyle) + +### LabelStyle.distance + +`float` +the distance of label to axis line. + +### LabelStyle.formatter + +`string` +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 of x axis 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.
`{y}` : category value of y axis.
`{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}
+ +### LabelStyle.height + +`float` `0` +the height of label. If set as default value 0, it means than the label height auto set as the text height. + +### LabelStyle.icon + +`IconStyle` +the sytle of icon. [IconStyle](#iconstyle) + +### LabelStyle.numericFormatter + +`string` +Standard number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
Date format: Starts with `date`, which is used to format DateTime. Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
Time format: Starts with `time`, which is used to format TimeSpan. Common time formats are: d day, HH hour, mm minute, ss second, fffffff fractional part. Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. For example: time:HH\:mm\:ss
number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
Note: The date and time formats are only supported by 'v3.12.0' or later.
+ +### LabelStyle.offset + +`Vector3` +offset to the host graphic element. + +### LabelStyle.Position + +`[SerializeField]` +The position of label. + +### LabelStyle.rotate + +`float` +Rotation of label. + +### LabelStyle.show + +`bool` `true` +Whether the label is showed. + +### LabelStyle.textPadding + +`TextPadding` +the text padding of label. [TextPadding](#textpadding) + +### LabelStyle.textStyle + +`TextStyle` +the sytle of text. [TextStyle](#textstyle) + +### LabelStyle.width + +`float` `0` +the width of label. If set as default value 0, it means than the label width auto set as the text width. ## Lang -> class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject) +class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject) Language. ## LangCandlestick -> class in XCharts.Runtime +class in XCharts.Runtime ## LangTime -> class in XCharts.Runtime +class in XCharts.Runtime ## Legend -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent), [IPropertyChanged](#ipropertychanged) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent), [IPropertyChanged](#ipropertychanged) Legend component.The legend component shows different sets of tags, colors, and names. You can control which series are not displayed by clicking on the legend. -```mdx-code-block - -``` +### Legend.background +`ImageStyle` `v3.1.0` +the sytle of background. [ImageStyle](#imagestyle) -|field|default|since|comment| -|--|--|--|--| -|show|true||Whether to show legend component. -|iconType|||Type of legend.
`Legend.Type`:
- `Auto`: 自动匹配。
- `Custom`: 自定义图标。
- `EmptyCircle`: 空心圆。
- `Circle`: 圆形。
- `Rect`: 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。
- `Triangle`: 三角形。
- `Diamond`: 菱形。
- `Candlestick`: 烛台(可用于K线图)。
| -|selectedMode|||Selected mode of legend, which controls whether series can be toggled displaying by clicking legends.
`Legend.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
- `None`: 无法选择。
| -|orient|||Specify whether the layout of legend component is horizontal or vertical.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|location|||The location of legend. [Location](#location)| -|itemWidth|25.0f||Image width of legend symbol. -|itemHeight|12.0f||Image height of legend symbol. -|itemGap|10f||The distance between each legend, horizontal distance in horizontal layout, and vertical distance in vertical layout. -|itemAutoColor|true||Whether the legend symbol matches the color automatically. -|itemOpacity|1||the opacity of item color. -|formatter|||No longer used, the use of LabelStyle.formatter instead. -|labelStyle|||the style of text. [LabelStyle](#labelstyle)| -|textLimit||v3.10.0|the limit of text. [TextLimit](#textlimit)| -|data|||Data array of legend. An array item is usually a name representing string. (If it is a pie chart, it could also be the name of a single data in the pie chart) of a series. If data is not specified, it will be auto collected from series. -|icons|||自定义的图例标记图形。 -|colors|||the colors of legend item. -|background||v3.1.0|the sytle of background. [ImageStyle](#imagestyle)| -|padding||v3.1.0|the paddinng of item and background. [Padding](#padding)| -|positions||v3.6.0|the custom positions of legend item. +### Legend.colors -```mdx-code-block -
-``` +`List` +the colors of legend item. + +### Legend.data + +`List` +Data array of legend. An array item is usually a name representing string. (If it is a pie chart, it could also be the name of a single data in the pie chart) of a series. If data is not specified, it will be auto collected from series. + +### Legend.formatter + +`string` +No longer used, the use of LabelStyle.formatter instead. + +### Legend.icons + +`List` +自定义的图例标记图形。 + +### Legend.iconType + +`Legend.Type` +Type of legend. + +Options: + +- `Auto`: 自动匹配。 +- `Custom`: 自定义图标。 +- `EmptyCircle`: 空心圆。 +- `Circle`: 圆形。 +- `Rect`: 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。 +- `Triangle`: 三角形。 +- `Diamond`: 菱形。 +- `Candlestick`: 烛台(可用于K线图)。 + +### Legend.itemAutoColor + +`bool` `true` +Whether the legend symbol matches the color automatically. + +### Legend.itemGap + +`float` `10f` +The distance between each legend, horizontal distance in horizontal layout, and vertical distance in vertical layout. + +### Legend.itemHeight + +`float` `12.0f` +Image height of legend symbol. + +### Legend.itemOpacity + +`float` `1` +the opacity of item color. + +### Legend.itemWidth + +`float` `25.0f` +Image width of legend symbol. + +### Legend.labelStyle + +`LabelStyle` +the style of text. [LabelStyle](#labelstyle) + +### Legend.location + +`Location` +The location of legend. [Location](#location) + +### Legend.orient + +`Orient` +Specify whether the layout of legend component is horizontal or vertical. + +Options: + +- `Horizonal`: 水平 +- `Vertical`: 垂直 + +### Legend.padding + +`Padding` `v3.1.0` +the paddinng of item and background. [Padding](#padding) + +### Legend.positions + +`List` `v3.6.0` +the custom positions of legend item. + +### Legend.selectedMode + +`Legend.SelectedMode` +Selected mode of legend, which controls whether series can be toggled displaying by clicking legends. + +Options: + +- `Multiple`: 多选。 +- `Single`: 单选。 +- `None`: 无法选择。 + +### Legend.show + +`bool` `true` +Whether to show legend component. + +### Legend.textLimit + +`TextLimit` `v3.10.0` +the limit of text. [TextLimit](#textlimit) ## LegendTheme -> class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) -```mdx-code-block - -``` +### LegendTheme.unableColor - -|field|default|since|comment| -|--|--|--|--| -|unableColor|||the color of text. - -```mdx-code-block - -``` +`Color` +the color of text. ## Level -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) -```mdx-code-block - -``` +### Level.depth +`int` `0` `v3.10.0` +the depth of level. -|field|default|since|comment| -|--|--|--|--| -|depth|0|v3.10.0|the depth of level. -|label|||the label style of level. [LabelStyle](#labelstyle)| -|upperLabel|||the upper label style of level. [LabelStyle](#labelstyle)| -|lineStyle||v3.10.0|the line style of level. [LineStyle](#linestyle)| -|itemStyle|||the item style of level. [ItemStyle](#itemstyle)| +### Level.itemStyle -```mdx-code-block - -``` +`ItemStyle` +the item style of level. [ItemStyle](#itemstyle) + +### Level.label + +`LabelStyle` +the label style of level. [LabelStyle](#labelstyle) + +### Level.lineStyle + +`LineStyle` `v3.10.0` +the line style of level. [LineStyle](#linestyle) + +### Level.upperLabel + +`LabelStyle` +the upper label style of level. [LabelStyle](#labelstyle) ## LevelStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) > Since `v3.10.0` -```mdx-code-block - -``` +### LevelStyle.levels +`List` +各层节点对应的配置。当enableLevels为true时生效,levels[0]对应的第一层的配置,levels[1]对应第二层,依次类推。当levels中没有对应层时用默认的设置。 -|field|default|since|comment| -|--|--|--|--| -|show|false||是否启用LevelStyle -|levels|||各层节点对应的配置。当enableLevels为true时生效,levels[0]对应的第一层的配置,levels[1]对应第二层,依次类推。当levels中没有对应层时用默认的设置。 +### LevelStyle.show -```mdx-code-block - -``` +`bool` `false` +是否启用LevelStyle ## Line -> class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) ## LineArrow -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent) -```mdx-code-block - -``` +### LineArrow.arrow +`ArrowStyle` +the arrow of line. [ArrowStyle](#arrowstyle) -|field|default|since|comment| -|--|--|--|--| -|show|||Whether to show the arrow. -|position|||The position of arrow.
`LineArrow.Position`:
- `End`: 末端箭头
- `Start`: 头端箭头
| -|arrow|||the arrow of line. [ArrowStyle](#arrowstyle)| +### LineArrow.position -```mdx-code-block -
-``` +`LineArrow.Position` +The position of arrow. + +Options: + +- `End`: 末端箭头 +- `Start`: 头端箭头 + +### LineArrow.show + +`bool` +Whether to show the arrow. ## LineStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [ISerieDataComponent](#iseriedatacomponent) The style of line. -```mdx-code-block - -``` +### LineStyle.color +`Color32` +the color of line, default use serie color. -|field|default|since|comment| -|--|--|--|--| -|show|true||Whether show line. -|type|||the type of line.
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|color|||the color of line, default use serie color. -|toColor|||the middle color of line, default use serie color. -|toColor2|||the end color of line, default use serie color. -|width|0||the width of line. -|length|0||the length of line. -|opacity|1||Opacity of the line. Supports value from 0 to 1, and the line will not be drawn when set to 0. -|dashLength|4|v3.8.1|the length of dash line. default value is 0, which means the length of dash line is 12 times of line width. Represents a multiple of the number of segments in a line chart. -|dotLength|2|v3.8.1|the length of dot line. default value is 0, which means the length of dot line is 2 times of line width. Represents a multiple of the number of segments in a line chart. -|gapLength|2|v3.8.1|the length of gap line. default value is 0, which means the length of gap line is 3 times of line width. Represents a multiple of the number of segments in a line chart. +### LineStyle.dashLength -```mdx-code-block -
-``` +`float` `4` `v3.8.1` +the length of dash line. default value is 0, which means the length of dash line is 12 times of line width. Represents a multiple of the number of segments in a line chart. + +### LineStyle.dotLength + +`float` `2` `v3.8.1` +the length of dot line. default value is 0, which means the length of dot line is 2 times of line width. Represents a multiple of the number of segments in a line chart. + +### LineStyle.gapLength + +`float` `2` `v3.8.1` +the length of gap line. default value is 0, which means the length of gap line is 3 times of line width. Represents a multiple of the number of segments in a line chart. + +### LineStyle.length + +`float` `0` +the length of line. + +### LineStyle.opacity + +`float` `1` +Opacity of the line. Supports value from 0 to 1, and the line will not be drawn when set to 0. + +### LineStyle.show + +`bool` `true` +Whether show line. + +### LineStyle.toColor + +`Color32` +the middle color of line, default use serie color. + +### LineStyle.toColor2 + +`Color32` +the end color of line, default use serie color. + +### LineStyle.type + +`LineStyle.Type` +the type of line. + +Options: + +- `Solid`: 实线 +- `Dashed`: 虚线 +- `Dotted`: 点线 +- `DashDot`: 点划线 +- `DashDotDot`: 双点划线 +- `None`: 双点划线 + +### LineStyle.width + +`float` `0` +the width of line. ## Location -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [IPropertyChanged](#ipropertychanged) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [IPropertyChanged](#ipropertychanged) Location type. Quick to set the general location. -```mdx-code-block - -``` +### Location.align +`Location.Align` +对齐方式。 -|field|default|since|comment| -|--|--|--|--| -|align|||对齐方式。
`Location.Align`:
- `TopLeft`: 对齐方式
- `TopRight`: 对齐方式
- `TopCenter`: 对齐方式
- `BottomLeft`: 对齐方式
- `BottomRight`: 对齐方式
- `BottomCenter`: 对齐方式
- `Center`: 对齐方式
- `CenterLeft`: 对齐方式
- `CenterRight`: 对齐方式
| -|left|||Distance between component and the left side of the container. -|right|||Distance between component and the left side of the container. -|top|||Distance between component and the left side of the container. -|bottom|||Distance between component and the left side of the container. +Options: -```mdx-code-block -
-``` +- `TopLeft`: 对齐方式 +- `TopRight`: 对齐方式 +- `TopCenter`: 对齐方式 +- `BottomLeft`: 对齐方式 +- `BottomRight`: 对齐方式 +- `BottomCenter`: 对齐方式 +- `Center`: 对齐方式 +- `CenterLeft`: 对齐方式 +- `CenterRight`: 对齐方式 + +### Location.bottom + +`float` +Distance between component and the left side of the container. + +### Location.left + +`float` +Distance between component and the left side of the container. + +### Location.right + +`float` +Distance between component and the left side of the container. + +### Location.top + +`float` +Distance between component and the left side of the container. ## MainComponent -> class in XCharts.Runtime / Inherits from: [IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=IComparable) / Subclasses: [Axis](#axis), [Background](#background), [Comment](#comment), [DataZoom](#datazoom), [Legend](#legend), [MarkArea](#markarea), [MarkLine](#markline), [Settings](#settings), [Title](#title), [Tooltip](#tooltip), [VisualMap](#visualmap), [GridLayout](#gridlayout), [CoordSystem](#coordsystem) +class in XCharts.Runtime / Inherits from: [IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=IComparable) / Subclasses: [Axis](#axis), [Background](#background), [Comment](#comment), [DataZoom](#datazoom), [Legend](#legend), [MarkArea](#markarea), [MarkLine](#markline), [Settings](#settings), [Title](#title), [Tooltip](#tooltip), [VisualMap](#visualmap), [GridLayout](#gridlayout), [CoordSystem](#coordsystem) ## MarkArea -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) Used to mark an area in chart. For example, mark a time interval. -```mdx-code-block - -``` +### MarkArea.end +`MarkAreaData` +标域范围的结束数据。 [MarkAreaData](#markareadata) -|field|default|since|comment| -|--|--|--|--| -|show|true||是否显示标域。 -|text|||The text of markArea. 标域显示的文本。 -|serieIndex|0||Serie index of markArea. 标域影响的Serie索引。 -|start|||标域范围的起始数据。 [MarkAreaData](#markareadata)| -|end|||标域范围的结束数据。 [MarkAreaData](#markareadata)| -|itemStyle|||标域样式。 [ItemStyle](#itemstyle)| -|label|||标域文本样式。 [LabelStyle](#labelstyle)| +### MarkArea.itemStyle -```mdx-code-block - -``` +`ItemStyle` +标域样式。 [ItemStyle](#itemstyle) + +### MarkArea.label + +`LabelStyle` +标域文本样式。 [LabelStyle](#labelstyle) + +### MarkArea.serieIndex + +`int` `0` +Serie index of markArea. 标域影响的Serie索引。 + +### MarkArea.show + +`bool` `true` +是否显示标域。 + +### MarkArea.start + +`MarkAreaData` +标域范围的起始数据。 [MarkAreaData](#markareadata) + +### MarkArea.text + +`string` +The text of markArea. 标域显示的文本。 ## MarkAreaData -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) 标域的数据。 -```mdx-code-block - -``` +### MarkAreaData.dimension +`int` `1` +From which dimension of data to calculate the maximum and minimum value and so on. -|field|default|since|comment| -|--|--|--|--| -|type|||Special markArea types, are used to label maximum value, minimum value and so on.
`MarkAreaType`:
- `None`: 标域类型
- `Min`: 最小值。
- `Max`: 最大值。
- `Average`: 平均值。
- `Median`: 中位数。
| -|name|||Name of the marker, which will display as a label. -|dimension|1||From which dimension of data to calculate the maximum and minimum value and so on. -|xPosition|||The x coordinate relative to the origin, in pixels. -|yPosition|||The y coordinate relative to the origin, in pixels. -|xValue|||The value specified on the X-axis. A value specified when the X-axis is the category axis represents the index of the category axis data, otherwise a specific value. -|yValue|||That's the value on the Y-axis. The value specified when the Y axis is the category axis represents the index of the category axis data, otherwise the specific value. +### MarkAreaData.name -```mdx-code-block -
-``` +`string` +Name of the marker, which will display as a label. + +### MarkAreaData.type + +`MarkAreaType` +Special markArea types, are used to label maximum value, minimum value and so on. + +Options: + +- `None`: 标域类型 +- `Min`: 最小值。 +- `Max`: 最大值。 +- `Average`: 平均值。 +- `Median`: 中位数。 + +### MarkAreaData.xPosition + +`float` +The x coordinate relative to the origin, in pixels. + +### MarkAreaData.xValue + +`double` +The value specified on the X-axis. A value specified when the X-axis is the category axis represents the index of the category axis data, otherwise a specific value. + +### MarkAreaData.yPosition + +`float` +The y coordinate relative to the origin, in pixels. + +### MarkAreaData.yValue + +`double` +That's the value on the Y-axis. The value specified when the Y axis is the category axis represents the index of the category axis data, otherwise the specific value. ## MarkLine -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) Use a line in the chart to illustrate. -```mdx-code-block - -``` +### MarkLine.animation +`AnimationStyle` +The animation of markline. [AnimationStyle](#animationstyle) -|field|default|since|comment| -|--|--|--|--| -|show|true||Whether to display the marking line. -|serieIndex|0||The serie index of markLine. -|onTop|true|v3.9.0|whether the markline is on top. -|animation|||The animation of markline. [AnimationStyle](#animationstyle)| -|data|||A list of marked data. When the group of data item is 0, each data item represents a line; When the group is not 0, two data items of the same group represent the starting point and the ending point of the line respectively to form a line. In this case, the relevant style parameters of the line are the parameters of the starting point. +### MarkLine.data -```mdx-code-block - -``` +`List` +A list of marked data. When the group of data item is 0, each data item represents a line; When the group is not 0, two data items of the same group represent the starting point and the ending point of the line respectively to form a line. In this case, the relevant style parameters of the line are the parameters of the starting point. + +### MarkLine.onTop + +`bool` `true` `v3.9.0` +whether the markline is on top. + +### MarkLine.serieIndex + +`int` `0` +The serie index of markLine. + +### MarkLine.show + +`bool` `true` +Whether to display the marking line. ## MarkLineData -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) > Since `v3.9.0` Data of marking line. -```mdx-code-block - -``` +### MarkLineData.dimension +`int` `1` +From which dimension of data to calculate the maximum and minimum value and so on. -|field|default|since|comment| -|--|--|--|--| -|type|||Special label types, are used to label maximum value, minimum value and so on.
`MarkLineType`:
- `None`: 标线类型
- `Min`: 最小值。
- `Max`: 最大值。
- `Average`: 平均值。
- `Median`: 中位数。
| -|name|||Name of the marker, which will display as a label. -|dimension|1||From which dimension of data to calculate the maximum and minimum value and so on. -|xPosition|||The x coordinate relative to the origin, in pixels. -|yPosition|||The y coordinate relative to the origin, in pixels. -|xValue|||The value specified on the X-axis. A value specified when the X-axis is the category axis represents the index of the category axis data, otherwise a specific value. -|yValue|||That's the value on the Y-axis. The value specified when the Y axis is the category axis represents the index of the category axis data, otherwise the specific value. -|group|0||Grouping. When the group is not 0, it means that this data is the starting point or end point of the marking line. Data consistent with the group form a marking line. -|zeroPosition|false||Is the origin of the coordinate system. -|startSymbol|||The symbol of the start point of markline. [SymbolStyle](#symbolstyle)| -|endSymbol|||The symbol of the end point of markline. [SymbolStyle](#symbolstyle)| -|lineStyle|||The line style of markline. [LineStyle](#linestyle)| -|label|||Text styles of label. You can set position to Start, Middle, and End to display text in different locations. [LabelStyle](#labelstyle)| +### MarkLineData.endSymbol -```mdx-code-block -
-``` +`SymbolStyle` +The symbol of the end point of markline. [SymbolStyle](#symbolstyle) + +### MarkLineData.group + +`int` `0` +Grouping. When the group is not 0, it means that this data is the starting point or end point of the marking line. Data consistent with the group form a marking line. + +### MarkLineData.label + +`LabelStyle` +Text styles of label. You can set position to Start, Middle, and End to display text in different locations. [LabelStyle](#labelstyle) + +### MarkLineData.lineStyle + +`LineStyle` +The line style of markline. [LineStyle](#linestyle) + +### MarkLineData.name + +`string` +Name of the marker, which will display as a label. + +### MarkLineData.startSymbol + +`SymbolStyle` +The symbol of the start point of markline. [SymbolStyle](#symbolstyle) + +### MarkLineData.type + +`MarkLineType` +Special label types, are used to label maximum value, minimum value and so on. + +Options: + +- `None`: 标线类型 +- `Min`: 最小值。 +- `Max`: 最大值。 +- `Average`: 平均值。 +- `Median`: 中位数。 + +### MarkLineData.xPosition + +`float` +The x coordinate relative to the origin, in pixels. + +### MarkLineData.xValue + +`double` +The value specified on the X-axis. A value specified when the X-axis is the category axis represents the index of the category axis data, otherwise a specific value. + +### MarkLineData.yPosition + +`float` +The y coordinate relative to the origin, in pixels. + +### MarkLineData.yValue + +`double` +That's the value on the Y-axis. The value specified when the Y axis is the category axis represents the index of the category axis data, otherwise the specific value. + +### MarkLineData.zeroPosition + +`bool` `false` +Is the origin of the coordinate system. ## MarqueeStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) > Since `v3.5.0` Marquee style. It can be used for the DataZoom component. 选取框样式。可用于DataZoom组件。 -```mdx-code-block - -``` +### MarqueeStyle.apply +`bool` `false` `v3.5.0` +Check whether the scope is applied to the DataZoom. If this parameter is set to true, the range after the selection is complete is the DataZoom selection range. -|field|default|since|comment| -|--|--|--|--| -|apply|false|v3.5.0|Check whether the scope is applied to the DataZoom. If this parameter is set to true, the range after the selection is complete is the DataZoom selection range. -|realRect|false|v3.5.0|Whether to select the actual box selection area. When true, the actual range between the mouse's actual point and the end point is used as the box selection area. -|areaStyle||v3.5.0|The area style of marquee. [AreaStyle](#areastyle)| -|lineStyle||v3.5.0|The line style of marquee border. [LineStyle](#linestyle)| +### MarqueeStyle.areaStyle -```mdx-code-block - -``` +`AreaStyle` `v3.5.0` +The area style of marquee. [AreaStyle](#areastyle) + +### MarqueeStyle.lineStyle + +`LineStyle` `v3.5.0` +The line style of marquee border. [LineStyle](#linestyle) + +### MarqueeStyle.realRect + +`bool` `false` `v3.5.0` +Whether to select the actual box selection area. When true, the actual range between the mouse's actual point and the end point is used as the box selection area. ## MLValue -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) > Since `v3.8.0` 多样式数值。 -```mdx-code-block - -``` +### MLValue.type + +`MLValue.Type` -|field|default|since|comment| -|--|--|--|--| -|type|||
`MLValue.Type`:
- `Percent`: Percent value form.
- `Absolute`: Absolute value form.
- `Extra`: Extra value form.
| -|value||| +Options: -```mdx-code-block -
-``` +- `Percent`: Percent value form. +- `Absolute`: Absolute value form. +- `Extra`: Extra value form. + +### MLValue.value + +`float` ## Padding -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [TextPadding](#textpadding) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [TextPadding](#textpadding) padding setting of item or text. -```mdx-code-block - -``` +### Padding.bottom +`float` `0` +padding of bottom. -|field|default|since|comment| -|--|--|--|--| -|show|true||show padding. 是否显示。 -|top|0||padding of top. -|right|2f||padding of right. -|left|2f||padding of left. -|bottom|0||padding of bottom. +### Padding.left -```mdx-code-block - -``` +`float` `2f` +padding of left. + +### Padding.right + +`float` `2f` +padding of right. + +### Padding.show + +`bool` `true` +show padding. 是否显示。 + +### Padding.top + +`float` `0` +padding of top. ## Parallel -> class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) ## ParallelAxis -> class in XCharts.Runtime / Inherits from: [Axis](#axis) +class in XCharts.Runtime / Inherits from: [Axis](#axis) ## ParallelCoord -> class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem), [IUpdateRuntimeData](#iupdateruntimedata), [ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem), [IUpdateRuntimeData](#iupdateruntimedata), [ISerieContainer](#iseriecontainer) Grid component. -```mdx-code-block - -``` +### ParallelCoord.backgroundColor +`Color` +Background color of grid, which is transparent by default. -|field|default|since|comment| -|--|--|--|--| -|show|true||Whether to show the grid in rectangular coordinate. -|orient|||Orientation of the axis. By default, it's 'Vertical'. You can set it to be 'Horizonal' to make a vertical axis.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|left|0.1f||Distance between grid component and the left side of the container. -|right|0.08f||Distance between grid component and the right side of the container. -|top|0.22f||Distance between grid component and the top side of the container. -|bottom|0.12f||Distance between grid component and the bottom side of the container. -|backgroundColor|||Background color of grid, which is transparent by default. +### ParallelCoord.bottom -```mdx-code-block -
-``` +`float` `0.12f` +Distance between grid component and the bottom side of the container. + +### ParallelCoord.left + +`float` `0.1f` +Distance between grid component and the left side of the container. + +### ParallelCoord.orient + +`Orient` +Orientation of the axis. By default, it's 'Vertical'. You can set it to be 'Horizonal' to make a vertical axis. + +Options: + +- `Horizonal`: 水平 +- `Vertical`: 垂直 + +### ParallelCoord.right + +`float` `0.08f` +Distance between grid component and the right side of the container. + +### ParallelCoord.show + +`bool` `true` +Whether to show the grid in rectangular coordinate. + +### ParallelCoord.top + +`float` `0.22f` +Distance between grid component and the top side of the container. ## Pie -> class in XCharts.Runtime / Inherits from: [Serie](#serie) +class in XCharts.Runtime / Inherits from: [Serie](#serie) -```mdx-code-block - -``` +### Pie.radiusGradient - -|field|default|since|comment| -|--|--|--|--| -|radiusGradient|false|v3.8.1|Whether to use gradient color in pie chart. - -```mdx-code-block - -``` +`bool` `false` `v3.8.1` +Whether to use gradient color in pie chart. ## PolarAxisTheme -> class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) ## PolarCoord -> class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem), [ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem), [ISerieContainer](#iseriecontainer) Polar coordinate can be used in scatter and line chart. Every polar coordinate has an angleAxis and a radiusAxis. -```mdx-code-block - -``` +### PolarCoord.backgroundColor +`Color` +Background color of polar, which is transparent by default. -|field|default|since|comment| -|--|--|--|--| -|show|true||Whether to show the polor component. -|center|||The center of ploar. The center[0] is the x-coordinate, and the center[1] is the y-coordinate. When value between 0 and 1 represents a percentage relative to the chart. -|radius|||the radius of polar. -|backgroundColor|||Background color of polar, which is transparent by default. -|indicatorLabelOffset|30f|v3.8.0|The offset of indicator label. +### PolarCoord.center -```mdx-code-block - -``` +`float[]` +The center of ploar. The center[0] is the x-coordinate, and the center[1] is the y-coordinate. When value between 0 and 1 represents a percentage relative to the chart. + +### PolarCoord.indicatorLabelOffset + +`float` `30f` `v3.8.0` +The offset of indicator label. + +### PolarCoord.radius + +`float[]` +the radius of polar. + +### PolarCoord.show + +`bool` `true` +Whether to show the polor component. ## Radar -> class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) -```mdx-code-block - -``` +### Radar.smooth - -|field|default|since|comment| -|--|--|--|--| -|smooth|false|v3.2.0|Whether use smooth curve. - -```mdx-code-block - -``` +`bool` `false` `v3.2.0` +Whether use smooth curve. ## RadarAxisTheme -> class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) ## RadarCoord -> class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem), [ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem), [ISerieContainer](#iseriecontainer) Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适用于雷达图。 ## RadiusAxis -> class in XCharts.Runtime / Inherits from: [Axis](#axis) +class in XCharts.Runtime / Inherits from: [Axis](#axis) Radial axis of polar coordinate. ## RadiusAxisTheme -> class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) ## Ring -> class in XCharts.Runtime / Inherits from: [Serie](#serie) +class in XCharts.Runtime / Inherits from: [Serie](#serie) -```mdx-code-block - -``` +### Ring.radiusGradient - -|field|default|since|comment| -|--|--|--|--| -|radiusGradient|false|v3.12.0|Whether to use gradient color in pie chart. - -```mdx-code-block - -``` +`bool` `false` `v3.12.0` +Whether to use gradient color in pie chart. ## Scatter -> class in XCharts.Runtime / Inherits from: [BaseScatter](#basescatter) +class in XCharts.Runtime / Inherits from: [BaseScatter](#basescatter) ## SelectStyle -> class in XCharts.Runtime / Inherits from: [StateStyle](#statestyle), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [StateStyle](#statestyle), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) > Since `v3.2.0` @@ -1840,714 +2992,1683 @@ Configurations of select state. ## Serie -> class in XCharts.Runtime / Inherits from: [BaseSerie](#baseserie), [IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=IComparable) / Subclasses: [SerieHandler<T>](#seriehandlert), [Bar](#bar), [SimplifiedBar](#simplifiedbar), [Candlestick](#candlestick), [SimplifiedCandlestick](#simplifiedcandlestick), [Heatmap](#heatmap), [Line](#line), [SimplifiedLine](#simplifiedline), [Parallel](#parallel), [Pie](#pie), [Radar](#radar), [Ring](#ring), [BaseScatter](#basescatter) +class in XCharts.Runtime / Inherits from: [BaseSerie](#baseserie), [IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=IComparable) / Subclasses: [SerieHandler<T>](#seriehandlert), [Bar](#bar), [SimplifiedBar](#simplifiedbar), [Candlestick](#candlestick), [SimplifiedCandlestick](#simplifiedcandlestick), [Heatmap](#heatmap), [Line](#line), [SimplifiedLine](#simplifiedline), [Parallel](#parallel), [Pie](#pie), [Radar](#radar), [Ring](#ring), [BaseScatter](#basescatter) 系列。系列一般由数据和配置组成,用来表示具体的图表图形,如折线图的一条折线,柱图的一组柱子等。一个图表中可以包含多个不同类型的系列。 -```mdx-code-block - -``` +### Serie.align +`Align` +组件水平方向对齐方式。 -|field|default|since|comment| -|--|--|--|--| -|index|||The index of serie. -|show|true||Whether to show serie in chart. -|coordSystem|||the chart coord system of serie. -|serieType|||the type of serie. -|serieName|||Series name used for displaying in tooltip and filtering with legend. -|state||v3.2.0|The default state of a serie.
`SerieState`:
- `Normal`: Normal state.
- `Emphasis`: Emphasis state.
- `Blur`: Blur state.
- `Select`: Select state.
- `Auto`: Auto state.
| -|colorBy||v3.2.0|The policy to take color from theme.
`SerieColorBy`:
- `Default`: Select state.
- `Serie`: assigns the colors in the palette by serie, so that all data in the same series are in the same color.
- `Data`: assigns colors in the palette according to data items, with each data item using a different color.
| -|stack|||If stack the value. On the same category axis, the series with the same stack name would be put on top of each other. -|xAxisIndex|0||the index of XAxis. -|yAxisIndex|0||the index of YAxis. -|radarIndex|0||Index of radar component that radar chart uses. -|vesselIndex|0||Index of vesel component that liquid chart uses. -|polarIndex|0||Index of polar component that serie uses. -|singleAxisIndex|0||Index of single axis component that serie uses. -|parallelIndex|0||Index of parallel coord component that serie uses. -|gridIndex|-1|v3.8.0|Index of layout component that serie uses. Default is -1 means not use layout, otherwise use the first layout component. -|minShow|||The min number of data to show in chart. -|maxShow|||The max number of data to show in chart. -|maxCache|||The max number of serie data cache. The first data will be remove when the size of serie data is larger then maxCache. -|sampleDist|0||the min pixel dist of sample. -|sampleType|||the type of sample.
`SampleType`:
- `Peak`: Take a peak. When the average value of the filter point is greater than or equal to 'sampleAverage', take the maximum value; If you do it the other way around, you get the minimum.
- `Average`: Take the average of the filter points.
- `Max`: Take the maximum value of the filter point.
- `Min`: Take the minimum value of the filter point.
- `Sum`: Take the sum of the filter points.
| -|sampleAverage|0||设定的采样平均值。当sampleType 为 Peak 时,用于和过滤数据的平均值做对比是取最大值还是最小值。默认为0时会实时计算所有数据的平均值。 -|lineType|||The type of line chart.
`LineType`:
- `Normal`: the normal line chart,
- `Smooth`: the smooth line chart,
- `StepStart`: step line.
- `StepMiddle`: step line.
- `StepEnd`: step line.
| -|smoothLimit|false|v3.4.0|Whether to restrict the curve. When true, the curve between two continuous data of the same value is restricted to not exceed the data point, and is flat to the data point. -|barType|||柱形图类型。
`BarType`:
- `Normal`: normal bar.
- `Zebra`: zebra bar.
- `Capsule`: capsule bar.
| -|barPercentStack|false||柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true,则就显示成百分比堆叠柱状图。 -|barWidth|0||The width of the bar. Adaptive when default 0. -|barMaxWidth|0|v3.5.0|The max width of the bar. Adaptive when default 0. -|barGap|0.1f||The gap between bars between different series, is a percent value like '0.3f' , which means 30% of the bar width, can be set as a fixed value. Set barGap as '-1' can overlap bars that belong to different series, which is useful when making a series of bar be background. In a single coodinate system, this attribute is shared by multiple 'bar' series. This attribute should be set on the last 'bar' series in the coodinate system, then it will be adopted by all 'bar' series in the coordinate system. -|barZebraWidth|4f||斑马线的粗细。 -|barZebraGap|2f||斑马线的间距。 -|min|||最小值。 -|max|||最大值。 -|minSize|0f||数据最小值 min 映射的宽度。 -|maxSize|1f||数据最大值 max 映射的宽度。 -|startAngle|||起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。 -|endAngle|||结束角度。和时钟一样,12点钟位置是0度,顺时针到360度。 -|minAngle|||The minimum angle of sector(0-360). It prevents some sector from being too small when value is small. -|clockwise|true||是否顺时针。 -|roundCap|||是否开启圆弧效果。 -|splitNumber|||刻度分割段数。最大可设置36。 -|clickOffset|true||Whether offset when mouse click pie chart item. -|roseType|||Whether to show as Nightingale chart.
`RoseType`:
- `None`: Don't show as Nightingale chart.
- `Radius`: Use central angle to show the percentage of data, radius to show data size.
- `Area`: All the sectors will share the same central angle, the data size is shown only through radiuses.
| -|gap|||gap of item. -|center|||the center of chart. -|radius|||the radius of chart. -|minRadius|0f|v3.8.0|the min radius of chart. It can be used to limit the minimum radius of the rose chart. -|minShowLabel|false|v3.10.0|Whether the label is not displayed when the enabled value is less than the specified value. -|minShowLabelValue|0|v3.10.0|When 'minShowLabel' is enabled, labels are not displayed if the value is less than this value. -|showDataDimension|||数据项里的数据维数。 -|showDataName|||在Editor的inpsector上是否显示name参数 -|clip|false||If clip the overflow on the coordinate system. -|ignore|false||是否开启忽略数据。当为 true 时,数据值为 ignoreValue 时不进行绘制。 -|ignoreValue|0||忽略数据的默认值。当ignore为true才有效。 -|ignoreLineBreak|false||忽略数据时折线是断开还是连接。默认false为连接。 -|showAsPositiveNumber|false||Show negative number as positive number. -|large|true||是否开启大数据量优化,在数据图形特别多而出现卡顿时候可以开启。 开启后配合 largeThreshold 在数据量大于指定阈值的时候对绘制进行优化。 缺点:优化后不能自定义设置单个数据项的样式,不能显示Label。 -|largeThreshold|200||Turn on the threshold for mass optimization. Enter performance mode only when large is enabled and the amount of data is greater than the threshold. -|avoidLabelOverlap|false||If the pie chart and labels are displayed externally, whether to enable the label overlap prevention policy is disabled by default. If labels are crowded and overlapped, the positions of labels are moved to prevent label overlap. -|radarType|||雷达图类型。
`RadarType`:
- `Multiple`: multiple radar.
- `Single`: single radar.
| -|placeHolder|false||占位模式。占位模式时,数据有效但不参与渲染和显示。 -|dataSortType|||组件的数据排序。
`SerieDataSortType`:
- `None`: In the order of data.
- `Ascending`: Sort data in ascending order.
- `Descending`: Sort data in descending order.
| -|orient|||组件的朝向。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|align|||组件水平方向对齐方式。
`Align`:
- `Center`: Alignment mode.
- `Left`: Alignment mode.
- `Right`: Alignment mode.
| -|left|||Distance between component and the left side of the container. -|right|||Distance between component and the right side of the container. -|top|||Distance between component and the top side of the container. -|bottom|||Distance between component and the bottom side of the container. -|insertDataToHead|||Whether to add new data at the head or at the end of the list. -|lineStyle|||The style of line. [LineStyle](#linestyle)| -|symbol|||the symbol of serie data item. [SerieSymbol](#seriesymbol)| -|animation|||The start animation. [AnimationStyle](#animationstyle)| -|itemStyle|||The style of data item. [ItemStyle](#itemstyle)| -|data|||系列中的数据内容数组。SerieData可以设置1到n维数据。 -|links|||数据节点的边。 +Options: -```mdx-code-block -
-``` +- `Center`: Alignment mode. +- `Left`: Alignment mode. +- `Right`: Alignment mode. + +### Serie.animation + +`AnimationStyle` +The start animation. [AnimationStyle](#animationstyle) + +### Serie.avoidLabelOverlap + +`bool` `false` +If the pie chart and labels are displayed externally, whether to enable the label overlap prevention policy is disabled by default. If labels are crowded and overlapped, the positions of labels are moved to prevent label overlap. + +### Serie.barGap + +`float` `0.1f` +The gap between bars between different series, is a percent value like '0.3f' , which means 30% of the bar width, can be set as a fixed value. Set barGap as '-1' can overlap bars that belong to different series, which is useful when making a series of bar be background. In a single coodinate system, this attribute is shared by multiple 'bar' series. This attribute should be set on the last 'bar' series in the coodinate system, then it will be adopted by all 'bar' series in the coordinate system. + +### Serie.barMaxWidth + +`float` `0` `v3.5.0` +The max width of the bar. Adaptive when default 0. + +### Serie.barPercentStack + +`bool` `false` +柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true,则就显示成百分比堆叠柱状图。 + +### Serie.barType + +`BarType` +柱形图类型。 + +Options: + +- `Normal`: normal bar. +- `Zebra`: zebra bar. +- `Capsule`: capsule bar. + +### Serie.barWidth + +`float` `0` +The width of the bar. Adaptive when default 0. + +### Serie.barZebraGap + +`float` `2f` +斑马线的间距。 + +### Serie.barZebraWidth + +`float` `4f` +斑马线的粗细。 + +### Serie.bottom + +`float` +Distance between component and the bottom side of the container. + +### Serie.center + +`float[]` +the center of chart. + +### Serie.clickOffset + +`bool` `true` +Whether offset when mouse click pie chart item. + +### Serie.clip + +`bool` `false` +If clip the overflow on the coordinate system. + +### Serie.clockwise + +`bool` `true` +是否顺时针。 + +### Serie.colorBy + +`SerieColorBy` `v3.2.0` +The policy to take color from theme. + +Options: + +- `Default`: Select state. +- `Serie`: assigns the colors in the palette by serie, so that all data in the same series are in the same color. +- `Data`: assigns colors in the palette according to data items, with each data item using a different color. + +### Serie.coordSystem + +`string` +the chart coord system of serie. + +### Serie.data + +`List` +系列中的数据内容数组。SerieData可以设置1到n维数据。 + +### Serie.dataSortType + +`SerieDataSortType` +组件的数据排序。 + +Options: + +- `None`: In the order of data. +- `Ascending`: Sort data in ascending order. +- `Descending`: Sort data in descending order. + +### Serie.endAngle + +`float` +结束角度。和时钟一样,12点钟位置是0度,顺时针到360度。 + +### Serie.gap + +`float` +gap of item. + +### Serie.gridIndex + +`int` `-1` `v3.8.0` +Index of layout component that serie uses. Default is -1 means not use layout, otherwise use the first layout component. + +### Serie.ignore + +`bool` `false` +是否开启忽略数据。当为 true 时,数据值为 ignoreValue 时不进行绘制。 + +### Serie.ignoreLineBreak + +`bool` `false` +忽略数据时折线是断开还是连接。默认false为连接。 + +### Serie.ignoreValue + +`double` `0` +忽略数据的默认值。当ignore为true才有效。 + +### Serie.index + +`int` +The index of serie. + +### Serie.insertDataToHead + +`bool` +Whether to add new data at the head or at the end of the list. + +### Serie.itemStyle + +`ItemStyle` +The style of data item. [ItemStyle](#itemstyle) + +### Serie.large + +`bool` `true` +是否开启大数据量优化,在数据图形特别多而出现卡顿时候可以开启。 开启后配合 largeThreshold 在数据量大于指定阈值的时候对绘制进行优化。 缺点:优化后不能自定义设置单个数据项的样式,不能显示Label。 + +### Serie.largeThreshold + +`int` `200` +Turn on the threshold for mass optimization. Enter performance mode only when large is enabled and the amount of data is greater than the threshold. + +### Serie.left + +`float` +Distance between component and the left side of the container. + +### Serie.lineStyle + +`LineStyle` +The style of line. [LineStyle](#linestyle) + +### Serie.lineType + +`LineType` +The type of line chart. + +Options: + +- `Normal`: the normal line chart, +- `Smooth`: the smooth line chart, +- `StepStart`: step line. +- `StepMiddle`: step line. +- `StepEnd`: step line. + +### Serie.links + +`List` +数据节点的边。 + +### Serie.max + +`float` +最大值。 + +### Serie.maxCache + +`int` +The max number of serie data cache. The first data will be remove when the size of serie data is larger then maxCache. + +### Serie.maxShow + +`int` +The max number of data to show in chart. + +### Serie.maxSize + +`float` `1f` +数据最大值 max 映射的宽度。 + +### Serie.min + +`float` +最小值。 + +### Serie.minAngle + +`float` +The minimum angle of sector(0-360). It prevents some sector from being too small when value is small. + +### Serie.minRadius + +`float` `0f` `v3.8.0` +the min radius of chart. It can be used to limit the minimum radius of the rose chart. + +### Serie.minShow + +`int` +The min number of data to show in chart. + +### Serie.minShowLabel + +`bool` `false` `v3.10.0` +Whether the label is not displayed when the enabled value is less than the specified value. + +### Serie.minShowLabelValue + +`double` `0` `v3.10.0` +When 'minShowLabel' is enabled, labels are not displayed if the value is less than this value. + +### Serie.minSize + +`float` `0f` +数据最小值 min 映射的宽度。 + +### Serie.orient + +`Orient` +组件的朝向。 + +Options: + +- `Horizonal`: 水平 +- `Vertical`: 垂直 + +### Serie.parallelIndex + +`int` `0` +Index of parallel coord component that serie uses. + +### Serie.placeHolder + +`bool` `false` +占位模式。占位模式时,数据有效但不参与渲染和显示。 + +### Serie.polarIndex + +`int` `0` +Index of polar component that serie uses. + +### Serie.radarIndex + +`int` `0` +Index of radar component that radar chart uses. + +### Serie.radarType + +`RadarType` +雷达图类型。 + +Options: + +- `Multiple`: multiple radar. +- `Single`: single radar. + +### Serie.radius + +`float[]` +the radius of chart. + +### Serie.right + +`float` +Distance between component and the right side of the container. + +### Serie.roseType + +`RoseType` +Whether to show as Nightingale chart. + +Options: + +- `None`: Don't show as Nightingale chart. +- `Radius`: Use central angle to show the percentage of data, radius to show data size. +- `Area`: All the sectors will share the same central angle, the data size is shown only through radiuses. + +### Serie.roundCap + +`bool` +是否开启圆弧效果。 + +### Serie.sampleAverage + +`float` `0` +设定的采样平均值。当sampleType 为 Peak 时,用于和过滤数据的平均值做对比是取最大值还是最小值。默认为0时会实时计算所有数据的平均值。 + +### Serie.sampleDist + +`float` `0` +the min pixel dist of sample. + +### Serie.sampleType + +`SampleType` +the type of sample. + +Options: + +- `Peak`: Take a peak. When the average value of the filter point is greater than or equal to 'sampleAverage', take the maximum value; If you do it the other way around, you get the minimum. +- `Average`: Take the average of the filter points. +- `Max`: Take the maximum value of the filter point. +- `Min`: Take the minimum value of the filter point. +- `Sum`: Take the sum of the filter points. + +### Serie.serieName + +`string` +Series name used for displaying in tooltip and filtering with legend. + +### Serie.serieType + +`string` +the type of serie. + +### Serie.show + +`bool` `true` +Whether to show serie in chart. + +### Serie.showAsPositiveNumber + +`bool` `false` +Show negative number as positive number. + +### Serie.showDataDimension + +`int` +数据项里的数据维数。 + +### Serie.showDataName + +`bool` +在Editor的inpsector上是否显示name参数 + +### Serie.singleAxisIndex + +`int` `0` +Index of single axis component that serie uses. + +### Serie.smoothLimit + +`bool` `false` `v3.4.0` +Whether to restrict the curve. When true, the curve between two continuous data of the same value is restricted to not exceed the data point, and is flat to the data point. + +### Serie.splitNumber + +`int` +刻度分割段数。最大可设置36。 + +### Serie.stack + +`string` +If stack the value. On the same category axis, the series with the same stack name would be put on top of each other. + +### Serie.startAngle + +`float` +起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。 + +### Serie.state + +`SerieState` `v3.2.0` +The default state of a serie. + +Options: + +- `Normal`: Normal state. +- `Emphasis`: Emphasis state. +- `Blur`: Blur state. +- `Select`: Select state. +- `Auto`: Auto state. + +### Serie.symbol + +`SerieSymbol` +the symbol of serie data item. [SerieSymbol](#seriesymbol) + +### Serie.top + +`float` +Distance between component and the top side of the container. + +### Serie.vesselIndex + +`int` `0` +Index of vesel component that liquid chart uses. + +### Serie.xAxisIndex + +`int` `0` +the index of XAxis. + +### Serie.yAxisIndex + +`int` `0` +the index of YAxis. ## SerieData -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) A data item of serie. -```mdx-code-block - -``` +### SerieData.data +`List` +An arbitrary dimension data list of data item. -|field|default|since|comment| -|--|--|--|--| -|index|||the index of SerieData. -|name|||the name of data item. -|id|||the id of data. -|parentId|||the id of parent SerieData. -|ignore|||是否忽略数据。当为 true 时,数据不进行绘制。 -|selected|||Whether the data item is selected. -|radius|||自定义半径。可用在饼图中自定义某个数据项的半径。 -|state||v3.2.0|the state of serie data.
`SerieState`:
- `Normal`: Normal state.
- `Emphasis`: Emphasis state.
- `Blur`: Blur state.
- `Select`: Select state.
- `Auto`: Auto state.
| -|data|||An arbitrary dimension data list of data item. +### SerieData.id -```mdx-code-block -
-``` +`string` +the id of data. + +### SerieData.ignore + +`bool` +是否忽略数据。当为 true 时,数据不进行绘制。 + +### SerieData.index + +`int` +the index of SerieData. + +### SerieData.name + +`string` +the name of data item. + +### SerieData.parentId + +`string` +the id of parent SerieData. + +### SerieData.radius + +`float` +自定义半径。可用在饼图中自定义某个数据项的半径。 + +### SerieData.selected + +`bool` +Whether the data item is selected. + +### SerieData.state + +`SerieState` `v3.2.0` +the state of serie data. + +Options: + +- `Normal`: Normal state. +- `Emphasis`: Emphasis state. +- `Blur`: Blur state. +- `Select`: Select state. +- `Auto`: Auto state. ## SerieDataLink -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) > Since `v3.10.0` the link of serie data. Used for sankey chart. Sankey chart only supports directed acyclic graph. make sure the data link is directed acyclic graph. -```mdx-code-block - -``` +### SerieDataLink.source +`string` +the source node name. -|field|default|since|comment| -|--|--|--|--| -|source|||the source node name. -|target|||the target node name. -|value|||the value of link. decide the width of link. +### SerieDataLink.target -```mdx-code-block - -``` +`string` +the target node name. + +### SerieDataLink.value + +`double` +the value of link. decide the width of link. ## SerieSymbol -> class in XCharts.Runtime / Inherits from: [SymbolStyle](#symbolstyle), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / Inherits from: [SymbolStyle](#symbolstyle), [ISerieDataComponent](#iseriedatacomponent) 系列数据项的标记的图形 -```mdx-code-block - -``` +### SerieSymbol.dataIndex +`int` `1` +whitch data index is when the sizeType assined as FromData. -|field|default|since|comment| -|--|--|--|--| -|sizeType|||the type of symbol size.
`SymbolSizeType`:
- `Custom`: Specify constant for symbol size.
- `FromData`: Specify the dataIndex and dataScale to calculate symbol size.
- `Function`: Specify function for symbol size.
| -|dataIndex|1||whitch data index is when the sizeType assined as FromData. -|dataScale|1||the scale of data when sizeType assined as FromData. -|sizeFunction|||the function of size when sizeType assined as Function. -|startIndex|||the index start to show symbol. -|interval|||the interval of show symbol. -|forceShowLast|false||whether to show the last symbol. -|repeat|false||图形是否重复。 -|minSize|0f|v3.3.0|Minimum symbol size. -|maxSize|0f|v3.3.0|Maximum symbol size. +### SerieSymbol.dataScale -```mdx-code-block -
-``` +`float` `1` +the scale of data when sizeType assined as FromData. + +### SerieSymbol.forceShowLast + +`bool` `false` +whether to show the last symbol. + +### SerieSymbol.interval + +`int` +the interval of show symbol. + +### SerieSymbol.maxSize + +`float` `0f` `v3.3.0` +Maximum symbol size. + +### SerieSymbol.minSize + +`float` `0f` `v3.3.0` +Minimum symbol size. + +### SerieSymbol.repeat + +`bool` `false` +图形是否重复。 + +### SerieSymbol.sizeFunction + +`SymbolSizeFunction` +the function of size when sizeType assined as Function. + +### SerieSymbol.sizeType + +`SymbolSizeType` +the type of symbol size. + +Options: + +- `Custom`: Specify constant for symbol size. +- `FromData`: Specify the dataIndex and dataScale to calculate symbol size. +- `Function`: Specify function for symbol size. + +### SerieSymbol.startIndex + +`int` +the index start to show symbol. ## SerieTheme -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) -```mdx-code-block - -``` +### SerieTheme.candlestickBorderColor +`Color32` `Color32(235, 84, 84, 255)` +K线图阳线(跌)边框色 -|field|default|since|comment| -|--|--|--|--| -|lineWidth|||the color of text. -|lineSymbolSize|||the symbol size of line serie. -|scatterSymbolSize|||the symbol size of scatter serie. -|candlestickColor|Color32(235, 84, 84, 255)||K线图阳线(涨)填充色 -|candlestickColor0|Color32(71, 178, 98, 255)||K线图阴线(跌)填充色 -|candlestickBorderWidth|1||K线图边框宽度 -|candlestickBorderColor|Color32(235, 84, 84, 255)||K线图阳线(跌)边框色 -|candlestickBorderColor0|Color32(71, 178, 98, 255)||K线图阴线(跌)边框色 +### SerieTheme.candlestickBorderColor0 -```mdx-code-block - -``` +`Color32` `Color32(71, 178, 98, 255)` +K线图阴线(跌)边框色 + +### SerieTheme.candlestickBorderWidth + +`float` `1` +K线图边框宽度 + +### SerieTheme.candlestickColor + +`Color32` `Color32(235, 84, 84, 255)` +K线图阳线(涨)填充色 + +### SerieTheme.candlestickColor0 + +`Color32` `Color32(71, 178, 98, 255)` +K线图阴线(跌)填充色 + +### SerieTheme.lineSymbolSize + +`float` +the symbol size of line serie. + +### SerieTheme.lineWidth + +`float` +the color of text. + +### SerieTheme.scatterSymbolSize + +`float` +the symbol size of scatter serie. ## Settings -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) Global parameter setting component. The default value can be used in general, and can be adjusted when necessary. -```mdx-code-block - -``` +### Settings.axisMaxSplitNumber +`float` `50` `v3.1.0` +the max splitnumber of axis. -|field|default|since|comment| -|--|--|--|--| -|show|true|| -|maxPainter|10||max painter. -|reversePainter|false||Painter是否逆序。逆序时index大的serie最先绘制。 -|basePainterMaterial|||Base Pointer 材质球,设置后会影响Axis等。 -|seriePainterMaterial|||Serie Pointer 材质球,设置后会影响所有Serie。 -|upperPainterMaterial|||Upper Pointer 材质球。 -|topPainterMaterial|||Top Pointer 材质球。 -|lineSmoothStyle|2.5f||Curve smoothing factor. By adjusting the smoothing coefficient, the curvature of the curve can be changed, and different curves with slightly different appearance can be obtained. -|lineSmoothness|2f||Smoothness of curve. The smaller the value, the smoother the curve, but the number of vertices will increase. -|lineSegmentDistance|3f||The partition distance of a line segment. A line in a normal line chart is made up of many segments, the number of which is determined by the change in value. The smaller the number of segments, the higher the number of vertices. When the area with gradient is filled, the larger the value, the worse the transition effect. -|cicleSmoothness|2f||the smoothess of cricle. -|legendIconLineWidth|2||the width of line serie legend. -|legendIconCornerRadius|||The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)). -|axisMaxSplitNumber|50|v3.1.0|the max splitnumber of axis. +### Settings.basePainterMaterial -```mdx-code-block - -``` +`Material` +Base Pointer 材质球,设置后会影响Axis等。 + +### Settings.cicleSmoothness + +`float` `2f` +the smoothess of cricle. + +### Settings.legendIconCornerRadius + +`float[]` +The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)). + +### Settings.legendIconLineWidth + +`float` `2` +the width of line serie legend. + +### Settings.lineSegmentDistance + +`float` `3f` +The partition distance of a line segment. A line in a normal line chart is made up of many segments, the number of which is determined by the change in value. The smaller the number of segments, the higher the number of vertices. When the area with gradient is filled, the larger the value, the worse the transition effect. + +### Settings.lineSmoothness + +`float` `2f` +Smoothness of curve. The smaller the value, the smoother the curve, but the number of vertices will increase. + +### Settings.lineSmoothStyle + +`float` `2.5f` +Curve smoothing factor. By adjusting the smoothing coefficient, the curvature of the curve can be changed, and different curves with slightly different appearance can be obtained. + +### Settings.maxPainter + +`int` `10` +max painter. + +### Settings.reversePainter + +`bool` `false` +Painter是否逆序。逆序时index大的serie最先绘制。 + +### Settings.seriePainterMaterial + +`Material` +Serie Pointer 材质球,设置后会影响所有Serie。 + +### Settings.show + +`bool` `true` + +### Settings.topPainterMaterial + +`Material` +Top Pointer 材质球。 + +### Settings.upperPainterMaterial + +`Material` +Upper Pointer 材质球。 ## SimplifiedBar -> class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer), [ISimplifiedSerie](#isimplifiedserie) +class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer), [ISimplifiedSerie](#isimplifiedserie) ## SimplifiedCandlestick -> class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer), [ISimplifiedSerie](#isimplifiedserie) +class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer), [ISimplifiedSerie](#isimplifiedserie) ## SimplifiedLine -> class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer), [ISimplifiedSerie](#isimplifiedserie) +class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer), [ISimplifiedSerie](#isimplifiedserie) ## SingleAxis -> class in XCharts.Runtime / Inherits from: [Axis](#axis), [IUpdateRuntimeData](#iupdateruntimedata) +class in XCharts.Runtime / Inherits from: [Axis](#axis), [IUpdateRuntimeData](#iupdateruntimedata) Single axis. -```mdx-code-block - -``` +### SingleAxis.bottom +`float` `0.2f` +Distance between component and the bottom side of the container. -|field|default|since|comment| -|--|--|--|--| -|orient|||Orientation of the axis. By default, it's 'Horizontal'. You can set it to be 'Vertical' to make a vertical axis.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|left|0.1f||Distance between component and the left side of the container. -|right|0.1f||Distance between component and the right side of the container. -|top|0f||Distance between component and the top side of the container. -|bottom|0.2f||Distance between component and the bottom side of the container. -|width|0||width of axis. -|height|50||height of axis. +### SingleAxis.height -```mdx-code-block -
-``` +`float` `50` +height of axis. + +### SingleAxis.left + +`float` `0.1f` +Distance between component and the left side of the container. + +### SingleAxis.orient + +`Orient` +Orientation of the axis. By default, it's 'Horizontal'. You can set it to be 'Vertical' to make a vertical axis. + +Options: + +- `Horizonal`: 水平 +- `Vertical`: 垂直 + +### SingleAxis.right + +`float` `0.1f` +Distance between component and the right side of the container. + +### SingleAxis.top + +`float` `0f` +Distance between component and the top side of the container. + +### SingleAxis.width + +`float` `0` +width of axis. ## SingleAxisCoord -> class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem) +class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem) ## StageColor -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) -```mdx-code-block - -``` +### StageColor.color +`Color32` +颜色。 -|field|default|since|comment| -|--|--|--|--| -|percent|||结束位置百分比。 -|color|||颜色。 +### StageColor.percent -```mdx-code-block - -``` +`float` +结束位置百分比。 ## StateStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [BlurStyle](#blurstyle), [EmphasisStyle](#emphasisstyle), [SelectStyle](#selectstyle) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [BlurStyle](#blurstyle), [EmphasisStyle](#emphasisstyle), [SelectStyle](#selectstyle) > Since `v3.2.0` the state style of serie. -```mdx-code-block - -``` +### StateStyle.areaStyle +`AreaStyle` +区域样式。 [AreaStyle](#areastyle) -|field|default|since|comment| -|--|--|--|--| -|show|true||是否启用高亮样式。 -|label|||图形文本标签。 [LabelStyle](#labelstyle)| -|labelLine|||图形文本引导线样式。 [LabelLine](#labelline)| -|itemStyle|||图形样式。 [ItemStyle](#itemstyle)| -|lineStyle|||折线样式。 [LineStyle](#linestyle)| -|areaStyle|||区域样式。 [AreaStyle](#areastyle)| -|symbol|||标记样式。 [SerieSymbol](#seriesymbol)| +### StateStyle.itemStyle -```mdx-code-block - -``` +`ItemStyle` +图形样式。 [ItemStyle](#itemstyle) + +### StateStyle.label + +`LabelStyle` +图形文本标签。 [LabelStyle](#labelstyle) + +### StateStyle.labelLine + +`LabelLine` +图形文本引导线样式。 [LabelLine](#labelline) + +### StateStyle.lineStyle + +`LineStyle` +折线样式。 [LineStyle](#linestyle) + +### StateStyle.show + +`bool` `true` +是否启用高亮样式。 + +### StateStyle.symbol + +`SerieSymbol` +标记样式。 [SerieSymbol](#seriesymbol) ## SubTitleTheme -> class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) ## SymbolStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [SerieSymbol](#seriesymbol) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [SerieSymbol](#seriesymbol) 系列数据项的标记的图形 -```mdx-code-block - -``` +### SymbolStyle.color +`Color32` +图形的颜色。 -|field|default|since|comment| -|--|--|--|--| -|show|true||Whether the symbol is showed. -|type|||the type of symbol.
`SymbolType`:
- `None`: 不显示标记。
- `Custom`: 自定义标记。
- `Circle`: 圆形。
- `EmptyCircle`: 空心圆。
- `Rect`: 正方形。可通过设置`itemStyle`的`cornerRadius`变成圆角矩形。
- `EmptyRect`: 空心正方形。
- `Triangle`: 三角形。
- `EmptyTriangle`: 空心三角形。
- `Diamond`: 菱形。
- `EmptyDiamond`: 空心菱形。
- `Arrow`: 箭头。
- `EmptyArrow`: 空心箭头。
- `Plus`: 加号。
- `Minus`: 减号。
| -|size|0f||the size of symbol. -|gap|0||the gap of symbol and line segment. -|width|0f||图形的宽。 -|height|0f||图形的高。 -|offset|Vector2.zero||图形的偏移。 -|image|||自定义的标记图形。 -|imageType|||the fill type of image. -|color|||图形的颜色。 +### SymbolStyle.gap -```mdx-code-block -
-``` +`float` `0` +the gap of symbol and line segment. + +### SymbolStyle.height + +`float` `0f` +图形的高。 + +### SymbolStyle.image + +`Sprite` +自定义的标记图形。 + +### SymbolStyle.imageType + +`Image.Type` +the fill type of image. + +### SymbolStyle.offset + +`Vector2` `Vector2.zero` +图形的偏移。 + +### SymbolStyle.show + +`bool` `true` +Whether the symbol is showed. + +### SymbolStyle.size + +`float` `0f` +the size of symbol. + +### SymbolStyle.type + +`SymbolType` +the type of symbol. + +Options: + +- `None`: 不显示标记。 +- `Custom`: 自定义标记。 +- `Circle`: 圆形。 +- `EmptyCircle`: 空心圆。 +- `Rect`: 正方形。可通过设置`itemStyle`的`cornerRadius`变成圆角矩形。 +- `EmptyRect`: 空心正方形。 +- `Triangle`: 三角形。 +- `EmptyTriangle`: 空心三角形。 +- `Diamond`: 菱形。 +- `EmptyDiamond`: 空心菱形。 +- `Arrow`: 箭头。 +- `EmptyArrow`: 空心箭头。 +- `Plus`: 加号。 +- `Minus`: 减号。 + +### SymbolStyle.width + +`float` `0f` +图形的宽。 ## TextLimit -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) Text character limitation and adaptation component. When the length of the text exceeds the set length, it is cropped and suffixes are appended to the end.Only valid in the category axis. -```mdx-code-block - -``` +### TextLimit.enable +`bool` `false` +Whether to enable text limit. -|field|default|since|comment| -|--|--|--|--| -|enable|false||Whether to enable text limit. -|maxWidth|0||Set the maximum width. A default of 0 indicates automatic fetch; otherwise, custom. -|gap|1||White pixel distance at both ends. -|suffix|||Suffixes when the length exceeds. +### TextLimit.gap -```mdx-code-block - -``` +`float` `1` +White pixel distance at both ends. + +### TextLimit.maxWidth + +`float` `0` +Set the maximum width. A default of 0 indicates automatic fetch; otherwise, custom. + +### TextLimit.suffix + +`string` +Suffixes when the length exceeds. ## TextPadding -> class in XCharts.Runtime / Inherits from: [Padding](#padding) +class in XCharts.Runtime / Inherits from: [Padding](#padding) Settings related to text. ## TextStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) Settings related to text. -```mdx-code-block - -``` +### TextStyle.alignment +`TextAnchor` +对齐方式。 -|field|default|since|comment| -|--|--|--|--| -|show|true||Settings related to text. -|font|||the font of text. When `null`, the theme's font is used by default. -|autoWrap|false||是否自动换行。 -|autoAlign|true||文本是否让系统自动选对齐方式。为false时才会用alignment。 -|rotate|0||Rotation of text. -|autoColor|false||是否开启自动颜色。当开启时,会自动设置颜色。 -|color|||the color of text. -|fontSize|0||font size. -|fontStyle|||font style. -|lineSpacing|1f||text line spacing. -|alignment|||对齐方式。 -|tMPFont|||the font of textmeshpro. -|tMPFontStyle||| -|tMPAlignment||| -|tMPSpriteAsset||v3.1.0| +### TextStyle.autoAlign -```mdx-code-block - -``` +`bool` `true` +文本是否让系统自动选对齐方式。为false时才会用alignment。 + +### TextStyle.autoColor + +`bool` `false` +是否开启自动颜色。当开启时,会自动设置颜色。 + +### TextStyle.autoWrap + +`bool` `false` +是否自动换行。 + +### TextStyle.color + +`Color` +the color of text. + +### TextStyle.font + +`Font` +the font of text. When `null`, the theme's font is used by default. + +### TextStyle.fontSize + +`int` `0` +font size. + +### TextStyle.fontStyle + +`FontStyle` +font style. + +### TextStyle.lineSpacing + +`float` `1f` +text line spacing. + +### TextStyle.rotate + +`float` `0` +Rotation of text. + +### TextStyle.show + +`bool` `true` +Settings related to text. + +### TextStyle.tMPAlignment + +`TextAlignmentOptions` + +### TextStyle.tMPFont + +`TMP_FontAsset` +the font of textmeshpro. + +### TextStyle.tMPFontStyle + +`FontStyles` + +### TextStyle.tMPSpriteAsset + +`TMP_SpriteAsset` `v3.1.0` ## Theme -> class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject) +class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject) Theme. -```mdx-code-block - -``` +### Theme.axis +`AxisTheme` + [AxisTheme](#axistheme) -|field|default|since|comment| -|--|--|--|--| -|themeType|||the theme of chart.
`ThemeType`:
- `Default`: 默认主题。
- `Light`: 亮主题。
- `Dark`: 暗主题。
- `Custom`: 自定义主题。
| -|themeName|||the name of theme. -|font|||the font of chart text。 -|tMPFont|||the font of chart text。 -|contrastColor|||the contrast color of chart. -|backgroundColor|||the background color of chart. -|colorPalette|||The color list of palette. If no color is set in series, the colors would be adopted sequentially and circularly from this list as the colors of series. -|common||| [ComponentTheme](#componenttheme)| -|title||| [TitleTheme](#titletheme)| -|subTitle||| [SubTitleTheme](#subtitletheme)| -|legend||| [LegendTheme](#legendtheme)| -|axis||| [AxisTheme](#axistheme)| -|tooltip||| [TooltipTheme](#tooltiptheme)| -|dataZoom||| [DataZoomTheme](#datazoomtheme)| -|visualMap||| [VisualMapTheme](#visualmaptheme)| -|serie||| [SerieTheme](#serietheme)| +### Theme.backgroundColor -```mdx-code-block -
-``` +`Color32` +the background color of chart. + +### Theme.colorPalette + +`List` +The color list of palette. If no color is set in series, the colors would be adopted sequentially and circularly from this list as the colors of series. + +### Theme.common + +`ComponentTheme` + [ComponentTheme](#componenttheme) + +### Theme.contrastColor + +`Color32` +the contrast color of chart. + +### Theme.dataZoom + +`DataZoomTheme` + [DataZoomTheme](#datazoomtheme) + +### Theme.font + +`Font` +the font of chart text。 + +### Theme.legend + +`LegendTheme` + [LegendTheme](#legendtheme) + +### Theme.serie + +`SerieTheme` + [SerieTheme](#serietheme) + +### Theme.subTitle + +`SubTitleTheme` + [SubTitleTheme](#subtitletheme) + +### Theme.themeName + +`string` +the name of theme. + +### Theme.themeType + +`ThemeType` +the theme of chart. + +Options: + +- `Default`: 默认主题。 +- `Light`: 亮主题。 +- `Dark`: 暗主题。 +- `Custom`: 自定义主题。 + +### Theme.title + +`TitleTheme` + [TitleTheme](#titletheme) + +### Theme.tMPFont + +`TMP_FontAsset` +the font of chart text。 + +### Theme.tooltip + +`TooltipTheme` + [TooltipTheme](#tooltiptheme) + +### Theme.visualMap + +`VisualMapTheme` + [VisualMapTheme](#visualmaptheme) ## ThemeStyle -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) Theme. -```mdx-code-block - -``` +### ThemeStyle.customBackgroundColor +`Color32` +the custom background color of chart. -|field|default|since|comment| -|--|--|--|--| -|show|true|| -|sharedTheme|||the asset of theme. [Theme](#theme)| -|transparentBackground|false||Whether the background color is transparent. When true, the background color is not drawn. -|enableCustomTheme|false||Whether to customize theme colors. When set to true, you can use 'sync color to custom' to synchronize the theme color to the custom color. It can also be set manually. -|customFont||| -|customBackgroundColor|||the custom background color of chart. -|customColorPalette||| +### ThemeStyle.customColorPalette -```mdx-code-block - -``` +`List` + +### ThemeStyle.customFont + +`Font` + +### ThemeStyle.enableCustomTheme + +`bool` `false` +Whether to customize theme colors. When set to true, you can use 'sync color to custom' to synchronize the theme color to the custom color. It can also be set manually. + +### ThemeStyle.sharedTheme + +`Theme` +the asset of theme. [Theme](#theme) + +### ThemeStyle.show + +`bool` `true` + +### ThemeStyle.transparentBackground + +`bool` `false` +Whether the background color is transparent. When true, the background color is not drawn. ## Title -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent), [IPropertyChanged](#ipropertychanged) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent), [IPropertyChanged](#ipropertychanged) Title component, including main title and subtitle. -```mdx-code-block - -``` +### Title.itemGap +`float` `0` +[default:8] The gap between the main title and subtitle. -|field|default|since|comment| -|--|--|--|--| -|show|true||[default:true] Set this to false to prevent the title from showing. -|text|||The main title text, supporting \n for newlines. -|subText|||Subtitle text, supporting for \n for newlines. -|labelStyle|||The text style of main title. [LabelStyle](#labelstyle)| -|subLabelStyle|||The text style of sub title. [LabelStyle](#labelstyle)| -|itemGap|0||[default:8] The gap between the main title and subtitle. -|location|||The location of title component. [Location](#location)| +### Title.labelStyle -```mdx-code-block - -``` +`LabelStyle` +The text style of main title. [LabelStyle](#labelstyle) + +### Title.location + +`Location` +The location of title component. [Location](#location) + +### Title.show + +`bool` `true` +[default:true] Set this to false to prevent the title from showing. + +### Title.subLabelStyle + +`LabelStyle` +The text style of sub title. [LabelStyle](#labelstyle) + +### Title.subText + +`string` +Subtitle text, supporting for \n for newlines. + +### Title.text + +`string` +The main title text, supporting \n for newlines. ## TitleStyle -> class in XCharts.Runtime / Inherits from: [LabelStyle](#labelstyle), [ISerieDataComponent](#iseriedatacomponent), [ISerieComponent](#iseriecomponent) +class in XCharts.Runtime / Inherits from: [LabelStyle](#labelstyle), [ISerieDataComponent](#iseriedatacomponent), [ISerieComponent](#iseriecomponent) the title of serie. ## TitleTheme -> class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) ## Tooltip -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) Tooltip component. -```mdx-code-block - -``` +### Tooltip.alwayShowContent +`bool` `false` +Whether to trigger after always display. -|field|default|since|comment| -|--|--|--|--| -|show|true||Whether to show the tooltip component. -|type|||Indicator type.
`Tooltip.Type`:
- `Line`: line indicator.
- `Shadow`: shadow crosshair indicator.
- `None`: no indicator displayed.
- `Cross`: crosshair indicator, which is actually the shortcut of enable two axisPointers of two orthometric axes.
- `Auto`: Auto select indicator according to serie type.
| -|trigger|||Type of triggering.
`Tooltip.Trigger`:
- `Item`: Triggered by data item, which is mainly used for charts that don't have a category axis like scatter charts or pie charts.
- `Axis`: Triggered by axes, which is mainly used for charts that have category axes, like bar charts or line charts.
- `None`: Trigger nothing.
- `Auto`: Auto select trigger according to serie type.
| -|triggerOn||v3.11.0|Condition of trigger tooltip.
`Tooltip.TriggerOn`:
- `MouseMove`: Trigger when mouse move.
- `Click`: Trigger when mouse click.
| -|position||v3.3.0|Type of position.
`Tooltip.Position`:
- `Auto`: Auto. The mobile platform is displayed at the top, and the non-mobile platform follows the mouse position.
- `Custom`: Custom. Fully customize display position (x,y).
- `FixedX`: Just fix the coordinate X. Y follows the mouse position.
- `FixedY`:
| -|itemFormatter|||a string template formatter for a single Serie or data item content. Support for wrapping lines with \n. 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.
{e} is the name of the data item serieData that is currently indicated or whose index is 0.
{f} is sum of data.
{y} is category value of y axis.
{.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).
{d:0.##} indicates that a formatted string with a value specified separately is 0.## (used for percentage, reserved 2 valid digits while avoiding the situation similar to "100.00%" when using f2 ).
Example: "{a}, {c}", "{a1}, {c1: f1}", "{a1}, {c1:0: f1}", "{a1} : {c1:1-1: f1}"
-|titleFormatter|||String template formatter for tooltip title content. \n line wrapping is supported. The placeholder {i} can be set separately to indicate that title is ignored and not displayed. Template variables are {.}, {a}, {b}, {c}, {d}, {e}, {f}, and {g}.
{.} is the dot of the corresponding color of serie currently indicated or index 0.
{a} is the series name name of serie currently indicated or index 0.
{b} is the name of the serie data item serieData currently indicated or index 0, or the category value (such as the X-axis of a line chart).
{c} is the value of the serie y-dimension (dimesion is 1) currently indicated or index is 0.
{d} is the serie y-dimensional (dimesion 1) percentage value of the currently indicated or index 0, note without the % sign.
{e} is the name of the serie data item serieData currently indicated or whose index is 0.
{h} is the hexadecimal color value of serieData for the serie data item currently indicated or index 0.
{f} is the sum of data.
{g} indicates the total number of data.
{y} is category value of y axis.
{.1} represents a dot of the corresponding color with serie specified as index 1.
The 1 in {a1}, {b1}, {c1} represents serie where index is specified as 1.
{c1:2} represents the third data of the current indicator data item in serie with index 1 (one data item has multiple data, index 2 represents the third data).
{c1:2-2} represents the third data of serie third data item with index 1 (that is, the number of data items must be specified when specifying the number of data items).
{d1:2:f2} indicates that a format string with a single value is f2 (numericFormatter is used if no value is specified).
{d:0.##} indicates that the format string with a value specified alone is 0.## # (for percentages, preserving a 2-digit significant number while avoiding the "100.00%" situation with f2).
example: "{a}, {c}", "{a1}, {c1: f1}", "{a1}, {c1:0: f1}", "{a1}, {c1:1-1: f1}" -|marker|||the marker of serie. -|fixedWidth|0||Fixed width. Higher priority than minWidth. -|fixedHeight|0||Fixed height. Higher priority than minHeight. -|minWidth|0||Minimum width. If fixedWidth has a value, get fixedWidth first. -|minHeight|0||Minimum height. If fixedHeight has a value, take priority over fixedHeight. -|numericFormatter|||Standard number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
Date format: Starts with `date`, which is used to format DateTime. Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
Time format: Starts with `time`, which is used to format TimeSpan. Common time formats are: d day, HH hour, mm minute, ss second, fffffff fractional part. Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. For example: time:HH\:mm\:ss
number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
Note: The date and time formats are only supported by 'v3.12.0' or later.
-|paddingLeftRight|10||the text padding of left and right. defaut:5. -|paddingTopBottom|10||the text padding of top and bottom. defaut:5. -|ignoreDataShow|false||Whether to show ignored data on tooltip. -|ignoreDataDefaultContent|||The default display character information for ignored data. -|showContent|true||Whether to show the tooltip floating layer, whose default value is true. It should be configurated to be false, if you only need tooltip to trigger the event or show the axisPointer without content. -|alwayShowContent|false||Whether to trigger after always display. -|offset|Vector2(18f, -25f)||The position offset of tooltip relative to the mouse position. -|backgroundImage|||The background image of tooltip. -|backgroundType|||The background type of tooltip. -|backgroundColor|||The background color of tooltip. -|borderWidth|2f||the width of tooltip border. -|fixedX|0f||the x positionn of fixedX. -|fixedY|0.7f||the y position of fixedY. -|titleHeight|25f||height of title text. -|itemHeight|25f||height of content text. -|borderColor|Color32(230, 230, 230, 255)||the color of tooltip border. -|lineStyle|||the line style of indicator line. [LineStyle](#linestyle)| -|titleLabelStyle|||the textstyle of title. [LabelStyle](#labelstyle)| -|contentLabelStyles|||the textstyle list of content. +### Tooltip.backgroundColor -```mdx-code-block -
-``` +`Color` +The background color of tooltip. + +### Tooltip.backgroundImage + +`Sprite` +The background image of tooltip. + +### Tooltip.backgroundType + +`Image.Type` +The background type of tooltip. + +### Tooltip.borderColor + +`Color32` `Color32(230, 230, 230, 255)` +the color of tooltip border. + +### Tooltip.borderWidth + +`float` `2f` +the width of tooltip border. + +### Tooltip.contentLabelStyles + +`List` +the textstyle list of content. + +### Tooltip.fixedHeight + +`float` `0` +Fixed height. Higher priority than minHeight. + +### Tooltip.fixedWidth + +`float` `0` +Fixed width. Higher priority than minWidth. + +### Tooltip.fixedX + +`float` `0f` +the x positionn of fixedX. + +### Tooltip.fixedY + +`float` `0.7f` +the y position of fixedY. + +### Tooltip.ignoreDataDefaultContent + +`string` +The default display character information for ignored data. + +### Tooltip.ignoreDataShow + +`bool` `false` +Whether to show ignored data on tooltip. + +### Tooltip.itemFormatter + +`string` +a string template formatter for a single Serie or data item content. Support for wrapping lines with \n. 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.
{e} is the name of the data item serieData that is currently indicated or whose index is 0.
{f} is sum of data.
{y} is category value of y axis.
{.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).
{d:0.##} indicates that a formatted string with a value specified separately is 0.## (used for percentage, reserved 2 valid digits while avoiding the situation similar to "100.00%" when using f2 ).
Example: "{a}, {c}", "{a1}, {c1: f1}", "{a1}, {c1:0: f1}", "{a1} : {c1:1-1: f1}"
+ +### Tooltip.itemHeight + +`float` `25f` +height of content text. + +### Tooltip.lineStyle + +`LineStyle` +the line style of indicator line. [LineStyle](#linestyle) + +### Tooltip.marker + +`string` +the marker of serie. + +### Tooltip.minHeight + +`float` `0` +Minimum height. If fixedHeight has a value, take priority over fixedHeight. + +### Tooltip.minWidth + +`float` `0` +Minimum width. If fixedWidth has a value, get fixedWidth first. + +### Tooltip.numericFormatter + +`string` +Standard number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
Date format: Starts with `date`, which is used to format DateTime. Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
Time format: Starts with `time`, which is used to format TimeSpan. Common time formats are: d day, HH hour, mm minute, ss second, fffffff fractional part. Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. For example: time:HH\:mm\:ss
number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
Note: The date and time formats are only supported by 'v3.12.0' or later.
+ +### Tooltip.offset + +`Vector2` `Vector2(18f, -25f)` +The position offset of tooltip relative to the mouse position. + +### Tooltip.paddingLeftRight + +`int` `10` +the text padding of left and right. defaut:5. + +### Tooltip.paddingTopBottom + +`int` `10` +the text padding of top and bottom. defaut:5. + +### Tooltip.position + +`Tooltip.Position` `v3.3.0` +Type of position. + +Options: + +- `Auto`: Auto. The mobile platform is displayed at the top, and the non-mobile platform follows the mouse position. +- `Custom`: Custom. Fully customize display position (x,y). +- `FixedX`: Just fix the coordinate X. Y follows the mouse position. +- `FixedY`: + +### Tooltip.show + +`bool` `true` +Whether to show the tooltip component. + +### Tooltip.showContent + +`bool` `true` +Whether to show the tooltip floating layer, whose default value is true. It should be configurated to be false, if you only need tooltip to trigger the event or show the axisPointer without content. + +### Tooltip.titleFormatter + +`string` +String template formatter for tooltip title content. \n line wrapping is supported. The placeholder {i} can be set separately to indicate that title is ignored and not displayed. Template variables are {.}, {a}, {b}, {c}, {d}, {e}, {f}, and {g}.
{.} is the dot of the corresponding color of serie currently indicated or index 0.
{a} is the series name name of serie currently indicated or index 0.
{b} is the name of the serie data item serieData currently indicated or index 0, or the category value (such as the X-axis of a line chart).
{c} is the value of the serie y-dimension (dimesion is 1) currently indicated or index is 0.
{d} is the serie y-dimensional (dimesion 1) percentage value of the currently indicated or index 0, note without the % sign.
{e} is the name of the serie data item serieData currently indicated or whose index is 0.
{h} is the hexadecimal color value of serieData for the serie data item currently indicated or index 0.
{f} is the sum of data.
{g} indicates the total number of data.
{y} is category value of y axis.
{.1} represents a dot of the corresponding color with serie specified as index 1.
The 1 in {a1}, {b1}, {c1} represents serie where index is specified as 1.
{c1:2} represents the third data of the current indicator data item in serie with index 1 (one data item has multiple data, index 2 represents the third data).
{c1:2-2} represents the third data of serie third data item with index 1 (that is, the number of data items must be specified when specifying the number of data items).
{d1:2:f2} indicates that a format string with a single value is f2 (numericFormatter is used if no value is specified).
{d:0.##} indicates that the format string with a value specified alone is 0.## # (for percentages, preserving a 2-digit significant number while avoiding the "100.00%" situation with f2).
example: "{a}, {c}", "{a1}, {c1: f1}", "{a1}, {c1:0: f1}", "{a1}, {c1:1-1: f1}" + +### Tooltip.titleHeight + +`float` `25f` +height of title text. + +### Tooltip.titleLabelStyle + +`LabelStyle` +the textstyle of title. [LabelStyle](#labelstyle) + +### Tooltip.trigger + +`Tooltip.Trigger` +Type of triggering. + +Options: + +- `Item`: Triggered by data item, which is mainly used for charts that don't have a category axis like scatter charts or pie charts. +- `Axis`: Triggered by axes, which is mainly used for charts that have category axes, like bar charts or line charts. +- `None`: Trigger nothing. +- `Auto`: Auto select trigger according to serie type. + +### Tooltip.triggerOn + +`Tooltip.TriggerOn` `v3.11.0` +Condition of trigger tooltip. + +Options: + +- `MouseMove`: Trigger when mouse move. +- `Click`: Trigger when mouse click. + +### Tooltip.type + +`Tooltip.Type` +Indicator type. + +Options: + +- `Line`: line indicator. +- `Shadow`: shadow crosshair indicator. +- `None`: no indicator displayed. +- `Cross`: crosshair indicator, which is actually the shortcut of enable two axisPointers of two orthometric axes. +- `Auto`: Auto select indicator according to serie type. ## TooltipTheme -> class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) -```mdx-code-block - -``` +### TooltipTheme.areaColor +`Color32` +the color of line. -|field|default|since|comment| -|--|--|--|--| -|lineType|||the type of line.
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|lineWidth|1f||the width of line. -|lineColor|||the color of line. -|areaColor|||the color of line. -|labelTextColor|||the text color of tooltip cross indicator's axis label. -|labelBackgroundColor|||the background color of tooltip cross indicator's axis label. +### TooltipTheme.labelBackgroundColor -```mdx-code-block -
-``` +`Color32` +the background color of tooltip cross indicator's axis label. + +### TooltipTheme.labelTextColor + +`Color32` +the text color of tooltip cross indicator's axis label. + +### TooltipTheme.lineColor + +`Color32` +the color of line. + +### TooltipTheme.lineType + +`LineStyle.Type` +the type of line. + +Options: + +- `Solid`: 实线 +- `Dashed`: 虚线 +- `Dotted`: 点线 +- `DashDot`: 点划线 +- `DashDotDot`: 双点划线 +- `None`: 双点划线 + +### TooltipTheme.lineWidth + +`float` `1f` +the width of line. ## UIComponentTheme -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) -```mdx-code-block - -``` +### UIComponentTheme.sharedTheme +`Theme` +the asset of theme. [Theme](#theme) -|field|default|since|comment| -|--|--|--|--| -|show|true|| -|sharedTheme|||the asset of theme. [Theme](#theme)| -|transparentBackground|false|| +### UIComponentTheme.show -```mdx-code-block - -``` +`bool` `true` + +### UIComponentTheme.transparentBackground + +`bool` `false` ## ViewControl -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) > Since `v3.11.0` View control component in 3D coordinate system. -```mdx-code-block - -``` +### ViewControl.alpha +`float` `90f` +The angle of the view in the x-z plane. -|field|default|since|comment| -|--|--|--|--| -|alpha|90f||The angle of the view in the x-z plane. -|beta|55f||The angle of the view in the y-z plane. +### ViewControl.beta -```mdx-code-block - -``` +`float` `55f` +The angle of the view in the y-z plane. ## VisualMap -> class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) +class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) VisualMap component. Mapping data to visual elements such as colors. -```mdx-code-block - -``` +### VisualMap.autoMinMax +`bool` `true` +Automatically set min, Max value 自动设置min,max的值 -|field|default|since|comment| -|--|--|--|--| -|show|true||Whether to enable components. -|showUI|false||Whether to display components. If set to false, it will not show up, but the data mapping function still exists. -|type|||the type of visualmap component.
`VisualMap.Type`:
- `Continuous`: 连续型。
- `Piecewise`: 分段型。
| -|selectedMode|||the selected mode for Piecewise visualMap.
`VisualMap.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
| -|serieIndex|0||the serie index of visualMap. -|min|0||范围最小值 -|max|0||范围最大值 -|range|||Specifies the position of the numeric value corresponding to the handle. Range should be within the range of [min,max]. -|text|||Text on both ends. -|textGap|||The distance between the two text bodies. -|splitNumber|5||For continuous data, it is automatically evenly divided into several segments and automatically matches the size of inRange color list when the default is 0. -|calculable|false||Whether the handle used for dragging is displayed (the handle can be dragged to adjust the selected range). -|realtime|true||Whether to update in real time while dragging. -|itemWidth|20f||The width of the figure, that is, the width of the color bar. -|itemHeight|140f||The height of the figure, that is, the height of the color bar. -|itemGap|10f||每个图元之间的间隔距离。 -|borderWidth|0||Border line width. -|dimension|-1||Specifies "which dimension" of the data to map to the visual element. "Data" is series.data. -|hoverLink|true||When the hoverLink function is turned on, when the mouse hovers over the visualMap component, the corresponding value of the mouse position is highlighted in the corresponding graphic element in the diagram. -|autoMinMax|true||Automatically set min, Max value 自动设置min,max的值 -|orient|||Specify whether the layout of component is horizontal or vertical.
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|location|||The location of component. [Location](#location)| -|workOnLine|true||Whether the visualmap is work on linestyle of linechart. -|workOnArea|false||Whether the visualmap is work on areaStyle of linechart. -|outOfRange|||Defines a visual color outside of the selected range. -|inRange|||分段式每一段的相关配置。 +### VisualMap.borderWidth -```mdx-code-block -
-``` +`float` `0` +Border line width. + +### VisualMap.calculable + +`bool` `false` +Whether the handle used for dragging is displayed (the handle can be dragged to adjust the selected range). + +### VisualMap.dimension + +`int` `-1` +Specifies "which dimension" of the data to map to the visual element. "Data" is series.data. + +### VisualMap.hoverLink + +`bool` `true` +When the hoverLink function is turned on, when the mouse hovers over the visualMap component, the corresponding value of the mouse position is highlighted in the corresponding graphic element in the diagram. + +### VisualMap.inRange + +`List` +分段式每一段的相关配置。 + +### VisualMap.itemGap + +`float` `10f` +每个图元之间的间隔距离。 + +### VisualMap.itemHeight + +`float` `140f` +The height of the figure, that is, the height of the color bar. + +### VisualMap.itemWidth + +`float` `20f` +The width of the figure, that is, the width of the color bar. + +### VisualMap.location + +`Location` +The location of component. [Location](#location) + +### VisualMap.max + +`double` `0` +范围最大值 + +### VisualMap.min + +`double` `0` +范围最小值 + +### VisualMap.orient + +`Orient` +Specify whether the layout of component is horizontal or vertical. + +Options: + +- `Horizonal`: 水平 +- `Vertical`: 垂直 + +### VisualMap.outOfRange + +`List` +Defines a visual color outside of the selected range. + +### VisualMap.range + +`double[]` +Specifies the position of the numeric value corresponding to the handle. Range should be within the range of [min,max]. + +### VisualMap.realtime + +`bool` `true` +Whether to update in real time while dragging. + +### VisualMap.selectedMode + +`VisualMap.SelectedMode` +the selected mode for Piecewise visualMap. + +Options: + +- `Multiple`: 多选。 +- `Single`: 单选。 + +### VisualMap.serieIndex + +`int` `0` +the serie index of visualMap. + +### VisualMap.show + +`bool` `true` +Whether to enable components. + +### VisualMap.showUI + +`bool` `false` +Whether to display components. If set to false, it will not show up, but the data mapping function still exists. + +### VisualMap.splitNumber + +`int` `5` +For continuous data, it is automatically evenly divided into several segments and automatically matches the size of inRange color list when the default is 0. + +### VisualMap.text + +`string[]` +Text on both ends. + +### VisualMap.textGap + +`float[]` +The distance between the two text bodies. + +### VisualMap.type + +`VisualMap.Type` +the type of visualmap component. + +Options: + +- `Continuous`: 连续型。 +- `Piecewise`: 分段型。 + +### VisualMap.workOnArea + +`bool` `false` +Whether the visualmap is work on areaStyle of linechart. + +### VisualMap.workOnLine + +`bool` `true` +Whether the visualmap is work on linestyle of linechart. ## VisualMapRange -> class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) +class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) -```mdx-code-block - -``` +### VisualMapRange.color +`Color32` +颜色 -|field|default|since|comment| -|--|--|--|--| -|min|||范围最小值 -|max|||范围最大值 -|label|||文字描述 -|color|||颜色 +### VisualMapRange.label -```mdx-code-block - -``` +`string` +文字描述 + +### VisualMapRange.max + +`double` +范围最大值 + +### VisualMapRange.min + +`double` +范围最小值 ## VisualMapTheme -> class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) -```mdx-code-block - -``` +### VisualMapTheme.backgroundColor +`Color32` +the background color of visualmap. -|field|default|since|comment| -|--|--|--|--| -|borderWidth|||the width of border. -|borderColor|||the color of dataZoom border. -|backgroundColor|||the background color of visualmap. -|triangeLen|20f||可视化组件的调节三角形边长。 +### VisualMapTheme.borderColor -```mdx-code-block - -``` +`Color32` +the color of dataZoom border. + +### VisualMapTheme.borderWidth + +`float` +the width of border. + +### VisualMapTheme.triangeLen + +`float` `20f` +可视化组件的调节三角形边长。 ## Wrapper<T> -> class in XCharts.Runtime +class in XCharts.Runtime ## XAxis -> class in XCharts.Runtime / Inherits from: [Axis](#axis) +class in XCharts.Runtime / Inherits from: [Axis](#axis) The x axis in cartesian(rectangular) coordinate. ## XAxis3D -> class in XCharts.Runtime / Inherits from: [Axis](#axis) +class in XCharts.Runtime / Inherits from: [Axis](#axis) > Since `v3.11.0` @@ -2555,68 +4676,183 @@ The x axis in cartesian(rectangular) coordinate. ## XCResourcesImporter -> class in XCharts.Runtime +class in XCharts.Runtime ## XCSettings -> class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject) +class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject) -```mdx-code-block - -``` +### XCSettings.axisLineType + +`LineStyle.Type` -|field|default|since|comment| -|--|--|--|--| -|lang||| [Lang](#lang)| -|font||| -|tMPFont||| -|fontSizeLv1|28||一级字体大小。 -|fontSizeLv2|24|| -|fontSizeLv3|20|| -|fontSizeLv4|18|| -|axisLineType|||
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|axisLineWidth|0.8f|| -|axisSplitLineType|||
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|axisSplitLineWidth|0.8f|| -|axisTickWidth|0.8f|| -|axisTickLength|5f|| -|gaugeAxisLineWidth|15f|| -|gaugeAxisSplitLineWidth|0.8f|| -|gaugeAxisSplitLineLength|15f|| -|gaugeAxisTickWidth|0.8f|| -|gaugeAxisTickLength|5f|| -|tootipLineWidth|0.8f|| -|dataZoomBorderWidth|0.5f|| -|dataZoomDataLineWidth|0.5f|| -|visualMapBorderWidth|0f|| -|serieLineWidth|1.8f|| -|serieLineSymbolSize|5f|| -|serieScatterSymbolSize|20f|| -|serieSelectedRate|1.3f|| -|serieCandlestickBorderWidth|1f|| -|editorShowAllListData|false|| -|maxPainter|10|| -|lineSmoothStyle|3f|| -|lineSmoothness|2f|| -|lineSegmentDistance|3f|| -|cicleSmoothness|2f|| -|visualMapTriangeLen|20f|| -|customThemes||| +Options: -```mdx-code-block -
-``` +- `Solid`: 实线 +- `Dashed`: 虚线 +- `Dotted`: 点线 +- `DashDot`: 点划线 +- `DashDotDot`: 双点划线 +- `None`: 双点划线 + +### XCSettings.axisLineWidth + +`float` `0.8f` + +### XCSettings.axisSplitLineType + +`LineStyle.Type` + + +Options: + +- `Solid`: 实线 +- `Dashed`: 虚线 +- `Dotted`: 点线 +- `DashDot`: 点划线 +- `DashDotDot`: 双点划线 +- `None`: 双点划线 + +### XCSettings.axisSplitLineWidth + +`float` `0.8f` + +### XCSettings.axisTickLength + +`float` `5f` + +### XCSettings.axisTickWidth + +`float` `0.8f` + +### XCSettings.cicleSmoothness + +`float` `2f` + +### XCSettings.customThemes + +`List` + +### XCSettings.dataZoomBorderWidth + +`float` `0.5f` + +### XCSettings.dataZoomDataLineWidth + +`float` `0.5f` + +### XCSettings.editorShowAllListData + +`bool` `false` + +### XCSettings.font + +`Font` + +### XCSettings.fontSizeLv1 + +`int` `28` +一级字体大小。 + +### XCSettings.fontSizeLv2 + +`int` `24` + +### XCSettings.fontSizeLv3 + +`int` `20` + +### XCSettings.fontSizeLv4 + +`int` `18` + +### XCSettings.gaugeAxisLineWidth + +`float` `15f` + +### XCSettings.gaugeAxisSplitLineLength + +`float` `15f` + +### XCSettings.gaugeAxisSplitLineWidth + +`float` `0.8f` + +### XCSettings.gaugeAxisTickLength + +`float` `5f` + +### XCSettings.gaugeAxisTickWidth + +`float` `0.8f` + +### XCSettings.lang + +`Lang` + [Lang](#lang) + +### XCSettings.lineSegmentDistance + +`float` `3f` + +### XCSettings.lineSmoothness + +`float` `2f` + +### XCSettings.lineSmoothStyle + +`float` `3f` + +### XCSettings.maxPainter + +`int` `10` + +### XCSettings.serieCandlestickBorderWidth + +`float` `1f` + +### XCSettings.serieLineSymbolSize + +`float` `5f` + +### XCSettings.serieLineWidth + +`float` `1.8f` + +### XCSettings.serieScatterSymbolSize + +`float` `20f` + +### XCSettings.serieSelectedRate + +`float` `1.3f` + +### XCSettings.tMPFont + +`TMP_FontAsset` + +### XCSettings.tootipLineWidth + +`float` `0.8f` + +### XCSettings.visualMapBorderWidth + +`float` `0f` + +### XCSettings.visualMapTriangeLen + +`float` `20f` ## YAxis -> class in XCharts.Runtime / Inherits from: [Axis](#axis) +class in XCharts.Runtime / Inherits from: [Axis](#axis) The x axis in cartesian(rectangular) coordinate. ## YAxis3D -> class in XCharts.Runtime / Inherits from: [Axis](#axis) +class in XCharts.Runtime / Inherits from: [Axis](#axis) > Since `v3.11.0` @@ -2624,9 +4860,8 @@ The x axis in cartesian(rectangular) coordinate. ## ZAxis3D -> class in XCharts.Runtime / Inherits from: [Axis](#axis) +class in XCharts.Runtime / Inherits from: [Axis](#axis) > Since `v3.11.0` The x axis in cartesian(rectangular) coordinate. - diff --git a/Documentation~/zh/api.md b/Documentation~/zh/api.md index be4654ab..d3cddd5e 100644 --- a/Documentation~/zh/api.md +++ b/Documentation~/zh/api.md @@ -7,10 +7,12 @@ slug: /api ## 所有类 +- [Align](#align) - [AngleAxis](#angleaxis) - [AngleAxisTheme](#angleaxistheme) - [AnimationAddition](#animationaddition) - [AnimationChange](#animationchange) +- [AnimationEasing](#animationeasing) - [AnimationFadeIn](#animationfadein) - [AnimationFadeOut](#animationfadeout) - [AnimationHiding](#animationhiding) @@ -19,9 +21,14 @@ slug: /api - [AnimationInteraction](#animationinteraction) - [AnimationStyle](#animationstyle) - [AnimationStyleHelper](#animationstylehelper) +- [AnimationType](#animationtype) - [AreaStyle](#areastyle) +- [AreaStyle.AreaOrigin](#areastyleareaorigin) - [ArrowStyle](#arrowstyle) - [Axis](#axis) +- [Axis.AxisMinMaxType](#axisaxisminmaxtype) +- [Axis.AxisPosition](#axisaxisposition) +- [Axis.AxisType](#axisaxistype) - [Axis3DHelper](#axis3dhelper) - [AxisAnimation](#axisanimation) - [AxisContext](#axiscontext) @@ -39,6 +46,7 @@ slug: /api - [Background](#background) - [Bar](#bar) - [BarChart](#barchart) +- [BarType](#bartype) - [BaseAxisTheme](#baseaxistheme) - [BaseChart](#basechart) - [BaseGraph](#basegraph) @@ -70,6 +78,8 @@ slug: /api - [CoordSystem](#coordsystem) - [DataHelper](#datahelper) - [DataZoom](#datazoom) +- [DataZoom.FilterMode](#datazoomfiltermode) +- [DataZoom.RangeMode](#datazoomrangemode) - [DataZoomContext](#datazoomcontext) - [DataZoomHelper](#datazoomhelper) - [DataZoomTheme](#datazoomtheme) @@ -80,6 +90,8 @@ slug: /api - [DefineSymbolsUtil](#definesymbolsutil) - [EffectScatter](#effectscatter) - [EmphasisStyle](#emphasisstyle) +- [EmphasisStyle.BlurScope](#emphasisstyleblurscope) +- [EmphasisStyle.FocusType](#emphasisstylefocustype) - [EndLabelStyle](#endlabelstyle) - [FormatterHelper](#formatterhelper) - [GraphData](#graphdata) @@ -93,7 +105,9 @@ slug: /api - [GridLayoutContext](#gridlayoutcontext) - [Heatmap](#heatmap) - [HeatmapChart](#heatmapchart) +- [HeatmapType](#heatmaptype) - [IconStyle](#iconstyle) +- [IconStyle.Layer](#iconstylelayer) - [IgnoreDoc](#ignoredoc) - [ImageStyle](#imagestyle) - [Indicator](#indicator) @@ -109,12 +123,16 @@ slug: /api - [IUpdateRuntimeData](#iupdateruntimedata) - [JsonUtil](#jsonutil) - [LabelLine](#labelline) +- [LabelLine.LineType](#labellinelinetype) - [LabelStyle](#labelstyle) +- [LabelStyle.Position](#labelstyleposition) - [Lang](#lang) - [LangCandlestick](#langcandlestick) - [LangTime](#langtime) - [LayerHelper](#layerhelper) - [Legend](#legend) +- [Legend.SelectedMode](#legendselectedmode) +- [Legend.Type](#legendtype) - [LegendContext](#legendcontext) - [LegendHelper](#legendhelper) - [LegendItem](#legenditem) @@ -123,28 +141,37 @@ slug: /api - [LevelStyle](#levelstyle) - [Line](#line) - [LineArrow](#linearrow) +- [LineArrow.Position](#linearrowposition) - [LineChart](#linechart) - [LineHelper](#linehelper) - [LineStyle](#linestyle) +- [LineStyle.Type](#linestyletype) +- [LineType](#linetype) - [ListFor](#listfor) - [ListForComponent](#listforcomponent) - [ListForSerie](#listforserie) - [ListPool<T>](#listpoolt) - [Location](#location) +- [Location.Align](#locationalign) - [MainComponent](#maincomponent) - [MainComponentContext](#maincomponentcontext) - [MainComponentHandler](#maincomponenthandler) - [MainComponentHandler<T>](#maincomponenthandlert) - [MarkArea](#markarea) - [MarkAreaData](#markareadata) +- [MarkAreaType](#markareatype) - [MarkLine](#markline) - [MarkLineData](#marklinedata) +- [MarkLineType](#marklinetype) - [MarqueeStyle](#marqueestyle) - [MathUtil](#mathutil) - [MLValue](#mlvalue) +- [MLValue.Type](#mlvaluetype) - [MonoBehaviour](#monobehaviour) +- [Orient](#orient) - [Padding](#padding) - [Painter](#painter) +- [Painter.Type](#paintertype) - [Parallel](#parallel) - [ParallelAxis](#parallelaxis) - [ParallelChart](#parallelchart) @@ -161,18 +188,24 @@ slug: /api - [RadarAxisTheme](#radaraxistheme) - [RadarChart](#radarchart) - [RadarCoord](#radarcoord) +- [RadarCoord.PositionType](#radarcoordpositiontype) +- [RadarCoord.Shape](#radarcoordshape) - [RadarCoordContext](#radarcoordcontext) +- [RadarType](#radartype) - [RadiusAxis](#radiusaxis) - [RadiusAxisTheme](#radiusaxistheme) - [ReflectionUtil](#reflectionutil) - [RequireChartComponentAttribute](#requirechartcomponentattribute) - [Ring](#ring) - [RingChart](#ringchart) +- [RoseType](#rosetype) - [RuntimeUtil](#runtimeutil) +- [SampleType](#sampletype) - [Scatter](#scatter) - [ScatterChart](#scatterchart) - [SelectStyle](#selectstyle) - [Serie](#serie) +- [SerieColorBy](#seriecolorby) - [SerieComponentAttribute](#seriecomponentattribute) - [SerieContext](#seriecontext) - [SerieConvertAttribute](#serieconvertattribute) @@ -181,6 +214,7 @@ slug: /api - [SerieDataContext](#seriedatacontext) - [SerieDataExtraFieldAttribute](#seriedataextrafieldattribute) - [SerieDataLink](#seriedatalink) +- [SerieDataSortType](#seriedatasorttype) - [SerieEventData](#serieeventdata) - [SerieEventDataPool](#serieeventdatapool) - [SerieHandler](#seriehandler) @@ -191,6 +225,7 @@ slug: /api - [SerieLabelPool](#serielabelpool) - [SerieParams](#serieparams) - [SeriesHelper](#serieshelper) +- [SerieState](#seriestate) - [SerieSymbol](#seriesymbol) - [SerieTheme](#serietheme) - [Settings](#settings) @@ -209,16 +244,24 @@ slug: /api - [SVG](#svg) - [SVGPath](#svgpath) - [SVGPathSeg](#svgpathseg) +- [SVGPathSegType](#svgpathsegtype) +- [SymbolSizeType](#symbolsizetype) - [SymbolStyle](#symbolstyle) +- [SymbolType](#symboltype) - [TextLimit](#textlimit) - [TextPadding](#textpadding) - [TextStyle](#textstyle) - [Theme](#theme) - [ThemeStyle](#themestyle) +- [ThemeType](#themetype) - [Title](#title) - [TitleStyle](#titlestyle) - [TitleTheme](#titletheme) - [Tooltip](#tooltip) +- [Tooltip.Position](#tooltipposition) +- [Tooltip.Trigger](#tooltiptrigger) +- [Tooltip.TriggerOn](#tooltiptriggeron) +- [Tooltip.Type](#tooltiptype) - [TooltipContext](#tooltipcontext) - [TooltipData](#tooltipdata) - [TooltipHelper](#tooltiphelper) @@ -226,6 +269,7 @@ slug: /api - [TooltipView](#tooltipview) - [TooltipViewItem](#tooltipviewitem) - [UGL](#ugl) +- [UGL.Direction](#ugldirection) - [UGLExample](#uglexample) - [UGLHelper](#uglhelper) - [UIComponent](#uicomponent) @@ -233,6 +277,8 @@ slug: /api - [UIHelper](#uihelper) - [ViewControl](#viewcontrol) - [VisualMap](#visualmap) +- [VisualMap.SelectedMode](#visualmapselectedmode) +- [VisualMap.Type](#visualmaptype) - [VisualMapContext](#visualmapcontext) - [VisualMapHelper](#visualmaphelper) - [VisualMapRange](#visualmaprange) @@ -251,30 +297,48 @@ slug: /api - [ZAxis3D](#zaxis3d) +## Align + +class in XCharts.Runtime + +对齐方式。文本,图标,图形等的对齐方式。 + +可选: + +- `Center`: 对齐方式。文本,图标,图形等的对齐方式。 +- `Left`: 对齐方式。文本,图标,图形等的对齐方式。 +- `Right`: 对齐方式。文本,图标,图形等的对齐方式。 + ## AngleAxis -> class in XCharts.Runtime / 继承自: [Axis](#axis) +class in XCharts.Runtime / 继承自: [Axis](#axis) 极坐标系的角度轴。 -|API|版本|描述| -|--|--|--| -|GetValueAngle()||public float GetValueAngle(double value)| -|GetValueAngle()||public float GetValueAngle(float value)| -|SetDefaultValue()||public override void SetDefaultValue()| +### AngleAxis.GetValueAngle + +public float GetValueAngle(double value) + + +### AngleAxis.SetDefaultValue + +public override void SetDefaultValue() ## AngleAxisTheme -> class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) +### AngleAxisTheme.base(theme) -|API|版本|描述| -|--|--|--| -|AngleAxisTheme()||public AngleAxisTheme(ThemeType theme) : base(theme) { }| +public AngleAxisTheme(ThemeType theme) : base(theme) + +### AngleAxisTheme.AngleAxisTheme + +public AngleAxisTheme(ThemeType theme) : base(theme) { } ## AnimationAddition -> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) > 从 `v3.8.0` 开始支持 @@ -282,15 +346,23 @@ slug: /api ## AnimationChange -> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) > 从 `v3.8.0` 开始支持 数据变更动画。 +## AnimationEasing + +class in XCharts.Runtime + +可选: + +- `Linear`: + ## AnimationFadeIn -> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) > 从 `v3.8.0` 开始支持 @@ -298,7 +370,7 @@ slug: /api ## AnimationFadeOut -> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) > 从 `v3.8.0` 开始支持 @@ -306,7 +378,7 @@ slug: /api ## AnimationHiding -> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) > 从 `v3.8.0` 开始支持 @@ -314,666 +386,2354 @@ slug: /api ## AnimationInfo -> class in XCharts.Runtime / 子类: [AnimationFadeIn](#animationfadein),[AnimationFadeOut](#animationfadeout),[AnimationChange](#animationchange),[AnimationAddition](#animationaddition),[AnimationHiding](#animationhiding),[AnimationInteraction](#animationinteraction) +class in XCharts.Runtime / 子类: [AnimationFadeIn](#animationfadein),[AnimationFadeOut](#animationfadeout),[AnimationChange](#animationchange),[AnimationAddition](#animationaddition),[AnimationHiding](#animationhiding),[AnimationInteraction](#animationinteraction) > 从 `v3.8.0` 开始支持 动画配置参数。 -|API|版本|描述| -|--|--|--| -|End()||public void End()
结束动画。 | -|GetIndexDelay()||public float GetIndexDelay(int dataIndex)
获取动画延迟。 | -|Init()||public bool Init(float curr, float dest, int totalPointIndex)
初始化动画。 | -|IsFinish()||public bool IsFinish()
动画是否结束。 | -|IsInDelay()||public bool IsInDelay()
动画是否在延迟中。 | -|IsInIndexDelay()||public bool IsInIndexDelay(int dataIndex)
动画是否在索引延迟中。 | -|Pause()||public void Pause()
暂停动画。 | -|Reset()||public void Reset()
重置动画。 | -|Resume()||public void Resume()
恢复动画。 | -|Start()||public void Start(bool reset = true)
开始动画。 | +### AnimationInfo.delay + +public float delay +动画开始前的延迟时间。 + +### AnimationInfo.delayFunction + +public AnimationDelayFunction delayFunction +动画延迟的委托函数。 + +### AnimationInfo.duration + +public float duration +动画的时长。 + +### AnimationInfo.durationFunction + +public AnimationDurationFunction durationFunction +动画时长的委托函数。 + +### AnimationInfo.enable + +public bool enable +是否开启动画效果。 + +### AnimationInfo.OnAnimationEnd + +public Action OnAnimationEnd +动画结束的回调。 + +### AnimationInfo.OnAnimationStart + +public Action OnAnimationStart +动画开始的回调。 + +### AnimationInfo.reverse + +public bool reverse +是否开启反向动画效果。 + +### AnimationInfo.End + +public void End() +结束动画。 + +### AnimationInfo.GetIndexDelay + +public float GetIndexDelay(int dataIndex) +获取动画延迟。 + +### AnimationInfo.Init + +public bool Init(float curr, float dest, int totalPointIndex) +初始化动画。 + +### AnimationInfo.IsFinish + +public bool IsFinish() +动画是否结束。 + +### AnimationInfo.IsInDelay + +public bool IsInDelay() +动画是否在延迟中。 + +### AnimationInfo.IsInIndexDelay + +public bool IsInIndexDelay(int dataIndex) +动画是否在索引延迟中。 + +### AnimationInfo.Pause + +public void Pause() +暂停动画。 + +### AnimationInfo.Reset + +public void Reset() +重置动画。 + +### AnimationInfo.Resume + +public void Resume() +恢复动画。 + +### AnimationInfo.Start + +public void Start(bool reset = true) +开始动画。 ## AnimationInfoContext -> class in XCharts.Runtime - +class in XCharts.Runtime ## AnimationInteraction -> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) > 从 `v3.8.0` 开始支持 交互动画。 -|API|版本|描述| -|--|--|--| -|GetOffset()||public float GetOffset()| -|GetOffset()||public float GetOffset(float total)| -|GetRadius()||public float GetRadius(float radius)| -|GetWidth()||public float GetWidth(float width)| +### AnimationInteraction.offset + +public MLValue offset +交互的多样式数值。如饼图的扇形选中时的偏移。 + +### AnimationInteraction.radius + +public MLValue radius +半径的多样式数值。 + +### AnimationInteraction.width + +public MLValue width +宽度的多样式数值。 + +### AnimationInteraction.GetOffset + +public float GetOffset() + + +### AnimationInteraction.GetRadius + +public float GetRadius(float radius) + +### AnimationInteraction.GetWidth + +public float GetWidth(float width) ## AnimationStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 动画组件,用于控制图表的动画播放。支持配置五种动画表现:FadeIn(渐入动画),FadeOut(渐出动画),Change(变更动画),Addition(新增动画),Interaction(交互动画)。 按作用的对象可以分为两类:SerieAnimation(系列动画)和DataAnimation(数据动画)。 -|API|版本|描述| -|--|--|--| -|Addition()||public void Addition()
开始数据新增动画。 | -|CanCheckInteract()||public bool CanCheckInteract()| -|CheckDetailBreak()||public bool CheckDetailBreak(float detail)| -|CheckDetailBreak()||public bool CheckDetailBreak(Vector3 pos, bool isYAxis)| -|CheckProgress()||public void CheckProgress()| -|CheckProgress()||public void CheckProgress(double total)| -|CheckSymbol()||public void CheckSymbol(float dest)| -|FadeIn()||public void FadeIn()
开始渐入动画。 | -|FadeOut()||public void FadeOut()
开始渐出动画。 | -|GetAdditionDuration()||public float GetAdditionDuration()| -|GetChangeDuration()||public float GetChangeDuration()| -|GetCurrDetail()||public float GetCurrDetail()| -|GetCurrIndex()||public int GetCurrIndex()| -|GetCurrRate()||public float GetCurrRate()| -|GetInteractionDuration()||public float GetInteractionDuration()| -|GetInteractionRadius()||public float GetInteractionRadius(float radius)| -|GetSysmbolSize()||public float GetSysmbolSize(float dest)| -|HasFadeOut()||public bool HasFadeOut()| -|InitProgress()||public void InitProgress(float curr, float dest)
初始化动画配置。 | -|InitProgress()||public void InitProgress(List<Vector3> paths, bool isY)
初始化动画配置。 | -|IsDataAnimation()||public bool IsDataAnimation()
是否为数据动画。BottomToTop和InsideOut类型的为数据动画。 | -|IsEnd()||public bool IsEnd()| -|IsFadeIn()||public bool IsFadeIn()| -|IsFadeOut()||public bool IsFadeOut()| -|IsFinish()||public bool IsFinish()| -|IsInDelay()||public bool IsInDelay()| -|IsSerieAnimation()||public bool IsSerieAnimation()
是否为系列动画。LeftToRight、AlongPath和Clockwise类型的为系列动画。 | -|Pause()||public void Pause()
暂停所有动画。 | -|Reset()||public void Reset()
Reset all animations. | -|Restart()||public void Restart()
重启当前激活的动画。 | -|Resume()||public void Resume()
恢复所有动画。 | +### AnimationStyle.addition + +public AnimationAddition addition +数据新增动画配置。 + +### AnimationStyle.change + +public AnimationChange change +数据变更动画配置。 + +### AnimationStyle.enable + +public bool enable +是否开启动画效果。 + +### AnimationStyle.fadeIn + +public AnimationFadeIn fadeIn +渐入动画配置。 + +### AnimationStyle.fadeInFinishCallback + +public Action fadeInFinishCallback + +### AnimationStyle.fadeOut + +public AnimationFadeOut fadeOut +渐出动画配置。 + +### AnimationStyle.fadeOutFinishCallback + +public Action fadeOutFinishCallback + +### AnimationStyle.hiding + +public AnimationHiding hiding +数据隐藏动画配置。 + +### AnimationStyle.interaction + +public AnimationInteraction interaction +交互动画配置。 + +### AnimationStyle.threshold + +public int threshold +是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。 + +### AnimationStyle.unscaledTime + +public bool unscaledTime +动画是否受TimeScaled的影响。默认为 false 受TimeScaled的影响。 + +### AnimationStyle.Addition + +public void Addition() +开始数据新增动画。 + +### AnimationStyle.CanCheckInteract + +public bool CanCheckInteract() + +### AnimationStyle.CheckDetailBreak + +public bool CheckDetailBreak(Vector3 pos, bool isYAxis) + + +### AnimationStyle.CheckProgress + +public void CheckProgress(double total) + + +### AnimationStyle.CheckSymbol + +public void CheckSymbol(float dest) + +### AnimationStyle.FadeIn + +public void FadeIn() +开始渐入动画。 + +### AnimationStyle.FadeOut + +public void FadeOut() +开始渐出动画。 + +### AnimationStyle.GetAdditionDuration + +public float GetAdditionDuration() + +### AnimationStyle.GetChangeDuration + +public float GetChangeDuration() + +### AnimationStyle.GetCurrDetail + +public float GetCurrDetail() + +### AnimationStyle.GetCurrIndex + +public int GetCurrIndex() + +### AnimationStyle.GetCurrRate + +public float GetCurrRate() + +### AnimationStyle.GetInteractionDuration + +public float GetInteractionDuration() + +### AnimationStyle.GetInteractionRadius + +public float GetInteractionRadius(float radius) + +### AnimationStyle.GetSysmbolSize + +public float GetSysmbolSize(float dest) + +### AnimationStyle.HasFadeOut + +public bool HasFadeOut() + +### AnimationStyle.InitProgress + +public void InitProgress(List<Vector3> paths, bool isY) +初始化动画配置。 + + +### AnimationStyle.IsDataAnimation + +public bool IsDataAnimation() +是否为数据动画。BottomToTop和InsideOut类型的为数据动画。 + +### AnimationStyle.IsEnd + +public bool IsEnd() + +### AnimationStyle.IsFadeIn + +public bool IsFadeIn() + +### AnimationStyle.IsFadeOut + +public bool IsFadeOut() + +### AnimationStyle.IsFinish + +public bool IsFinish() + +### AnimationStyle.IsInDelay + +public bool IsInDelay() + +### AnimationStyle.IsSerieAnimation + +public bool IsSerieAnimation() +是否为系列动画。LeftToRight、AlongPath和Clockwise类型的为系列动画。 + +### AnimationStyle.Pause + +public void Pause() +暂停所有动画。 + +### AnimationStyle.Reset + +public void Reset() +Reset all animations. + +### AnimationStyle.Restart + +public void Restart() +重启当前激活的动画。 + +### AnimationStyle.Resume + +public void Resume() +恢复所有动画。 ## AnimationStyleHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### AnimationStyleHelper.CheckDataAnimation -|API|版本|描述| -|--|--|--| -|CheckDataAnimation()||public static float CheckDataAnimation(BaseChart chart, Serie serie, int dataIndex, float destProgress, float startPorgress = 0)| -|GetAnimationPosition()||public static bool GetAnimationPosition(AnimationStyle animation, bool isY, Vector3 lp, Vector3 cp, float progress, ref Vector3 ip, ref float rate)| -|UpdateAnimationType()||public static void UpdateAnimationType(AnimationStyle animation, AnimationType defaultType, bool enableSerieDataAnimation)| -|UpdateSerieAnimation()||public static void UpdateSerieAnimation(Serie serie)| +public static float CheckDataAnimation(BaseChart chart, Serie serie, int dataIndex, float destProgress, float startPorgress = 0) + +### AnimationStyleHelper.GetAnimationPosition + +public static bool GetAnimationPosition(AnimationStyle animation, bool isY, Vector3 lp, Vector3 cp, float progress, ref Vector3 ip, ref float rate) + +### AnimationStyleHelper.UpdateAnimationType + +public static void UpdateAnimationType(AnimationStyle animation, AnimationType defaultType, bool enableSerieDataAnimation) + +### AnimationStyleHelper.UpdateSerieAnimation + +public static void UpdateSerieAnimation(Serie serie) + +## AnimationType + +class in XCharts.Runtime + +可选: + +- `Default`: 默认。内部会根据实际情况选择一种动画播放方式。 +- `LeftToRight`: 从左往右播放动画。 +- `BottomToTop`: 从下往上播放动画。 +- `InsideOut`: 由内到外播放动画。 +- `AlongPath`: 沿着路径播放动画。当折线图从左到右无序或有折返时,可以使用该模式。 +- `Clockwise`: 顺时针播放动画。 ## AreaStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) 区域填充样式。 -|API|版本|描述| -|--|--|--| -|GetColor()||public Color32 GetColor()| -|GetColor()||public Color32 GetColor(Color32 themeColor)| +### AreaStyle.GetColor + +public Color32 GetColor(Color32 themeColor) + + +## AreaStyle.AreaOrigin + +class in XCharts.Runtime + +图形区域的起始位置。默认情况下,图形会从坐标轴轴线到数据间进行填充。如果需要填充的区域是坐标轴最大值到数据间,或者坐标轴最小值到数据间,则可以通过这个配置项进行设置。 + +可选: + +- `Auto`: 填充坐标轴轴线到数据间的区域。 +- `Start`: 填充坐标轴底部到数据间的区域。 +- `End`: 填充坐标轴顶部到数据间的区域。 ## ArrowStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +### ArrowStyle.Clone -|API|版本|描述| -|--|--|--| -|Clone()||public ArrowStyle Clone()| -|Copy()||public void Copy(ArrowStyle arrow)| -|GetColor()||public Color32 GetColor(Color32 defaultColor)| +public ArrowStyle Clone() + +### ArrowStyle.Copy + +public void Copy(ArrowStyle arrow) + +### ArrowStyle.GetColor + +public Color32 GetColor(Color32 defaultColor) ## Axis -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) / 子类: [AngleAxis](#angleaxis),[ParallelAxis](#parallelaxis),[RadiusAxis](#radiusaxis),[SingleAxis](#singleaxis),[XAxis](#xaxis),[XAxis3D](#xaxis3d),[YAxis](#yaxis),[YAxis3D](#yaxis3d),[ZAxis3D](#zaxis3d) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) / 子类: [AngleAxis](#angleaxis),[ParallelAxis](#parallelaxis),[RadiusAxis](#radiusaxis),[SingleAxis](#singleaxis),[XAxis](#xaxis),[XAxis3D](#xaxis3d),[YAxis](#yaxis),[YAxis3D](#yaxis3d),[ZAxis3D](#zaxis3d) 直角坐标系的坐标轴组件。 -|API|版本|描述| -|--|--|--| -|AddData()||public void AddData(string category)
添加一个类目到类目数据列表 | -|AddIcon()||public void AddIcon(Sprite icon)
添加图标 | -|ClearComponentDirty()||public override void ClearComponentDirty()| -|ClearData()||public override void ClearData()
清空类目数据 | -|ClearVerticesDirty()||public override void ClearVerticesDirty()| -|Clone()||public Axis Clone()| -|Copy()||public void Copy(Axis axis)| -|GetAddedDataCount()||public int GetAddedDataCount()
获得添加过的历史数据总数 | -|GetCategoryPosition()||public Vector3 GetCategoryPosition(int categoryIndex, int dataCount = 0)| -|GetData()||public string GetData(int index)
获得指定索引的类目数据 | -|GetData()||public string GetData(int index, DataZoom dataZoom)
获得在dataZoom范围内指定索引的类目数据 | -|GetDistance()||public float GetDistance(double value, float axisLength = 0)
获得值在坐标轴上的距离 | -|GetIcon()||public Sprite GetIcon(int index)| -|GetLabelValue()||public double GetLabelValue(int index)| -|GetLastLabelValue()||public double GetLastLabelValue()| -|GetLogMaxIndex()||public double GetLogMaxIndex()| -|GetLogMinIndex()||public double GetLogMinIndex()| -|GetLogValue()||public float GetLogValue(double value)| -|GetValueLength()||public float GetValueLength(double value, float axisLength)| -|IsBottom()||public bool IsBottom()| -|IsCategory()||public bool IsCategory()
是否为类目轴。 | -|IsLeft()||public bool IsLeft()| -|IsLog()||public bool IsLog()
是否为对数轴。 | -|IsNeedShowLabel()||public bool IsNeedShowLabel(int index, int total = 0)| -|IsRight()||public bool IsRight()| -|IsTime()||public bool IsTime()
是否为时间轴。 | -|IsTop()||public bool IsTop()| -|IsValue()||public bool IsValue()
是否为数值轴。 | -|RemoveData()||public void RemoveData(int dataIndex)| -|ResetStatus()||public override void ResetStatus()
重置状态。 | -|SetComponentDirty()||public override void SetComponentDirty()| -|SetNeedUpdateFilterData()||public void SetNeedUpdateFilterData()| -|UpdateData()||public void UpdateData(int index, string category)
更新类目数据 | -|UpdateIcon()||public void UpdateIcon(int index, Sprite icon)
更新图标 | -|UpdateZeroOffset()||public void UpdateZeroOffset(float axisLength)| +### Axis.AddData + +public void AddData(string category) +添加一个类目到类目数据列表 + +### Axis.AddIcon + +public void AddIcon(Sprite icon) +添加图标 + +### Axis.ClearComponentDirty + +public override void ClearComponentDirty() + +### Axis.ClearData + +public override void ClearData() +清空类目数据 + +### Axis.ClearVerticesDirty + +public override void ClearVerticesDirty() + +### Axis.Clone + +public Axis Clone() + +### Axis.Copy + +public void Copy(Axis axis) + +### Axis.GetAddedDataCount + +public int GetAddedDataCount() +获得添加过的历史数据总数 + +### Axis.GetCategoryPosition + +public Vector3 GetCategoryPosition(int categoryIndex, int dataCount = 0) + +### Axis.GetData + +public string GetData(int index, DataZoom dataZoom) +获得在dataZoom范围内指定索引的类目数据 + + +### Axis.GetDistance + +public float GetDistance(double value, float axisLength = 0) +获得值在坐标轴上的距离 + +### Axis.GetIcon + +public Sprite GetIcon(int index) + +### Axis.GetLabelValue + +public double GetLabelValue(int index) + +### Axis.GetLastLabelValue + +public double GetLastLabelValue() + +### Axis.GetLogMaxIndex + +public double GetLogMaxIndex() + +### Axis.GetLogMinIndex + +public double GetLogMinIndex() + +### Axis.GetLogValue + +public float GetLogValue(double value) + +### Axis.GetValueLength + +public float GetValueLength(double value, float axisLength) + +### Axis.IsBottom + +public bool IsBottom() + +### Axis.IsCategory + +public bool IsCategory() +是否为类目轴。 + +### Axis.IsLeft + +public bool IsLeft() + +### Axis.IsLog + +public bool IsLog() +是否为对数轴。 + +### Axis.IsNeedShowLabel + +public bool IsNeedShowLabel(int index, int total = 0) + +### Axis.IsRight + +public bool IsRight() + +### Axis.IsTime + +public bool IsTime() +是否为时间轴。 + +### Axis.IsTop + +public bool IsTop() + +### Axis.IsValue + +public bool IsValue() +是否为数值轴。 + +### Axis.RemoveData + +public void RemoveData(int dataIndex) + +### Axis.ResetStatus + +public override void ResetStatus() +重置状态。 + +### Axis.SetComponentDirty + +public override void SetComponentDirty() + +### Axis.SetNeedUpdateFilterData + +public void SetNeedUpdateFilterData() + +### Axis.UpdateData + +public void UpdateData(int index, string category) +更新类目数据 + +### Axis.UpdateIcon + +public void UpdateIcon(int index, Sprite icon) +更新图标 + +### Axis.UpdateZeroOffset + +public void UpdateZeroOffset(float axisLength) + +## Axis.AxisMinMaxType + +class in XCharts.Runtime + +坐标轴最大最小刻度显示类型。 + +可选: + +- `Default`: 0-最大值。 +- `MinMax`: 最小值-最大值。 +- `Custom`: 自定义最小值最大值。 +- `MinMaxAuto`: [since("v3.7.0")]最小值-最大值。自动计算合适的值。 + +## Axis.AxisPosition + +class in XCharts.Runtime + +坐标轴在Grid中的位置 + +可选: + +- `Left`: 坐标轴在Grid中的位置 +- `Right`: 坐标轴在Grid中的位置 +- `Bottom`: 坐标轴在Grid中的位置 +- `Top`: 坐标轴在Grid中的位置 +- `Center`: 坐标轴在Grid中的位置 + +## Axis.AxisType + +class in XCharts.Runtime + +坐标轴类型。 + +可选: + +- `Value`: 数值轴。适用于连续数据。 +- `Category`: 类目轴。适用于离散的类目数据,为该类型时必须通过 data 设置类目数据。serie的数据第0维数据对应坐标轴data的index。 +- `Log`: 对数轴。适用于对数数据。 +- `Time`: 时间轴。适用于连续的时序数据。 ## Axis3DHelper -> class in XCharts.Runtime +class in XCharts.Runtime + +### Axis3DHelper.Get3DGridPosition + +public static Vector3 Get3DGridPosition(GridCoord3D grid, XAxis3D xAxis, YAxis3D yAxis, double xValue, double yValue) -|API|版本|描述| -|--|--|--| -|Get3DGridPosition()||public static Vector3 Get3DGridPosition(GridCoord3D grid, XAxis3D xAxis, YAxis3D yAxis, double xValue, double yValue)| -|Get3DGridPosition()||public static Vector3 Get3DGridPosition(GridCoord3D grid, XAxis3D xAxis, YAxis3D yAxis, ZAxis3D zAxis, double xValue, double yValue, double zValue)| -|GetLabelPosition()||public static Vector3 GetLabelPosition(int i, Axis axis, Axis relativedAxis, AxisTheme theme, float scaleWid)| +### Axis3DHelper.GetLabelPosition + +public static Vector3 GetLabelPosition(int i, Axis axis, Axis relativedAxis, AxisTheme theme, float scaleWid) ## AxisAnimation -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) > 从 `v3.9.0` 开始支持 坐标轴动画配置。 -|API|版本|描述| -|--|--|--| -|Clone()||public AxisAnimation Clone()| -|Copy()||public void Copy(AxisAnimation animation)| +### AxisAnimation.Clone + +public AxisAnimation Clone() + +### AxisAnimation.Copy + +public void Copy(AxisAnimation animation) ## AxisContext -> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) +class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) +### AxisContext.destMaxValue + +public double destMaxValue + +### AxisContext.destMinValue + +public double destMinValue + +### AxisContext.labelObjectList + +public List<ChartLabel> labelObjectList + +### AxisContext.labelValueList + +public List<double> labelValueList + +### AxisContext.lastMaxValue + +public double lastMaxValue +当前最大值。 + +### AxisContext.lastMinValue + +public double lastMinValue +当前最小值。 + +### AxisContext.needAnimation + +public bool needAnimation + +### AxisContext.runtimeData + +public List<string> runtimeData +数值轴时每个tick的数值。 ## AxisHandler<T> -> class in XCharts / 继承自: [MainComponentHandler](#maincomponenthandler) +class in XCharts / 继承自: [MainComponentHandler](#maincomponenthandler) +### AxisHandler<T>.component + +public T component ## AxisHelper -> class in XCharts.Runtime +class in XCharts.Runtime + +### AxisHelper.AdjustCircleLabelPos + +public static void AdjustCircleLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset) + +### AxisHelper.AdjustMinMaxValue + +public static void AdjustMinMaxValue(Axis axis, ref double minValue, ref double maxValue, bool needFormat, double ceilRate = 0) +调整最大最小值 + +### AxisHelper.AdjustRadiusAxisLabelPos + +public static void AdjustRadiusAxisLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset) + +### AxisHelper.GetAxisLineArrowOffset + +public static float GetAxisLineArrowOffset(Axis axis) +包含箭头偏移的轴线长度 + +### AxisHelper.GetAxisPosition + +public static float GetAxisPosition(GridCoord grid, Axis axis, double value, int dataCount = 0, DataZoom dataZoom = null) + +### AxisHelper.GetAxisPositionValue + +public static double GetAxisPositionValue(float xy, float axisLength, double axisRange, float axisStart, float axisOffset) -|API|版本|描述| -|--|--|--| -|AdjustCircleLabelPos()||public static void AdjustCircleLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)| -|AdjustMinMaxValue()||public static void AdjustMinMaxValue(Axis axis, ref double minValue, ref double maxValue, bool needFormat, double ceilRate = 0)
调整最大最小值 | -|AdjustRadiusAxisLabelPos()||public static void AdjustRadiusAxisLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset)| -|GetAxisLineArrowOffset()||public static float GetAxisLineArrowOffset(Axis axis)
包含箭头偏移的轴线长度 | -|GetAxisPosition()||public static float GetAxisPosition(GridCoord grid, Axis axis, double value, int dataCount = 0, DataZoom dataZoom = null)| -|GetAxisPositionValue()||public static double GetAxisPositionValue(float xy, float axisLength, double axisRange, float axisStart, float axisOffset)| -|GetAxisPositionValue()||public static double GetAxisPositionValue(GridCoord grid, Axis axis, Vector3 pos)| -|GetAxisValueDistance()||public static float GetAxisValueDistance(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上相对起点的距离 | -|GetAxisValueLength()||public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上对应的长度 | -|GetAxisValuePosition()||public static float GetAxisValuePosition(GridCoord grid, Axis axis, float scaleWidth, double value)
获得数值value在坐标轴上的坐标位置 | -|GetAxisValueSplitIndex()||public static int GetAxisValueSplitIndex(Axis axis, double value, bool checkMaxCache, int totalSplitNumber = -1)
获得数值value在坐标轴上对应的split索引 | -|GetAxisXOrY()||public static float GetAxisXOrY(GridCoord grid, Axis axis, Axis relativedAxis)| -|GetDataWidth()||public static float GetDataWidth(Axis axis, float coordinateWidth, int dataCount, DataZoom dataZoom)
获得一个类目数据在坐标系中代表的宽度 | -|GetEachWidth()||public static float GetEachWidth(Axis axis, float coordinateWidth, DataZoom dataZoom = null)| -|GetScaleNumber()||public static int GetScaleNumber(Axis axis, float coordinateWidth, DataZoom dataZoom = null)
获得分割线条数 | -|GetScaleWidth()||public static float GetScaleWidth(Axis axis, float coordinateWidth, int index, DataZoom dataZoom = null)
获得分割段宽度 | -|GetSplitNumber()||public static int GetSplitNumber(Axis axis, float coordinateWid, DataZoom dataZoom)
获得分割段数 | -|GetTotalSplitGridNum()||public static int GetTotalSplitGridNum(Axis axis)
获得分割网格个数,包含次刻度 | -|GetXAxisXOrY()||public static float GetXAxisXOrY(GridCoord grid, Axis xAxis, Axis relativedAxis)| -|GetYAxisXOrY()||public static float GetYAxisXOrY(GridCoord grid, Axis yAxis, Axis relativedAxis)| -|NeedShowSplit()||public static bool NeedShowSplit(Axis axis)| +### AxisHelper.GetAxisValueDistance + +public static float GetAxisValueDistance(GridCoord grid, Axis axis, float scaleWidth, double value) +获得数值value在坐标轴上相对起点的距离 + +### AxisHelper.GetAxisValueLength + +public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value) +获得数值value在坐标轴上对应的长度 + +### AxisHelper.GetAxisValuePosition + +public static float GetAxisValuePosition(GridCoord grid, Axis axis, float scaleWidth, double value) +获得数值value在坐标轴上的坐标位置 + +### AxisHelper.GetAxisValueSplitIndex + +public static int GetAxisValueSplitIndex(Axis axis, double value, bool checkMaxCache, int totalSplitNumber = -1) +获得数值value在坐标轴上对应的split索引 + +### AxisHelper.GetAxisXOrY + +public static float GetAxisXOrY(GridCoord grid, Axis axis, Axis relativedAxis) + +### AxisHelper.GetDataWidth + +public static float GetDataWidth(Axis axis, float coordinateWidth, int dataCount, DataZoom dataZoom) +获得一个类目数据在坐标系中代表的宽度 + +### AxisHelper.GetEachWidth + +public static float GetEachWidth(Axis axis, float coordinateWidth, DataZoom dataZoom = null) + +### AxisHelper.GetScaleNumber + +public static int GetScaleNumber(Axis axis, float coordinateWidth, DataZoom dataZoom = null) +获得分割线条数 + +### AxisHelper.GetScaleWidth + +public static float GetScaleWidth(Axis axis, float coordinateWidth, int index, DataZoom dataZoom = null) +获得分割段宽度 + +### AxisHelper.GetSplitNumber + +public static int GetSplitNumber(Axis axis, float coordinateWid, DataZoom dataZoom) +获得分割段数 + +### AxisHelper.GetTotalSplitGridNum + +public static int GetTotalSplitGridNum(Axis axis) +获得分割网格个数,包含次刻度 + +### AxisHelper.GetXAxisXOrY + +public static float GetXAxisXOrY(GridCoord grid, Axis xAxis, Axis relativedAxis) + +### AxisHelper.GetYAxisXOrY + +public static float GetYAxisXOrY(GridCoord grid, Axis yAxis, Axis relativedAxis) + +### AxisHelper.NeedShowSplit + +public static bool NeedShowSplit(Axis axis) ## AxisLabel -> class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle) +class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle) 坐标轴刻度标签的相关设置。 -|API|版本|描述| -|--|--|--| -|ClearComponentDirty()||public override void ClearComponentDirty()| -|Clone()||public new AxisLabel Clone()| -|Copy()||public void Copy(AxisLabel axisLabel)| -|GetFormatterContent()||public override string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false)| -|GetFormatterContent()||public override string GetFormatterContent(int labelIndex, string category)| -|IsNeedShowLabel()||public bool IsNeedShowLabel(int index, int total)| -|SetRelatedText()||public void SetRelatedText(ChartText txt, float labelWidth)| +### AxisLabel.componentDirty + +public override bool componentDirty + +### AxisLabel.ClearComponentDirty + +public override void ClearComponentDirty() + +### AxisLabel.Clone + +public new AxisLabel Clone() + +### AxisLabel.Copy + +public void Copy(AxisLabel axisLabel) + +### AxisLabel.GetFormatterContent + +public override string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false) + + +### AxisLabel.IsNeedShowLabel + +public bool IsNeedShowLabel(int index, int total) + +### AxisLabel.SetRelatedText + +public void SetRelatedText(ChartText txt, float labelWidth) ## AxisLine -> class in XCharts.Runtime / 继承自: [BaseLine](#baseline) +class in XCharts.Runtime / 继承自: [BaseLine](#baseline) 坐标轴轴线。 -|API|版本|描述| -|--|--|--| -|Clone()||public AxisLine Clone()| -|Copy()||public void Copy(AxisLine axisLine)| +### AxisLine.Clone + +public AxisLine Clone() + +### AxisLine.Copy + +public void Copy(AxisLine axisLine) ## AxisMinorSplitLine -> class in XCharts.Runtime / 继承自: [BaseLine](#baseline) +class in XCharts.Runtime / 继承自: [BaseLine](#baseline) > 从 `v3.2.0` 开始支持 坐标轴在 grid 区域中的次分隔线。次分割线会对齐次刻度线 minorTick。 -|API|版本|描述| -|--|--|--| -|ClearVerticesDirty()||public override void ClearVerticesDirty()| -|Clone()||public AxisMinorSplitLine Clone()| -|Copy()||public void Copy(AxisMinorSplitLine splitLine)| +### AxisMinorSplitLine.autoColor + +public bool autoColor +自动设置颜色。 + +### AxisMinorSplitLine.distance + +public float distance +刻度线与轴线的距离。 + +### AxisMinorSplitLine.vertsDirty + +public override bool vertsDirty + +### AxisMinorSplitLine.ClearVerticesDirty + +public override void ClearVerticesDirty() + +### AxisMinorSplitLine.Clone + +public AxisMinorSplitLine Clone() + +### AxisMinorSplitLine.Copy + +public void Copy(AxisMinorSplitLine splitLine) ## AxisMinorTick -> class in XCharts.Runtime / 继承自: [BaseLine](#baseline) +class in XCharts.Runtime / 继承自: [BaseLine](#baseline) > 从 `v3.2.0` 开始支持 坐标轴次刻度相关设置。注意:次刻度无法在类目轴中使用。 -|API|版本|描述| -|--|--|--| -|ClearVerticesDirty()||public override void ClearVerticesDirty()| -|Clone()||public AxisMinorTick Clone()| -|Copy()||public void Copy(AxisMinorTick axisTick)| +### AxisMinorTick.autoColor + +public bool autoColor + +### AxisMinorTick.vertsDirty + +public override bool vertsDirty + +### AxisMinorTick.ClearVerticesDirty + +public override void ClearVerticesDirty() + +### AxisMinorTick.Clone + +public AxisMinorTick Clone() + +### AxisMinorTick.Copy + +public void Copy(AxisMinorTick axisTick) ## AxisName -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 坐标轴名称。 -|API|版本|描述| -|--|--|--| -|Clone()||public AxisName Clone()| -|Copy()||public void Copy(AxisName axisName)| +### AxisName.Clone + +public AxisName Clone() + +### AxisName.Copy + +public void Copy(AxisName axisName) ## AxisSplitArea -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 坐标轴在 grid 区域中的分隔区域,默认不显示。 -|API|版本|描述| -|--|--|--| -|Clone()||public AxisSplitArea Clone()| -|Copy()||public void Copy(AxisSplitArea splitArea)| -|GetColor()||public Color32 GetColor(int index, BaseAxisTheme theme)| +### AxisSplitArea.Clone + +public AxisSplitArea Clone() + +### AxisSplitArea.Copy + +public void Copy(AxisSplitArea splitArea) + +### AxisSplitArea.GetColor + +public Color32 GetColor(int index, BaseAxisTheme theme) ## AxisSplitLine -> class in XCharts.Runtime / 继承自: [BaseLine](#baseline) +class in XCharts.Runtime / 继承自: [BaseLine](#baseline) 坐标轴在 grid 区域中的分隔线。 -|API|版本|描述| -|--|--|--| -|ClearVerticesDirty()||public override void ClearVerticesDirty()| -|Clone()||public AxisSplitLine Clone()| -|Copy()||public void Copy(AxisSplitLine splitLine)| +### AxisSplitLine.autoColor + +public bool autoColor +自动设置颜色。 + +### AxisSplitLine.distance + +public float distance +刻度线与轴线的距离。 + +### AxisSplitLine.vertsDirty + +public override bool vertsDirty + +### AxisSplitLine.ClearVerticesDirty + +public override void ClearVerticesDirty() + +### AxisSplitLine.Clone + +public AxisSplitLine Clone() + +### AxisSplitLine.Copy + +public void Copy(AxisSplitLine splitLine) ## AxisTheme -> class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) +### AxisTheme.base(theme) -|API|版本|描述| -|--|--|--| -|AxisTheme()||public AxisTheme(ThemeType theme) : base(theme) { }| +public AxisTheme(ThemeType theme) : base(theme) + +### AxisTheme.AxisTheme + +public AxisTheme(ThemeType theme) : base(theme) { } ## AxisTick -> class in XCharts.Runtime / 继承自: [BaseLine](#baseline) +class in XCharts.Runtime / 继承自: [BaseLine](#baseline) 坐标轴刻度相关设置。 -|API|版本|描述| -|--|--|--| -|Clone()||public AxisTick Clone()| -|Copy()||public void Copy(AxisTick axisTick)| +### AxisTick.autoColor + +public bool autoColor + +### AxisTick.distance + +public float distance +刻度线与轴线的距离。 + +### AxisTick.Clone + +public AxisTick Clone() + +### AxisTick.Copy + +public void Copy(AxisTick axisTick) ## Background -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) 背景组件。 -|API|版本|描述| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()| +### Background.SetDefaultValue + +public override void SetDefaultValue() ## Bar -> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +### Bar.containerIndex -|API|版本|描述| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| -|ConvertSerie()||public static Bar ConvertSerie(Serie serie)| +public int containerIndex + +### Bar.containterInstanceId + +public int containterInstanceId + +### Bar.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) + +### Bar.ConvertSerie + +public static Bar ConvertSerie(Serie serie) ## BarChart -> class in XCharts.Runtime / 继承自: [BaseChart](#basechart) +class in XCharts.Runtime / 继承自: [BaseChart](#basechart) 柱状图(或称条形图)是一种通过柱形的高度(横向的情况下则是宽度)来表现数据大小的一种常用图表类型。 -|API|版本|描述| -|--|--|--| -|DefaultBarChart()||public void DefaultBarChart()
默认条形图。 | -|DefaultCapsuleBarChart()||public void DefaultCapsuleBarChart()
默认胶囊条形图。 | -|DefaultCapsuleColumnChart()||public void DefaultCapsuleColumnChart()
胶囊柱状图。 | -|DefaultGroupedBarChart()||public void DefaultGroupedBarChart()
默认分组条形图。 | -|DefaultGroupedColumnChart()||public void DefaultGroupedColumnChart()
默认分组柱状图。 | -|DefaultPercentBarChart()||public void DefaultPercentBarChart()
默认百分比条形图。 | -|DefaultPercentColumnChart()||public void DefaultPercentColumnChart()
默认百分比柱状图。 | -|DefaultStackedBarChart()||public void DefaultStackedBarChart()
默认堆叠条形图。 | -|DefaultStackedColumnChart()||public void DefaultStackedColumnChart()
默认堆叠分组柱状图。 | -|DefaultZebraBarChart()||public void DefaultZebraBarChart()
默认斑马条形图。 | -|DefaultZebraColumnChart()||public void DefaultZebraColumnChart()
斑马柱状图。 | +### BarChart.DefaultBarChart + +public void DefaultBarChart() +默认条形图。 + +### BarChart.DefaultCapsuleBarChart + +public void DefaultCapsuleBarChart() +默认胶囊条形图。 + +### BarChart.DefaultCapsuleColumnChart + +public void DefaultCapsuleColumnChart() +胶囊柱状图。 + +### BarChart.DefaultGroupedBarChart + +public void DefaultGroupedBarChart() +默认分组条形图。 + +### BarChart.DefaultGroupedColumnChart + +public void DefaultGroupedColumnChart() +默认分组柱状图。 + +### BarChart.DefaultPercentBarChart + +public void DefaultPercentBarChart() +默认百分比条形图。 + +### BarChart.DefaultPercentColumnChart + +public void DefaultPercentColumnChart() +默认百分比柱状图。 + +### BarChart.DefaultStackedBarChart + +public void DefaultStackedBarChart() +默认堆叠条形图。 + +### BarChart.DefaultStackedColumnChart + +public void DefaultStackedColumnChart() +默认堆叠分组柱状图。 + +### BarChart.DefaultZebraBarChart + +public void DefaultZebraBarChart() +默认斑马条形图。 + +### BarChart.DefaultZebraColumnChart + +public void DefaultZebraColumnChart() +斑马柱状图。 + +## BarType + +class in XCharts.Runtime + +柱状图类型。 + +可选: + +- `Normal`: 普通柱形图。 +- `Zebra`: 斑马柱形图。 +- `Capsule`: 胶囊柱形图。 ## BaseAxisTheme -> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) / 子类: [AxisTheme](#axistheme),[RadiusAxisTheme](#radiusaxistheme),[AngleAxisTheme](#angleaxistheme),[PolarAxisTheme](#polaraxistheme),[RadarAxisTheme](#radaraxistheme) +class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) / 子类: [AxisTheme](#axistheme),[RadiusAxisTheme](#radiusaxistheme),[AngleAxisTheme](#angleaxistheme),[PolarAxisTheme](#polaraxistheme),[RadarAxisTheme](#radaraxistheme) +### BaseAxisTheme.BaseAxisTheme -|API|版本|描述| -|--|--|--| -|BaseAxisTheme()||public BaseAxisTheme(ThemeType theme) : base(theme)| -|Copy()||public void Copy(BaseAxisTheme theme)| +public BaseAxisTheme(ThemeType theme) : base(theme) + +### BaseAxisTheme.Copy + +public void Copy(BaseAxisTheme theme) ## BaseChart -> class in XCharts.Runtime / 继承自: [BaseGraph](#basegraph),[ISerializationCallbackReceiver](https://docs.unity3d.com/ScriptReference/30_search.html?q=iserializationcallbackreceiver) / 子类: [BarChart](#barchart),[CandlestickChart](#candlestickchart),[HeatmapChart](#heatmapchart),[LineChart](#linechart),[ParallelChart](#parallelchart),[PieChart](#piechart),[PolarChart](#polarchart),[RadarChart](#radarchart),[RingChart](#ringchart),[ScatterChart](#scatterchart),[SimplifiedBarChart](#simplifiedbarchart),[SimplifiedCandlestickChart](#simplifiedcandlestickchart),[SimplifiedLineChart](#simplifiedlinechart) +class in XCharts.Runtime / 继承自: [BaseGraph](#basegraph),[ISerializationCallbackReceiver](https://docs.unity3d.com/ScriptReference/30_search.html?q=iserializationcallbackreceiver) / 子类: [BarChart](#barchart),[CandlestickChart](#candlestickchart),[HeatmapChart](#heatmapchart),[LineChart](#linechart),[ParallelChart](#parallelchart),[PieChart](#piechart),[PolarChart](#polarchart),[RadarChart](#radarchart),[RingChart](#ringchart),[ScatterChart](#scatterchart),[SimplifiedBarChart](#simplifiedbarchart),[SimplifiedCandlestickChart](#simplifiedcandlestickchart),[SimplifiedLineChart](#simplifiedlinechart) + +### BaseChart.axis) + +public virtual void InitAxisRuntimeData(Axis axis) + +### BaseChart.chartHeight + +public float chartHeight +图表的高 + +### BaseChart.chartHideFlags + +public override HideFlags chartHideFlags + +### BaseChart.chartMaxAnchor + +public Vector2 chartMaxAnchor + +### BaseChart.chartMinAnchor + +public Vector2 chartMinAnchor + +### BaseChart.chartPivot + +public Vector2 chartPivot + +### BaseChart.chartPosition + +public Vector3 chartPosition +图表的左下角起始坐标。 + +### BaseChart.chartRect + +public Rect chartRect + +### BaseChart.chartSizeDelta + +public Vector2 chartSizeDelta + +### BaseChart.chartWidth + +public float chartWidth +图表的宽 + +### BaseChart.chartX + +public float chartX +图表的X + +### BaseChart.chartY + +public float chartY +图表的Y + +### BaseChart.components + +public List<MainComponent> components + +### BaseChart.customDrawGaugePointerFunction + +public CustomDrawGaugePointerFunction customDrawGaugePointerFunction +自定义仪表盘指针绘制委托。 + +### BaseChart.debug + +public DebugInfo debug + +### BaseChart.onAxisPointerValueChanged + +public Action<Axis, double> onAxisPointerValueChanged +坐标轴变更数据索引时回调。参数:axis, dataIndex/dataValue + +### BaseChart.onDraw + +public Action<VertexHelper> onDraw +自定义绘制回调。在绘制Serie前调用。 + +### BaseChart.onDrawAfterSerie + +public Action<VertexHelper, Serie> onDrawAfterSerie +自定义Serie绘制回调。在每个Serie绘制完后调用。 + +### BaseChart.onDrawBeforeSerie + +public Action<VertexHelper, Serie> onDrawBeforeSerie +自定义Serie绘制回调。在每个Serie绘制完前调用。 + +### BaseChart.onDrawTop + +public Action<VertexHelper> onDrawTop +自定义Top层绘制回调。在绘制Tooltip前调用。 + +### BaseChart.onDrawUpper + +public Action<VertexHelper> onDrawUpper +自定义Upper层绘制回调。在绘制Tooltip前调用。 + +### BaseChart.onInit + +public Action onInit +图表的初始化完成回调。 + +### BaseChart.onLegendClick + +public Action<Legend, int, string, bool> onLegendClick +点击图例按钮回调。参数:legendIndex, legendName, show + +### BaseChart.onLegendEnter + +public Action<Legend, int, string> onLegendEnter +鼠标进入图例回调。参数:legendIndex, legendName + +### BaseChart.onLegendExit + +public Action<Legend, int, string> onLegendExit +鼠标退出图例回调。参数:legendIndex, legendName + +### BaseChart.onPointerClickBar + +public Action<PointerEventData, int> onPointerClickBar +点击柱形图柱条回调。参数:eventData, dataIndex + +### BaseChart.onPointerClickPie + +public Action<PointerEventData, int, int> onPointerClickPie +点击饼图区域回调。参数:PointerEventData,SerieIndex,SerieDataIndex + +### BaseChart.onPointerEnterPie + +public Action<int, int> onPointerEnterPie +鼠标进入和离开饼图区域回调,SerieDataIndex为-1时表示离开。参数:PointerEventData,SerieIndex,SerieDataIndex + +### BaseChart.onSerieClick + +public Action<SerieEventData> onSerieClick + +> 从 `v3.6.0` 开始支持 + +鼠标点击Serie回调。 + +### BaseChart.onSerieDown + +public Action<SerieEventData> onSerieDown + +> 从 `v3.6.0` 开始支持 + +鼠标按下Serie回调。 + +### BaseChart.onSerieEnter + +public Action<SerieEventData> onSerieEnter + +> 从 `v3.6.0` 开始支持 + +鼠标进入Serie回调。 + +### BaseChart.onSerieExit + +public Action<SerieEventData> onSerieExit + +> 从 `v3.6.0` 开始支持 + +鼠标离开Serie回调。 + +### BaseChart.onUpdate + +public Action onUpdate +图表的Update回调。 + +### BaseChart.series + +public List<Serie> series + +### BaseChart.settings + +public Settings settings +全局设置组件。 + +### BaseChart.theme + +public ThemeStyle theme + +### BaseChart.typeListForComponent + +public Dictionary<Type, FieldInfo> typeListForComponent + +### BaseChart.typeListForSerie + +public Dictionary<Type, FieldInfo> typeListForSerie + +### BaseChart.AddChartComponent + +public MainComponent AddChartComponent(Type type) + +### BaseChart.AddChartComponent<T> + +public T AddChartComponent<T>() where T : MainComponent + +### BaseChart.AddChartComponentWhenNoExist<T> + +public T AddChartComponentWhenNoExist<T>() where T : MainComponent + +### BaseChart.AddData + +public SerieData AddData(int serieIndex, DateTime time, double yValue, string dataName = null, string dataId = null) +添加(time,y)数据到指定的系列中。 + +public SerieData AddData(int serieIndex, double data, string dataName = null, string dataId = null) +添加一个数据到指定的系列中。 + +public SerieData AddData(int serieIndex, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null) + +public SerieData AddData(int serieIndex, double xValue, double yValue, string dataName = null, string dataId = null) +添加(x,y)数据到指定系列中。 + +public SerieData AddData(int serieIndex, List<double> multidimensionalData, string dataName = null, string dataId = null) +添加多维数据(x,y,z...)到指定的系列中。 + +public SerieData AddData(int serieIndex, params double[] multidimensionalData) +添加多维数据(x,y,z...)到指定的系列中。 + +public SerieData AddData(string serieName, DateTime time, double yValue, string dataName = null, string dataId = null) +添加(time,y)数据到指定的系列中。 + +public SerieData AddData(string serieName, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null) + +public SerieData AddData(string serieName, double xValue, double yValue, string dataName = null, string dataId = null) +添加(x,y)数据到指定系列中。 + +public SerieData AddData(string serieName, List<double> multidimensionalData, string dataName = null, string dataId = null) +添加多维数据(x,y,z...)到指定的系列中。 + +public SerieData AddData(string serieName, params double[] multidimensionalData) +添加多维数据(x,y,z...)到指定的系列中。 -|API|版本|描述| -|--|--|--| -|onAxisPointerValueChanged||public Action<Axis, double> onAxisPointerValueChanged
坐标轴变更数据索引时回调。参数:axis, dataIndex/dataValue | -|onDraw||public Action<VertexHelper> onDraw
自定义绘制回调。在绘制Serie前调用。 | -|onDrawAfterSerie||public Action<VertexHelper, Serie> onDrawAfterSerie
自定义Serie绘制回调。在每个Serie绘制完后调用。 | -|onDrawBeforeSerie||public Action<VertexHelper, Serie> onDrawBeforeSerie
自定义Serie绘制回调。在每个Serie绘制完前调用。 | -|onDrawTop||public Action<VertexHelper> onDrawTop
自定义Top层绘制回调。在绘制Tooltip前调用。 | -|onDrawUpper||public Action<VertexHelper> onDrawUpper
自定义Upper层绘制回调。在绘制Tooltip前调用。 | -|onInit||public Action onInit
图表的初始化完成回调。 | -|onLegendClick||public Action<Legend, int, string, bool> onLegendClick
点击图例按钮回调。参数:legendIndex, legendName, show | -|onLegendEnter||public Action<Legend, int, string> onLegendEnter
鼠标进入图例回调。参数:legendIndex, legendName | -|onLegendExit||public Action<Legend, int, string> onLegendExit
鼠标退出图例回调。参数:legendIndex, legendName | -|onPointerClickBar||public Action<PointerEventData, int> onPointerClickBar
点击柱形图柱条回调。参数:eventData, dataIndex | -|onPointerClickPie||public Action<PointerEventData, int, int> onPointerClickPie
点击饼图区域回调。参数:PointerEventData,SerieIndex,SerieDataIndex | -|onPointerEnterPie||public Action<int, int> onPointerEnterPie
鼠标进入和离开饼图区域回调,SerieDataIndex为-1时表示离开。参数:PointerEventData,SerieIndex,SerieDataIndex | -|onSerieClick|v3.6.0|public Action<SerieEventData> onSerieClick
鼠标点击Serie回调。 | -|onSerieDown|v3.6.0|public Action<SerieEventData> onSerieDown
鼠标按下Serie回调。 | -|onSerieEnter|v3.6.0|public Action<SerieEventData> onSerieEnter
鼠标进入Serie回调。 | -|onSerieExit|v3.6.0|public Action<SerieEventData> onSerieExit
鼠标离开Serie回调。 | -|onUpdate||public Action onUpdate
图表的Update回调。 | -|AddChartComponent()||public MainComponent AddChartComponent(Type type)| -|AddChartComponent<T>()||public T AddChartComponent<T>() where T : MainComponent| -|AddChartComponentWhenNoExist<T>()||public T AddChartComponentWhenNoExist<T>() where T : MainComponent| -|AddData()||public SerieData AddData(int serieIndex, DateTime time, double yValue, string dataName = null, string dataId = null)
添加(time,y)数据到指定的系列中。 | -|AddData()||public SerieData AddData(int serieIndex, double data, string dataName = null, string dataId = null)
添加一个数据到指定的系列中。 | -|AddData()||public SerieData AddData(int serieIndex, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)| -|AddData()||public SerieData AddData(int serieIndex, double xValue, double yValue, string dataName = null, string dataId = null)
添加(x,y)数据到指定系列中。 | -|AddData()||public SerieData AddData(int serieIndex, List<double> multidimensionalData, string dataName = null, string dataId = null)
添加多维数据(x,y,z...)到指定的系列中。 | -|AddData()||public SerieData AddData(int serieIndex, params double[] multidimensionalData)
添加多维数据(x,y,z...)到指定的系列中。 | -|AddData()||public SerieData AddData(string serieName, DateTime time, double yValue, string dataName = null, string dataId = null)
添加(time,y)数据到指定的系列中。 | -|AddData()||public SerieData AddData(string serieName, double data, string dataName = null, string dataId = null)
If serieName doesn't exist in legend,will be add to legend. | -|AddData()||public SerieData AddData(string serieName, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)| -|AddData()||public SerieData AddData(string serieName, double xValue, double yValue, string dataName = null, string dataId = null)
添加(x,y)数据到指定系列中。 | -|AddData()||public SerieData AddData(string serieName, List<double> multidimensionalData, string dataName = null, string dataId = null)
添加多维数据(x,y,z...)到指定的系列中。 | -|AddData()||public SerieData AddData(string serieName, params double[] multidimensionalData)
添加多维数据(x,y,z...)到指定的系列中。 | -|AddLink()||public SerieDataLink AddLink(int serieIndex, string sourceId, string targetId, double value = 0)
添加一个关系图的关系数据。 | -|AddSerie<T>()||public T AddSerie<T>(string serieName = null, bool show = true, bool addToHead = false) where T : Serie| -|AddXAxisData()||public void AddXAxisData(string category, int xAxisIndex = 0)
添加一个类目数据到指定的x轴。 | -|AddXAxisIcon()||public void AddXAxisIcon(Sprite icon, int xAxisIndex = 0)
添加一个图标到指定的x轴。 | -|AddYAxisData()||public void AddYAxisData(string category, int yAxisIndex = 0)
添加一个类目数据到指定的y轴。 | -|AddYAxisIcon()||public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0)
添加一个图标到指定的y轴。 | -|AnimationEnable()||public void AnimationEnable(bool flag)
是否启用Serie动画。 | -|AnimationFadeIn()||public void AnimationFadeIn(bool reset = true)
开始所有Serie的渐入动画。 | -|AnimationFadeOut()||public void AnimationFadeOut()
开始所有Serie的渐出动画。 | -|AnimationPause()||public void AnimationPause()
暂停所有Serie的动画。 | -|AnimationReset()||public void AnimationReset()
重置所有Serie的动画。 | -|AnimationResume()||public void AnimationResume()
继续所有Serie的动画。 | -|CanAddChartComponent()||public bool CanAddChartComponent(Type type)| -|CanAddSerie()||public bool CanAddSerie(Type type)| -|CanAddSerie<T>()||public bool CanAddSerie<T>() where T : Serie| -|CancelTooltip()|v3.7.0|public void CancelTooltip()
取消Tooltip. | -|CanMultipleComponent()||public bool CanMultipleComponent(Type type)| -|ClampInChart()||public void ClampInChart(ref Vector3 pos)| -|ClampInGrid()||public Vector3 ClampInGrid(GridCoord grid, Vector3 pos)| -|ClearComponentData()|v3.4.0|public virtual void ClearComponentData()
清空所有组件的数据。 | -|ClearData()||public virtual void ClearData()
清空所有组件和Serie的数据。注意:Serie只是清空数据,不会移除Serie。 | -|ClearSerieData()|v3.4.0|public virtual void ClearSerieData()
清空所有serie的数据。 | -|ClearSerieLinks()|v3.10.0|public virtual void ClearSerieLinks()
清空所有serie的link数据。 | -|ClickLegendButton()||public void ClickLegendButton(int legendIndex, string legendName, bool show)
点击图例按钮 | -|ConvertSerie()||public bool ConvertSerie(Serie serie, Type type)| -|ConvertSerie<T>()||public bool ConvertSerie<T>(Serie serie) where T : Serie| -|ConvertXYAxis()||public void ConvertXYAxis(int index)
转换X轴和Y轴的配置 | -|EnsureChartComponent<T>()|v3.6.0|public T EnsureChartComponent<T>() where T : MainComponent
确保图表有该组件,如果没有则添加。注意:有可能添加不成功。 | -|GenerateDefaultSerieName()||public string GenerateDefaultSerieName()| -|GetAllSerieDataCount()||public int GetAllSerieDataCount()| -|GetChartBackgroundColor()||public Color32 GetChartBackgroundColor()| -|GetChartComponent<T>()||public T GetChartComponent<T>(int index = 0) where T : MainComponent| -|GetChartComponentNum()||public int GetChartComponentNum(Type type)| -|GetChartComponentNum<T>()||public int GetChartComponentNum<T>() where T : MainComponent| -|GetChartComponents<T>()||public List<MainComponent> GetChartComponents<T>() where T : MainComponent| -|GetData()||public double GetData(int serieIndex, int dataIndex, int dimension = 1)| -|GetData()||public double GetData(string serieName, int dataIndex, int dimension = 1)| -|GetDataZoomOfAxis()||public DataZoom GetDataZoomOfAxis(Axis axis)| -|GetDataZoomOfSerie()||public void GetDataZoomOfSerie(Serie serie, out DataZoom xDataZoom, out DataZoom yDataZoom)| -|GetGrid()||public GridCoord GetGrid(Vector2 local)| -|GetGridOfDataZoom()||public GridCoord GetGridOfDataZoom(DataZoom dataZoom)| -|GetItemColor()||public Color32 GetItemColor(Serie serie)| -|GetItemColor()||public Color32 GetItemColor(Serie serie, SerieData serieData)| -|GetItemColor()||public Color32 GetItemColor(Serie serie, SerieData serieData, int colorIndex)| -|GetLegendRealShowNameColor()||public Color32 GetLegendRealShowNameColor(string name)| -|GetLegendRealShowNameIndex()||public int GetLegendRealShowNameIndex(string name)| -|GetMarkColor()|v3.4.0|public Color32 GetMarkColor(Serie serie, SerieData serieData)
获得Serie的标识颜色。 | -|GetOrAddChartComponent<T>()||public T GetOrAddChartComponent<T>() where T : MainComponent| -|GetPainter()||public Painter GetPainter(int index)| -|GetSerie()||public Serie GetSerie(int serieIndex)| -|GetSerie()||public Serie GetSerie(string serieName)| -|GetSerie<T>()||public T GetSerie<T>() where T : Serie| -|GetSerie<T>()||public T GetSerie<T>(int serieIndex) where T : Serie| -|GetSerieBarGap<T>()||public float GetSerieBarGap<T>() where T : Serie| -|GetSerieBarRealCount<T>()||public int GetSerieBarRealCount<T>() where T : Serie| -|GetSerieIndexIfStack<T>()||public int GetSerieIndexIfStack<T>(Serie currSerie) where T : Serie| -|GetSerieSameStackTotalValue<T>()||public double GetSerieSameStackTotalValue<T>(string stack, int dataIndex) where T : Serie| -|GetSeriesMinMaxValue()||public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue)| -|GetSerieTotalGap<T>()||public float GetSerieTotalGap<T>(float categoryWidth, float gap, int index) where T : Serie| -|GetSerieTotalWidth<T>()||public float GetSerieTotalWidth<T>(float categoryWidth, float gap, int realBarCount) where T : Serie| -|GetTitlePosition()||public Vector3 GetTitlePosition(Title title)| -|GetVisualMapOfSerie()||public VisualMap GetVisualMapOfSerie(Serie serie)| -|GetXDataZoomOfSerie()||public DataZoom GetXDataZoomOfSerie(Serie serie)| -|GetXLerpColor()||public Color32 GetXLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)| -|GetYLerpColor()||public Color32 GetYLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid)| -|HasChartComponent()||public bool HasChartComponent(Type type)| -|HasChartComponent<T>()||public bool HasChartComponent<T>()| -|HasSerie()||public bool HasSerie(Type type)| -|HasSerie<T>()||public bool HasSerie<T>() where T : Serie| -|Init()||public void Init(bool defaultChart = true)| -|InitAxisRuntimeData()||public virtual void InitAxisRuntimeData(Axis axis) { }| -|InsertSerie()||public void InsertSerie(Serie serie, int index = -1, bool addToHead = false)| -|InsertSerie<T>()||public T InsertSerie<T>(int index, string serieName = null, bool show = true) where T : Serie| -|Internal_CheckAnimation()||public void Internal_CheckAnimation()| -|IsActiveByLegend()||public virtual bool IsActiveByLegend(string legendName)
获得指定图例名字的系列是否显示。 | -|IsAllAxisCategory()||public bool IsAllAxisCategory()
纯类目轴。 | -|IsAllAxisValue()||public bool IsAllAxisValue()
纯数值坐标轴(数值轴或对数轴)。 | -|IsInAnyGrid()||public bool IsInAnyGrid(Vector2 local)| -|IsInChart()||public bool IsInChart(float x, float y)| -|IsInChart()||public bool IsInChart(Vector2 local)
坐标是否在图表范围内 | -|IsSerieName()||public bool IsSerieName(string name)| -|MoveDownSerie()||public bool MoveDownSerie(int serieIndex)| -|MoveUpSerie()||public bool MoveUpSerie(int serieIndex)| -|OnAfterDeserialize()||public void OnAfterDeserialize()| -|OnBeforeSerialize()||public void OnBeforeSerialize()| -|OnBeginDrag()||public override void OnBeginDrag(PointerEventData eventData)| -|OnDataZoomRangeChanged()||public virtual void OnDataZoomRangeChanged(DataZoom dataZoom)| -|OnDrag()||public override void OnDrag(PointerEventData eventData)| -|OnEndDrag()||public override void OnEndDrag(PointerEventData eventData)| -|OnLegendButtonClick()||public virtual void OnLegendButtonClick(int index, string legendName, bool show)| -|OnLegendButtonEnter()||public virtual void OnLegendButtonEnter(int index, string legendName)| -|OnLegendButtonExit()||public virtual void OnLegendButtonExit(int index, string legendName)| -|OnPointerClick()||public override void OnPointerClick(PointerEventData eventData)| -|OnPointerDown()||public override void OnPointerDown(PointerEventData eventData)| -|OnPointerEnter()||public override void OnPointerEnter(PointerEventData eventData)| -|OnPointerExit()||public override void OnPointerExit(PointerEventData eventData)| -|OnPointerUp()||public override void OnPointerUp(PointerEventData eventData)| -|OnScroll()||public override void OnScroll(PointerEventData eventData)| -|RefreshBasePainter()||public void RefreshBasePainter()| -|RefreshChart()||public void RefreshChart()
在下一帧刷新整个图表。 | -|RefreshChart()||public void RefreshChart(int serieIndex)
在下一帧刷新图表的指定serie。 | -|RefreshChart()||public void RefreshChart(Serie serie)
在下一帧刷新图表的指定serie。 | -|RefreshDataZoom()||public void RefreshDataZoom()
在下一帧刷新DataZoom | -|RefreshGraph()||public override void RefreshGraph()| -|RefreshPainter()||public void RefreshPainter(int index)| -|RefreshPainter()||public void RefreshPainter(Serie serie)| -|RefreshTopPainter()||public void RefreshTopPainter()| -|RefreshUpperPainter()||public void RefreshUpperPainter()| -|RemoveAllChartComponent()||public void RemoveAllChartComponent()| -|RemoveAllSerie()|v3.2.0|public virtual void RemoveAllSerie()
移除所有的Serie。当确认只需要移除Serie时使用该接口,其他情况下一般用RemoveData()。 | -|RemoveChartComponent()||public bool RemoveChartComponent(MainComponent component)| -|RemoveChartComponent()||public bool RemoveChartComponent(Type type, int index = 0)| -|RemoveChartComponent<T>()||public bool RemoveChartComponent<T>(int index = 0)| -|RemoveChartComponents()||public int RemoveChartComponents(Type type)| -|RemoveChartComponents<T>()||public int RemoveChartComponents<T>()| -|RemoveData()||public virtual void RemoveData()
清空所有组件数据,并移除所有Serie。一般在图表重新初始化时使用。 注意:组件只清空数据部分,参数会保留不会被重置。 | -|RemoveData()||public virtual void RemoveData(string serieName)
清除指定系列名称的数据。 | -|RemoveSerie()||public void RemoveSerie(int serieIndex)| -|RemoveSerie()||public void RemoveSerie(Serie serie)| -|RemoveSerie()||public void RemoveSerie(string serieName)| -|RemoveSerie<T>()||public void RemoveSerie<T>() where T : Serie| -|ReplaceSerie()||public bool ReplaceSerie(Serie oldSerie, Serie newSerie)| -|ResetChartStatus()|v3.10.0|public void ResetChartStatus()
重置图表状态。当设置某些参数后,由于动画影响,可能导致图表状态不正确,此时可以调用该接口重置图表状态。 | -|ResetDataIndex()||public bool ResetDataIndex(int serieIndex)
重置serie的数据项索引。避免数据项索引异常。 | -|SetBasePainterMaterial()||public void SetBasePainterMaterial(Material material)
设置Base Painter的材质球 | -|SetInsertDataToHead()|v3.11.0|public void SetInsertDataToHead(bool insertDataToHead)
设置数据插入到头部。 | -|SetMaxCache()||public void SetMaxCache(int maxCache)
设置可缓存的最大数据量。当数据量超过该值时,会自动删除第一个值再加入最新值。 | -|SetPainterActive()||public void SetPainterActive(int index, bool flag)| -|SetSerieActive()||public void SetSerieActive(int serieIndex, bool active)
设置指定系列是否显示。 | -|SetSerieActive()||public void SetSerieActive(Serie serie, bool active)| -|SetSerieActive()||public void SetSerieActive(string serieName, bool active)
设置指定系列是否显示。 | -|SetSeriePainterMaterial()||public void SetSeriePainterMaterial(Material material)
设置Serie Painter的材质球 | -|SetTopPainterMaterial()||public void SetTopPainterMaterial(Material material)
设置Top Painter的材质球 | -|SetUpperPainterMaterial()||public void SetUpperPainterMaterial(Material material)
设置Upper Painter的材质球 | -|TriggerTooltip()|v3.7.0|public bool TriggerTooltip(int dataIndex, int serieIndex = 0)
尝试触发指定数据项的Tooltip. | -|TriggerTooltip()|v3.7.0|public bool TriggerTooltip(Vector3 localPosition)
在指定的位置尝试触发Tooltip. | -|TryAddChartComponent()||public bool TryAddChartComponent(Type type)| -|TryAddChartComponent<T>()||public bool TryAddChartComponent<T>() where T : MainComponent| -|TryAddChartComponent<T>()||public bool TryAddChartComponent<T>(out T component) where T : MainComponent| -|TryGetChartComponent<T>()||public bool TryGetChartComponent<T>(out T component, int index = 0)| -|UpdateData()||public bool UpdateData(int serieIndex, int dataIndex, double value)
更新指定系列中的指定索引数据。 | -|UpdateData()||public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value)
更新指定系列指定索引指定维数的数据。维数从0开始。 | -|UpdateData()||public bool UpdateData(int serieIndex, int dataIndex, List<double> multidimensionalData)
更新指定系列指定索引的数据项的多维数据。 | -|UpdateData()||public bool UpdateData(string serieName, int dataIndex, double value)
更新指定系列中的指定索引数据。 | -|UpdateData()||public bool UpdateData(string serieName, int dataIndex, int dimension, double value)
更新指定系列指定索引指定维数的数据。维数从0开始。 | -|UpdateData()||public bool UpdateData(string serieName, int dataIndex, List<double> multidimensionalData)
更新指定系列指定索引的数据项的多维数据。 | -|UpdateDataName()||public bool UpdateDataName(int serieIndex, int dataIndex, string dataName)
更新指定系列中的指定索引数据名称。 | -|UpdateDataName()||public bool UpdateDataName(string serieName, int dataIndex, string dataName)
更新指定系列中的指定索引数据名称。 | -|UpdateLegendColor()||public virtual void UpdateLegendColor(string legendName, bool active)| -|UpdateTheme()||public bool UpdateTheme(ThemeType theme)
切换内置主题。 | -|UpdateTheme()||public void UpdateTheme(Theme theme)
切换图表主题。 | -|UpdateXAxisData()||public void UpdateXAxisData(int index, string category, int xAxisIndex = 0)
更新X轴类目数据。 | -|UpdateXAxisIcon()||public void UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0)
更新X轴图标。 | -|UpdateYAxisData()||public void UpdateYAxisData(int index, string category, int yAxisIndex = 0)
更新Y轴类目数据。 | -|UpdateYAxisIcon()||public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0)
更新Y轴图标。 | +### BaseChart.AddLink + +public SerieDataLink AddLink(int serieIndex, string sourceId, string targetId, double value = 0) +添加一个关系图的关系数据。 + +### BaseChart.AddSerie<T> + +public T AddSerie<T>(string serieName = null, bool show = true, bool addToHead = false) where T : Serie + +### BaseChart.AddXAxisData + +public void AddXAxisData(string category, int xAxisIndex = 0) +添加一个类目数据到指定的x轴。 + +### BaseChart.AddXAxisIcon + +public void AddXAxisIcon(Sprite icon, int xAxisIndex = 0) +添加一个图标到指定的x轴。 + +### BaseChart.AddYAxisData + +public void AddYAxisData(string category, int yAxisIndex = 0) +添加一个类目数据到指定的y轴。 + +### BaseChart.AddYAxisIcon + +public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0) +添加一个图标到指定的y轴。 + +### BaseChart.AnimationEnable + +public void AnimationEnable(bool flag) +是否启用Serie动画。 + +### BaseChart.AnimationFadeIn + +public void AnimationFadeIn(bool reset = true) +开始所有Serie的渐入动画。 + +### BaseChart.AnimationFadeOut + +public void AnimationFadeOut() +开始所有Serie的渐出动画。 + +### BaseChart.AnimationPause + +public void AnimationPause() +暂停所有Serie的动画。 + +### BaseChart.AnimationReset + +public void AnimationReset() +重置所有Serie的动画。 + +### BaseChart.AnimationResume + +public void AnimationResume() +继续所有Serie的动画。 + +### BaseChart.CanAddChartComponent + +public bool CanAddChartComponent(Type type) + +### BaseChart.CanAddSerie + +public bool CanAddSerie(Type type) + +### BaseChart.CanAddSerie<T> + +public bool CanAddSerie<T>() where T : Serie + +### BaseChart.CancelTooltip + +public void CancelTooltip() + +> 从 `v3.7.0` 开始支持 + +取消Tooltip. + +### BaseChart.CanMultipleComponent + +public bool CanMultipleComponent(Type type) + +### BaseChart.ClampInChart + +public void ClampInChart(ref Vector3 pos) + +### BaseChart.ClampInGrid + +public Vector3 ClampInGrid(GridCoord grid, Vector3 pos) + +### BaseChart.ClearComponentData + +public virtual void ClearComponentData() + +> 从 `v3.4.0` 开始支持 + +清空所有组件的数据。 + +### BaseChart.ClearData + +public virtual void ClearData() +清空所有组件和Serie的数据。注意:Serie只是清空数据,不会移除Serie。 + +### BaseChart.ClearSerieData + +public virtual void ClearSerieData() + +> 从 `v3.4.0` 开始支持 + +清空所有serie的数据。 + +### BaseChart.ClearSerieLinks + +public virtual void ClearSerieLinks() + +> 从 `v3.10.0` 开始支持 + +清空所有serie的link数据。 + +### BaseChart.ClickLegendButton + +public void ClickLegendButton(int legendIndex, string legendName, bool show) +点击图例按钮 + +### BaseChart.ConvertSerie + +public bool ConvertSerie(Serie serie, Type type) + +### BaseChart.ConvertSerie<T> + +public bool ConvertSerie<T>(Serie serie) where T : Serie + +### BaseChart.ConvertXYAxis + +public void ConvertXYAxis(int index) +转换X轴和Y轴的配置 + +### BaseChart.EnsureChartComponent<T> + +public T EnsureChartComponent<T>() where T : MainComponent + +> 从 `v3.6.0` 开始支持 + +确保图表有该组件,如果没有则添加。注意:有可能添加不成功。 + +### BaseChart.GenerateDefaultSerieName + +public string GenerateDefaultSerieName() + +### BaseChart.GetAllSerieDataCount + +public int GetAllSerieDataCount() + +### BaseChart.GetChartBackgroundColor + +public Color32 GetChartBackgroundColor() + +### BaseChart.GetChartComponent<T> + +public T GetChartComponent<T>(int index = 0) where T : MainComponent + +### BaseChart.GetChartComponentNum + +public int GetChartComponentNum(Type type) + +### BaseChart.GetChartComponentNum<T> + +public int GetChartComponentNum<T>() where T : MainComponent + +### BaseChart.GetChartComponents<T> + +public List<MainComponent> GetChartComponents<T>() where T : MainComponent + +### BaseChart.GetData + +public double GetData(int serieIndex, int dataIndex, int dimension = 1) + + +### BaseChart.GetDataZoomOfAxis + +public DataZoom GetDataZoomOfAxis(Axis axis) + +### BaseChart.GetDataZoomOfSerie + +public void GetDataZoomOfSerie(Serie serie, out DataZoom xDataZoom, out DataZoom yDataZoom) + +### BaseChart.GetGrid + +public GridCoord GetGrid(Vector2 local) + +### BaseChart.GetGridOfDataZoom + +public GridCoord GetGridOfDataZoom(DataZoom dataZoom) + +### BaseChart.GetItemColor + +public Color32 GetItemColor(Serie serie) + +public Color32 GetItemColor(Serie serie, SerieData serieData, int colorIndex) + + +### BaseChart.GetLegendRealShowNameColor + +public Color32 GetLegendRealShowNameColor(string name) + +### BaseChart.GetLegendRealShowNameIndex + +public int GetLegendRealShowNameIndex(string name) + +### BaseChart.GetMarkColor + +public Color32 GetMarkColor(Serie serie, SerieData serieData) + +> 从 `v3.4.0` 开始支持 + +获得Serie的标识颜色。 + +### BaseChart.GetOrAddChartComponent<T> + +public T GetOrAddChartComponent<T>() where T : MainComponent + +### BaseChart.GetPainter + +public Painter GetPainter(int index) + +### BaseChart.GetSerie + +public Serie GetSerie(int serieIndex) + + +### BaseChart.GetSerie<T> + +public T GetSerie<T>(int serieIndex) where T : Serie + + +### BaseChart.GetSerieBarGap<T> + +public float GetSerieBarGap<T>() where T : Serie + +### BaseChart.GetSerieBarRealCount<T> + +public int GetSerieBarRealCount<T>() where T : Serie + +### BaseChart.GetSerieIndexIfStack<T> + +public int GetSerieIndexIfStack<T>(Serie currSerie) where T : Serie + +### BaseChart.GetSerieSameStackTotalValue<T> + +public double GetSerieSameStackTotalValue<T>(string stack, int dataIndex) where T : Serie + +### BaseChart.GetSeriesMinMaxValue + +public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue) + +### BaseChart.GetSerieTotalGap<T> + +public float GetSerieTotalGap<T>(float categoryWidth, float gap, int index) where T : Serie + +### BaseChart.GetSerieTotalWidth<T> + +public float GetSerieTotalWidth<T>(float categoryWidth, float gap, int realBarCount) where T : Serie + +### BaseChart.GetTitlePosition + +public Vector3 GetTitlePosition(Title title) + +### BaseChart.GetVisualMapOfSerie + +public VisualMap GetVisualMapOfSerie(Serie serie) + +### BaseChart.GetXDataZoomOfSerie + +public DataZoom GetXDataZoomOfSerie(Serie serie) + +### BaseChart.GetXLerpColor + +public Color32 GetXLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid) + +### BaseChart.GetYLerpColor + +public Color32 GetYLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid) + +### BaseChart.HasChartComponent + +public bool HasChartComponent(Type type) + +### BaseChart.HasChartComponent<T> + +public bool HasChartComponent<T>() + +### BaseChart.HasSerie + +public bool HasSerie(Type type) + +### BaseChart.HasSerie<T> + +public bool HasSerie<T>() where T : Serie + +### BaseChart.Init + +public void Init(bool defaultChart = true) + +### BaseChart.InitAxisRuntimeData + +public virtual void InitAxisRuntimeData(Axis axis) { } + +### BaseChart.InsertSerie + +public void InsertSerie(Serie serie, int index = -1, bool addToHead = false) + +### BaseChart.InsertSerie<T> + +public T InsertSerie<T>(int index, string serieName = null, bool show = true) where T : Serie + +### BaseChart.Internal_CheckAnimation + +public void Internal_CheckAnimation() + +### BaseChart.IsActiveByLegend + +public virtual bool IsActiveByLegend(string legendName) +获得指定图例名字的系列是否显示。 + +### BaseChart.IsAllAxisCategory + +public bool IsAllAxisCategory() +纯类目轴。 + +### BaseChart.IsAllAxisValue + +public bool IsAllAxisValue() +纯数值坐标轴(数值轴或对数轴)。 + +### BaseChart.IsInAnyGrid + +public bool IsInAnyGrid(Vector2 local) + +### BaseChart.IsInChart + +public bool IsInChart(float x, float y) + + +### BaseChart.IsSerieName + +public bool IsSerieName(string name) + +### BaseChart.MoveDownSerie + +public bool MoveDownSerie(int serieIndex) + +### BaseChart.MoveUpSerie + +public bool MoveUpSerie(int serieIndex) + +### BaseChart.OnAfterDeserialize + +public void OnAfterDeserialize() + +### BaseChart.OnBeforeSerialize + +public void OnBeforeSerialize() + +### BaseChart.OnBeginDrag + +public override void OnBeginDrag(PointerEventData eventData) + +### BaseChart.OnDataZoomRangeChanged + +public virtual void OnDataZoomRangeChanged(DataZoom dataZoom) + +### BaseChart.OnDrag + +public override void OnDrag(PointerEventData eventData) + +### BaseChart.OnEndDrag + +public override void OnEndDrag(PointerEventData eventData) + +### BaseChart.OnLegendButtonClick + +public virtual void OnLegendButtonClick(int index, string legendName, bool show) + +### BaseChart.OnLegendButtonEnter + +public virtual void OnLegendButtonEnter(int index, string legendName) + +### BaseChart.OnLegendButtonExit + +public virtual void OnLegendButtonExit(int index, string legendName) + +### BaseChart.OnPointerClick + +public override void OnPointerClick(PointerEventData eventData) + +### BaseChart.OnPointerDown + +public override void OnPointerDown(PointerEventData eventData) + +### BaseChart.OnPointerEnter + +public override void OnPointerEnter(PointerEventData eventData) + +### BaseChart.OnPointerExit + +public override void OnPointerExit(PointerEventData eventData) + +### BaseChart.OnPointerUp + +public override void OnPointerUp(PointerEventData eventData) + +### BaseChart.OnScroll + +public override void OnScroll(PointerEventData eventData) + +### BaseChart.RefreshBasePainter + +public void RefreshBasePainter() + +### BaseChart.RefreshChart + +public void RefreshChart(int serieIndex) +在下一帧刷新图表的指定serie。 + +public void RefreshChart(Serie serie) +在下一帧刷新图表的指定serie。 + + +### BaseChart.RefreshDataZoom + +public void RefreshDataZoom() +在下一帧刷新DataZoom + +### BaseChart.RefreshGraph + +public override void RefreshGraph() + +### BaseChart.RefreshPainter + +public void RefreshPainter(Serie serie) + + +### BaseChart.RefreshTopPainter + +public void RefreshTopPainter() + +### BaseChart.RefreshUpperPainter + +public void RefreshUpperPainter() + +### BaseChart.RemoveAllChartComponent + +public void RemoveAllChartComponent() + +### BaseChart.RemoveAllSerie + +public virtual void RemoveAllSerie() + +> 从 `v3.2.0` 开始支持 + +移除所有的Serie。当确认只需要移除Serie时使用该接口,其他情况下一般用RemoveData()。 + +### BaseChart.RemoveChartComponent + +public bool RemoveChartComponent(MainComponent component) + + +### BaseChart.RemoveChartComponent<T> + +public bool RemoveChartComponent<T>(int index = 0) + +### BaseChart.RemoveChartComponents + +public int RemoveChartComponents(Type type) + +### BaseChart.RemoveChartComponents<T> + +public int RemoveChartComponents<T>() + +### BaseChart.RemoveData + +public virtual void RemoveData(string serieName) +清除指定系列名称的数据。 + + +### BaseChart.RemoveSerie + +public void RemoveSerie(int serieIndex) + +public void RemoveSerie(Serie serie) + + +### BaseChart.RemoveSerie<T> + +public void RemoveSerie<T>() where T : Serie + +### BaseChart.ReplaceSerie + +public bool ReplaceSerie(Serie oldSerie, Serie newSerie) + +### BaseChart.ResetChartStatus + +public void ResetChartStatus() + +> 从 `v3.10.0` 开始支持 + +重置图表状态。当设置某些参数后,由于动画影响,可能导致图表状态不正确,此时可以调用该接口重置图表状态。 + +### BaseChart.ResetDataIndex + +public bool ResetDataIndex(int serieIndex) +重置serie的数据项索引。避免数据项索引异常。 + +### BaseChart.SetBasePainterMaterial + +public void SetBasePainterMaterial(Material material) +设置Base Painter的材质球 + +### BaseChart.SetInsertDataToHead + +public void SetInsertDataToHead(bool insertDataToHead) + +> 从 `v3.11.0` 开始支持 + +设置数据插入到头部。 + +### BaseChart.SetMaxCache + +public void SetMaxCache(int maxCache) +设置可缓存的最大数据量。当数据量超过该值时,会自动删除第一个值再加入最新值。 + +### BaseChart.SetPainterActive + +public void SetPainterActive(int index, bool flag) + +### BaseChart.SetSerieActive + +public void SetSerieActive(int serieIndex, bool active) +设置指定系列是否显示。 + +public void SetSerieActive(Serie serie, bool active) + + +### BaseChart.SetSeriePainterMaterial + +public void SetSeriePainterMaterial(Material material) +设置Serie Painter的材质球 + +### BaseChart.SetTopPainterMaterial + +public void SetTopPainterMaterial(Material material) +设置Top Painter的材质球 + +### BaseChart.SetUpperPainterMaterial + +public void SetUpperPainterMaterial(Material material) +设置Upper Painter的材质球 + +### BaseChart.TriggerTooltip + +public bool TriggerTooltip(Vector3 localPosition) + +> 从 `v3.7.0` 开始支持 + +在指定的位置尝试触发Tooltip. + + +### BaseChart.TryAddChartComponent + +public bool TryAddChartComponent(Type type) + +### BaseChart.TryAddChartComponent<T> + +public bool TryAddChartComponent<T>(out T component) where T : MainComponent + + +### BaseChart.TryGetChartComponent<T> + +public bool TryGetChartComponent<T>(out T component, int index = 0) + +### BaseChart.UpdateData + +public bool UpdateData(int serieIndex, int dataIndex, double value) +更新指定系列中的指定索引数据。 + +public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value) +更新指定系列指定索引指定维数的数据。维数从0开始。 + +public bool UpdateData(int serieIndex, int dataIndex, List<double> multidimensionalData) +更新指定系列指定索引的数据项的多维数据。 + +public bool UpdateData(string serieName, int dataIndex, int dimension, double value) +更新指定系列指定索引指定维数的数据。维数从0开始。 + +public bool UpdateData(string serieName, int dataIndex, List<double> multidimensionalData) +更新指定系列指定索引的数据项的多维数据。 + + +### BaseChart.UpdateDataName + +public bool UpdateDataName(int serieIndex, int dataIndex, string dataName) +更新指定系列中的指定索引数据名称。 + + +### BaseChart.UpdateLegendColor + +public virtual void UpdateLegendColor(string legendName, bool active) + +### BaseChart.UpdateTheme + +public void UpdateTheme(Theme theme) +切换图表主题。 + + +### BaseChart.UpdateXAxisData + +public void UpdateXAxisData(int index, string category, int xAxisIndex = 0) +更新X轴类目数据。 + +### BaseChart.UpdateXAxisIcon + +public void UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0) +更新X轴图标。 + +### BaseChart.UpdateYAxisData + +public void UpdateYAxisData(int index, string category, int yAxisIndex = 0) +更新Y轴类目数据。 + +### BaseChart.UpdateYAxisIcon + +public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0) +更新Y轴图标。 ## BaseGraph -> class in XCharts.Runtime / 继承自: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic),[IPointerDownHandler](https://docs.unity3d.com/ScriptReference/30_search.html?q=ipointerdownhandler),[IPointerUpHandler](https://docs.unity3d.com/ScriptReference/30_search.html?q=ipointeruphandler),[](#) / 子类: [BaseChart](#basechart),[UIComponent](#uicomponent) +class in XCharts.Runtime / 继承自: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic),[IPointerDownHandler](https://docs.unity3d.com/ScriptReference/30_search.html?q=ipointerdownhandler),[IPointerUpHandler](https://docs.unity3d.com/ScriptReference/30_search.html?q=ipointeruphandler),[](#) / 子类: [BaseChart](#basechart),[UIComponent](#uicomponent) +### BaseGraph.chartHideFlags -|API|版本|描述| -|--|--|--| -|onBeginDrag||public Action<PointerEventData, BaseGraph> onBeginDrag
鼠标开始拖拽回调。 | -|onDrag||public Action<PointerEventData, BaseGraph> onDrag
鼠标拖拽回调。 | -|onEndDrag||public Action<PointerEventData, BaseGraph> onEndDrag
鼠标结束拖拽回调。 | -|onPointerClick||public Action<PointerEventData, BaseGraph> onPointerClick
鼠标点击回调。 | -|onPointerDown||public Action<PointerEventData, BaseGraph> onPointerDown
鼠标按下回调。 | -|onPointerEnter||public Action<PointerEventData, BaseGraph> onPointerEnter
鼠标进入回调。 | -|onPointerExit||public Action<PointerEventData, BaseGraph> onPointerExit
鼠标退出回调。 | -|onPointerUp||public Action<PointerEventData, BaseGraph> onPointerUp
鼠标弹起回调。 | -|onScroll||public Action<PointerEventData, BaseGraph> onScroll
鼠标滚动回调。 | -|CheckWarning()||public string CheckWarning()
检测警告信息。 | -|LocalPointToScreenPoint()|v3.7.0|public Vector2 LocalPointToScreenPoint(Vector2 localPoint)
图表内坐标转屏幕坐标。 | -|LocalPointToWorldPoint()|v3.7.0|public Vector2 LocalPointToWorldPoint(Vector2 localPoint)
图表内坐标转世界坐标。 | -|OnBeginDrag()||public virtual void OnBeginDrag(PointerEventData eventData)| -|OnDrag()||public virtual void OnDrag(PointerEventData eventData)| -|OnEndDrag()||public virtual void OnEndDrag(PointerEventData eventData)| -|OnPointerClick()||public virtual void OnPointerClick(PointerEventData eventData)| -|OnPointerDown()||public virtual void OnPointerDown(PointerEventData eventData)| -|OnPointerEnter()||public virtual void OnPointerEnter(PointerEventData eventData)| -|OnPointerExit()||public virtual void OnPointerExit(PointerEventData eventData)| -|OnPointerUp()||public virtual void OnPointerUp(PointerEventData eventData)| -|OnScroll()||public virtual void OnScroll(PointerEventData eventData)| -|RebuildChartObject()||public void RebuildChartObject()
移除并重新创建所有图表的Object。 | -|RefreshAllComponent()||public void RefreshAllComponent()| -|RefreshGraph()||public virtual void RefreshGraph()
在下一帧刷新图形。 | -|SaveAsImage()||public void SaveAsImage(string imageType = "png", string savePath = "")
保存图表为图片。 | -|ScreenPointToChartPoint()||public bool ScreenPointToChartPoint(Vector2 screenPoint, out Vector2 chartPoint)| -|SetPainterDirty()||public void SetPainterDirty()
重新初始化Painter | -|SetSize()||public virtual void SetSize(float width, float height)
设置图形的宽高(在非stretch pivot下才有效,其他情况需要自己调整RectTransform) | +public virtual HideFlags chartHideFlags + +### BaseGraph.clickPos + +public Vector2 clickPos + +### BaseGraph.forceOpenRaycastTarget + +public bool forceOpenRaycastTarget +强制开启鼠标事件检测。 + +### BaseGraph.graphAnchoredPosition + +public Vector2 graphAnchoredPosition + +### BaseGraph.graphHeight + +public float graphHeight +图形的高 + +### BaseGraph.graphMaxAnchor + +public Vector2 graphMaxAnchor + +### BaseGraph.graphMinAnchor + +public Vector2 graphMinAnchor + +### BaseGraph.graphPivot + +public Vector2 graphPivot + +### BaseGraph.graphPosition + +public Vector3 graphPosition +图形的左下角起始坐标。 + +### BaseGraph.graphRect + +public Rect graphRect + +### BaseGraph.graphSizeDelta + +public Vector2 graphSizeDelta + +### BaseGraph.graphWidth + +public float graphWidth +图形的宽 + +### BaseGraph.graphX + +public float graphX +图形的X + +### BaseGraph.graphY + +public float graphY +图形的Y + +### BaseGraph.isPointerClick + +public bool isPointerClick +鼠标是否点击了图表。 + +### BaseGraph.isPointerInChart + +public bool isPointerInChart +鼠标是否在图表内。 + +### BaseGraph.onBeginDrag + +public Action<PointerEventData, BaseGraph> onBeginDrag +鼠标开始拖拽回调。 + +### BaseGraph.onDrag + +public Action<PointerEventData, BaseGraph> onDrag +鼠标拖拽回调。 + +### BaseGraph.onEndDrag + +public Action<PointerEventData, BaseGraph> onEndDrag +鼠标结束拖拽回调。 + +### BaseGraph.onPointerClick + +public Action<PointerEventData, BaseGraph> onPointerClick +鼠标点击回调。 + +### BaseGraph.onPointerDown + +public Action<PointerEventData, BaseGraph> onPointerDown +鼠标按下回调。 + +### BaseGraph.onPointerEnter + +public Action<PointerEventData, BaseGraph> onPointerEnter +鼠标进入回调。 + +### BaseGraph.onPointerExit + +public Action<PointerEventData, BaseGraph> onPointerExit +鼠标退出回调。 + +### BaseGraph.onPointerUp + +public Action<PointerEventData, BaseGraph> onPointerUp +鼠标弹起回调。 + +### BaseGraph.onScroll + +public Action<PointerEventData, BaseGraph> onScroll +鼠标滚动回调。 + +### BaseGraph.painter + +public Painter painter + +### BaseGraph.pointerPos + +public Vector2 pointerPos +鼠标位置。 + +### BaseGraph.warningInfo + +public string warningInfo +警告信息。 + +### BaseGraph.CheckWarning + +public string CheckWarning() +检测警告信息。 + +### BaseGraph.LocalPointToScreenPoint + +public Vector2 LocalPointToScreenPoint(Vector2 localPoint) + +> 从 `v3.7.0` 开始支持 + +图表内坐标转屏幕坐标。 + +### BaseGraph.LocalPointToWorldPoint + +public Vector2 LocalPointToWorldPoint(Vector2 localPoint) + +> 从 `v3.7.0` 开始支持 + +图表内坐标转世界坐标。 + +### BaseGraph.OnBeginDrag + +public virtual void OnBeginDrag(PointerEventData eventData) + +### BaseGraph.OnDrag + +public virtual void OnDrag(PointerEventData eventData) + +### BaseGraph.OnEndDrag + +public virtual void OnEndDrag(PointerEventData eventData) + +### BaseGraph.OnPointerClick + +public virtual void OnPointerClick(PointerEventData eventData) + +### BaseGraph.OnPointerDown + +public virtual void OnPointerDown(PointerEventData eventData) + +### BaseGraph.OnPointerEnter + +public virtual void OnPointerEnter(PointerEventData eventData) + +### BaseGraph.OnPointerExit + +public virtual void OnPointerExit(PointerEventData eventData) + +### BaseGraph.OnPointerUp + +public virtual void OnPointerUp(PointerEventData eventData) + +### BaseGraph.OnScroll + +public virtual void OnScroll(PointerEventData eventData) + +### BaseGraph.RebuildChartObject + +public void RebuildChartObject() +移除并重新创建所有图表的Object。 + +### BaseGraph.RefreshAllComponent + +public void RefreshAllComponent() + +### BaseGraph.RefreshGraph + +public virtual void RefreshGraph() +在下一帧刷新图形。 + +### BaseGraph.SaveAsImage + +public void SaveAsImage(string imageType = "png", string savePath = "") +保存图表为图片。 + +### BaseGraph.ScreenPointToChartPoint + +public bool ScreenPointToChartPoint(Vector2 screenPoint, out Vector2 chartPoint) + +### BaseGraph.SetPainterDirty + +public void SetPainterDirty() +重新初始化Painter + +### BaseGraph.SetSize + +public virtual void SetSize(float width, float height) +设置图形的宽高(在非stretch pivot下才有效,其他情况需要自己调整RectTransform) ## BaseLine -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [AxisLine](#axisline),[AxisMinorSplitLine](#axisminorsplitline),[AxisMinorTick](#axisminortick),[AxisSplitLine](#axissplitline),[AxisTick](#axistick) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [AxisLine](#axisline),[AxisMinorSplitLine](#axisminorsplitline),[AxisMinorTick](#axisminortick),[AxisSplitLine](#axissplitline),[AxisTick](#axistick) 线条基础配置。 -|API|版本|描述| -|--|--|--| -|BaseLine()||public BaseLine()| -|BaseLine()||public BaseLine(bool show) : base()| -|Copy()||public void Copy(BaseLine axisLine)| -|GetColor()||public Color32 GetColor(Color32 themeColor)| -|GetLength()||public float GetLength(float themeLength)| -|GetType()||public LineStyle.Type GetType(LineStyle.Type themeType)| -|GetWidth()||public float GetWidth(float themeWidth)| +### BaseLine.BaseLine + +public BaseLine(bool show) : base() + + +### BaseLine.Copy + +public void Copy(BaseLine axisLine) + +### BaseLine.GetColor + +public Color32 GetColor(Color32 themeColor) + +### BaseLine.GetLength + +public float GetLength(float themeLength) + +### BaseLine.GetType + +public LineStyle.Type GetType(LineStyle.Type themeType) + +### BaseLine.GetWidth + +public float GetWidth(float themeWidth) ## BaseScatter -> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) / 子类: [EffectScatter](#effectscatter),[Scatter](#scatter) +class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) / 子类: [EffectScatter](#effectscatter),[Scatter](#scatter) +### BaseScatter.containerIndex + +public int containerIndex + +### BaseScatter.containterInstanceId + +public int containterInstanceId ## BaseSerie -> class in XCharts.Runtime / 子类: [Serie](#serie) +class in XCharts.Runtime / 子类: [Serie](#serie) + +### BaseSerie.anyDirty + +public bool anyDirty + +### BaseSerie.ClearData() + +public virtual void ClearData() + +### BaseSerie.componentDirty + +public virtual bool componentDirty + +### BaseSerie.defaultColorBy + +public virtual SerieColorBy defaultColorBy + +### BaseSerie.gameObject + +public GameObject gameObject + +### BaseSerie.handler + +public SerieHandler handler + +### BaseSerie.multiDimensionLabel + +public virtual bool multiDimensionLabel + +### BaseSerie.OnBeforeSerialize() + +public virtual void OnBeforeSerialize() + +### BaseSerie.OnDataUpdate() + +public virtual void OnDataUpdate() + +### BaseSerie.painter + +public Painter painter + +### BaseSerie.refreshComponent + +public Action refreshComponent + +### BaseSerie.titleJustForSerie + +public virtual bool titleJustForSerie + +### BaseSerie.useSortData + +public virtual bool useSortData + +### BaseSerie.vertsDirty + +public virtual bool vertsDirty + +### BaseSerie.ClearComponentDirty + +public virtual void ClearComponentDirty() -|API|版本|描述| -|--|--|--| -|ClearComponentDirty()||public static void ClearComponentDirty(ChildComponent component)| -|ClearComponentDirty()||public virtual void ClearComponentDirty()| -|ClearData()||public virtual void ClearData() { }| -|ClearDirty()||public virtual void ClearDirty()| -|ClearVerticesDirty()||public static void ClearVerticesDirty(ChildComponent component)| -|ClearVerticesDirty()||public virtual void ClearVerticesDirty()| -|IsComponentDirty()||public static bool IsComponentDirty(ChildComponent component)| -|IsVertsDirty()||public static bool IsVertsDirty(ChildComponent component)| -|OnAfterDeserialize()||public virtual void OnAfterDeserialize()| -|OnBeforeSerialize()||public virtual void OnBeforeSerialize() { }| -|OnDataUpdate()||public virtual void OnDataUpdate() { }| -|OnRemove()||public virtual void OnRemove()| -|RefreshLabel()||public void RefreshLabel()| -|SetAllDirty()||public virtual void SetAllDirty()| -|SetComponentDirty()||public virtual void SetComponentDirty()| -|SetVerticesDirty()||public virtual void SetVerticesDirty()| +### BaseSerie.ClearData + +public virtual void ClearData() { } + +### BaseSerie.ClearDirty + +public virtual void ClearDirty() + +### BaseSerie.ClearVerticesDirty + +public virtual void ClearVerticesDirty() + + +### BaseSerie.IsComponentDirty + +public static bool IsComponentDirty(ChildComponent component) + +### BaseSerie.IsVertsDirty + +public static bool IsVertsDirty(ChildComponent component) + +### BaseSerie.OnAfterDeserialize + +public virtual void OnAfterDeserialize() + +### BaseSerie.OnBeforeSerialize + +public virtual void OnBeforeSerialize() { } + +### BaseSerie.OnDataUpdate + +public virtual void OnDataUpdate() { } + +### BaseSerie.OnRemove + +public virtual void OnRemove() + +### BaseSerie.RefreshLabel + +public void RefreshLabel() + +### BaseSerie.SetAllDirty + +public virtual void SetAllDirty() + +### BaseSerie.SetComponentDirty + +public virtual void SetComponentDirty() + +### BaseSerie.SetVerticesDirty + +public virtual void SetVerticesDirty() ## BlurStyle -> class in XCharts.Runtime / 继承自: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) > 从 `v3.2.0` 开始支持 @@ -981,1488 +2741,3667 @@ slug: /api ## BorderStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) > 从 `v3.10.0` 开始支持 边框样式。 -|API|版本|描述| -|--|--|--| -|GetRuntimeBorderColor()||public Color32 GetRuntimeBorderColor()| -|GetRuntimeBorderWidth()||public float GetRuntimeBorderWidth()| -|GetRuntimeCornerRadius()||public float[] GetRuntimeCornerRadius()| +### BorderStyle.GetRuntimeBorderColor + +public Color32 GetRuntimeBorderColor() + +### BorderStyle.GetRuntimeBorderWidth + +public float GetRuntimeBorderWidth() + +### BorderStyle.GetRuntimeCornerRadius + +public float[] GetRuntimeCornerRadius() ## CalendarCoord -> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) +### CalendarCoord.IsPointerEnter -|API|版本|描述| -|--|--|--| -|IsPointerEnter()||public bool IsPointerEnter()| -|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)| +public bool IsPointerEnter() + +### CalendarCoord.UpdateRuntimeData + +public void UpdateRuntimeData(BaseChart chart) ## Candlestick -> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +### Candlestick.containerIndex -|API|版本|描述| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| +public int containerIndex + +### Candlestick.containterInstanceId + +public int containterInstanceId + +### Candlestick.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## CandlestickChart -> class in XCharts.Runtime / 继承自: [BaseChart](#basechart) +class in XCharts.Runtime / 继承自: [BaseChart](#basechart) 蜡烛图,也叫K线图,用于描述证券、衍生品或货币的价格走势的一种金融图表样式。 ## ChartCached -> class in XCharts.Runtime +class in XCharts.Runtime +### ChartCached.ColorToDotStr -|API|版本|描述| -|--|--|--| -|ColorToDotStr()||public static string ColorToDotStr(Color color)| -|ColorToStr()||public static string ColorToStr(Color color)| -|FloatToStr()||public static string FloatToStr(double value, string numericFormatter = "F", int precision = 0)| -|GetSerieLabelName()||public static string GetSerieLabelName(string prefix, int i, int j)| -|GetString()||public static string GetString(string prefix, int suffix)| -|IntToStr()||public static string IntToStr(int value, string numericFormatter = "")| -|NumberToDateStr()||public static string NumberToDateStr(double timestamp, string formatter)| -|NumberToDateTime()||public static DateTime NumberToDateTime(double timestamp)| -|NumberToStr()||public static string NumberToStr(double value, string formatter)| -|NumberToTimeSpan()||public static TimeSpan NumberToTimeSpan(double timestamp)| -|NumberToTimeStr()||public static string NumberToTimeStr(double timestamp, string formatter)| +public static string ColorToDotStr(Color color) + +### ChartCached.ColorToStr + +public static string ColorToStr(Color color) + +### ChartCached.FloatToStr + +public static string FloatToStr(double value, string numericFormatter = "F", int precision = 0) + +### ChartCached.GetSerieLabelName + +public static string GetSerieLabelName(string prefix, int i, int j) + +### ChartCached.GetString + +public static string GetString(string prefix, int suffix) + +### ChartCached.IntToStr + +public static string IntToStr(int value, string numericFormatter = "") + +### ChartCached.NumberToDateStr + +public static string NumberToDateStr(double timestamp, string formatter) + +### ChartCached.NumberToDateTime + +public static DateTime NumberToDateTime(double timestamp) + +### ChartCached.NumberToStr + +public static string NumberToStr(double value, string formatter) + +### ChartCached.NumberToTimeSpan + +public static TimeSpan NumberToTimeSpan(double timestamp) + +### ChartCached.NumberToTimeStr + +public static string NumberToTimeStr(double timestamp, string formatter) ## ChartConst -> class in XCharts.Runtime - +class in XCharts.Runtime ## ChartDrawer -> class in XCharts.Runtime - +class in XCharts.Runtime ## ChartHelper -> class in XCharts.Runtime +class in XCharts.Runtime + +### ChartHelper.ignoreVector3 + +public static Vector3 ignoreVector3 + +### ChartHelper.sb + +public static StringBuilder sb + +### ChartHelper.ActiveAllObject + +public static void ActiveAllObject(Transform parent, bool active, string match = null) + +### ChartHelper.AddIcon + +public static Image AddIcon(string name, Transform parent, IconStyle iconStyle) + +### ChartHelper.Cancat + +public static string Cancat(string str1, int i) -|API|版本|描述| -|--|--|--| -|ActiveAllObject()||public static void ActiveAllObject(Transform parent, bool active, string match = null)| -|AddIcon()||public static Image AddIcon(string name, Transform parent, IconStyle iconStyle)| -|Cancat()||public static string Cancat(string str1, int i)| -|Cancat()||public static string Cancat(string str1, string str2)| -|ClearEventListener()||public static void ClearEventListener(GameObject obj)| -|CopyArray<T>()||public static bool CopyArray<T>(T[] toList, T[] fromList)| -|CopyList<T>()||public static bool CopyList<T>(List<T> toList, List<T> fromList)| -|DestoryGameObject()||public static void DestoryGameObject(GameObject go)| -|DestoryGameObject()||public static void DestoryGameObject(Transform parent, string childName)| -|DestoryGameObjectByMatch()||public static void DestoryGameObjectByMatch(Transform parent, string containString)| -|DestroyAllChildren()||public static void DestroyAllChildren(Transform parent)| -|EnsureComponent<T>()||public static T EnsureComponent<T>(GameObject gameObject) where T : Component
确保对象有指定的组件,如果没有则添加。 | -|EnsureComponent<T>()||public static T EnsureComponent<T>(Transform transform) where T : Component
确保对象有指定的组件,如果没有则添加。 | -|GetActualValue()||public static float GetActualValue(float valueOrRate, float total, float maxRate = 1.5f)| -|GetAngle360()||public static float GetAngle360(Vector2 from, Vector2 to)
获得0-360的角度(12点钟方向为0度) | -|GetBlurColor()||public static Color32 GetBlurColor(Color32 color, float a = 0.3f)| -|GetColor()||public static Color32 GetColor(string hexColorStr)| -|GetDire()||public static Vector3 GetDire(float angle, bool isDegree = false)| -|GetFullName()||public static string GetFullName(Transform transform)| -|GetHighlightColor()||public static Color32 GetHighlightColor(Color32 color, float rate = 0.8f)| -|GetLastValue()||public static Vector3 GetLastValue(List<Vector3> list)| -|GetMaxCeilRate()||public static double GetMaxCeilRate(double value, double ceilRate)| -|GetMaxDivisibleValue()||public static double GetMaxDivisibleValue(double max, double ceilRate)| -|GetMaxLogValue()||public static double GetMaxLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)| -|GetMinCeilRate()||public static double GetMinCeilRate(double value, double ceilRate)| -|GetMinDivisibleValue()||public static double GetMinDivisibleValue(double min, double ceilRate)| -|GetMinLogValue()||public static double GetMinLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber)| -|GetOrAddComponent<T>()||public static T GetOrAddComponent<T>(GameObject gameObject) where T : Component| -|GetOrAddComponent<T>()||public static T GetOrAddComponent<T>(Transform transform) where T : Component| -|GetPointList()||public static void GetPointList(ref List<Vector3> posList, Vector3 sp, Vector3 ep, float k = 30f)| -|GetPos()||public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)| -|GetPosition()||public static Vector3 GetPosition(Vector3 center, float angle, float radius)| -|GetSelectColor()||public static Color32 GetSelectColor(Color32 color, float rate = 0.8f)| -|GetVertialDire()||public static Vector3 GetVertialDire(Vector3 dire)| -|HideAllObject()||public static void HideAllObject(GameObject obj, string match = null)| -|HideAllObject()||public static void HideAllObject(Transform parent, string match = null)| -|IsActiveByScale()||public static bool IsActiveByScale(GameObject gameObject)| -|IsActiveByScale()||public static bool IsActiveByScale(Image image)| -|IsActiveByScale()||public static bool IsActiveByScale(Transform transform)| -|IsClearColor()||public static bool IsClearColor(Color color)| -|IsClearColor()||public static bool IsClearColor(Color32 color)| -|IsColorAlphaZero()||public static bool IsColorAlphaZero(Color color)| -|IsEquals()||public static bool IsEquals(double d1, double d2)| -|IsEquals()||public static bool IsEquals(float d1, float d2)| -|IsIngore()||public static bool IsIngore(Vector3 pos)| -|IsInRect()||public static bool IsInRect(Vector3 pos, float xMin, float xMax, float yMin, float yMax)| -|IsPointInQuadrilateral()||public static bool IsPointInQuadrilateral(Vector3 P, Vector3 A, Vector3 B, Vector3 C, Vector3 D)| -|IsValueEqualsColor()||public static bool IsValueEqualsColor(Color color1, Color color2)| -|IsValueEqualsColor()||public static bool IsValueEqualsColor(Color32 color1, Color32 color2)| -|IsValueEqualsList<T>()||public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2)| -|IsValueEqualsString()||public static bool IsValueEqualsString(string str1, string str2)| -|IsValueEqualsVector2()||public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)| -|IsValueEqualsVector3()||public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2)| -|IsZeroVector()||public static bool IsZeroVector(Vector3 pos)| -|ParseFloatFromString()||public static List<float> ParseFloatFromString(string jsonData)| -|ParseStringFromString()||public static List<string> ParseStringFromString(string jsonData)| -|RemoveComponent<T>()||public static void RemoveComponent<T>(GameObject gameObject)| -|RotateRound()||public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)| -|SaveAsImage()||public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "")| -|SetActive()||public static bool SetActive(GameObject gameObject, bool active)| -|SetActive()||public static bool SetActive(Image image, bool active)| -|SetActive()||public static bool SetActive(Text text, bool active)| -|SetActive()||public static bool SetActive(Transform transform, bool active)
通过设置scale实现是否显示,优化性能,减少GC | -|SetBackground()||public static void SetBackground(Image background, Background imageStyle)| -|SetBackground()||public static void SetBackground(Image background, ImageStyle imageStyle)| -|SetColorOpacity()||public static void SetColorOpacity(ref Color32 color, float opacity)| +### ChartHelper.ClearEventListener + +public static void ClearEventListener(GameObject obj) + +### ChartHelper.CopyArray<T> + +public static bool CopyArray<T>(T[] toList, T[] fromList) + +### ChartHelper.CopyList<T> + +public static bool CopyList<T>(List<T> toList, List<T> fromList) + +### ChartHelper.DestoryGameObject + +public static void DestoryGameObject(GameObject go) + + +### ChartHelper.DestoryGameObjectByMatch + +public static void DestoryGameObjectByMatch(Transform parent, string containString) + +### ChartHelper.DestroyAllChildren + +public static void DestroyAllChildren(Transform parent) + +### ChartHelper.EnsureComponent<T> + +public static T EnsureComponent<T>(GameObject gameObject) where T : Component +确保对象有指定的组件,如果没有则添加。 + + +### ChartHelper.GetActualValue + +public static float GetActualValue(float valueOrRate, float total, float maxRate = 1.5f) + +### ChartHelper.GetAngle360 + +public static float GetAngle360(Vector2 from, Vector2 to) +获得0-360的角度(12点钟方向为0度) + +### ChartHelper.GetBlurColor + +public static Color32 GetBlurColor(Color32 color, float a = 0.3f) + +### ChartHelper.GetColor + +public static Color32 GetColor(string hexColorStr) + +### ChartHelper.GetDire + +public static Vector3 GetDire(float angle, bool isDegree = false) + +### ChartHelper.GetFullName + +public static string GetFullName(Transform transform) + +### ChartHelper.GetHighlightColor + +public static Color32 GetHighlightColor(Color32 color, float rate = 0.8f) + +### ChartHelper.GetLastValue + +public static Vector3 GetLastValue(List<Vector3> list) + +### ChartHelper.GetMaxCeilRate + +public static double GetMaxCeilRate(double value, double ceilRate) + +### ChartHelper.GetMaxDivisibleValue + +public static double GetMaxDivisibleValue(double max, double ceilRate) + +### ChartHelper.GetMaxLogValue + +public static double GetMaxLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber) + +### ChartHelper.GetMinCeilRate + +public static double GetMinCeilRate(double value, double ceilRate) + +### ChartHelper.GetMinDivisibleValue + +public static double GetMinDivisibleValue(double min, double ceilRate) + +### ChartHelper.GetMinLogValue + +public static double GetMinLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber) + +### ChartHelper.GetOrAddComponent<T> + +public static T GetOrAddComponent<T>(GameObject gameObject) where T : Component + + +### ChartHelper.GetPointList + +public static void GetPointList(ref List<Vector3> posList, Vector3 sp, Vector3 ep, float k = 30f) + +### ChartHelper.GetPos + +public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false) + +### ChartHelper.GetPosition + +public static Vector3 GetPosition(Vector3 center, float angle, float radius) + +### ChartHelper.GetSelectColor + +public static Color32 GetSelectColor(Color32 color, float rate = 0.8f) + +### ChartHelper.GetVertialDire + +public static Vector3 GetVertialDire(Vector3 dire) + +### ChartHelper.HideAllObject + +public static void HideAllObject(Transform parent, string match = null) + + +### ChartHelper.IsActiveByScale + +public static bool IsActiveByScale(Image image) + +public static bool IsActiveByScale(Transform transform) + + +### ChartHelper.IsClearColor + +public static bool IsClearColor(Color color) + + +### ChartHelper.IsColorAlphaZero + +public static bool IsColorAlphaZero(Color color) + +### ChartHelper.IsEquals + +public static bool IsEquals(float d1, float d2) + + +### ChartHelper.IsIngore + +public static bool IsIngore(Vector3 pos) + +### ChartHelper.IsInRect + +public static bool IsInRect(Vector3 pos, float xMin, float xMax, float yMin, float yMax) + +### ChartHelper.IsPointInQuadrilateral + +public static bool IsPointInQuadrilateral(Vector3 P, Vector3 A, Vector3 B, Vector3 C, Vector3 D) + +### ChartHelper.IsValueEqualsColor + +public static bool IsValueEqualsColor(Color color1, Color color2) + + +### ChartHelper.IsValueEqualsList<T> + +public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2) + +### ChartHelper.IsValueEqualsString + +public static bool IsValueEqualsString(string str1, string str2) + +### ChartHelper.IsValueEqualsVector2 + +public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2) + +### ChartHelper.IsValueEqualsVector3 + +public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2) + +### ChartHelper.IsZeroVector + +public static bool IsZeroVector(Vector3 pos) + +### ChartHelper.ParseFloatFromString + +public static List<float> ParseFloatFromString(string jsonData) + +### ChartHelper.ParseStringFromString + +public static List<string> ParseStringFromString(string jsonData) + +### ChartHelper.RemoveComponent<T> + +public static void RemoveComponent<T>(GameObject gameObject) + +### ChartHelper.RotateRound + +public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle) + +### ChartHelper.SaveAsImage + +public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "") + +### ChartHelper.SetActive + +public static bool SetActive(Image image, bool active) + +public static bool SetActive(Text text, bool active) + +public static bool SetActive(Transform transform, bool active) +通过设置scale实现是否显示,优化性能,减少GC + + +### ChartHelper.SetBackground + +public static void SetBackground(Image background, Background imageStyle) + + +### ChartHelper.SetColorOpacity + +public static void SetColorOpacity(ref Color32 color, float opacity) ## ChartLabel -> class in XCharts.Runtime / 继承自: [Image](https://docs.unity3d.com/ScriptReference/30_search.html?q=image) +class in XCharts.Runtime / 继承自: [Image](https://docs.unity3d.com/ScriptReference/30_search.html?q=image) +### ChartLabel.hideIconIfTextEmpty -|API|版本|描述| -|--|--|--| -|GetHeight()||public float GetHeight()| -|GetPosition()||public Vector3 GetPosition()| -|GetTextHeight()||public float GetTextHeight()| -|GetTextWidth()||public float GetTextWidth()| -|GetWidth()||public float GetWidth()| -|IsActiveByScale()||public bool IsActiveByScale()| -|SetActive()||public void SetActive(bool flag, bool force = false)| -|SetIcon()||public void SetIcon(Image image)| -|SetIconActive()||public void SetIconActive(bool flag)| -|SetIconSize()||public void SetIconSize(float width, float height)| -|SetIconSprite()||public void SetIconSprite(Sprite sprite)| -|SetPadding()||public void SetPadding(float[] padding)| -|SetPosition()||public void SetPosition(Vector3 position)| -|SetRectPosition()||public void SetRectPosition(Vector3 position)| -|SetRotate()||public void SetRotate(float rotate)| -|SetSize()||public void SetSize(float width, float height)| -|SetText()||public bool SetText(string text)| -|SetTextActive()||public void SetTextActive(bool flag)| -|SetTextColor()||public void SetTextColor(Color color)| -|SetTextPadding()||public void SetTextPadding(TextPadding padding)| -|SetTextRotate()||public void SetTextRotate(float rotate)| -|UpdateIcon()||public void UpdateIcon(IconStyle iconStyle, Sprite sprite = null, Color color = default(Color))| +public bool hideIconIfTextEmpty + +### ChartLabel.isAnimationEnd + +public bool isAnimationEnd + +### ChartLabel.isIconActive + +public bool isIconActive + +### ChartLabel.rect + +public Rect rect + +### ChartLabel.GetHeight + +public float GetHeight() + +### ChartLabel.GetPosition + +public Vector3 GetPosition() + +### ChartLabel.GetTextHeight + +public float GetTextHeight() + +### ChartLabel.GetTextWidth + +public float GetTextWidth() + +### ChartLabel.GetWidth + +public float GetWidth() + +### ChartLabel.IsActiveByScale + +public bool IsActiveByScale() + +### ChartLabel.SetActive + +public void SetActive(bool flag, bool force = false) + +### ChartLabel.SetIcon + +public void SetIcon(Image image) + +### ChartLabel.SetIconActive + +public void SetIconActive(bool flag) + +### ChartLabel.SetIconSize + +public void SetIconSize(float width, float height) + +### ChartLabel.SetIconSprite + +public void SetIconSprite(Sprite sprite) + +### ChartLabel.SetPadding + +public void SetPadding(float[] padding) + +### ChartLabel.SetPosition + +public void SetPosition(Vector3 position) + +### ChartLabel.SetRectPosition + +public void SetRectPosition(Vector3 position) + +### ChartLabel.SetRotate + +public void SetRotate(float rotate) + +### ChartLabel.SetSize + +public void SetSize(float width, float height) + +### ChartLabel.SetText + +public bool SetText(string text) + +### ChartLabel.SetTextActive + +public void SetTextActive(bool flag) + +### ChartLabel.SetTextColor + +public void SetTextColor(Color color) + +### ChartLabel.SetTextPadding + +public void SetTextPadding(TextPadding padding) + +### ChartLabel.SetTextRotate + +public void SetTextRotate(float rotate) + +### ChartLabel.UpdateIcon + +public void UpdateIcon(IconStyle iconStyle, Sprite sprite = null, Color color = default(Color)) ## ChartObject -> class in XCharts.Runtime +class in XCharts.Runtime +### ChartObject.Destroy -|API|版本|描述| -|--|--|--| -|Destroy()||public virtual void Destroy()| +public virtual void Destroy() ## ChartText -> class in XCharts.Runtime +class in XCharts.Runtime + +### ChartText.tmpText + +public TextMeshProUGUI tmpText + +### ChartText.ChartText + +public ChartText(GameObject textParent) -|API|版本|描述| -|--|--|--| -|ChartText()||public ChartText()| -|ChartText()||public ChartText(GameObject textParent)| -|GetColor()||public Color GetColor()| -|GetPreferredHeight()||public float GetPreferredHeight()| -|GetPreferredText()||public string GetPreferredText(string content, string suffix, float maxWidth)| -|GetPreferredWidth()||public float GetPreferredWidth()| -|GetPreferredWidth()||public float GetPreferredWidth(string content)| -|GetText()||public string GetText()| -|SetActive()||public void SetActive(bool flag)| -|SetAlignment()||public void SetAlignment(TextAnchor alignment)| -|SetColor()||public void SetColor(Color color)| -|SetFont()||public void SetFont(Font font)| -|SetFont()||public void SetFont(TMP_FontAsset font)| -|SetFontAndSizeAndStyle()||public void SetFontAndSizeAndStyle(TextStyle textStyle, ComponentTheme theme)| -|SetFontSize()||public void SetFontSize(float fontSize)| -|SetFontStyle()||public void SetFontStyle(FontStyle fontStyle)| -|SetLineSpacing()||public void SetLineSpacing(float lineSpacing)| -|SetLocalEulerAngles()||public void SetLocalEulerAngles(Vector3 position)| -|SetLocalPosition()||public void SetLocalPosition(Vector3 position)| -|SetRectPosition()||public void SetRectPosition(Vector3 position)| -|SetSizeDelta()||public void SetSizeDelta(Vector2 sizeDelta)| -|SetText()||public void SetText(string text)| +### ChartText.GetColor + +public Color GetColor() + +### ChartText.GetPreferredHeight + +public float GetPreferredHeight() + +### ChartText.GetPreferredText + +public string GetPreferredText(string content, string suffix, float maxWidth) + +### ChartText.GetPreferredWidth + +public float GetPreferredWidth() + + +### ChartText.GetText + +public string GetText() + +### ChartText.SetActive + +public void SetActive(bool flag) + +### ChartText.SetAlignment + +public void SetAlignment(TextAnchor alignment) + +### ChartText.SetColor + +public void SetColor(Color color) + +### ChartText.SetFont + +public void SetFont(TMP_FontAsset font) + + +### ChartText.SetFontAndSizeAndStyle + +public void SetFontAndSizeAndStyle(TextStyle textStyle, ComponentTheme theme) + +### ChartText.SetFontSize + +public void SetFontSize(float fontSize) + +### ChartText.SetFontStyle + +public void SetFontStyle(FontStyle fontStyle) + +### ChartText.SetLineSpacing + +public void SetLineSpacing(float lineSpacing) + +### ChartText.SetLocalEulerAngles + +public void SetLocalEulerAngles(Vector3 position) + +### ChartText.SetLocalPosition + +public void SetLocalPosition(Vector3 position) + +### ChartText.SetRectPosition + +public void SetRectPosition(Vector3 position) + +### ChartText.SetSizeDelta + +public void SetSizeDelta(Vector2 sizeDelta) + +### ChartText.SetText + +public void SetText(string text) ## CheckHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### CheckHelper.CheckChart + +public static string CheckChart(BaseChart chart) -|API|版本|描述| -|--|--|--| -|CheckChart()||public static string CheckChart(BaseChart chart)| -|CheckChart()||public static string CheckChart(BaseGraph chart)| ## ChildComponent -> class in XCharts.Runtime / 子类: [AnimationStyle](#animationstyle),[AxisAnimation](#axisanimation),[AxisName](#axisname),[AxisSplitArea](#axissplitarea),[AreaStyle](#areastyle),[ArrowStyle](#arrowstyle),[BaseLine](#baseline),[BorderStyle](#borderstyle),[IconStyle](#iconstyle),[ImageStyle](#imagestyle),[ItemStyle](#itemstyle),[Level](#level),[LevelStyle](#levelstyle),[LineArrow](#linearrow),[LineStyle](#linestyle),[Location](#location),[MLValue](#mlvalue),[MarqueeStyle](#marqueestyle),[Padding](#padding),[StageColor](#stagecolor),[SymbolStyle](#symbolstyle),[TextLimit](#textlimit),[TextStyle](#textstyle),[CommentItem](#commentitem),[CommentMarkStyle](#commentmarkstyle),[LabelLine](#labelline),[LabelStyle](#labelstyle),[MarkAreaData](#markareadata),[MarkLineData](#marklinedata),[StateStyle](#statestyle),[VisualMapRange](#visualmaprange),[ViewControl](#viewcontrol),[UIComponentTheme](#uicomponenttheme),[SerieData](#seriedata),[SerieDataLink](#seriedatalink),[ComponentTheme](#componenttheme),[SerieTheme](#serietheme),[ThemeStyle](#themestyle) +class in XCharts.Runtime / 子类: [AnimationStyle](#animationstyle),[AxisAnimation](#axisanimation),[AxisName](#axisname),[AxisSplitArea](#axissplitarea),[AreaStyle](#areastyle),[ArrowStyle](#arrowstyle),[BaseLine](#baseline),[BorderStyle](#borderstyle),[IconStyle](#iconstyle),[ImageStyle](#imagestyle),[ItemStyle](#itemstyle),[Level](#level),[LevelStyle](#levelstyle),[LineArrow](#linearrow),[LineStyle](#linestyle),[Location](#location),[MLValue](#mlvalue),[MarqueeStyle](#marqueestyle),[Padding](#padding),[StageColor](#stagecolor),[SymbolStyle](#symbolstyle),[TextLimit](#textlimit),[TextStyle](#textstyle),[CommentItem](#commentitem),[CommentMarkStyle](#commentmarkstyle),[LabelLine](#labelline),[LabelStyle](#labelstyle),[MarkAreaData](#markareadata),[MarkLineData](#marklinedata),[StateStyle](#statestyle),[VisualMapRange](#visualmaprange),[ViewControl](#viewcontrol),[UIComponentTheme](#uicomponenttheme),[SerieData](#seriedata),[SerieDataLink](#seriedatalink),[ComponentTheme](#componenttheme),[SerieTheme](#serietheme),[ThemeStyle](#themestyle) + +### ChildComponent.anyDirty + +public bool anyDirty +需要重绘图表或重新初始化组件。 + +### ChildComponent.componentDirty + +public virtual bool componentDirty +组件重新初始化标记。 + +### ChildComponent.gameObject + +public GameObject gameObject + +### ChildComponent.index + +public virtual int index + +### ChildComponent.painter + +public Painter painter + +### ChildComponent.refreshComponent + +public Action refreshComponent + +### ChildComponent.vertsDirty + +public virtual bool vertsDirty +图表重绘标记。 + +### ChildComponent.ClearComponentDirty + +public virtual void ClearComponentDirty() -|API|版本|描述| -|--|--|--| -|ClearComponentDirty()||public static void ClearComponentDirty(ChildComponent component)| -|ClearComponentDirty()||public virtual void ClearComponentDirty()| -|ClearDirty()||public virtual void ClearDirty()| -|ClearVerticesDirty()||public static void ClearVerticesDirty(ChildComponent component)| -|ClearVerticesDirty()||public virtual void ClearVerticesDirty()| -|IsComponentDirty()||public static bool IsComponentDirty(ChildComponent component)| -|IsVertsDirty()||public static bool IsVertsDirty(ChildComponent component)| -|SetAllDirty()||public virtual void SetAllDirty()| -|SetComponentDirty()||public virtual void SetComponentDirty()| -|SetVerticesDirty()||public virtual void SetVerticesDirty()| +### ChildComponent.ClearDirty + +public virtual void ClearDirty() + +### ChildComponent.ClearVerticesDirty + +public virtual void ClearVerticesDirty() + + +### ChildComponent.IsComponentDirty + +public static bool IsComponentDirty(ChildComponent component) + +### ChildComponent.IsVertsDirty + +public static bool IsVertsDirty(ChildComponent component) + +### ChildComponent.SetAllDirty + +public virtual void SetAllDirty() + +### ChildComponent.SetComponentDirty + +public virtual void SetComponentDirty() + +### ChildComponent.SetVerticesDirty + +public virtual void SetVerticesDirty() ## ColorUtil -> class in XCharts.Runtime +class in XCharts.Runtime +### ColorUtil.GetColor -|API|版本|描述| -|--|--|--| -|GetColor()||public static Color32 GetColor(string hexColorStr)
将字符串颜色值转成Color。 | +public static Color32 GetColor(string hexColorStr) +将字符串颜色值转成Color。 ## Comment -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) 图表注解组件。 -|API|版本|描述| -|--|--|--| -|GetLabelStyle()||public LabelStyle GetLabelStyle(int index)| -|GetMarkStyle()||public CommentMarkStyle GetMarkStyle(int index)| -|OnChanged()||public void OnChanged()
参数变更时的回调处理。 | +### Comment.items + +public List<CommentItem> items +注解项。每个注解组件可以设置多个注解项。 + +### Comment.show + +public bool show +是否显示注解组件。 + +### Comment.GetLabelStyle + +public LabelStyle GetLabelStyle(int index) + +### Comment.GetMarkStyle + +public CommentMarkStyle GetMarkStyle(int index) + +### Comment.OnChanged + +public void OnChanged() +参数变更时的回调处理。 ## CommentItem -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 注解项。 +### CommentItem.content + +public string content +注解的文本内容。支持模板参数,可以参考Tooltip的itemFormatter。 + +### CommentItem.markRect + +public Rect markRect +注解区域。 + +### CommentItem.markStyle + +public CommentMarkStyle markStyle +注解标记区域样式。 + +### CommentItem.show + +public bool show +是否显示当前注解项。 + ## CommentMarkStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 注解项区域样式。 +### CommentMarkStyle.lineStyle + +public LineStyle lineStyle +线条样式。 + +### CommentMarkStyle.show + +public bool show +是否显示当前注解项。 + ## ComponentHandlerAttribute -> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### ComponentHandlerAttribute.ComponentHandlerAttribute + +public ComponentHandlerAttribute(Type handler, bool allowMultiple, int order = 3) -|API|版本|描述| -|--|--|--| -|ComponentHandlerAttribute()||public ComponentHandlerAttribute(Type handler, bool allowMultiple, int order = 3)| -|ComponentHandlerAttribute()||public ComponentHandlerAttribute(Type handler, int order = 3)| ## ComponentHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### ComponentHelper.GetAngleAxis -|API|版本|描述| -|--|--|--| -|GetAngleAxis()||public static AngleAxis GetAngleAxis(List<MainComponent> components, int polarIndex)| -|GetRadiusAxis()||public static RadiusAxis GetRadiusAxis(List<MainComponent> components, int polarIndex)| -|GetXAxisOnZeroOffset()||public static float GetXAxisOnZeroOffset(List<MainComponent> components, XAxis axis)| -|GetYAxisOnZeroOffset()||public static float GetYAxisOnZeroOffset(List<MainComponent> components, YAxis axis)| -|IsAnyCategoryOfYAxis()||public static bool IsAnyCategoryOfYAxis(List<MainComponent> components)| +public static AngleAxis GetAngleAxis(List<MainComponent> components, int polarIndex) + +### ComponentHelper.GetRadiusAxis + +public static RadiusAxis GetRadiusAxis(List<MainComponent> components, int polarIndex) + +### ComponentHelper.GetXAxisOnZeroOffset + +public static float GetXAxisOnZeroOffset(List<MainComponent> components, XAxis axis) + +### ComponentHelper.GetYAxisOnZeroOffset + +public static float GetYAxisOnZeroOffset(List<MainComponent> components, YAxis axis) + +### ComponentHelper.IsAnyCategoryOfYAxis + +public static bool IsAnyCategoryOfYAxis(List<MainComponent> components) ## ComponentTheme -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [BaseAxisTheme](#baseaxistheme),[DataZoomTheme](#datazoomtheme),[LegendTheme](#legendtheme),[SubTitleTheme](#subtitletheme),[TitleTheme](#titletheme),[TooltipTheme](#tooltiptheme),[VisualMapTheme](#visualmaptheme) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [BaseAxisTheme](#baseaxistheme),[DataZoomTheme](#datazoomtheme),[LegendTheme](#legendtheme),[SubTitleTheme](#subtitletheme),[TitleTheme](#titletheme),[TooltipTheme](#tooltiptheme),[VisualMapTheme](#visualmaptheme) +### ComponentTheme.ComponentTheme -|API|版本|描述| -|--|--|--| -|ComponentTheme()||public ComponentTheme(ThemeType theme)| -|Copy()||public virtual void Copy(ComponentTheme theme)| -|Reset()||public virtual void Reset(ComponentTheme defaultTheme)| +public ComponentTheme(ThemeType theme) + +### ComponentTheme.Copy + +public virtual void Copy(ComponentTheme theme) + +### ComponentTheme.Reset + +public virtual void Reset(ComponentTheme defaultTheme) ## CoordOptionsAttribute -> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### CoordOptionsAttribute.Contains<T> + +public bool Contains<T>() where T : CoordSystem + +### CoordOptionsAttribute.CoordOptionsAttribute + +public CoordOptionsAttribute(Type coord, Type coord2) + +public CoordOptionsAttribute(Type coord, Type coord2, Type coord3) + +public CoordOptionsAttribute(Type coord, Type coord2, Type coord3, Type coord4) -|API|版本|描述| -|--|--|--| -|Contains<T>()||public bool Contains<T>() where T : CoordSystem| -|CoordOptionsAttribute()||public CoordOptionsAttribute(Type coord)| -|CoordOptionsAttribute()||public CoordOptionsAttribute(Type coord, Type coord2)| -|CoordOptionsAttribute()||public CoordOptionsAttribute(Type coord, Type coord2, Type coord3)| -|CoordOptionsAttribute()||public CoordOptionsAttribute(Type coord, Type coord2, Type coord3, Type coord4)| ## CoordSystem -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) / 子类: [RadarCoord](#radarcoord),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[GridCoord3D](#gridcoord3d),[ParallelCoord](#parallelcoord),[PolarCoord](#polarcoord),[SingleAxisCoord](#singleaxiscoord) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) / 子类: [RadarCoord](#radarcoord),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[GridCoord3D](#gridcoord3d),[ParallelCoord](#parallelcoord),[PolarCoord](#polarcoord),[SingleAxisCoord](#singleaxiscoord) 坐标系系统。 ## DataHelper -> class in XCharts.Runtime - +class in XCharts.Runtime ## DataZoom -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IUpdateRuntimeData](#iupdateruntimedata) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IUpdateRuntimeData](#iupdateruntimedata) DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息,或者概览数据整体,或者去除离群点的影响。 -|API|版本|描述| -|--|--|--| -|GetBackgroundColor()||public Color32 GetBackgroundColor(Color32 themeColor)| -|GetBorderColor()||public Color32 GetBorderColor(Color32 themeColor)| -|GetFillerColor()||public Color32 GetFillerColor(Color32 themeColor)| -|IsContainsAxis()||public bool IsContainsAxis(Axis axis)| -|IsContainsXAxis()||public bool IsContainsXAxis(int index)| -|IsContainsYAxis()||public bool IsContainsYAxis(int index)| -|IsInEndZoom()||public bool IsInEndZoom(Vector2 pos)
给定的坐标是否在结束活动条触发区域内 | -|IsInMarqueeArea()||public bool IsInMarqueeArea(SerieData serieData)| -|IsInMarqueeArea()||public bool IsInMarqueeArea(Vector2 pos)| -|IsInSelectedZoom()||public bool IsInSelectedZoom(int totalIndex, int index, bool invert)| -|IsInSelectedZoom()||public bool IsInSelectedZoom(Vector2 pos)
给定的坐标是否在选中区域内 | -|IsInStartZoom()||public bool IsInStartZoom(Vector2 pos)
给定的坐标是否在开始活动条触发区域内 | -|IsInZoom()||public bool IsInZoom(Vector2 pos)
给定的坐标是否在缩放区域内 | -|SetDefaultValue()||public override void SetDefaultValue()| -|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)| +### DataZoom.realtime + +public bool realtime +拖动时,是否实时更新系列的视图。如果设置为 false,则只在拖拽结束的时候更新。默认为true,暂不支持修改。 + +### DataZoom.startEndFunction + +public CustomDataZoomStartEndFunction startEndFunction +start和end变更委托。 + +### DataZoom.GetBackgroundColor + +public Color32 GetBackgroundColor(Color32 themeColor) + +### DataZoom.GetBorderColor + +public Color32 GetBorderColor(Color32 themeColor) + +### DataZoom.GetFillerColor + +public Color32 GetFillerColor(Color32 themeColor) + +### DataZoom.IsContainsAxis + +public bool IsContainsAxis(Axis axis) + +### DataZoom.IsContainsXAxis + +public bool IsContainsXAxis(int index) + +### DataZoom.IsContainsYAxis + +public bool IsContainsYAxis(int index) + +### DataZoom.IsInEndZoom + +public bool IsInEndZoom(Vector2 pos) +给定的坐标是否在结束活动条触发区域内 + +### DataZoom.IsInMarqueeArea + +public bool IsInMarqueeArea(Vector2 pos) + + +### DataZoom.IsInSelectedZoom + +public bool IsInSelectedZoom(int totalIndex, int index, bool invert) + + +### DataZoom.IsInStartZoom + +public bool IsInStartZoom(Vector2 pos) +给定的坐标是否在开始活动条触发区域内 + +### DataZoom.IsInZoom + +public bool IsInZoom(Vector2 pos) +给定的坐标是否在缩放区域内 + +### DataZoom.SetDefaultValue + +public override void SetDefaultValue() + +### DataZoom.UpdateRuntimeData + +public void UpdateRuntimeData(BaseChart chart) + +## DataZoom.FilterMode + +class in XCharts.Runtime + +dataZoom 的运行原理是通过 数据过滤 来达到 数据窗口缩放 的效果。数据过滤模式的设置不同,效果也不同。 + +可选: + +- `Filter`: 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只要有一个维度在数据窗口外,整个数据项就会被过滤掉。 +- `WeakFilter`: 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只有当全部维度都在数据窗口同侧外部,整个数据项才会被过滤掉。 +- `Empty`: 当前数据窗口外的数据,被 设置为空。即 不会 影响其他轴的数据范围。 +- `None`: 不过滤数据,只改变数轴范围。 + +## DataZoom.RangeMode + +class in XCharts.Runtime + +The value type of start and end.取值类型 + +可选: + +- `//Value`: The value type of start and end.取值类型 +- `Percent`: 百分比。 ## DataZoomContext -> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) +class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) +### DataZoomContext.endValue + +public double endValue +运行时实际范围的结束值 + +### DataZoomContext.height + +public float height + +### DataZoomContext.invert + +public bool invert + +### DataZoomContext.isCoordinateDrag + +public bool isCoordinateDrag + +### DataZoomContext.isDrag + +public bool isDrag + +### DataZoomContext.isEndDrag + +public bool isEndDrag + +### DataZoomContext.isMarqueeDrag + +public bool isMarqueeDrag + +### DataZoomContext.isStartDrag + +public bool isStartDrag + +### DataZoomContext.marqueeEndPos + +public Vector3 marqueeEndPos + +### DataZoomContext.marqueeRect + +public Rect marqueeRect + +### DataZoomContext.marqueeStartPos + +public Vector3 marqueeStartPos + +### DataZoomContext.startValue + +public double startValue +运行时实际范围的开始值 + +### DataZoomContext.width + +public float width + +### DataZoomContext.x + +public float x + +### DataZoomContext.y + +public float y ## DataZoomHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### DataZoomHelper.UpdateDataZoomRuntimeStartEndValue -|API|版本|描述| -|--|--|--| -|UpdateDataZoomRuntimeStartEndValue()||public static void UpdateDataZoomRuntimeStartEndValue(DataZoom dataZoom, Serie serie)| -|UpdateDataZoomRuntimeStartEndValue<T>()||public static void UpdateDataZoomRuntimeStartEndValue<T>(BaseChart chart) where T : Serie| +public static void UpdateDataZoomRuntimeStartEndValue(DataZoom dataZoom, Serie serie) + +### DataZoomHelper.UpdateDataZoomRuntimeStartEndValue<T> + +public static void UpdateDataZoomRuntimeStartEndValue<T>(BaseChart chart) where T : Serie ## DataZoomTheme -> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +### DataZoomTheme.Copy -|API|版本|描述| -|--|--|--| -|Copy()||public void Copy(DataZoomTheme theme)| -|DataZoomTheme()||public DataZoomTheme(ThemeType theme) : base(theme)| +public void Copy(DataZoomTheme theme) + +### DataZoomTheme.DataZoomTheme + +public DataZoomTheme(ThemeType theme) : base(theme) ## DateTimeUtil -> class in XCharts.Runtime +class in XCharts.Runtime + +### DateTimeUtil.GetDateTime + +public static DateTime GetDateTime(double timestamp, bool local = true) + +### DateTimeUtil.GetDefaultDateTimeString + +public static string GetDefaultDateTimeString(int timestamp, double range = 0) + +### DateTimeUtil.GetTimestamp + +public static int GetTimestamp(DateTime time, bool local = false) + +public static int GetTimestamp(string dateTime, bool local = false) -|API|版本|描述| -|--|--|--| -|GetDateTime()||public static DateTime GetDateTime(double timestamp, bool local = true)| -|GetDefaultDateTimeString()||public static string GetDefaultDateTimeString(int timestamp, double range = 0)| -|GetTimestamp()||public static int GetTimestamp()| -|GetTimestamp()||public static int GetTimestamp(DateTime time, bool local = false)| -|GetTimestamp()||public static int GetTimestamp(string dateTime, bool local = false)| -|IsDateOrTimeRegex()||public static bool IsDateOrTimeRegex(string regex)| -|IsDateOrTimeRegex()||public static bool IsDateOrTimeRegex(string regex, ref bool date, ref string formatter)| +### DateTimeUtil.IsDateOrTimeRegex + +public static bool IsDateOrTimeRegex(string regex, ref bool date, ref string formatter) + ## DebugInfo -> class in XCharts.Runtime +class in XCharts.Runtime +### DebugInfo.avgFps -|API|版本|描述| -|--|--|--| -|Init()||public void Init(BaseChart chart)| -|Update()||public void Update()| +public float avgFps +平均帧率。 + +### DebugInfo.foldSeries + +public bool foldSeries +是否在Inspector上折叠Serie。 + +### DebugInfo.fps + +public float fps +当前帧率。 + +### DebugInfo.refreshCount + +public int refreshCount +图表每秒刷新次数。 + +### DebugInfo.show + +public bool show +是否显示Debug组件。 + +### DebugInfo.showAllChartObject + +public bool showAllChartObject +是否在Hierarchy试图显示所有chart下的节点。 + +### DebugInfo.Init + +public void Init(BaseChart chart) + +### DebugInfo.Update + +public void Update() ## DefaultAnimationAttribute -> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### DefaultAnimationAttribute.DefaultAnimationAttribute + +public DefaultAnimationAttribute(AnimationType handler, bool enableSerieDataAddedAnimation) -|API|版本|描述| -|--|--|--| -|DefaultAnimationAttribute()||public DefaultAnimationAttribute(AnimationType handler)| -|DefaultAnimationAttribute()||public DefaultAnimationAttribute(AnimationType handler, bool enableSerieDataAddedAnimation)| ## DefaultTooltipAttribute -> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### DefaultTooltipAttribute.DefaultTooltipAttribute -|API|版本|描述| -|--|--|--| -|DefaultTooltipAttribute()||public DefaultTooltipAttribute(Tooltip.Type type, Tooltip.Trigger trigger)| +public DefaultTooltipAttribute(Tooltip.Type type, Tooltip.Trigger trigger) ## DefineSymbolsUtil -> class in XCharts.Runtime +class in XCharts.Runtime +### DefineSymbolsUtil.AddGlobalDefine -|API|版本|描述| -|--|--|--| -|AddGlobalDefine()||public static void AddGlobalDefine(string symbol)| -|RemoveGlobalDefine()||public static void RemoveGlobalDefine(string symbol)| +public static void AddGlobalDefine(string symbol) + +### DefineSymbolsUtil.RemoveGlobalDefine + +public static void RemoveGlobalDefine(string symbol) ## EffectScatter -> class in XCharts.Runtime / 继承自: [BaseScatter](#basescatter) +class in XCharts.Runtime / 继承自: [BaseScatter](#basescatter) +### EffectScatter.AddDefaultSerie -|API|版本|描述| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## EmphasisStyle -> class in XCharts.Runtime / 继承自: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) > 从 `v3.2.0` 开始支持 高亮状态样式。 +## EmphasisStyle.BlurScope + +class in XCharts.Runtime + +淡出范围。 + +可选: + +- `GridCoord`: 淡出范围为坐标系,默认使用该配置。 +- `Series`: 淡出范围为系列。 +- `Global`: 淡出范围为全局。 + +## EmphasisStyle.FocusType + +class in XCharts.Runtime + +聚焦类型。 + +可选: + +- `None`: 不淡出其它图形,默认使用该配置。 +- `Self`: 只聚焦(不淡出)当前高亮的数据的图形。 +- `Series`: 聚焦当前高亮的数据所在的系列的所有图形。 + ## EndLabelStyle -> class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle) +class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle) +### EndLabelStyle.EndLabelStyle -|API|版本|描述| -|--|--|--| -|EndLabelStyle()||public EndLabelStyle()| +public EndLabelStyle() ## FormatterHelper -> class in XCharts.Runtime +class in XCharts.Runtime + +### FormatterHelper.NeedFormat + +public static bool NeedFormat(string content) + +### FormatterHelper.ReplaceAxisLabelContent + +public static void ReplaceAxisLabelContent(ref string content, string value) -|API|版本|描述| -|--|--|--| -|NeedFormat()||public static bool NeedFormat(string content)| -|ReplaceAxisLabelContent()||public static void ReplaceAxisLabelContent(ref string content, string numericFormatter, double value)| -|ReplaceAxisLabelContent()||public static void ReplaceAxisLabelContent(ref string content, string value)| -|TrimAndReplaceLine()||public static string TrimAndReplaceLine(string content)| -|TrimAndReplaceLine()||public static string TrimAndReplaceLine(StringBuilder sb)| +### FormatterHelper.TrimAndReplaceLine + +public static string TrimAndReplaceLine(string content) + ## GraphData -> class in XCharts.Runtime +class in XCharts.Runtime 数据结构-图。 -|API|版本|描述| -|--|--|--| -|AddEdge()||public GraphEdge AddEdge(string nodeId1, string nodeId2, double value)| -|AddNode()||public GraphNode AddNode(string nodeId, string nodeName, int dataIndex, double value)| -|BreadthFirstTraverse()||public void BreadthFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse)| -|Clear()||public void Clear()| -|DeepFirstTraverse()||public void DeepFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse)| -|EachNode()||public void EachNode(System.Action<GraphNode> onEach)| -|ExpandAllNodes()||public void ExpandAllNodes(bool flag, int level = -1)| -|ExpandNode()||public void ExpandNode(string nodeId, bool flag)| -|GetDepthNodes()||public List<List<GraphNode>> GetDepthNodes()| -|GetEdge()||public GraphEdge GetEdge(string nodeId1, string nodeId2)| -|GetExpandedNodesCount()||public static int GetExpandedNodesCount(List<GraphNode> nodes)| -|GetMaxDepth()||public int GetMaxDepth()| -|GetNode()||public GraphNode GetNode(string nodeId)| -|GetNodeDepth()||// public int GetNodeDepth(GraphNode node)| -|GetNodeDepth()||// public void GetNodeDepth(GraphNode node, ref int depth, int recursiveCount = 0)| -|GetNodeDepth()||public int GetNodeDepth(GraphNode node, int recursiveCount = 0)| -|GetNodesTotalValue()||public static double GetNodesTotalValue(List<GraphNode> nodes)| -|GetRootNodes()||public List<GraphNode> GetRootNodes()| -|GraphData()||public GraphData(bool directed)| -|IsAllNodeInZeroPosition()||public bool IsAllNodeInZeroPosition()| -|Refresh()||public void Refresh()| +### GraphData.AddEdge + +public GraphEdge AddEdge(string nodeId1, string nodeId2, double value) + +### GraphData.AddNode + +public GraphNode AddNode(string nodeId, string nodeName, int dataIndex, double value) + +### GraphData.BreadthFirstTraverse + +public void BreadthFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse) + +### GraphData.Clear + +public void Clear() + +### GraphData.DeepFirstTraverse + +public void DeepFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse) + +### GraphData.EachNode + +public void EachNode(System.Action<GraphNode> onEach) + +### GraphData.ExpandAllNodes + +public void ExpandAllNodes(bool flag, int level = -1) + +### GraphData.ExpandNode + +public void ExpandNode(string nodeId, bool flag) + +### GraphData.GetDepthNodes + +public List<List<GraphNode>> GetDepthNodes() + +### GraphData.GetEdge + +public GraphEdge GetEdge(string nodeId1, string nodeId2) + +### GraphData.GetExpandedNodesCount + +public static int GetExpandedNodesCount(List<GraphNode> nodes) + +### GraphData.GetMaxDepth + +public int GetMaxDepth() + +### GraphData.GetNode + +public GraphNode GetNode(string nodeId) + +### GraphData.GetNodeDepth + +// public void GetNodeDepth(GraphNode node, ref int depth, int recursiveCount = 0) + +public int GetNodeDepth(GraphNode node, int recursiveCount = 0) + + +### GraphData.GetNodesTotalValue + +public static double GetNodesTotalValue(List<GraphNode> nodes) + +### GraphData.GetRootNodes + +public List<GraphNode> GetRootNodes() + +### GraphData.GraphData + +public GraphData(bool directed) + +### GraphData.IsAllNodeInZeroPosition + +public bool IsAllNodeInZeroPosition() + +### GraphData.Refresh + +public void Refresh() ## GraphEdge -> class in XCharts.Runtime +class in XCharts.Runtime 图的边。 -|API|版本|描述| -|--|--|--| -|GraphEdge()||public GraphEdge(GraphNode node1, GraphNode node2, double value)| -|IsPointInEdge()||public bool IsPointInEdge(Vector2 point)| +### GraphEdge.GraphEdge + +public GraphEdge(GraphNode node1, GraphNode node2, double value) + +### GraphEdge.IsPointInEdge + +public bool IsPointInEdge(Vector2 point) ## GraphNode -> class in XCharts.Runtime +class in XCharts.Runtime 图的节点。 -|API|版本|描述| -|--|--|--| -|Expand()||public void Expand(bool flag)| -|GraphNode()||public GraphNode(string id, string name, int dataIndex)| -|IsAllInEdgesCollapsed()||public bool IsAllInEdgesCollapsed()| -|IsAnyInEdgesExpanded()||public bool IsAnyInEdgesExpanded()| -|ToString()||public override string ToString()| +### GraphNode.degree + +public int degree + +### GraphNode.inDegree + +public int inDegree + +### GraphNode.outDegree + +public int outDegree + +### GraphNode.Expand + +public void Expand(bool flag) + +### GraphNode.GraphNode + +public GraphNode(string id, string name, int dataIndex) + +### GraphNode.IsAllInEdgesCollapsed + +public bool IsAllInEdgesCollapsed() + +### GraphNode.IsAnyInEdgesExpanded + +public bool IsAnyInEdgesExpanded() + +### GraphNode.ToString + +public override string ToString() ## GridCoord -> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid. -|API|版本|描述| -|--|--|--| -|BoundaryPoint()||public bool BoundaryPoint(Vector3 sp, Vector3 ep, ref List<Vector3> point)
给定的线段和Grid边界的交点 | -|BoundaryPoint()||public bool BoundaryPoint(Vector3 sp, Vector3 ep, ref Vector3 point)
给定的线段和Grid边界的交点 | -|Clamp()|v3.7.0|public void Clamp(ref Vector3 pos)
将位置限制在网格内。 | -|ClampX()|v3.7.0|public void ClampX(ref Vector3 pos)
将位置的X限制在网格内。 | -|ClampY()|v3.7.0|public void ClampY(ref Vector3 pos)
将位置的Y限制在网格内。 | -|Contains()||public bool Contains(float x, float y)
给定的位置是否在网格内。 | -|Contains()||public bool Contains(Vector3 pos)
给定的位置是否在网格内。 | -|Contains()|v3.7.0|public bool Contains(Vector3 pos, bool isYAxis)
给定的位置是否在网格内。 | -|ContainsX()|v3.7.0|public bool ContainsX(float x)
给定的x是否在网格内。 | -|ContainsY()|v3.7.0|public bool ContainsY(float y)
给定的y是否在网格内。 | -|IsPointerEnter()||public bool IsPointerEnter()
指针是否在网格内。 | -|NotAnyIntersect()|v3.10.0|public bool NotAnyIntersect(Vector3 sp, Vector3 ep)
判断给定的线段是否与Grid边界是否完全不会相交。 | -|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)| +### GridCoord.BoundaryPoint + +public bool BoundaryPoint(Vector3 sp, Vector3 ep, ref List<Vector3> point) +给定的线段和Grid边界的交点 + + +### GridCoord.Clamp + +public void Clamp(ref Vector3 pos) + +> 从 `v3.7.0` 开始支持 + +将位置限制在网格内。 + +### GridCoord.ClampX + +public void ClampX(ref Vector3 pos) + +> 从 `v3.7.0` 开始支持 + +将位置的X限制在网格内。 + +### GridCoord.ClampY + +public void ClampY(ref Vector3 pos) + +> 从 `v3.7.0` 开始支持 + +将位置的Y限制在网格内。 + +### GridCoord.Contains + +public bool Contains(float x, float y) +给定的位置是否在网格内。 + +public bool Contains(Vector3 pos, bool isYAxis) + +> 从 `v3.7.0` 开始支持 + +给定的位置是否在网格内。 + + +### GridCoord.ContainsX + +public bool ContainsX(float x) + +> 从 `v3.7.0` 开始支持 + +给定的x是否在网格内。 + +### GridCoord.ContainsY + +public bool ContainsY(float y) + +> 从 `v3.7.0` 开始支持 + +给定的y是否在网格内。 + +### GridCoord.IsPointerEnter + +public bool IsPointerEnter() +指针是否在网格内。 + +### GridCoord.NotAnyIntersect + +public bool NotAnyIntersect(Vector3 sp, Vector3 ep) + +> 从 `v3.10.0` 开始支持 + +判断给定的线段是否与Grid边界是否完全不会相交。 + +### GridCoord.UpdateRuntimeData + +public void UpdateRuntimeData(BaseChart chart) ## GridCoord3D -> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) > 从 `v3.11.0` 开始支持 Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid. -|API|版本|描述| -|--|--|--| -|Clamp()||public void Clamp(ref Vector3 pos)
将位置限制在网格内。 | -|Contains()||public bool Contains(Vector3 pos)
给定的位置是否在网格内。 | -|IsLeft()||public bool IsLeft()
The opening of the coordinate system faces to the left. 坐标系开口朝向左边。 | -|IsPointerEnter()||public bool IsPointerEnter()
指针是否在网格内。 | -|NotAnyIntersect()||public bool NotAnyIntersect(Vector3 sp, Vector3 ep)
判断给定的线段是否与Grid边界是否完全不会相交。 | -|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)| +### GridCoord3D.Clamp + +public void Clamp(ref Vector3 pos) +将位置限制在网格内。 + +### GridCoord3D.Contains + +public bool Contains(Vector3 pos) +给定的位置是否在网格内。 + +### GridCoord3D.IsLeft + +public bool IsLeft() +The opening of the coordinate system faces to the left. 坐标系开口朝向左边。 + +### GridCoord3D.IsPointerEnter + +public bool IsPointerEnter() +指针是否在网格内。 + +### GridCoord3D.NotAnyIntersect + +public bool NotAnyIntersect(Vector3 sp, Vector3 ep) +判断给定的线段是否与Grid边界是否完全不会相交。 + +### GridCoord3D.UpdateRuntimeData + +public void UpdateRuntimeData(BaseChart chart) ## GridCoord3DContext -> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) - +class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) ## GridCoordContext -> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) - +class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) ## GridLayout -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IUpdateRuntimeData](#iupdateruntimedata) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IUpdateRuntimeData](#iupdateruntimedata) > 从 `v3.8.0` 开始支持 网格布局组件。用于管理多个`GridCoord`的布局,可以通过`row`和`column`来控制网格的行列数。 -|API|版本|描述| -|--|--|--| -|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)| +### GridLayout.UpdateRuntimeData + +public void UpdateRuntimeData(BaseChart chart) ## GridLayoutContext -> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) - +class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) ## Heatmap -> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +### Heatmap.containerIndex -|API|版本|描述| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| +public int containerIndex + +### Heatmap.containterInstanceId + +public int containterInstanceId + +### Heatmap.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## HeatmapChart -> class in XCharts.Runtime / 继承自: [BaseChart](#basechart) +class in XCharts.Runtime / 继承自: [BaseChart](#basechart) 热力图主要通过颜色去表现数值的大小,必须要配合 visualMap 组件使用。 可以应用在直角坐标系以及地理坐标系上,这两个坐标系上的表现形式相差很大,直角坐标系上必须要使用两个类目轴。 -|API|版本|描述| -|--|--|--| -|DefaultCountHeatmapChart()||public void DefaultCountHeatmapChart()
默认计数热力图。 | +### HeatmapChart.DefaultCountHeatmapChart + +public void DefaultCountHeatmapChart() +默认计数热力图。 + +## HeatmapType + +class in XCharts.Runtime + +热力图类型。通过颜色映射划分。 + +可选: + +- `Data`: 数据映射型。默认用第2维数据作为颜色映射。要求数据至少有3个维度数据。 +- `Count`: 个数映射型。统计数据在划分的格子中出现的次数,作为颜色映射。要求数据至少有2个维度数据。 ## IconStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +### IconStyle.align -|API|版本|描述| -|--|--|--| -|Clone()||public IconStyle Clone()| -|Copy()||public void Copy(IconStyle iconStyle)| -|Reset()||public void Reset()| +public Align align +水平方向对齐方式。 + +### IconStyle.autoHideWhenLabelEmpty + +public bool autoHideWhenLabelEmpty +当label内容为空时是否自动隐藏图标 + +### IconStyle.color + +public Color color +图标颜色。 + +### IconStyle.height + +public float height +图标高。 + +### IconStyle.layer + +public Layer layer +显示在上层还是在下层。 + +### IconStyle.offset + +public Vector3 offset +图标偏移。 + +### IconStyle.show + +public bool show +是否显示图标。 + +### IconStyle.sprite + +public Sprite sprite +图标的图片。 + +### IconStyle.type + +public Image.Type type +图片的显示类型。 + +### IconStyle.width + +public float width +图标宽。 + +### IconStyle.Clone + +public IconStyle Clone() + +### IconStyle.Copy + +public void Copy(IconStyle iconStyle) + +### IconStyle.Reset + +public void Reset() + +## IconStyle.Layer + +class in XCharts.Runtime + +可选: + +- `UnderText`: The icon is display under the label text. 图标在标签文字下 +- `AboveText`: The icon is display above the label text. 图标在标签文字上 ## IgnoreDoc -> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### IgnoreDoc.IgnoreDoc -|API|版本|描述| -|--|--|--| -|IgnoreDoc()||public IgnoreDoc()| +public IgnoreDoc() ## ImageStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) +### ImageStyle.autoColor -|API|版本|描述| -|--|--|--| -|Clone()||public ImageStyle Clone()| -|Copy()||public void Copy(ImageStyle imageStyle)| -|Reset()||public void Reset()| +public bool autoColor +是否自动颜色。 + +### ImageStyle.color + +public Color color +图标颜色。 + +### ImageStyle.height + +public float height +图标高。 + +### ImageStyle.show + +public bool show +是否显示图标。 + +### ImageStyle.sprite + +public Sprite sprite +图标的图片。 + +### ImageStyle.type + +public Image.Type type +图片的显示类型。 + +### ImageStyle.width + +public float width +图标宽。 + +### ImageStyle.Clone + +public ImageStyle Clone() + +### ImageStyle.Copy + +public void Copy(ImageStyle imageStyle) + +### ImageStyle.Reset + +public void Reset() ## Indicator -> class in XCharts.Runtime +class in XCharts.Runtime 雷达图的指示器,用来指定雷达图中的多个变量(维度)。 -|API|版本|描述| -|--|--|--| -|AddIndicator()||public RadarCoord.Indicator AddIndicator(string name, double min, double max)| -|AddIndicator()||public void AddIndicator(RadarCoord.Indicator indicator)| -|AddIndicatorList()|v3.3.0|public void AddIndicatorList(List<string> nameList, double min = 0, double max = 0)| -|ClearData()||public override void ClearData()| -|GetFormatterIndicatorContent()||public string GetFormatterIndicatorContent(int indicatorIndex)| -|GetFormatterIndicatorContent()||public string GetFormatterIndicatorContent(string indicatorName)| -|GetIndicator()||public RadarCoord.Indicator GetIndicator(int indicatorIndex)| -|GetIndicatorMax()||public double GetIndicatorMax(int index)| -|GetIndicatorMin()||public double GetIndicatorMin(int index)| -|GetIndicatorName()||public string GetIndicatorName(int indicatorIndex)| -|GetIndicatorPosition()||public Vector3 GetIndicatorPosition(int index)| -|IsInIndicatorRange()||public bool IsInIndicatorRange(int index, double value)| -|IsInRange()||public bool IsInRange(double value)| -|IsPointerEnter()||public bool IsPointerEnter()| -|SetDefaultValue()||public override void SetDefaultValue()| -|UpdateIndicator()||public bool UpdateIndicator(int indicatorIndex, string name, double min, double max)| +### Indicator.indicatorList + +public List<Indicator> indicatorList +指示器列表。 + +### Indicator.max + +public double max +指示器的最大值,默认为 0 无限制。 + +### Indicator.min + +public double min +指示器的最小值,默认为 0 无限制。 + +### Indicator.name + +public string name +指示器名称。 + +### Indicator.show + +public bool show +是否显示雷达坐标系组件。 + +### Indicator.text + +public Text text +指示器的文本组件。 + +### Indicator.AddIndicator + +public RadarCoord.Indicator AddIndicator(string name, double min, double max) + + +### Indicator.AddIndicatorList + +public void AddIndicatorList(List<string> nameList, double min = 0, double max = 0) + +> 从 `v3.3.0` 开始支持 + + +### Indicator.ClearData + +public override void ClearData() + +### Indicator.GetFormatterIndicatorContent + +public string GetFormatterIndicatorContent(string indicatorName) + + +### Indicator.GetIndicator + +public RadarCoord.Indicator GetIndicator(int indicatorIndex) + +### Indicator.GetIndicatorMax + +public double GetIndicatorMax(int index) + +### Indicator.GetIndicatorMin + +public double GetIndicatorMin(int index) + +### Indicator.GetIndicatorName + +public string GetIndicatorName(int indicatorIndex) + +### Indicator.GetIndicatorPosition + +public Vector3 GetIndicatorPosition(int index) + +### Indicator.IsInIndicatorRange + +public bool IsInIndicatorRange(int index, double value) + +### Indicator.IsInRange + +public bool IsInRange(double value) + +### Indicator.IsPointerEnter + +public bool IsPointerEnter() + +### Indicator.SetDefaultValue + +public override void SetDefaultValue() + +### Indicator.UpdateIndicator + +public bool UpdateIndicator(int indicatorIndex, string name, double min, double max) ## INeedSerieContainer -> class in XCharts.Runtime / 子类: [Bar](#bar),[SimplifiedBar](#simplifiedbar),[Candlestick](#candlestick),[SimplifiedCandlestick](#simplifiedcandlestick),[Heatmap](#heatmap),[Line](#line),[SimplifiedLine](#simplifiedline),[Parallel](#parallel),[Radar](#radar),[BaseScatter](#basescatter) - +class in XCharts.Runtime / 子类: [Bar](#bar),[SimplifiedBar](#simplifiedbar),[Candlestick](#candlestick),[SimplifiedCandlestick](#simplifiedcandlestick),[Heatmap](#heatmap),[Line](#line),[SimplifiedLine](#simplifiedline),[Parallel](#parallel),[Radar](#radar),[BaseScatter](#basescatter) ## InputHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### InputHelper.GetKeyDown -|API|版本|描述| -|--|--|--| -|GetKeyDown()||public static bool GetKeyDown(KeyCode keyCode)| -|GetTouch()||public static Touch GetTouch(int v)| +public static bool GetKeyDown(KeyCode keyCode) + +### InputHelper.GetTouch + +public static Touch GetTouch(int v) ## InteractData -> class in XCharts.Runtime +class in XCharts.Runtime + +### InteractData.Reset + +public void Reset() + +### InteractData.SetColor + +public void SetColor(ref bool needInteract, Color32 color, Color32 toColor) -|API|版本|描述| -|--|--|--| -|Reset()||public void Reset()| -|SetColor()||public void SetColor(ref bool needInteract, Color32 color)| -|SetColor()||public void SetColor(ref bool needInteract, Color32 color, Color32 toColor)| -|SetPosition()||public void SetPosition(ref bool needInteract, Vector3 pos)| -|SetValue()||public void SetValue(ref bool needInteract, float value, bool highlight, float rate = 1.3f)| -|SetValue()||public void SetValue(ref bool needInteract, float value, bool previousValueZero = false)| -|SetValueAndColor()||public void SetValueAndColor(ref bool needInteract, float value, Color32 color)| -|SetValueAndColor()||public void SetValueAndColor(ref bool needInteract, float value, Color32 color, Color32 toColor)| -|ToString()||public override string ToString()| -|TryGetColor()||public bool TryGetColor(ref Color32 color, ref bool interacting, float animationDuration = 250)| -|TryGetColor()||public bool TryGetColor(ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)| -|TryGetPosition()||public bool TryGetPosition(ref Vector3 pos, ref bool interacting, float animationDuration = 250)| -|TryGetValue()||public bool TryGetValue(ref float value, ref bool interacting, float animationDuration = 250)| -|TryGetValueAndColor()||public bool TryGetValueAndColor(ref float value, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)| -|TryGetValueAndColor()||public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref bool interacting, float animationDuration = 250)| -|TryGetValueAndColor()||public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)| +### InteractData.SetPosition + +public void SetPosition(ref bool needInteract, Vector3 pos) + +### InteractData.SetValue + +public void SetValue(ref bool needInteract, float value, bool previousValueZero = false) + + +### InteractData.SetValueAndColor + +public void SetValueAndColor(ref bool needInteract, float value, Color32 color, Color32 toColor) + + +### InteractData.ToString + +public override string ToString() + +### InteractData.TryGetColor + +public bool TryGetColor(ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250) + + +### InteractData.TryGetPosition + +public bool TryGetPosition(ref Vector3 pos, ref bool interacting, float animationDuration = 250) + +### InteractData.TryGetValue + +public bool TryGetValue(ref float value, ref bool interacting, float animationDuration = 250) + +### InteractData.TryGetValueAndColor + +public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref bool interacting, float animationDuration = 250) + +public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250) + ## IPropertyChanged -> class in XCharts.Runtime / 子类: [Location](#location),[Comment](#comment),[Legend](#legend),[Title](#title) +class in XCharts.Runtime / 子类: [Location](#location),[Comment](#comment),[Legend](#legend),[Title](#title) 属性变更接口 ## ISerieComponent -> class in XCharts.Runtime / 子类: [AreaStyle](#areastyle),[ImageStyle](#imagestyle),[LineArrow](#linearrow),[LabelLine](#labelline),[LabelStyle](#labelstyle),[BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle),[TitleStyle](#titlestyle) +class in XCharts.Runtime / 子类: [AreaStyle](#areastyle),[ImageStyle](#imagestyle),[LineArrow](#linearrow),[LabelLine](#labelline),[LabelStyle](#labelstyle),[BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle),[TitleStyle](#titlestyle) 可用于Serie的组件。 ## ISerieContainer -> class in XCharts.Runtime / 子类: [RadarCoord](#radarcoord),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[GridCoord3D](#gridcoord3d),[ParallelCoord](#parallelcoord),[PolarCoord](#polarcoord) - +class in XCharts.Runtime / 子类: [RadarCoord](#radarcoord),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[GridCoord3D](#gridcoord3d),[ParallelCoord](#parallelcoord),[PolarCoord](#polarcoord) ## ISerieDataComponent -> class in XCharts.Runtime / 子类: [AreaStyle](#areastyle),[ImageStyle](#imagestyle),[ItemStyle](#itemstyle),[LineStyle](#linestyle),[SerieSymbol](#seriesymbol),[LabelLine](#labelline),[LabelStyle](#labelstyle),[BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle),[TitleStyle](#titlestyle) +class in XCharts.Runtime / 子类: [AreaStyle](#areastyle),[ImageStyle](#imagestyle),[ItemStyle](#itemstyle),[LineStyle](#linestyle),[SerieSymbol](#seriesymbol),[LabelLine](#labelline),[LabelStyle](#labelstyle),[BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle),[TitleStyle](#titlestyle) 可用于SerieData的组件。 ## ISimplifiedSerie -> class in XCharts.Runtime / 子类: [SimplifiedBar](#simplifiedbar),[SimplifiedCandlestick](#simplifiedcandlestick),[SimplifiedLine](#simplifiedline) - +class in XCharts.Runtime / 子类: [SimplifiedBar](#simplifiedbar),[SimplifiedCandlestick](#simplifiedcandlestick),[SimplifiedLine](#simplifiedline) ## ItemStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieDataComponent](#iseriedatacomponent) 图形样式。 -|API|版本|描述| -|--|--|--| -|GetBorderColor()||public Color32 GetBorderColor(Color32 defaultColor)| -|GetBorderColor0()||public Color32 GetBorderColor0(Color32 defaultColor)| -|GetColor()||public Color32 GetColor()| -|GetColor()||public Color32 GetColor(Color32 defaultColor)| -|GetColor0()||public Color32 GetColor0()| -|GetColor0()||public Color32 GetColor0(Color32 defaultColor)| -|GetGradientColor()||public Color32 GetGradientColor(float value, Color32 defaultColor)| -|GetToColor()||public Color32 GetToColor()| -|IsNeedCorner()||public bool IsNeedCorner()| -|IsNeedGradient()||public bool IsNeedGradient()| -|Reset()||public void Reset()| +### ItemStyle.GetBorderColor + +public Color32 GetBorderColor(Color32 defaultColor) + +### ItemStyle.GetBorderColor0 + +public Color32 GetBorderColor0(Color32 defaultColor) + +### ItemStyle.GetColor + +public Color32 GetColor(Color32 defaultColor) + + +### ItemStyle.GetColor0 + +public Color32 GetColor0(Color32 defaultColor) + + +### ItemStyle.GetGradientColor + +public Color32 GetGradientColor(float value, Color32 defaultColor) + +### ItemStyle.GetToColor + +public Color32 GetToColor() + +### ItemStyle.IsNeedCorner + +public bool IsNeedCorner() + +### ItemStyle.IsNeedGradient + +public bool IsNeedGradient() + +### ItemStyle.Reset + +public void Reset() ## IUpdateRuntimeData -> class in XCharts.Runtime / 子类: [SingleAxis](#singleaxis),[DataZoom](#datazoom),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[GridLayout](#gridlayout),[GridCoord3D](#gridcoord3d),[ParallelCoord](#parallelcoord) - +class in XCharts.Runtime / 子类: [SingleAxis](#singleaxis),[DataZoom](#datazoom),[CalendarCoord](#calendarcoord),[GridCoord](#gridcoord),[GridLayout](#gridlayout),[GridCoord3D](#gridcoord3d),[ParallelCoord](#parallelcoord) ## JsonUtil -> class in XCharts.Runtime +class in XCharts.Runtime +### JsonUtil.GetJsonArray<T> + +public static T[] GetJsonArray<T>(string json) + +### JsonUtil.GetJsonObject<T> + +public static T GetJsonObject<T>(string json) + +### JsonUtil.GetWebJson<T> + +public static IEnumerator GetWebJson<T>(string url, Action<T> callback) -|API|版本|描述| -|--|--|--| -|GetJsonArray<T>()||public static T[] GetJsonArray<T>(string json)| -|GetJsonObject<T>()||public static T GetJsonObject<T>(string json)| -|GetWebJson<T>()||public static IEnumerator GetWebJson<T>(string url, Action<T[]> callback)| -|GetWebJson<T>()||public static IEnumerator GetWebJson<T>(string url, Action<T> callback)| ## LabelLine -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) 标签的引导线 -|API|版本|描述| -|--|--|--| -|GetEndSymbolOffset()||public Vector3 GetEndSymbolOffset()| -|GetStartSymbolOffset()||public Vector3 GetStartSymbolOffset()| -|Reset()||public void Reset()| +### LabelLine.GetEndSymbolOffset + +public Vector3 GetEndSymbolOffset() + +### LabelLine.GetStartSymbolOffset + +public Vector3 GetStartSymbolOffset() + +### LabelLine.Reset + +public void Reset() + +## LabelLine.LineType + +class in XCharts.Runtime + +标签视觉引导线类型 + +可选: + +- `BrokenLine`: 折线 +- `Curves`: 曲线 +- `HorizontalLine`: 水平线 ## LabelStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) / 子类: [AxisLabel](#axislabel),[EndLabelStyle](#endlabelstyle),[TitleStyle](#titlestyle) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) / 子类: [AxisLabel](#axislabel),[EndLabelStyle](#endlabelstyle),[TitleStyle](#titlestyle) 图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。 -|API|版本|描述| -|--|--|--| -|Clone()||public virtual LabelStyle Clone()| -|Copy()||public virtual void Copy(LabelStyle label)| -|GetColor()||public Color GetColor(Color defaultColor)| -|GetFormatterContent()||public virtual string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false)| -|GetFormatterContent()||public virtual string GetFormatterContent(int labelIndex, string category)| -|GetFormatterDateTime()||public string GetFormatterDateTime(int labelIndex, double value, double minValue, double maxValue)| -|GetOffset()||public Vector3 GetOffset(float radius)| -|IsAutoSize()||public bool IsAutoSize()| -|IsDefaultPosition()||public bool IsDefaultPosition(Position position)| -|IsInside()||public bool IsInside()
是否在内部。 | -|Reset()||public void Reset()| +### LabelStyle.Clone + +public virtual LabelStyle Clone() + +### LabelStyle.Copy + +public virtual void Copy(LabelStyle label) + +### LabelStyle.GetColor + +public Color GetColor(Color defaultColor) + +### LabelStyle.GetFormatterContent + +public virtual string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false) + + +### LabelStyle.GetFormatterDateTime + +public string GetFormatterDateTime(int labelIndex, double value, double minValue, double maxValue) + +### LabelStyle.GetOffset + +public Vector3 GetOffset(float radius) + +### LabelStyle.IsAutoSize + +public bool IsAutoSize() + +### LabelStyle.IsDefaultPosition + +public bool IsDefaultPosition(Position position) + +### LabelStyle.IsInside + +public bool IsInside() +是否在内部。 + +### LabelStyle.Reset + +public void Reset() + +## LabelStyle.Position + +class in XCharts.Runtime + +标签的位置。 + +可选: + +- `Default`: 标签的位置。 +- `Outside`: 饼图扇区外侧,通过视觉引导线连到相应的扇区。 +- `Inside`: 饼图扇区内部。 +- `Center`: 在饼图中心位置。 +- `Top`: 图形标志的顶部。 +- `Bottom`: 图形标志的底部。 +- `Left`: 图形标志的左边。 +- `Right`: 图形标志的右边。 +- `Start`: 线的起始点。 +- `Middle`: 线的中点。 +- `End`: 线的结束点。 ## Lang -> class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject) +class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject) 国际化语言表。 -|API|版本|描述| -|--|--|--| -|GetCandlestickDimensionName()||public string GetCandlestickDimensionName(int i)| -|GetDay()||public string GetDay(int day)| -|GetMonthAbbr()||public string GetMonthAbbr(int month)| +### Lang.GetCandlestickDimensionName + +public string GetCandlestickDimensionName(int i) + +### Lang.GetDay + +public string GetDay(int day) + +### Lang.GetMonthAbbr + +public string GetMonthAbbr(int month) ## LangCandlestick -> class in XCharts.Runtime +class in XCharts.Runtime +### LangCandlestick.List<string>() + +public List<string> dimensionNames = new List<string>() ## LangTime -> class in XCharts.Runtime +class in XCharts.Runtime +### LangTime.List<string> + +public List<string> dayOfMonth = new List<string>() + +public List<string> dayOfWeek = new List<string>() + +public List<string> dayOfWeekAbbr = new List<string>() + +public List<string> monthAbbr = new List<string>() -|API|版本|描述| -|--|--|--| -|List<string>()||public List<string> dayOfMonth = new List<string>()| -|List<string>()||public List<string> dayOfWeek = new List<string>()| -|List<string>()||public List<string> dayOfWeekAbbr = new List<string>()| -|List<string>()||public List<string> monthAbbr = new List<string>()| -|List<string>()||public List<string> months = new List<string>()| ## LayerHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### LayerHelper.IsFixedWidthHeight -|API|版本|描述| -|--|--|--| -|IsFixedWidthHeight()||public static bool IsFixedWidthHeight(RectTransform rt)| -|IsStretchPivot()||public static bool IsStretchPivot(RectTransform rt)| +public static bool IsFixedWidthHeight(RectTransform rt) + +### LayerHelper.IsStretchPivot + +public static bool IsStretchPivot(RectTransform rt) ## Legend -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) 图例组件。 图例组件展现了不同系列的标记,颜色和名字。可以通过点击图例控制哪些系列不显示。 -|API|版本|描述| -|--|--|--| -|AddData()||public void AddData(string name)
添加图例。 | -|ClearComponentDirty()||public override void ClearComponentDirty()| -|ClearData()||public override void ClearData()
清空。 | -|ContainsData()||public bool ContainsData(string name)
是否包括由指定名字的图例 | -|GetColor()||public Color GetColor(int index)| -|GetData()||public string GetData(int index)
获得指定索引的图例。 | -|GetIcon()||public Sprite GetIcon(int index)
获得指定索引的图例按钮。 | -|GetIndex()||public int GetIndex(string legendName)
获得指定图例的索引。 | -|GetPosition()||public Vector3 GetPosition(int index, Vector3 defaultPos)| -|OnChanged()||public void OnChanged()
参数变更时的回调处理。 | -|RemoveButton()||public void RemoveButton()
移除所有图例按钮。 | -|RemoveData()||public void RemoveData(string name)
移除指定名字的图例。 | -|SetButton()||public void SetButton(string name, LegendItem item, int total)
给图例绑定按钮。 | -|UpdateButtonColor()||public void UpdateButtonColor(string name, Color color)
更新图例按钮颜色。 | -|UpdateContentColor()||public void UpdateContentColor(string name, Color color)
更新图例文字颜色。 | +### Legend.vertsDirty + +public override bool vertsDirty +图表是否需要刷新(图例组件不需要刷新图表) + +### Legend.AddData + +public void AddData(string name) +添加图例。 + +### Legend.ClearComponentDirty + +public override void ClearComponentDirty() + +### Legend.ClearData + +public override void ClearData() +清空。 + +### Legend.ContainsData + +public bool ContainsData(string name) +是否包括由指定名字的图例 + +### Legend.GetColor + +public Color GetColor(int index) + +### Legend.GetData + +public string GetData(int index) +获得指定索引的图例。 + +### Legend.GetIcon + +public Sprite GetIcon(int index) +获得指定索引的图例按钮。 + +### Legend.GetIndex + +public int GetIndex(string legendName) +获得指定图例的索引。 + +### Legend.GetPosition + +public Vector3 GetPosition(int index, Vector3 defaultPos) + +### Legend.OnChanged + +public void OnChanged() +参数变更时的回调处理。 + +### Legend.RemoveButton + +public void RemoveButton() +移除所有图例按钮。 + +### Legend.RemoveData + +public void RemoveData(string name) +移除指定名字的图例。 + +### Legend.SetButton + +public void SetButton(string name, LegendItem item, int total) +给图例绑定按钮。 + +### Legend.UpdateButtonColor + +public void UpdateButtonColor(string name, Color color) +更新图例按钮颜色。 + +### Legend.UpdateContentColor + +public void UpdateContentColor(string name, Color color) +更新图例文字颜色。 + +## Legend.SelectedMode + +class in XCharts.Runtime + +图例选择的模式,控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。 + +可选: + +- `Multiple`: 多选。 +- `Single`: 单选。 +- `None`: 无法选择。 + +## Legend.Type + +class in XCharts.Runtime + +图例组件。 图例组件展现了不同系列的标记,颜色和名字。可以通过点击图例控制哪些系列不显示。 + +可选: + +- `Auto`: 自动匹配。 +- `Custom`: 自定义图标。 +- `EmptyCircle`: 空心圆。 +- `Circle`: 圆形。 +- `Rect`: 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。 +- `Triangle`: 三角形。 +- `Diamond`: 菱形。 +- `Candlestick`: 烛台(可用于K线图)。 ## LegendContext -> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) +class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) +### LegendContext.background + +public Image background + +### LegendContext.center + +public Vector2 center + +### LegendContext.height + +public float height +运行时图例的总高度 + +### LegendContext.width + +public float width +运行时图例的总宽度 ## LegendHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### LegendHelper.CheckDataHighlighted -|API|版本|描述| -|--|--|--| -|CheckDataHighlighted()||public static int CheckDataHighlighted(Serie serie, string legendName, bool heighlight)| -|CheckDataShow()||public static bool CheckDataShow(Serie serie, string legendName, bool show)| -|GetContentColor()||public static Color GetContentColor(BaseChart chart, int legendIndex, string legendName, Legend legend, ThemeStyle theme, bool active)| -|GetIconColor()||public static Color GetIconColor(BaseChart chart, Legend legend, int readIndex, string legendName, bool active)| -|ResetItemPosition()||public static void ResetItemPosition(Legend legend, Vector3 chartPos, float chartWidth, float chartHeight)| -|SetLegendBackground()||public static void SetLegendBackground(Legend legend, ImageStyle style)| +public static int CheckDataHighlighted(Serie serie, string legendName, bool heighlight) + +### LegendHelper.CheckDataShow + +public static bool CheckDataShow(Serie serie, string legendName, bool show) + +### LegendHelper.GetContentColor + +public static Color GetContentColor(BaseChart chart, int legendIndex, string legendName, Legend legend, ThemeStyle theme, bool active) + +### LegendHelper.GetIconColor + +public static Color GetIconColor(BaseChart chart, Legend legend, int readIndex, string legendName, bool active) + +### LegendHelper.ResetItemPosition + +public static void ResetItemPosition(Legend legend, Vector3 chartPos, float chartWidth, float chartHeight) + +### LegendHelper.SetLegendBackground + +public static void SetLegendBackground(Legend legend, ImageStyle style) ## LegendItem -> class in XCharts.Runtime +class in XCharts.Runtime +### LegendItem.button -|API|版本|描述| -|--|--|--| -|GetIconColor()||public Color GetIconColor()| -|GetIconRect()||public Rect GetIconRect()| -|SetActive()||public void SetActive(bool active)| -|SetBackground()||public void SetBackground(ImageStyle imageStyle)| -|SetButton()||public void SetButton(Button button)| -|SetContent()||public bool SetContent(string content)| -|SetContentBackgroundColor()||public void SetContentBackgroundColor(Color color)| -|SetContentColor()||public void SetContentColor(Color color)| -|SetContentPosition()||public void SetContentPosition(Vector3 offset)| -|SetIcon()||public void SetIcon(Image icon)| -|SetIconActive()||public void SetIconActive(bool active)| -|SetIconColor()||public void SetIconColor(Color color)| -|SetIconImage()||public void SetIconImage(Sprite image)| -|SetIconSize()||public void SetIconSize(float width, float height)| -|SetObject()||public void SetObject(GameObject obj)| -|SetPosition()||public void SetPosition(Vector3 position)| -|SetText()||public void SetText(ChartText text)| -|SetTextBackground()||public void SetTextBackground(Image image)| +public Button button + +### LegendItem.gameObject + +public GameObject gameObject + +### LegendItem.index + +public int index + +### LegendItem.legendName + +public string legendName + +### LegendItem.name + +public string name + +### LegendItem.text + +public ChartText text + +### LegendItem.GetIconColor + +public Color GetIconColor() + +### LegendItem.GetIconRect + +public Rect GetIconRect() + +### LegendItem.SetActive + +public void SetActive(bool active) + +### LegendItem.SetBackground + +public void SetBackground(ImageStyle imageStyle) + +### LegendItem.SetButton + +public void SetButton(Button button) + +### LegendItem.SetContent + +public bool SetContent(string content) + +### LegendItem.SetContentBackgroundColor + +public void SetContentBackgroundColor(Color color) + +### LegendItem.SetContentColor + +public void SetContentColor(Color color) + +### LegendItem.SetContentPosition + +public void SetContentPosition(Vector3 offset) + +### LegendItem.SetIcon + +public void SetIcon(Image icon) + +### LegendItem.SetIconActive + +public void SetIconActive(bool active) + +### LegendItem.SetIconColor + +public void SetIconColor(Color color) + +### LegendItem.SetIconImage + +public void SetIconImage(Sprite image) + +### LegendItem.SetIconSize + +public void SetIconSize(float width, float height) + +### LegendItem.SetObject + +public void SetObject(GameObject obj) + +### LegendItem.SetPosition + +public void SetPosition(Vector3 position) + +### LegendItem.SetText + +public void SetText(ChartText text) + +### LegendItem.SetTextBackground + +public void SetTextBackground(Image image) ## LegendTheme -> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +### LegendTheme.Copy -|API|版本|描述| -|--|--|--| -|Copy()||public void Copy(LegendTheme theme)| -|LegendTheme()||public LegendTheme(ThemeType theme) : base(theme)| +public void Copy(LegendTheme theme) + +### LegendTheme.LegendTheme + +public LegendTheme(ThemeType theme) : base(theme) ## Level -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +### Level.depth + +public int depth +层级深度。 + +### Level.itemStyle + +public ItemStyle itemStyle +数据项样式。 + +### Level.label + +public LabelStyle label +文本标签样式。 + +### Level.lineStyle + +public LineStyle lineStyle +线条样式。 + +### Level.upperLabel + +public LabelStyle upperLabel +上方的文本标签样式。 ## LevelStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) > 从 `v3.10.0` 开始支持 +### LevelStyle.levels + +public List<Level> levels +各层节点对应的配置。当enableLevels为true时生效,levels[0]对应的第一层的配置,levels[1]对应第二层,依次类推。当levels中没有对应层时用默认的设置。 + +### LevelStyle.show + +public bool show +是否启用LevelStyle ## Line -> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +### Line.containerIndex -|API|版本|描述| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| -|ConvertSerie()||public static Line ConvertSerie(Serie serie)| +public int containerIndex + +### Line.containterInstanceId + +public int containterInstanceId + +### Line.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) + +### Line.ConvertSerie + +public static Line ConvertSerie(Serie serie) ## LineArrow -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieComponent](#iseriecomponent) +## LineArrow.Position + +class in XCharts.Runtime + +可选: + +- `End`: 末端箭头 +- `Start`: 头端箭头 ## LineChart -> class in XCharts.Runtime / 继承自: [BaseChart](#basechart) +class in XCharts.Runtime / 继承自: [BaseChart](#basechart) 折线图是用折线将各个数据点标志连接起来的图表,用于展现数据的变化趋势。可用于直角坐标系和极坐标系上。 设置 areaStyle 后可以绘制面积图。 -|API|版本|描述| -|--|--|--| -|DefaultAreaLineChart()||public void DefaultAreaLineChart()
默认面积折线图。 | -|DefaultDashLineChart()||public void DefaultDashLineChart()
默认虚线折线图。 | -|DefaultLogLineChart()||public void DefaultLogLineChart()
默认对数轴折线图。 | -|DefaultSmoothAreaLineChart()||public void DefaultSmoothAreaLineChart()
默认平滑面积折线图。 | -|DefaultSmoothLineChart()||public void DefaultSmoothLineChart()
默认平滑折线图。 | -|DefaultStackAreaLineChart()||public void DefaultStackAreaLineChart()
默认堆叠面积折线图。 | -|DefaultStackLineChart()||public void DefaultStackLineChart()
默认堆叠折线图。 | -|DefaultStepLineChart()||public void DefaultStepLineChart()
默认阶梯折线图。 | -|DefaultTimeLineChart()||public void DefaultTimeLineChart()
默认时间折线图。 | +### LineChart.DefaultAreaLineChart + +public void DefaultAreaLineChart() +默认面积折线图。 + +### LineChart.DefaultDashLineChart + +public void DefaultDashLineChart() +默认虚线折线图。 + +### LineChart.DefaultLogLineChart + +public void DefaultLogLineChart() +默认对数轴折线图。 + +### LineChart.DefaultSmoothAreaLineChart + +public void DefaultSmoothAreaLineChart() +默认平滑面积折线图。 + +### LineChart.DefaultSmoothLineChart + +public void DefaultSmoothLineChart() +默认平滑折线图。 + +### LineChart.DefaultStackAreaLineChart + +public void DefaultStackAreaLineChart() +默认堆叠面积折线图。 + +### LineChart.DefaultStackLineChart + +public void DefaultStackLineChart() +默认堆叠折线图。 + +### LineChart.DefaultStepLineChart + +public void DefaultStepLineChart() +默认阶梯折线图。 + +### LineChart.DefaultTimeLineChart + +public void DefaultTimeLineChart() +默认时间折线图。 ## LineHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### LineHelper.GetDataAverageRate -|API|版本|描述| -|--|--|--| -|GetDataAverageRate()||public static int GetDataAverageRate(Serie serie, float axisLength, int maxCount, bool isYAxis)| -|GetLineWidth()||public static float GetLineWidth(ref bool interacting, Serie serie, float defaultWidth)| +public static int GetDataAverageRate(Serie serie, float axisLength, int maxCount, bool isYAxis) + +### LineHelper.GetLineWidth + +public static float GetLineWidth(ref bool interacting, Serie serie, float defaultWidth) ## LineStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieDataComponent](#iseriedatacomponent) 线条样式。 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color,线条颜色默认也会取该颜色。 toColor,toColor2可设置水平方向的渐变,如需要设置垂直方向的渐变,可使用VisualMap。 -|API|版本|描述| -|--|--|--| -|Clone()||public LineStyle Clone()| -|Copy()||public void Copy(LineStyle lineStyle)| -|GetColor()||public Color32 GetColor()| -|GetColor()||public Color32 GetColor(Color32 themeColor)| -|GetGradientColor()||public Color32 GetGradientColor(float value, Color32 defaultColor)| -|GetLength()||public float GetLength(float themeLength)| -|GetType()||public Type GetType(Type themeType)| -|GetWidth()||public float GetWidth(float themeWidth)| -|IsNeedGradient()||public bool IsNeedGradient()| -|IsNotSolidLine()||public bool IsNotSolidLine()| -|LineStyle()||public LineStyle()| -|LineStyle()||public LineStyle(float width)| -|LineStyle()||public LineStyle(LineStyle.Type type)| -|LineStyle()||public LineStyle(LineStyle.Type type, float width)| +### LineStyle.Clone + +public LineStyle Clone() + +### LineStyle.Copy + +public void Copy(LineStyle lineStyle) + +### LineStyle.GetColor + +public Color32 GetColor(Color32 themeColor) + + +### LineStyle.GetGradientColor + +public Color32 GetGradientColor(float value, Color32 defaultColor) + +### LineStyle.GetLength + +public float GetLength(float themeLength) + +### LineStyle.GetType + +public Type GetType(Type themeType) + +### LineStyle.GetWidth + +public float GetWidth(float themeWidth) + +### LineStyle.IsNeedGradient + +public bool IsNeedGradient() + +### LineStyle.IsNotSolidLine + +public bool IsNotSolidLine() + +### LineStyle.LineStyle + +public LineStyle(float width) + +public LineStyle(LineStyle.Type type) + +public LineStyle(LineStyle.Type type, float width) + + +## LineStyle.Type + +class in XCharts.Runtime + +线的类型。 + +可选: + +- `Solid`: 实线 +- `Dashed`: 虚线 +- `Dotted`: 点线 +- `DashDot`: 点划线 +- `DashDotDot`: 双点划线 +- `None`: 双点划线 + +## LineType + +class in XCharts.Runtime + +折线图样式类型 + +可选: + +- `Normal`: 普通折线图。 +- `Smooth`: 平滑曲线。 +- `StepStart`: 阶梯线图:当前点。 +- `StepMiddle`: 阶梯线图:当前点和下一个点的中间。 +- `StepEnd`: 阶梯线图:下一个拐点。 ## ListFor -> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) / 子类: [ListForComponent](#listforcomponent),[ListForSerie](#listforserie) +class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) / 子类: [ListForComponent](#listforcomponent),[ListForSerie](#listforserie) +### ListFor.ListFor -|API|版本|描述| -|--|--|--| -|ListFor()||public ListFor(Type type)| +public ListFor(Type type) ## ListForComponent -> class in XCharts.Runtime / 继承自: [ListFor](#listfor) +class in XCharts.Runtime / 继承自: [ListFor](#listfor) +### ListForComponent.ListForComponent -|API|版本|描述| -|--|--|--| -|ListForComponent()||public ListForComponent(Type type) : base(type)| +public ListForComponent(Type type) : base(type) ## ListForSerie -> class in XCharts.Runtime / 继承自: [ListFor](#listfor) +class in XCharts.Runtime / 继承自: [ListFor](#listfor) +### ListForSerie.ListForSerie -|API|版本|描述| -|--|--|--| -|ListForSerie()||public ListForSerie(Type type) : base(type)| +public ListForSerie(Type type) : base(type) ## ListPool<T> -> class in XCharts.Runtime +class in XCharts.Runtime +### ListPool<T>.ClearAll -|API|版本|描述| -|--|--|--| -|ClearAll()||public static void ClearAll()| -|Get()||public static List<T> Get()| -|Release()||public static void Release(List<T> toRelease)| +public static void ClearAll() + +### ListPool<T>.Get + +public static List<T> Get() + +### ListPool<T>.Release + +public static void Release(List<T> toRelease) ## Location -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[IPropertyChanged](#ipropertychanged) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[IPropertyChanged](#ipropertychanged) 位置类型。通过Align快速设置大体位置,再通过left,right,top,bottom微调具体位置。 -|API|版本|描述| -|--|--|--| -|GetPosition()||public Vector3 GetPosition(float chartWidth, float chartHeight)
返回在坐标系中的具体位置 | -|IsBottom()||public bool IsBottom()| -|IsCenter()||public bool IsCenter()| -|IsTop()||public bool IsTop()| -|OnChanged()||public void OnChanged()
属性变更时更新textAnchor,minAnchor,maxAnchor,pivot | -|UpdateRuntimeData()||public void UpdateRuntimeData(float chartWidth, float chartHeight)| +### Location.runtimeAnchorMax + +public Vector2 runtimeAnchorMax + +### Location.runtimeAnchorMin + +public Vector2 runtimeAnchorMin +Location对应的anchorMin。 + +### Location.runtimeBottom + +public float runtimeBottom + +### Location.runtimeLeft + +public float runtimeLeft + +### Location.runtimePivot + +public Vector2 runtimePivot +Loation对应的中心点。 + +### Location.runtimeRight + +public float runtimeRight + +### Location.runtimeTextAlignment + +public TextAnchor runtimeTextAlignment +Location对应的Anchor锚点 + +### Location.runtimeTMPTextAlignment + +public TextAlignmentOptions runtimeTMPTextAlignment + +### Location.runtimeTop + +public float runtimeTop + +### Location.GetPosition + +public Vector3 GetPosition(float chartWidth, float chartHeight) +返回在坐标系中的具体位置 + +### Location.IsBottom + +public bool IsBottom() + +### Location.IsCenter + +public bool IsCenter() + +### Location.IsTop + +public bool IsTop() + +### Location.OnChanged + +public void OnChanged() +属性变更时更新textAnchor,minAnchor,maxAnchor,pivot + +### Location.UpdateRuntimeData + +public void UpdateRuntimeData(float chartWidth, float chartHeight) + +## Location.Align + +class in XCharts.Runtime + +对齐方式 + +可选: + +- `TopLeft`: 对齐方式 +- `TopRight`: 对齐方式 +- `TopCenter`: 对齐方式 +- `BottomLeft`: 对齐方式 +- `BottomRight`: 对齐方式 +- `BottomCenter`: 对齐方式 +- `Center`: 对齐方式 +- `CenterLeft`: 对齐方式 +- `CenterRight`: 对齐方式 ## MainComponent -> class in XCharts.Runtime / 继承自: [IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=icomparable) / 子类: [Axis](#axis),[Background](#background),[Comment](#comment),[DataZoom](#datazoom),[Legend](#legend),[MarkArea](#markarea),[MarkLine](#markline),[Settings](#settings),[Title](#title),[Tooltip](#tooltip),[VisualMap](#visualmap),[GridLayout](#gridlayout),[CoordSystem](#coordsystem) +class in XCharts.Runtime / 继承自: [IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=icomparable) / 子类: [Axis](#axis),[Background](#background),[Comment](#comment),[DataZoom](#datazoom),[Legend](#legend),[MarkArea](#markarea),[MarkLine](#markline),[Settings](#settings),[Title](#title),[Tooltip](#tooltip),[VisualMap](#visualmap),[GridLayout](#gridlayout),[CoordSystem](#coordsystem) +### MainComponent.anyDirty -|API|版本|描述| -|--|--|--| -|ClearComponentDirty()||public virtual void ClearComponentDirty()| -|ClearData()||public virtual void ClearData() { }| -|ClearDirty()||public virtual void ClearDirty()| -|ClearVerticesDirty()||public virtual void ClearVerticesDirty()| -|CompareTo()||public int CompareTo(object obj)| -|OnRemove()||public virtual void OnRemove()| -|Reset()||public virtual void Reset() { }| -|ResetStatus()||public virtual void ResetStatus() { }| -|SetAllDirty()||public virtual void SetAllDirty()| -|SetComponentDirty()||public virtual void SetComponentDirty()| -|SetDefaultValue()||public virtual void SetDefaultValue() { }| -|SetVerticesDirty()||public virtual void SetVerticesDirty()| +public bool anyDirty +需要重绘图表或重新初始化组件。 + +### MainComponent.ClearData() + +public virtual void ClearData() + +### MainComponent.componentDirty + +public virtual bool componentDirty +组件重新初始化标记。 + +### MainComponent.gameObject + +public GameObject gameObject + +### MainComponent.index + +public int index + +### MainComponent.instanceId + +public int instanceId + +### MainComponent.painter + +public Painter painter + +### MainComponent.refreshComponent + +public Action refreshComponent + +### MainComponent.Reset() + +public virtual void Reset() + +### MainComponent.ResetStatus() + +public virtual void ResetStatus() + +### MainComponent.SetDefaultValue() + +public virtual void SetDefaultValue() + +### MainComponent.vertsDirty + +public virtual bool vertsDirty +图表重绘标记。 + +### MainComponent.ClearComponentDirty + +public virtual void ClearComponentDirty() + +### MainComponent.ClearData + +public virtual void ClearData() { } + +### MainComponent.ClearDirty + +public virtual void ClearDirty() + +### MainComponent.ClearVerticesDirty + +public virtual void ClearVerticesDirty() + +### MainComponent.CompareTo + +public int CompareTo(object obj) + +### MainComponent.OnRemove + +public virtual void OnRemove() + +### MainComponent.Reset + +public virtual void Reset() { } + +### MainComponent.ResetStatus + +public virtual void ResetStatus() { } + +### MainComponent.SetAllDirty + +public virtual void SetAllDirty() + +### MainComponent.SetComponentDirty + +public virtual void SetComponentDirty() + +### MainComponent.SetDefaultValue + +public virtual void SetDefaultValue() { } + +### MainComponent.SetVerticesDirty + +public virtual void SetVerticesDirty() ## MainComponentContext -> class in XCharts.Runtime / 子类: [AxisContext](#axiscontext),[DataZoomContext](#datazoomcontext),[LegendContext](#legendcontext),[RadarCoordContext](#radarcoordcontext),[VisualMapContext](#visualmapcontext),[GridCoordContext](#gridcoordcontext),[GridLayoutContext](#gridlayoutcontext),[GridCoord3DContext](#gridcoord3dcontext),[ParallelCoordContext](#parallelcoordcontext),[PolarCoordContext](#polarcoordcontext) - +class in XCharts.Runtime / 子类: [AxisContext](#axiscontext),[DataZoomContext](#datazoomcontext),[LegendContext](#legendcontext),[RadarCoordContext](#radarcoordcontext),[VisualMapContext](#visualmapcontext),[GridCoordContext](#gridcoordcontext),[GridLayoutContext](#gridlayoutcontext),[GridCoord3DContext](#gridcoord3dcontext),[ParallelCoordContext](#parallelcoordcontext),[PolarCoordContext](#polarcoordcontext) ## MainComponentHandler -> class in XCharts.Runtime / 子类: [AxisHandler<T>](#axishandlert),[MainComponentHandler<T>](#maincomponenthandlert) +class in XCharts.Runtime / 子类: [AxisHandler<T>](#axishandlert),[MainComponentHandler<T>](#maincomponenthandlert) +### MainComponentHandler.attribute -|API|版本|描述| -|--|--|--| -|BeforceSerieUpdate()||public virtual void BeforceSerieUpdate() { }| -|CheckComponent()||public virtual void CheckComponent(StringBuilder sb) { }| -|DrawBase()||public virtual void DrawBase(VertexHelper vh) { }| -|DrawTop()||public virtual void DrawTop(VertexHelper vh) { }| -|DrawUpper()||public virtual void DrawUpper(VertexHelper vh) { }| -|InitComponent()||public virtual void InitComponent() { }| -|OnBeginDrag()||public virtual void OnBeginDrag(PointerEventData eventData) { }| -|OnDrag()||public virtual void OnDrag(PointerEventData eventData) { }| -|OnEndDrag()||public virtual void OnEndDrag(PointerEventData eventData) { }| -|OnPointerClick()||public virtual void OnPointerClick(PointerEventData eventData) { }| -|OnPointerDown()||public virtual void OnPointerDown(PointerEventData eventData) { }| -|OnPointerEnter()||public virtual void OnPointerEnter(PointerEventData eventData) { }| -|OnPointerExit()||public virtual void OnPointerExit(PointerEventData eventData) { }| -|OnPointerUp()||public virtual void OnPointerUp(PointerEventData eventData) { }| -|OnScroll()||public virtual void OnScroll(PointerEventData eventData) { }| -|OnSerieDataUpdate()||public virtual void OnSerieDataUpdate(int serieIndex) { }| -|RemoveComponent()||public virtual void RemoveComponent() { }| -|Update()||public virtual void Update() { }| +public ComponentHandlerAttribute attribute + +### MainComponentHandler.BeforceSerieUpdate() + +public virtual void BeforceSerieUpdate() + +### MainComponentHandler.chart + +public BaseChart chart + +### MainComponentHandler.eventData) + +public virtual void OnBeginDrag(PointerEventData eventData) + +### MainComponentHandler.eventData) + +public virtual void OnDrag(PointerEventData eventData) + +### MainComponentHandler.eventData) + +public virtual void OnEndDrag(PointerEventData eventData) + +### MainComponentHandler.eventData) + +public virtual void OnPointerClick(PointerEventData eventData) + +### MainComponentHandler.eventData) + +public virtual void OnPointerDown(PointerEventData eventData) + +### MainComponentHandler.eventData) + +public virtual void OnPointerEnter(PointerEventData eventData) + +### MainComponentHandler.eventData) + +public virtual void OnPointerExit(PointerEventData eventData) + +### MainComponentHandler.eventData) + +public virtual void OnPointerUp(PointerEventData eventData) + +### MainComponentHandler.eventData) + +public virtual void OnScroll(PointerEventData eventData) + +### MainComponentHandler.InitComponent() + +public virtual void InitComponent() + +### MainComponentHandler.inited + +public bool inited + +### MainComponentHandler.order + +public int order + +### MainComponentHandler.RemoveComponent() + +public virtual void RemoveComponent() + +### MainComponentHandler.sb) + +public virtual void CheckComponent(StringBuilder sb) + +### MainComponentHandler.serieIndex) + +public virtual void OnSerieDataUpdate(int serieIndex) + +### MainComponentHandler.Update() + +public virtual void Update() + +### MainComponentHandler.vh) + +public virtual void DrawBase(VertexHelper vh) + +### MainComponentHandler.vh) + +public virtual void DrawTop(VertexHelper vh) + +### MainComponentHandler.vh) + +public virtual void DrawUpper(VertexHelper vh) + +### MainComponentHandler.BeforceSerieUpdate + +public virtual void BeforceSerieUpdate() { } + +### MainComponentHandler.CheckComponent + +public virtual void CheckComponent(StringBuilder sb) { } + +### MainComponentHandler.DrawBase + +public virtual void DrawBase(VertexHelper vh) { } + +### MainComponentHandler.DrawTop + +public virtual void DrawTop(VertexHelper vh) { } + +### MainComponentHandler.DrawUpper + +public virtual void DrawUpper(VertexHelper vh) { } + +### MainComponentHandler.InitComponent + +public virtual void InitComponent() { } + +### MainComponentHandler.OnBeginDrag + +public virtual void OnBeginDrag(PointerEventData eventData) { } + +### MainComponentHandler.OnDrag + +public virtual void OnDrag(PointerEventData eventData) { } + +### MainComponentHandler.OnEndDrag + +public virtual void OnEndDrag(PointerEventData eventData) { } + +### MainComponentHandler.OnPointerClick + +public virtual void OnPointerClick(PointerEventData eventData) { } + +### MainComponentHandler.OnPointerDown + +public virtual void OnPointerDown(PointerEventData eventData) { } + +### MainComponentHandler.OnPointerEnter + +public virtual void OnPointerEnter(PointerEventData eventData) { } + +### MainComponentHandler.OnPointerExit + +public virtual void OnPointerExit(PointerEventData eventData) { } + +### MainComponentHandler.OnPointerUp + +public virtual void OnPointerUp(PointerEventData eventData) { } + +### MainComponentHandler.OnScroll + +public virtual void OnScroll(PointerEventData eventData) { } + +### MainComponentHandler.OnSerieDataUpdate + +public virtual void OnSerieDataUpdate(int serieIndex) { } + +### MainComponentHandler.RemoveComponent + +public virtual void RemoveComponent() { } + +### MainComponentHandler.Update + +public virtual void Update() { } ## MainComponentHandler<T> -> class in XCharts.Runtime / 继承自: [MainComponentHandler](#maincomponenthandler) +class in XCharts.Runtime / 继承自: [MainComponentHandler](#maincomponenthandler) +### MainComponentHandler<T>.component + +public T component ## MarkArea -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) 图表标域,常用于标记图表中某个范围的数据。 -|API|版本|描述| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()| +### MarkArea.runtimeLabel + +public ChartLabel runtimeLabel +图表标域,常用于标记图表中某个范围的数据。 + +### MarkArea.runtimeLabelPosition + +public Vector3 runtimeLabelPosition + +### MarkArea.runtimeRect + +public Rect runtimeRect + +### MarkArea.SetDefaultValue + +public override void SetDefaultValue() ## MarkAreaData -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 标域的数据。 +### MarkAreaData.runtimeValue + +public double runtimeValue +标域的数据。 + +## MarkAreaType + +class in XCharts.Runtime + +标域类型 + +可选: + +- `None`: 标域类型 +- `Min`: 最小值。 +- `Max`: 最大值。 +- `Average`: 平均值。 +- `Median`: 中位数。 + ## MarkLine -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) 图表标线。 -|API|版本|描述| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()| +### MarkLine.SetDefaultValue + +public override void SetDefaultValue() ## MarkLineData -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) > 从 `v3.9.0` 开始支持 图表标线的数据。 +### MarkLineData.runtimeCurrentEndPosition + +public Vector3 runtimeCurrentEndPosition + +### MarkLineData.runtimeEndPosition + +public Vector3 runtimeEndPosition + +### MarkLineData.runtimeInGrid + +public bool runtimeInGrid + +### MarkLineData.runtimeLabel + +public ChartLabel runtimeLabel + +### MarkLineData.runtimeStartPosition + +public Vector3 runtimeStartPosition + +### MarkLineData.runtimeValue + +public double runtimeValue + +## MarkLineType + +class in XCharts.Runtime + +标线类型 + +可选: + +- `None`: 标线类型 +- `Min`: 最小值。 +- `Max`: 最大值。 +- `Average`: 平均值。 +- `Median`: 中位数。 + ## MarqueeStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) > 从 `v3.5.0` 开始支持 Marquee style. It can be used for the DataZoom component. 选取框样式。可用于DataZoom组件。 -|API|版本|描述| -|--|--|--| -|onEnd||public Action<DataZoom> onEnd
自定义选取框结束选取时的回调。 | -|onGoing||public Action<DataZoom> onGoing
自定义选取框选取进行时的回调。 | -|onStart||public Action<DataZoom> onStart
自定义选取框开始选取时的回调。 | +### MarqueeStyle.apply + +public bool apply +选取框范围是否应用到DataZoom上。当为true时,框选结束后的范围即为DataZoom的选择范围。 + +### MarqueeStyle.areaStyle + +public AreaStyle areaStyle +选取框区域填充样式。 + +### MarqueeStyle.lineStyle + +public LineStyle lineStyle +选取框区域边框样式。 + +### MarqueeStyle.onEnd + +public Action<DataZoom> onEnd +自定义选取框结束选取时的回调。 + +### MarqueeStyle.onGoing + +public Action<DataZoom> onGoing +自定义选取框选取进行时的回调。 + +### MarqueeStyle.onStart + +public Action<DataZoom> onStart +自定义选取框开始选取时的回调。 + +### MarqueeStyle.realRect + +public bool realRect +是否选取实际框选区域。当为true时,以鼠标的其实点和结束点间的实际范围作为框选区域。 ## MathUtil -> class in XCharts.Runtime +class in XCharts.Runtime +### MathUtil.Abs -|API|版本|描述| -|--|--|--| -|Abs()||public static double Abs(double d)| -|Approximately()||public static bool Approximately(double a, double b)| -|Clamp()||public static double Clamp(double d, double min, double max)| -|Clamp01()||public static double Clamp01(double value)| -|GetPrecision()||public static int GetPrecision(double value)| -|IsInteger()||public static bool IsInteger(double value)| -|Lerp()||public static double Lerp(double a, double b, double t)| +public static double Abs(double d) + +### MathUtil.Approximately + +public static bool Approximately(double a, double b) + +### MathUtil.Clamp + +public static double Clamp(double d, double min, double max) + +### MathUtil.Clamp01 + +public static double Clamp01(double value) + +### MathUtil.GetPrecision + +public static int GetPrecision(double value) + +### MathUtil.IsInteger + +public static bool IsInteger(double value) + +### MathUtil.Lerp + +public static double Lerp(double a, double b, double t) ## MLValue -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) > 从 `v3.8.0` 开始支持 多样式数值。 -|API|版本|描述| -|--|--|--| -|GetValue()||public float GetValue(float total)
根据类型获取值。 | -|MLValue()||public MLValue(float value)| -|MLValue()||public MLValue(Type type, float value)| +### MLValue.type + +public Type type + +### MLValue.value + +public float value + +### MLValue.GetValue + +public float GetValue(float total) +根据类型获取值。 + +### MLValue.MLValue + +public MLValue(Type type, float value) + + +## MLValue.Type + +class in XCharts.Runtime + +数值类型。 + +可选: + +- `Percent`: 百分比形式。 +- `Absolute`: 绝对值形式。 +- `Extra`: 额外形式。 ## MonoBehaviour -> class in / 子类: [XLog](#xlog) - +class in / 子类: [XLog](#xlog) ## ObjectPool<T> where T -> class in XCharts.Runtime / 继承自: [new()](#new()) +class in XCharts.Runtime / 继承自: [new()](#new()) +### ObjectPool<T> where T.countActive -|API|版本|描述| -|--|--|--| -|ClearAll()||public void ClearAll()| -|Get()||public T Get()| -|new()||public class ObjectPool<T> where T : new()| -|ObjectPool()||public ObjectPool(UnityAction<T> actionOnGet, UnityAction<T> actionOnRelease, bool newIfEmpty = true)| -|Release()||public void Release(T element)| +public int countActive + +### ObjectPool<T> where T.countAll + +public int countAll + +### ObjectPool<T> where T.countInactive + +public int countInactive + +### ObjectPool<T> where T.ClearAll + +public void ClearAll() + +### ObjectPool<T> where T.Get + +public T Get() + +### ObjectPool<T> where T.new + +public class ObjectPool<T> where T : new() + +### ObjectPool<T> where T.ObjectPool + +public ObjectPool(UnityAction<T> actionOnGet, UnityAction<T> actionOnRelease, bool newIfEmpty = true) + +### ObjectPool<T> where T.Release + +public void Release(T element) + +## Orient + +class in XCharts.Runtime + +垂直还是水平布局方式。 + +可选: + +- `Horizonal`: 水平 +- `Vertical`: 垂直 ## Padding -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [TextPadding](#textpadding) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [TextPadding](#textpadding) 边距设置。 -|API|版本|描述| -|--|--|--| -|Padding()||public Padding() { }| -|Padding()||public Padding(float top, float right, float bottom, float left)| -|SetPadding()||public void SetPadding(float top, float right, float bottom, float left)| +### Padding.Padding() + +public Padding() + +### Padding.Padding + +public Padding(float top, float right, float bottom, float left) + + +### Padding.SetPadding + +public void SetPadding(float top, float right, float bottom, float left) ## Painter -> class in XCharts.Runtime / 继承自: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic) +class in XCharts.Runtime / 继承自: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic) +### Painter.index -|API|版本|描述| -|--|--|--| -|onPopulateMesh||public Action<VertexHelper, Painter> onPopulateMesh| -|CheckRefresh()||public void CheckRefresh()| -|Init()||public void Init()| -|Refresh()||public void Refresh()| -|SetActive()||public void SetActive(bool flag, bool isDebugMode = false)| +public int index + +### Painter.onPopulateMesh + +public Action<VertexHelper, Painter> onPopulateMesh + +### Painter.type + +public Type type + +### Painter.CheckRefresh + +public void CheckRefresh() + +### Painter.Init + +public void Init() + +### Painter.Refresh + +public void Refresh() + +### Painter.SetActive + +public void SetActive(bool flag, bool isDebugMode = false) + +## Painter.Type + +class in XCharts.Runtime + +可选: + +- `Base`: +- `Serie`: +- `Top`: ## Parallel -> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +### Parallel.containerIndex -|API|版本|描述| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| +public int containerIndex + +### Parallel.containterInstanceId + +public int containterInstanceId + +### Parallel.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## ParallelAxis -> class in XCharts.Runtime / 继承自: [Axis](#axis) +class in XCharts.Runtime / 继承自: [Axis](#axis) +### ParallelAxis.SetDefaultValue -|API|版本|描述| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()| +public override void SetDefaultValue() ## ParallelChart -> class in XCharts.Runtime / 继承自: [BaseChart](#basechart) +class in XCharts.Runtime / 继承自: [BaseChart](#basechart) 平行坐标系,通过绘制垂直于坐标轴的平行线来显示数据的一种可视化图表。 ## ParallelCoord -> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[IUpdateRuntimeData](#iupdateruntimedata),[ISerieContainer](#iseriecontainer) Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid. -|API|版本|描述| -|--|--|--| -|Contains()||public bool Contains(float x, float y)| -|Contains()||public bool Contains(Vector3 pos)| -|IsPointerEnter()||public bool IsPointerEnter()| -|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)| +### ParallelCoord.Contains + +public bool Contains(float x, float y) + + +### ParallelCoord.IsPointerEnter + +public bool IsPointerEnter() + +### ParallelCoord.UpdateRuntimeData + +public void UpdateRuntimeData(BaseChart chart) ## ParallelCoordContext -> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) - +class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) ## Pie -> class in XCharts.Runtime / 继承自: [Serie](#serie) +class in XCharts.Runtime / 继承自: [Serie](#serie) +### Pie.defaultColorBy -|API|版本|描述| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| -|ConvertSerie()||public static Pie ConvertSerie(Serie serie)| +public override SerieColorBy defaultColorBy + +### Pie.titleJustForSerie + +public override bool titleJustForSerie + +### Pie.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) + +### Pie.ConvertSerie + +public static Pie ConvertSerie(Serie serie) ## PieChart -> class in XCharts.Runtime / 继承自: [BaseChart](#basechart) +class in XCharts.Runtime / 继承自: [BaseChart](#basechart) 饼图主要用于显示不同类目占比的情况,通过弧长来反映数据的大小占比。 -|API|版本|描述| -|--|--|--| -|DefaultAreaRosePieChart()||public void DefaultAreaRosePieChart()
默认面积玫瑰饼图。 | -|DefaultDonutPieChart()||public void DefaultDonutPieChart()
默认甜甜圈饼图。 | -|DefaultLabelDonutPieChart()||public void DefaultLabelDonutPieChart()
默认带标签甜甜圈饼图。 | -|DefaultLabelPieChart()||public void DefaultLabelPieChart()
默认带标签饼图。 | -|DefaultRadiusRosePieChart()||public void DefaultRadiusRosePieChart()
默认玫瑰饼图。 | +### PieChart.DefaultAreaRosePieChart + +public void DefaultAreaRosePieChart() +默认面积玫瑰饼图。 + +### PieChart.DefaultDonutPieChart + +public void DefaultDonutPieChart() +默认甜甜圈饼图。 + +### PieChart.DefaultLabelDonutPieChart + +public void DefaultLabelDonutPieChart() +默认带标签甜甜圈饼图。 + +### PieChart.DefaultLabelPieChart + +public void DefaultLabelPieChart() +默认带标签饼图。 + +### PieChart.DefaultRadiusRosePieChart + +public void DefaultRadiusRosePieChart() +默认玫瑰饼图。 ## PolarAxisTheme -> class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) +### PolarAxisTheme.base(theme) -|API|版本|描述| -|--|--|--| -|PolarAxisTheme()||public PolarAxisTheme(ThemeType theme) : base(theme) { }| +public PolarAxisTheme(ThemeType theme) : base(theme) + +### PolarAxisTheme.PolarAxisTheme + +public PolarAxisTheme(ThemeType theme) : base(theme) { } ## PolarChart -> class in XCharts.Runtime / 继承自: [BaseChart](#basechart) +class in XCharts.Runtime / 继承自: [BaseChart](#basechart) 极坐标系,可以用于散点图和折线图。 -|API|版本|描述| -|--|--|--| -|DefaultHeatmapPolarChart()||public void DefaultHeatmapPolarChart()
默认极坐标色块图。 | -|DefaultRadialBarPolarChart()||public void DefaultRadialBarPolarChart()
默认径向柱状极坐标图。 | -|DefaultTangentialBarPolarChart()||public void DefaultTangentialBarPolarChart()
默认切向柱状极坐标图。 | +### PolarChart.DefaultHeatmapPolarChart + +public void DefaultHeatmapPolarChart() +默认极坐标色块图。 + +### PolarChart.DefaultRadialBarPolarChart + +public void DefaultRadialBarPolarChart() +默认径向柱状极坐标图。 + +### PolarChart.DefaultTangentialBarPolarChart + +public void DefaultTangentialBarPolarChart() +默认切向柱状极坐标图。 ## PolarCoord -> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[ISerieContainer](#iseriecontainer) 极坐标系组件。 极坐标系,可以用于散点图和折线图。每个极坐标系拥有一个角度轴和一个半径轴。 -|API|版本|描述| -|--|--|--| -|Contains()||public bool Contains(Vector3 pos)| -|IsPointerEnter()||public bool IsPointerEnter()| +### PolarCoord.Contains + +public bool Contains(Vector3 pos) + +### PolarCoord.IsPointerEnter + +public bool IsPointerEnter() ## PolarCoordContext -> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) - +class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) ## PropertyUtil -> class in XCharts.Runtime +class in XCharts.Runtime + +### PropertyUtil.SetClass<T> + +public static bool SetClass<T>(ref T currentValue, T newValue, bool notNull = false) where T : class + +### PropertyUtil.SetColor + +public static bool SetColor(ref Color32 currentValue, Color32 newValue) -|API|版本|描述| -|--|--|--| -|SetClass<T>()||public static bool SetClass<T>(ref T currentValue, T newValue, bool notNull = false) where T : class| -|SetColor()||public static bool SetColor(ref Color currentValue, Color newValue)| -|SetColor()||public static bool SetColor(ref Color32 currentValue, Color32 newValue)| -|SetStruct<T>()||public static bool SetStruct<T>(ref T currentValue, T newValue) where T : struct| +### PropertyUtil.SetStruct<T> + +public static bool SetStruct<T>(ref T currentValue, T newValue) where T : struct ## Radar -> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer) +### Radar.containerIndex -|API|版本|描述| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| +public int containerIndex + +### Radar.containterInstanceId + +public int containterInstanceId + +### Radar.defaultColorBy + +public override SerieColorBy defaultColorBy + +### Radar.multiDimensionLabel + +public override bool multiDimensionLabel + +### Radar.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## RadarAxisTheme -> class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) +### RadarAxisTheme.RadarAxisTheme -|API|版本|描述| -|--|--|--| -|RadarAxisTheme()||public RadarAxisTheme(ThemeType theme) : base(theme)| +public RadarAxisTheme(ThemeType theme) : base(theme) ## RadarChart -> class in XCharts.Runtime / 继承自: [BaseChart](#basechart) +class in XCharts.Runtime / 继承自: [BaseChart](#basechart) 雷达图主要用于显示多变量的数据,例如足球运动员的各项属性分析。依赖雷达组件。 -|API|版本|描述| -|--|--|--| -|DefaultCircleRadarChart()||public void DefaultCircleRadarChart()
默认圆形雷达图。 | +### RadarChart.DefaultCircleRadarChart + +public void DefaultCircleRadarChart() +默认圆形雷达图。 ## RadarCoord -> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[ISerieContainer](#iseriecontainer) Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适用于雷达图。 +## RadarCoord.PositionType + +class in XCharts.Runtime + +显示位置。 + +可选: + +- `Vertice`: 显示在顶点处。 +- `Between`: 显示在两者之间。 + +## RadarCoord.Shape + +class in XCharts.Runtime + +雷达图绘制类型,支持 'Polygon' 和 'Circle'。 + +可选: + +- `Polygon`: 雷达图绘制类型,支持 'Polygon' 和 'Circle'。 +- `Circle`: 雷达图绘制类型,支持 'Polygon' 和 'Circle'。 + ## RadarCoordContext -> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) +class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) +### RadarCoordContext.center + +public Vector3 center +雷达图在容器中的具体中心点。 + +### RadarCoordContext.dataRadius + +public float dataRadius + +### RadarCoordContext.isPointerEnter + +public bool isPointerEnter + +### RadarCoordContext.radius + +public float radius +雷达图的运行时实际半径。 + +## RadarType + +class in XCharts.Runtime + +雷达图类型。 + +可选: + +- `Multiple`: 多圈雷达图。此时可一个雷达里绘制多个圈,一个serieData就可组成一个圈(多维数据)。 +- `Single`: 单圈雷达图。此时一个雷达只能绘制一个圈,多个serieData组成一个圈,数据取自`data[1]`。 ## RadiusAxis -> class in XCharts.Runtime / 继承自: [Axis](#axis) +class in XCharts.Runtime / 继承自: [Axis](#axis) 极坐标系的径向轴。 -|API|版本|描述| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()
极坐标系的径向轴。 | +### RadiusAxis.SetDefaultValue + +public override void SetDefaultValue() +极坐标系的径向轴。 ## RadiusAxisTheme -> class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) +### RadiusAxisTheme.base(theme) -|API|版本|描述| -|--|--|--| -|RadiusAxisTheme()||public RadiusAxisTheme(ThemeType theme) : base(theme) { }| +public RadiusAxisTheme(ThemeType theme) : base(theme) + +### RadiusAxisTheme.RadiusAxisTheme + +public RadiusAxisTheme(ThemeType theme) : base(theme) { } ## ReflectionUtil -> class in XCharts.Runtime +class in XCharts.Runtime +### ReflectionUtil.DeepCloneSerializeField -|API|版本|描述| -|--|--|--| -|DeepCloneSerializeField()||public static object DeepCloneSerializeField(object obj)| -|InvokeListAdd()||public static void InvokeListAdd(object obj, FieldInfo field, object item)| -|InvokeListAddTo<T>()||public static void InvokeListAddTo<T>(object obj, FieldInfo field, Action<T> callback)| -|InvokeListClear()||public static void InvokeListClear(object obj, FieldInfo field)| -|InvokeListCount()||public static int InvokeListCount(object obj, FieldInfo field)| -|InvokeListGet<T>()||public static T InvokeListGet<T>(object obj, FieldInfo field, int i)| +public static object DeepCloneSerializeField(object obj) + +### ReflectionUtil.InvokeListAdd + +public static void InvokeListAdd(object obj, FieldInfo field, object item) + +### ReflectionUtil.InvokeListAddTo<T> + +public static void InvokeListAddTo<T>(object obj, FieldInfo field, Action<T> callback) + +### ReflectionUtil.InvokeListClear + +public static void InvokeListClear(object obj, FieldInfo field) + +### ReflectionUtil.InvokeListCount + +public static int InvokeListCount(object obj, FieldInfo field) + +### ReflectionUtil.InvokeListGet<T> + +public static T InvokeListGet<T>(object obj, FieldInfo field, int i) ## RequireChartComponentAttribute -> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### RequireChartComponentAttribute.RequireChartComponentAttribute + +public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2) + +public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2, Type requiredComponent3) -|API|版本|描述| -|--|--|--| -|RequireChartComponentAttribute()||public RequireChartComponentAttribute(Type requiredComponent)| -|RequireChartComponentAttribute()||public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2)| -|RequireChartComponentAttribute()||public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2, Type requiredComponent3)| ## Ring -> class in XCharts.Runtime / 继承自: [Serie](#serie) +class in XCharts.Runtime / 继承自: [Serie](#serie) +### Ring.defaultColorBy -|API|版本|描述| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| -|GetDataTotal()||public override double GetDataTotal(int dimension, SerieData serieData = null)| +public override SerieColorBy defaultColorBy + +### Ring.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) + +### Ring.GetDataTotal + +public override double GetDataTotal(int dimension, SerieData serieData = null) ## RingChart -> class in XCharts.Runtime / 继承自: [BaseChart](#basechart) +class in XCharts.Runtime / 继承自: [BaseChart](#basechart) 环形图主要用于显示每一项的比例以及各项之间的关系。 -|API|版本|描述| -|--|--|--| -|DefaultMultipleRingChart()||public void DefaultMultipleRingChart()
默认多圆环图。 | +### RingChart.DefaultMultipleRingChart + +public void DefaultMultipleRingChart() +默认多圆环图。 + +## RoseType + +class in XCharts.Runtime + +是否展示成南丁格尔图,通过半径区分数据大小。 + +可选: + +- `None`: 不展示成南丁格尔玫瑰图。 +- `Radius`: 扇区圆心角展现数据的百分比,半径展现数据的大小。 +- `Area`: 所有扇区圆心角相同,仅通过半径展现数据大小。 ## RuntimeUtil -> class in XCharts.Runtime +class in XCharts.Runtime + +### RuntimeUtil.GetAllAssemblyTypes + +public static IEnumerable<Type> GetAllAssemblyTypes() + +### RuntimeUtil.GetAllTypesDerivedFrom + +public static IEnumerable<Type> GetAllTypesDerivedFrom(Type type) + +### RuntimeUtil.GetAllTypesDerivedFrom<T> + +public static IEnumerable<Type> GetAllTypesDerivedFrom<T>() + +### RuntimeUtil.GetAttribute<T> + +public static T GetAttribute<T>(this MemberInfo type, bool check = true) where T : Attribute -|API|版本|描述| -|--|--|--| -|GetAllAssemblyTypes()||public static IEnumerable<Type> GetAllAssemblyTypes()| -|GetAllTypesDerivedFrom()||public static IEnumerable<Type> GetAllTypesDerivedFrom(Type type)| -|GetAllTypesDerivedFrom<T>()||public static IEnumerable<Type> GetAllTypesDerivedFrom<T>()| -|GetAttribute<T>()||public static T GetAttribute<T>(this MemberInfo type, bool check = true) where T : Attribute| -|GetAttribute<T>()||public static T GetAttribute<T>(this Type type, bool check = true) where T : Attribute| -|HasSubclass()||public static bool HasSubclass(Type type)| +### RuntimeUtil.HasSubclass + +public static bool HasSubclass(Type type) + +## SampleType + +class in XCharts.Runtime + +采样类型,一般用于折线图。 + +可选: + +- `Peak`: 取峰值。 +- `Average`: 取过滤点的平均值。 +- `Max`: 取过滤点的最大值。 +- `Min`: 取过滤点的最小值。 +- `Sum`: 取过滤点的和。 ## Scatter -> class in XCharts.Runtime / 继承自: [BaseScatter](#basescatter) +class in XCharts.Runtime / 继承自: [BaseScatter](#basescatter) +### Scatter.AddDefaultSerie -|API|版本|描述| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## ScatterChart -> class in XCharts.Runtime / 继承自: [BaseChart](#basechart) +class in XCharts.Runtime / 继承自: [BaseChart](#basechart) 散点图主要用于展现两个数据维度之间的关系。 -|API|版本|描述| -|--|--|--| -|DefaultBubbleChart()||public void DefaultBubbleChart()
默认气泡图。 | +### ScatterChart.DefaultBubbleChart + +public void DefaultBubbleChart() +默认气泡图。 ## SelectStyle -> class in XCharts.Runtime / 继承自: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [StateStyle](#statestyle),[ISerieComponent](#iseriecomponent),[ISerieDataComponent](#iseriedatacomponent) > 从 `v3.2.0` 开始支持 @@ -2470,887 +6409,2683 @@ Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适 ## Serie -> class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie),[IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=icomparable) / 子类: [SerieHandler<T>](#seriehandlert),[Bar](#bar),[SimplifiedBar](#simplifiedbar),[Candlestick](#candlestick),[SimplifiedCandlestick](#simplifiedcandlestick),[Heatmap](#heatmap),[Line](#line),[SimplifiedLine](#simplifiedline),[Parallel](#parallel),[Pie](#pie),[Radar](#radar),[Ring](#ring),[BaseScatter](#basescatter) +class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie),[IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=icomparable) / 子类: [SerieHandler<T>](#seriehandlert),[Bar](#bar),[SimplifiedBar](#simplifiedbar),[Candlestick](#candlestick),[SimplifiedCandlestick](#simplifiedcandlestick),[Heatmap](#heatmap),[Line](#line),[SimplifiedLine](#simplifiedline),[Parallel](#parallel),[Pie](#pie),[Radar](#radar),[Ring](#ring),[BaseScatter](#basescatter) 系列。系列一般由数据和配置组成,用来表示具体的图表图形,如折线图的一条折线,柱图的一组柱子等。一个图表中可以包含多个不同类型的系列。 -|API|版本|描述| -|--|--|--| -|onClick||public Action<SerieEventData> onClick
点击系列时的回调。 | -|onDown||public Action<SerieEventData> onDown
鼠标按下时的回调。 | -|onEnter||public Action<SerieEventData> onEnter
鼠标进入时的回调。 | -|onExit||public Action<SerieEventData> onExit
鼠标离开时的回调。 | -|AddChildData()||public SerieData AddChildData(SerieData parent, double value, string name, string id)| -|AddChildData()||public SerieData AddChildData(SerieData parent, List<double> value, string name, string id)| -|AddChildData()||public void AddChildData(SerieData parent, SerieData serieData)| -|AddData()||public SerieData AddData(double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null)
添加 (open, close, lowest, heighest) 数据 | -|AddData()||public SerieData AddData(List<double> valueList, string dataName = null, string dataId = null)
将一组数据添加到系列中。 如果数据只有一个,默认添加到维度Y中。 | -|AddData()||public SerieData AddData(params double[] values)
添加任意维数据到系列中。 | -|AddExtraComponent<T>()||public T AddExtraComponent<T>() where T : ChildComponent, ISerieComponent| -|AddLink()||public virtual SerieDataLink AddLink(string sourceId, string targetId, double value = 0)
添加一个关系图的关系数据。 | -|AddSerieData()||public virtual void AddSerieData(SerieData serieData)| -|AddXYData()||public SerieData AddXYData(double xValue, double yValue, string dataName = null, string dataId = null)
添加(x,y)数据到维度X和维度Y | -|AddYData()||public SerieData AddYData(double value, string dataName = null, string dataId = null)
添加一个数据到维度Y(此时维度X对应的数据是索引) | -|AnimationEnable()||public void AnimationEnable(bool flag)
启用或取消初始动画 | -|AnimationFadeIn()||public void AnimationFadeIn()
渐入动画 | -|AnimationFadeOut()||public void AnimationFadeOut()
渐出动画 | -|AnimationPause()||public void AnimationPause()
暂停动画 | -|AnimationReset()||public void AnimationReset()
重置动画 | -|AnimationRestart()||public void AnimationRestart()
重置动画 | -|AnimationResume()||public void AnimationResume()
继续动画 | -|CanAddComponent()||public bool CanAddComponent(Type type)| -|CanAddComponent<T>()||public bool CanAddComponent<T>() where T : ChildComponent, ISerieComponent| -|ClearComponentDirty()||public override void ClearComponentDirty()| -|ClearData()||public override void ClearData()
清空所有数据 | -|ClearDirty()||public override void ClearDirty()| -|ClearHighlight()||public void ClearHighlight()
清除所有数据的高亮标志 | -|ClearLinks()||public void ClearLinks()
清空所有Link数据 | -|ClearSerieNameDirty()||public void ClearSerieNameDirty()| -|ClearVerticesDirty()||public override void ClearVerticesDirty()| -|Clone()||public Serie Clone()| -|Clone<T>()||public T Clone<T>() where T : Serie| -|CompareTo()||public int CompareTo(object obj)| -|EnsureComponent()||public ISerieComponent EnsureComponent(Type type)| -|EnsureComponent<T>()||public T EnsureComponent<T>() where T : ChildComponent, ISerieComponent
确保系列有该组件。如果没有,则添加。 | -|GetBarWidth()||public float GetBarWidth(float categoryWidth, int barCount = 0, float defaultRate = 0.6f)| -|GetComponent()||public ISerieComponent GetComponent(Type type)| -|GetComponent<T>()||public T GetComponent<T>() where T : ChildComponent, ISerieComponent| -|GetData()||public double GetData(int index, int dimension, DataZoom dataZoom = null)
获得指定index指定维数的数据 | -|GetDataList()||public List<SerieData> GetDataList(DataZoom dataZoom = null)
获得系列的数据列表 | -|GetDataTotal()||public virtual double GetDataTotal(int dimension, SerieData serieData = null)| -|GetSerieData()||public SerieData GetSerieData(int index, DataZoom dataZoom = null)
获得指定索引的数据项 | -|GetSerieData()||public SerieData GetSerieData(SerieData parent, string id)| -|GetSerieData()||public SerieData GetSerieData(string id, DataZoom dataZoom = null)| -|GetXYData()||public void GetXYData(int index, DataZoom dataZoom, out double xValue, out double yVlaue)
获得指定索引的维度X和维度Y的数据 | -|GetYCurrData()||public double GetYCurrData(int index, DataZoom dataZoom = null)| -|GetYData()||public double GetYData(int index, DataZoom dataZoom = null)
获得维度Y索引对应的数据 | -|GetYData()||public void GetYData(int index, out double yData, out string dataName, DataZoom dataZoom = null)
获得维度Y索引对应的数据和数据名 | -|IsIgnoreIndex()||public bool IsIgnoreIndex(int index, int dimension = 1)| -|IsIgnorePoint()||public bool IsIgnorePoint(int index)| -|IsIgnoreValue()||public bool IsIgnoreValue(double value)| -|IsIgnoreValue()||public bool IsIgnoreValue(SerieData serieData, double value)| -|IsIgnoreValue()||public bool IsIgnoreValue(SerieData serieData, int dimension = 1)| -|IsLegendName()||public bool IsLegendName(string legendName)| -|IsMinShowLabelValue()||public bool IsMinShowLabelValue(double value)| -|IsMinShowLabelValue()||public bool IsMinShowLabelValue(int index, int dimension = 1)| -|IsMinShowLabelValue()||public bool IsMinShowLabelValue(SerieData serieData, int dimension = 1)| -|IsPerformanceMode()||public bool IsPerformanceMode()
是否为性能模式。性能模式下不绘制Symbol,不刷新Label,不单独设置数据项配置。 | -|IsSerie<T>()||public bool IsSerie<T>() where T : Serie| -|IsSerieDataLegendName()||public bool IsSerieDataLegendName(string legendName)| -|IsSerieLegendName()||public bool IsSerieLegendName(string legendName)| -|IsUseCoord<T>()||public bool IsUseCoord<T>() where T : CoordSystem| -|RemoveAllComponents()||public void RemoveAllComponents()
移除所有额外组件。 | -|RemoveComponent()||public void RemoveComponent(Type type)| -|RemoveComponent<T>()||public void RemoveComponent<T>() where T : ISerieComponent| -|RemoveData()||public void RemoveData(int index)
移除指定索引的数据 | -|ResetDataIndex()||public bool ResetDataIndex()
重置数据项索引。避免部分数据项的索引异常。 | -|ResetInteract()||public void ResetInteract()| -|SetAllDirty()||public override void SetAllDirty()| -|SetCoord<T>()||public bool SetCoord<T>() where T : CoordSystem| -|SetHighlight()||public void SetHighlight(int index, bool flag)
设置指定索引的数据为高亮状态 | -|SetVerticesDirty()||public override void SetVerticesDirty()| -|UpdateData()||public bool UpdateData(int index, int dimension, double value)
更新指定索引指定维数的数据 | -|UpdateData()||public bool UpdateData(int index, List<double> values)
更新指定索引的数据项数据列表 | -|UpdateDataName()||public bool UpdateDataName(int index, string name)| -|UpdateXYData()||public bool UpdateXYData(int index, double xValue, double yValue)
更新指定索引的维度X和维度Y的数据 | -|UpdateYData()||public bool UpdateYData(int index, double value)
更新指定索引的维度Y数据 | +### Serie.areaStyle + +public AreaStyle areaStyle +区域填充样式。 + +### Serie.blurStyle + +public BlurStyle blurStyle +淡出状态的样式。 + +### Serie.colorByData + +public bool colorByData +取色策略是否为按数据项分配。 + +### Serie.data + +public List<SerieData> data +系列中的数据内容数组。SerieData可以设置1到n维数据。 + +### Serie.dataCount + +public int dataCount +数据项个数。 + +### Serie.dataDirty + +public bool dataDirty + +### Serie.emphasisStyle + +public EmphasisStyle emphasisStyle +高亮状态的样式。 + +### Serie.endLabel + +public LabelStyle endLabel + +### Serie.highlight + +public bool highlight +该系列是否高亮,一般由图例悬停触发。 + +### Serie.index + +public int index +系列索引。 + +### Serie.interactDirty + +public bool interactDirty + +### Serie.label + +public LabelStyle label +图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。 + +### Serie.labelDirty + +public bool labelDirty + +### Serie.labelLine + +public LabelLine labelLine +标签上的视觉引导线。 + +### Serie.legendName + +public string legendName +图例名称。当系列名称不为空时,图例名称即为系列名称;反之则为索引index。 + +### Serie.lineArrow + +public LineArrow lineArrow +折线图的箭头。 + +### Serie.links + +public List<SerieDataLink> links +数据节点的边。 + +### Serie.nameDirty + +public bool nameDirty + +### Serie.onClick + +public Action<SerieEventData> onClick +点击系列时的回调。 + +### Serie.onDown + +public Action<SerieEventData> onDown +鼠标按下时的回调。 + +### Serie.onEnter + +public Action<SerieEventData> onEnter +鼠标进入时的回调。 + +### Serie.onExit + +public Action<SerieEventData> onExit +鼠标离开时的回调。 + +### Serie.selectStyle + +public SelectStyle selectStyle +选中状态的样式。 + +### Serie.showDataDimension + +public int showDataDimension +数据项里的数据维数。 + +### Serie.showDataName + +public bool showDataName +在Editor的inpsector上是否显示name参数 + +### Serie.titleDirty + +public bool titleDirty + +### Serie.titleStyle + +public TitleStyle titleStyle +数据项标题样式。 + +### Serie.AddChildData + +public SerieData AddChildData(SerieData parent, List<double> value, string name, string id) + +public void AddChildData(SerieData parent, SerieData serieData) + + +### Serie.AddData + +public SerieData AddData(List<double> valueList, string dataName = null, string dataId = null) +将一组数据添加到系列中。 如果数据只有一个,默认添加到维度Y中。 + +public SerieData AddData(params double[] values) +添加任意维数据到系列中。 + + +### Serie.AddExtraComponent<T> + +public T AddExtraComponent<T>() where T : ChildComponent, ISerieComponent + +### Serie.AddLink + +public virtual SerieDataLink AddLink(string sourceId, string targetId, double value = 0) +添加一个关系图的关系数据。 + +### Serie.AddSerieData + +public virtual void AddSerieData(SerieData serieData) + +### Serie.AddXYData + +public SerieData AddXYData(double xValue, double yValue, string dataName = null, string dataId = null) +添加(x,y)数据到维度X和维度Y + +### Serie.AddYData + +public SerieData AddYData(double value, string dataName = null, string dataId = null) +添加一个数据到维度Y(此时维度X对应的数据是索引) + +### Serie.AnimationEnable + +public void AnimationEnable(bool flag) +启用或取消初始动画 + +### Serie.AnimationFadeIn + +public void AnimationFadeIn() +渐入动画 + +### Serie.AnimationFadeOut + +public void AnimationFadeOut() +渐出动画 + +### Serie.AnimationPause + +public void AnimationPause() +暂停动画 + +### Serie.AnimationReset + +public void AnimationReset() +重置动画 + +### Serie.AnimationRestart + +public void AnimationRestart() +重置动画 + +### Serie.AnimationResume + +public void AnimationResume() +继续动画 + +### Serie.CanAddComponent + +public bool CanAddComponent(Type type) + +### Serie.CanAddComponent<T> + +public bool CanAddComponent<T>() where T : ChildComponent, ISerieComponent + +### Serie.ClearComponentDirty + +public override void ClearComponentDirty() + +### Serie.ClearData + +public override void ClearData() +清空所有数据 + +### Serie.ClearDirty + +public override void ClearDirty() + +### Serie.ClearHighlight + +public void ClearHighlight() +清除所有数据的高亮标志 + +### Serie.ClearLinks + +public void ClearLinks() +清空所有Link数据 + +### Serie.ClearSerieNameDirty + +public void ClearSerieNameDirty() + +### Serie.ClearVerticesDirty + +public override void ClearVerticesDirty() + +### Serie.Clone + +public Serie Clone() + +### Serie.Clone<T> + +public T Clone<T>() where T : Serie + +### Serie.CompareTo + +public int CompareTo(object obj) + +### Serie.EnsureComponent + +public ISerieComponent EnsureComponent(Type type) + +### Serie.EnsureComponent<T> + +public T EnsureComponent<T>() where T : ChildComponent, ISerieComponent +确保系列有该组件。如果没有,则添加。 + +### Serie.GetBarWidth + +public float GetBarWidth(float categoryWidth, int barCount = 0, float defaultRate = 0.6f) + +### Serie.GetComponent + +public ISerieComponent GetComponent(Type type) + +### Serie.GetComponent<T> + +public T GetComponent<T>() where T : ChildComponent, ISerieComponent + +### Serie.GetData + +public double GetData(int index, int dimension, DataZoom dataZoom = null) +获得指定index指定维数的数据 + +### Serie.GetDataList + +public List<SerieData> GetDataList(DataZoom dataZoom = null) +获得系列的数据列表 + +### Serie.GetDataTotal + +public virtual double GetDataTotal(int dimension, SerieData serieData = null) + +### Serie.GetSerieData + +public SerieData GetSerieData(SerieData parent, string id) + +public SerieData GetSerieData(string id, DataZoom dataZoom = null) + + +### Serie.GetXYData + +public void GetXYData(int index, DataZoom dataZoom, out double xValue, out double yVlaue) +获得指定索引的维度X和维度Y的数据 + +### Serie.GetYCurrData + +public double GetYCurrData(int index, DataZoom dataZoom = null) + +### Serie.GetYData + +public void GetYData(int index, out double yData, out string dataName, DataZoom dataZoom = null) +获得维度Y索引对应的数据和数据名 + + +### Serie.IsIgnoreIndex + +public bool IsIgnoreIndex(int index, int dimension = 1) + +### Serie.IsIgnorePoint + +public bool IsIgnorePoint(int index) + +### Serie.IsIgnoreValue + +public bool IsIgnoreValue(double value) + +public bool IsIgnoreValue(SerieData serieData, double value) + + +### Serie.IsLegendName + +public bool IsLegendName(string legendName) + +### Serie.IsMinShowLabelValue + +public bool IsMinShowLabelValue(double value) + +public bool IsMinShowLabelValue(SerieData serieData, int dimension = 1) + + +### Serie.IsPerformanceMode + +public bool IsPerformanceMode() +是否为性能模式。性能模式下不绘制Symbol,不刷新Label,不单独设置数据项配置。 + +### Serie.IsSerie<T> + +public bool IsSerie<T>() where T : Serie + +### Serie.IsSerieDataLegendName + +public bool IsSerieDataLegendName(string legendName) + +### Serie.IsSerieLegendName + +public bool IsSerieLegendName(string legendName) + +### Serie.IsUseCoord<T> + +public bool IsUseCoord<T>() where T : CoordSystem + +### Serie.RemoveAllComponents + +public void RemoveAllComponents() +移除所有额外组件。 + +### Serie.RemoveComponent + +public void RemoveComponent(Type type) + +### Serie.RemoveComponent<T> + +public void RemoveComponent<T>() where T : ISerieComponent + +### Serie.RemoveData + +public void RemoveData(int index) +移除指定索引的数据 + +### Serie.ResetDataIndex + +public bool ResetDataIndex() +重置数据项索引。避免部分数据项的索引异常。 + +### Serie.ResetInteract + +public void ResetInteract() + +### Serie.SetAllDirty + +public override void SetAllDirty() + +### Serie.SetCoord<T> + +public bool SetCoord<T>() where T : CoordSystem + +### Serie.SetHighlight + +public void SetHighlight(int index, bool flag) +设置指定索引的数据为高亮状态 + +### Serie.SetVerticesDirty + +public override void SetVerticesDirty() + +### Serie.UpdateData + +public bool UpdateData(int index, List<double> values) +更新指定索引的数据项数据列表 + + +### Serie.UpdateDataName + +public bool UpdateDataName(int index, string name) + +### Serie.UpdateXYData + +public bool UpdateXYData(int index, double xValue, double yValue) +更新指定索引的维度X和维度Y的数据 + +### Serie.UpdateYData + +public bool UpdateYData(int index, double value) +更新指定索引的维度Y数据 + +## SerieColorBy + +class in XCharts.Runtime + +从主题中取色策略。 + +可选: + +- `Default`: 默认策略。每种Serie都有自己的默认的取颜色策略。比如Line默认是Series策略,Pie默认是Data策略。 +- `Serie`: 按照系列分配调色盘中的颜色,同一系列中的所有数据都是用相同的颜色。 +- `Data`: 按照数据项分配调色盘中的颜色,每个数据项都使用不同的颜色。 ## SerieComponentAttribute -> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) 可添加到Serie的组件。 -|API|版本|描述| -|--|--|--| -|Contains()||public bool Contains(Type type)| -|Contains<T>()||public bool Contains<T>() where T : ISerieComponent| -|SerieComponentAttribute()||public SerieComponentAttribute()| -|SerieComponentAttribute()||public SerieComponentAttribute(Type type1)| -|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2)| -|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2, Type type3)| -|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4)| -|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5)| -|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6)| -|SerieComponentAttribute()||public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7)| +### SerieComponentAttribute.Contains + +public bool Contains(Type type) + +### SerieComponentAttribute.Contains<T> + +public bool Contains<T>() where T : ISerieComponent + +### SerieComponentAttribute.SerieComponentAttribute + +public SerieComponentAttribute(Type type1) + +public SerieComponentAttribute(Type type1, Type type2) + +public SerieComponentAttribute(Type type1, Type type2, Type type3) + +public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4) + +public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5) + +public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6) + +public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7) + ## SerieContext -> class in XCharts.Runtime +class in XCharts.Runtime +### SerieContext.titleObject + +public ChartLabel titleObject +绘制点 ## SerieConvertAttribute -> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) 可转化为哪些Serie类型。 -|API|版本|描述| -|--|--|--| -|Contains()||public bool Contains(Type type)| -|Contains<T>()||public bool Contains<T>() where T : Serie| -|SerieConvertAttribute()||public SerieConvertAttribute(Type serie)| -|SerieConvertAttribute()||public SerieConvertAttribute(Type serie, Type serie2)| -|SerieConvertAttribute()||public SerieConvertAttribute(Type serie, Type serie2, Type serie3)| -|SerieConvertAttribute()||public SerieConvertAttribute(Type serie, Type serie2, Type serie3, Type serie4)| +### SerieConvertAttribute.Contains + +public bool Contains(Type type) + +### SerieConvertAttribute.Contains<T> + +public bool Contains<T>() where T : Serie + +### SerieConvertAttribute.SerieConvertAttribute + +public SerieConvertAttribute(Type serie, Type serie2) + +public SerieConvertAttribute(Type serie, Type serie2, Type serie3) + +public SerieConvertAttribute(Type serie, Type serie2, Type serie3, Type serie4) + ## SerieData -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 系列中的一个数据项。可存储数据名和1-n维个数据。 -|API|版本|描述| -|--|--|--| -|ClearComponentDirty()||public override void ClearComponentDirty()| -|ClearVerticesDirty()||public override void ClearVerticesDirty()| -|EnsureComponent()|v3.6.0|public ISerieDataComponent EnsureComponent(Type type)
确保数据项有指定类型的组件,如果没有则添加。 | -|EnsureComponent<T>()|v3.6.0|public T EnsureComponent<T>() where T : ChildComponent, ISerieDataComponent
确保数据项有指定类型的组件,如果没有则添加。 | -|GetAddAnimationData()||public double GetAddAnimationData(double min, double max, float animationDuration = 500f, bool unscaledTime = false)| -|GetComponent<T>()||public T GetComponent<T>() where T : ChildComponent, ISerieDataComponent
获取数据项的指定类型的组件,如果不存在则返回null。 | -|GetCurrData()||public double GetCurrData(int index, AnimationStyle animation, bool inverse = false, bool loop = false)| -|GetCurrData()||public double GetCurrData(int index, AnimationStyle animation, bool inverse, double min, double max, bool loop = false)| -|GetCurrData()||public double GetCurrData(int index, float dataAddDuration = 500f, float animationDuration = 500f, bool unscaledTime = false, bool inverse = false)| -|GetCurrData()||public double GetCurrData(int index, float dataAddDuration, float animationDuration, bool inverse, double min, double max, bool unscaledTime, bool loop = false)| -|GetData()||public double GetData(int index, bool inverse = false)| -|GetData()||public double GetData(int index, double min, double max)| -|GetFirstData()||public double GetFirstData(bool unscaledTime, float animationDuration = 500f)| -|GetLabelHeight()||public float GetLabelHeight()| -|GetLabelWidth()||public float GetLabelWidth()| -|GetLastData()||public double GetLastData()| -|GetMaxData()||public double GetMaxData(bool inverse = false)
最大值。 | -|GetMinData()||public double GetMinData(bool inverse = false)
最小值。 | -|GetMinMaxData()||public void GetMinMaxData(int startDimensionIndex, bool inverse, out double min, out double max)| -|GetOrAddComponent<T>()||public T GetOrAddComponent<T>() where T : ChildComponent, ISerieDataComponent| -|GetPreviousData()||public double GetPreviousData(int index, bool inverse = false)| -|GetTotalData()||public double GetTotalData()| -|IsDataChanged()||public bool IsDataChanged()| -|IsInPolygon()||public bool IsInPolygon(Vector2 p)| -|List<string>()||public static List<string> extraFieldList = new List<string>()
系列中的一个数据项。可存储数据名和1-n维个数据。 | -|OnAdd()||public void OnAdd(AnimationStyle animation, double startValue = 0)| -|RemoveAllComponent()||public void RemoveAllComponent()| -|RemoveComponent()||public void RemoveComponent(Type type)| -|RemoveComponent<T>()||public void RemoveComponent<T>() where T : ISerieDataComponent| -|Reset()||public void Reset()| -|SetIconActive()||public void SetIconActive(bool flag)| -|SetLabelActive()||public void SetLabelActive(bool flag)| -|SetPolygon()||public void SetPolygon(params Vector2[] points)| -|SetPolygon()||public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4)| -|SetPolygon()||public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p5)| -|UpdateData()||public bool UpdateData(int dimension, double value)| -|UpdateData()||public bool UpdateData(int dimension, double value, bool updateAnimation, bool unscaledTime, float animationDuration = 500f)| +### SerieData.areaStyle + +public AreaStyle areaStyle + +### SerieData.blurStyle + +public BlurStyle blurStyle +淡出状态的样式。 + +### SerieData.data + +public List<double> data +可指定任意维数的数值列表。 + +### SerieData.emphasisStyle + +public EmphasisStyle emphasisStyle +高亮状态的样式 + +### SerieData.id + +public string id +数据项的唯一id。唯一id不是必须设置的。 + +### SerieData.index + +public override int index +数据项索引。 + +### SerieData.itemStyle + +public ItemStyle itemStyle +单个数据项的样式设置。 + +### SerieData.labelLine + +public LabelLine labelLine + +### SerieData.labelObject + +public ChartLabel labelObject + +### SerieData.labelStyle + +public LabelStyle labelStyle +单个数据项的标签设置。 + +### SerieData.legendName + +public string legendName +数据项图例名称。当数据项名称不为空时,图例名称即为系列名称;反之则为索引index。 + +### SerieData.lineStyle + +public LineStyle lineStyle + +### SerieData.name + +public string name +数据项名称。 + +### SerieData.parentId + +public string parentId +父节点id。父节点id不是必须设置的。 + +### SerieData.radius + +public float radius +自定义半径。可用在饼图中自定义某个数据项的半径。 + +### SerieData.selected + +public bool selected +该数据项是否被选中。 + +### SerieData.selectStyle + +public SelectStyle selectStyle +选中状态的样式。 + +### SerieData.show + +public bool show +该数据项是否要显示。 + +### SerieData.state + +public SerieState state +数据项的默认状态。 + +### SerieData.symbol + +public SerieSymbol symbol +单个数据项的标记设置。 + +### SerieData.titleObject + +public ChartLabel titleObject + +### SerieData.titleStyle + +public TitleStyle titleStyle + +### SerieData.ClearComponentDirty + +public override void ClearComponentDirty() + +### SerieData.ClearVerticesDirty + +public override void ClearVerticesDirty() + +### SerieData.EnsureComponent + +public ISerieDataComponent EnsureComponent(Type type) + +> 从 `v3.6.0` 开始支持 + +确保数据项有指定类型的组件,如果没有则添加。 + +### SerieData.EnsureComponent<T> + +public T EnsureComponent<T>() where T : ChildComponent, ISerieDataComponent + +> 从 `v3.6.0` 开始支持 + +确保数据项有指定类型的组件,如果没有则添加。 + +### SerieData.GetAddAnimationData + +public double GetAddAnimationData(double min, double max, float animationDuration = 500f, bool unscaledTime = false) + +### SerieData.GetComponent<T> + +public T GetComponent<T>() where T : ChildComponent, ISerieDataComponent +获取数据项的指定类型的组件,如果不存在则返回null。 + +### SerieData.GetCurrData + +public double GetCurrData(int index, AnimationStyle animation, bool inverse, double min, double max, bool loop = false) + +public double GetCurrData(int index, float dataAddDuration = 500f, float animationDuration = 500f, bool unscaledTime = false, bool inverse = false) + +public double GetCurrData(int index, float dataAddDuration, float animationDuration, bool inverse, double min, double max, bool unscaledTime, bool loop = false) + + +### SerieData.GetData + +public double GetData(int index, double min, double max) + + +### SerieData.GetFirstData + +public double GetFirstData(bool unscaledTime, float animationDuration = 500f) + +### SerieData.GetLabelHeight + +public float GetLabelHeight() + +### SerieData.GetLabelWidth + +public float GetLabelWidth() + +### SerieData.GetLastData + +public double GetLastData() + +### SerieData.GetMaxData + +public double GetMaxData(bool inverse = false) +最大值。 + +### SerieData.GetMinData + +public double GetMinData(bool inverse = false) +最小值。 + +### SerieData.GetMinMaxData + +public void GetMinMaxData(int startDimensionIndex, bool inverse, out double min, out double max) + +### SerieData.GetOrAddComponent<T> + +public T GetOrAddComponent<T>() where T : ChildComponent, ISerieDataComponent + +### SerieData.GetPreviousData + +public double GetPreviousData(int index, bool inverse = false) + +### SerieData.GetTotalData + +public double GetTotalData() + +### SerieData.IsDataChanged + +public bool IsDataChanged() + +### SerieData.IsInPolygon + +public bool IsInPolygon(Vector2 p) + +### SerieData.List<string> + +public static List<string> extraFieldList = new List<string>() +系列中的一个数据项。可存储数据名和1-n维个数据。 + +### SerieData.OnAdd + +public void OnAdd(AnimationStyle animation, double startValue = 0) + +### SerieData.RemoveAllComponent + +public void RemoveAllComponent() + +### SerieData.RemoveComponent + +public void RemoveComponent(Type type) + +### SerieData.RemoveComponent<T> + +public void RemoveComponent<T>() where T : ISerieDataComponent + +### SerieData.Reset + +public void Reset() + +### SerieData.SetIconActive + +public void SetIconActive(bool flag) + +### SerieData.SetLabelActive + +public void SetLabelActive(bool flag) + +### SerieData.SetPolygon + +public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) + +public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p5) + + +### SerieData.UpdateData + +public bool UpdateData(int dimension, double value) + ## SerieDataComponentAttribute -> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) 可添加到SerieData的组件。 -|API|版本|描述| -|--|--|--| -|Contains()||public bool Contains(Type type)| -|Contains<T>()||public bool Contains<T>() where T : ISerieComponent| -|SerieDataComponentAttribute()||public SerieDataComponentAttribute()| -|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1)| -|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2)| -|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2, Type type3)| -|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4)| -|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5)| -|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6)| -|SerieDataComponentAttribute()||public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7)| +### SerieDataComponentAttribute.Contains + +public bool Contains(Type type) + +### SerieDataComponentAttribute.Contains<T> + +public bool Contains<T>() where T : ISerieComponent + +### SerieDataComponentAttribute.SerieDataComponentAttribute + +public SerieDataComponentAttribute(Type type1) + +public SerieDataComponentAttribute(Type type1, Type type2) + +public SerieDataComponentAttribute(Type type1, Type type2, Type type3) + +public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4) + +public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5) + +public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6) + +public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7) + ## SerieDataContext -> class in XCharts.Runtime +class in XCharts.Runtime +### SerieDataContext.Reset -|API|版本|描述| -|--|--|--| -|Reset()||public void Reset()| +public void Reset() ## SerieDataExtraFieldAttribute -> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### SerieDataExtraFieldAttribute.Contains + +public bool Contains(string field) + +### SerieDataExtraFieldAttribute.SerieDataExtraFieldAttribute + +public SerieDataExtraFieldAttribute(string field1) + +public SerieDataExtraFieldAttribute(string field1, string field2) + +public SerieDataExtraFieldAttribute(string field1, string field2, string field3) + +public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4) + +public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5) + +public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6) + +public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6, string field7) -|API|版本|描述| -|--|--|--| -|Contains()||public bool Contains(string field)| -|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute()| -|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1)| -|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2)| -|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2, string field3)| -|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4)| -|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5)| -|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6)| -|SerieDataExtraFieldAttribute()||public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6, string field7)| ## SerieDataLink -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) > 从 `v3.10.0` 开始支持 数据节点之间的连线。可用于桑基图等,桑基图只支持有向无环图,请保证数据的连线是有向无环图。 +## SerieDataSortType + +class in XCharts.Runtime + +数据排序方式。 + +可选: + +- `None`: 按数据的顺序。 +- `Ascending`: 升序。 +- `Descending`: 降序。 + ## SerieEventData -> class in XCharts.Runtime +class in XCharts.Runtime serie事件的数据。 -|API|版本|描述| -|--|--|--| -|Reset()||public void Reset()| +### SerieEventData.dataIndex + +public int dataIndex +在serie.data中的索引。 + +### SerieEventData.dimension + +public int dimension +数据的维度。 + +### SerieEventData.pointerPos + +public Vector3 pointerPos +鼠标在chart中的位置。 + +### SerieEventData.serieIndex + +public int serieIndex +在chart.series中的索引。 + +### SerieEventData.value + +public double value +数据的值。 + +### SerieEventData.Reset + +public void Reset() ## SerieEventDataPool -> class in XCharts.Runtime +class in XCharts.Runtime +### SerieEventDataPool.Get -|API|版本|描述| -|--|--|--| -|Get()||public static SerieEventData Get(Vector3 pos, int serieIndex, int dataIndex, int dimension, double value)| -|Release()||public static void Release(SerieEventData toRelease)| +public static SerieEventData Get(Vector3 pos, int serieIndex, int dataIndex, int dimension, double value) + +### SerieEventDataPool.Release + +public static void Release(SerieEventData toRelease) ## SerieHandler -> class in XCharts.Runtime +class in XCharts.Runtime +### SerieHandler.AfterUpdate() -|API|版本|描述| -|--|--|--| -|AfterUpdate()||public virtual void AfterUpdate() { }| -|BeforeUpdate()||public virtual void BeforeUpdate() { }| -|CheckComponent()||public virtual void CheckComponent(StringBuilder sb) { }| -|DrawBase()||public virtual void DrawBase(VertexHelper vh) { }| -|DrawSerie()||public virtual void DrawSerie(VertexHelper vh) { }| -|DrawTop()||public virtual void DrawTop(VertexHelper vh) { }| -|DrawUpper()||public virtual void DrawUpper(VertexHelper vh) { }| -|ForceUpdateSerieContext()||public virtual void ForceUpdateSerieContext() { }| -|InitComponent()||public virtual void InitComponent() { }| -|OnBeginDrag()||public virtual void OnBeginDrag(PointerEventData eventData) { }| -|OnDataUpdate()||public virtual void OnDataUpdate() { }| -|OnDrag()||public virtual void OnDrag(PointerEventData eventData) { }| -|OnEndDrag()||public virtual void OnEndDrag(PointerEventData eventData) { }| -|OnLegendButtonClick()||public virtual void OnLegendButtonClick(int index, string legendName, bool show) { }| -|OnLegendButtonEnter()||public virtual void OnLegendButtonEnter(int index, string legendName) { }| -|OnLegendButtonExit()||public virtual void OnLegendButtonExit(int index, string legendName) { }| -|OnPointerClick()||public virtual void OnPointerClick(PointerEventData eventData) { }| -|OnPointerDown()||public virtual void OnPointerDown(PointerEventData eventData) { }| -|OnPointerEnter()||public virtual void OnPointerEnter(PointerEventData eventData) { }| -|OnPointerExit()||public virtual void OnPointerExit(PointerEventData eventData) { }| -|OnPointerUp()||public virtual void OnPointerUp(PointerEventData eventData) { }| -|OnScroll()||public virtual void OnScroll(PointerEventData eventData) { }| -|RefreshLabelInternal()||public virtual void RefreshLabelInternal() { }| -|RefreshLabelNextFrame()||public virtual void RefreshLabelNextFrame() { }| -|RemoveComponent()||public virtual void RemoveComponent() { }| -|Update()||public virtual void Update() { }| -|UpdateSerieContext()||public virtual void UpdateSerieContext() { }| +public virtual void AfterUpdate() + +### SerieHandler.attribute + +public SerieHandlerAttribute attribute + +### SerieHandler.BeforeUpdate() + +public virtual void BeforeUpdate() + +### SerieHandler.chart + +public BaseChart chart + +### SerieHandler.defaultDimension + +public virtual int defaultDimension + +### SerieHandler.eventData) + +public virtual void OnBeginDrag(PointerEventData eventData) + +### SerieHandler.eventData) + +public virtual void OnDrag(PointerEventData eventData) + +### SerieHandler.eventData) + +public virtual void OnEndDrag(PointerEventData eventData) + +### SerieHandler.eventData) + +public virtual void OnPointerClick(PointerEventData eventData) + +### SerieHandler.eventData) + +public virtual void OnPointerDown(PointerEventData eventData) + +### SerieHandler.eventData) + +public virtual void OnPointerEnter(PointerEventData eventData) + +### SerieHandler.eventData) + +public virtual void OnPointerExit(PointerEventData eventData) + +### SerieHandler.eventData) + +public virtual void OnPointerUp(PointerEventData eventData) + +### SerieHandler.eventData) + +public virtual void OnScroll(PointerEventData eventData) + +### SerieHandler.ForceUpdateSerieContext() + +public virtual void ForceUpdateSerieContext() + +### SerieHandler.GetPointerItemDataDimension() + +public virtual int GetPointerItemDataDimension() + +### SerieHandler.GetPointerItemDataIndex() + +public virtual int GetPointerItemDataIndex() + +### SerieHandler.InitComponent() + +public virtual void InitComponent() + +### SerieHandler.inited + +public bool inited + +### SerieHandler.legendName) + +public virtual void OnLegendButtonEnter(int index, string legendName) + +### SerieHandler.legendName) + +public virtual void OnLegendButtonExit(int index, string legendName) + +### SerieHandler.OnDataUpdate() + +public virtual void OnDataUpdate() + +### SerieHandler.RefreshLabelInternal() + +public virtual void RefreshLabelInternal() + +### SerieHandler.RefreshLabelNextFrame() + +public virtual void RefreshLabelNextFrame() + +### SerieHandler.RemoveComponent() + +public virtual void RemoveComponent() + +### SerieHandler.sb) + +public virtual void CheckComponent(StringBuilder sb) + +### SerieHandler.show) + +public virtual void OnLegendButtonClick(int index, string legendName, bool show) + +### SerieHandler.Update() + +public virtual void Update() + +### SerieHandler.UpdateSerieContext() + +public virtual void UpdateSerieContext() + +### SerieHandler.vh) + +public virtual void DrawBase(VertexHelper vh) + +### SerieHandler.vh) + +public virtual void DrawSerie(VertexHelper vh) + +### SerieHandler.vh) + +public virtual void DrawTop(VertexHelper vh) + +### SerieHandler.vh) + +public virtual void DrawUpper(VertexHelper vh) + +### SerieHandler.AfterUpdate + +public virtual void AfterUpdate() { } + +### SerieHandler.BeforeUpdate + +public virtual void BeforeUpdate() { } + +### SerieHandler.CheckComponent + +public virtual void CheckComponent(StringBuilder sb) { } + +### SerieHandler.DrawBase + +public virtual void DrawBase(VertexHelper vh) { } + +### SerieHandler.DrawSerie + +public virtual void DrawSerie(VertexHelper vh) { } + +### SerieHandler.DrawTop + +public virtual void DrawTop(VertexHelper vh) { } + +### SerieHandler.DrawUpper + +public virtual void DrawUpper(VertexHelper vh) { } + +### SerieHandler.ForceUpdateSerieContext + +public virtual void ForceUpdateSerieContext() { } + +### SerieHandler.InitComponent + +public virtual void InitComponent() { } + +### SerieHandler.OnBeginDrag + +public virtual void OnBeginDrag(PointerEventData eventData) { } + +### SerieHandler.OnDataUpdate + +public virtual void OnDataUpdate() { } + +### SerieHandler.OnDrag + +public virtual void OnDrag(PointerEventData eventData) { } + +### SerieHandler.OnEndDrag + +public virtual void OnEndDrag(PointerEventData eventData) { } + +### SerieHandler.OnLegendButtonClick + +public virtual void OnLegendButtonClick(int index, string legendName, bool show) { } + +### SerieHandler.OnLegendButtonEnter + +public virtual void OnLegendButtonEnter(int index, string legendName) { } + +### SerieHandler.OnLegendButtonExit + +public virtual void OnLegendButtonExit(int index, string legendName) { } + +### SerieHandler.OnPointerClick + +public virtual void OnPointerClick(PointerEventData eventData) { } + +### SerieHandler.OnPointerDown + +public virtual void OnPointerDown(PointerEventData eventData) { } + +### SerieHandler.OnPointerEnter + +public virtual void OnPointerEnter(PointerEventData eventData) { } + +### SerieHandler.OnPointerExit + +public virtual void OnPointerExit(PointerEventData eventData) { } + +### SerieHandler.OnPointerUp + +public virtual void OnPointerUp(PointerEventData eventData) { } + +### SerieHandler.OnScroll + +public virtual void OnScroll(PointerEventData eventData) { } + +### SerieHandler.RefreshLabelInternal + +public virtual void RefreshLabelInternal() { } + +### SerieHandler.RefreshLabelNextFrame + +public virtual void RefreshLabelNextFrame() { } + +### SerieHandler.RemoveComponent + +public virtual void RemoveComponent() { } + +### SerieHandler.Update + +public virtual void Update() { } + +### SerieHandler.UpdateSerieContext + +public virtual void UpdateSerieContext() { } ## SerieHandler where T -> class in / 子类: [SerieHandler<T>](#seriehandlert) - +class in / 子类: [SerieHandler<T>](#seriehandlert) ## SerieHandler<T> -> class in XCharts.Runtime / 继承自: [SerieHandler where T](#seriehandler where t),[Serie](#serie) +class in XCharts.Runtime / 继承自: [SerieHandler where T](#seriehandler where t),[Serie](#serie) +### SerieHandler<T>.labelObject -|API|版本|描述| -|--|--|--| -|AfterUpdate()||public override void AfterUpdate()| -|BeforeUpdate()||public override void BeforeUpdate()| -|DrawLabelLineSymbol()||public void DrawLabelLineSymbol(VertexHelper vh, LabelLine labelLine, Vector3 startPos, Vector3 endPos, Color32 defaultColor)| -|ForceUpdateSerieContext()||public override void ForceUpdateSerieContext()| -|GetPointerItemDataDimension()||public override int GetPointerItemDataDimension()| -|GetPointerItemDataIndex()||public override int GetPointerItemDataIndex()| -|GetSerieDataAutoColor()||public virtual Color GetSerieDataAutoColor(SerieData serieData)| -|GetSerieDataLabelOffset()||public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label)| -|GetSerieDataLabelPosition()||public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label)| -|GetSerieDataTitlePosition()||public virtual Vector3 GetSerieDataTitlePosition(SerieData serieData, TitleStyle titleStyle)| -|InitComponent()||public override void InitComponent()| -|OnLegendButtonClick()||public override void OnLegendButtonClick(int index, string legendName, bool show)| -|OnLegendButtonEnter()||public override void OnLegendButtonEnter(int index, string legendName)| -|OnLegendButtonExit()||public override void OnLegendButtonExit(int index, string legendName)| -|OnPointerClick()||public override void OnPointerClick(PointerEventData eventData)| -|OnPointerDown()||public override void OnPointerDown(PointerEventData eventData)| -|RefreshEndLabelInternal()||public virtual void RefreshEndLabelInternal()| -|RefreshLabelInternal()||public override void RefreshLabelInternal()| -|RefreshLabelNextFrame()||public override void RefreshLabelNextFrame()| -|RemoveComponent()||public override void RemoveComponent()| -|Update()||public override void Update()| +public GameObject labelObject + +### SerieHandler<T>.serie + +public T serie + +### SerieHandler<T>.AfterUpdate + +public override void AfterUpdate() + +### SerieHandler<T>.BeforeUpdate + +public override void BeforeUpdate() + +### SerieHandler<T>.DrawLabelLineSymbol + +public void DrawLabelLineSymbol(VertexHelper vh, LabelLine labelLine, Vector3 startPos, Vector3 endPos, Color32 defaultColor) + +### SerieHandler<T>.ForceUpdateSerieContext + +public override void ForceUpdateSerieContext() + +### SerieHandler<T>.GetPointerItemDataDimension + +public override int GetPointerItemDataDimension() + +### SerieHandler<T>.GetPointerItemDataIndex + +public override int GetPointerItemDataIndex() + +### SerieHandler<T>.GetSerieDataAutoColor + +public virtual Color GetSerieDataAutoColor(SerieData serieData) + +### SerieHandler<T>.GetSerieDataLabelOffset + +public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label) + +### SerieHandler<T>.GetSerieDataLabelPosition + +public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label) + +### SerieHandler<T>.GetSerieDataTitlePosition + +public virtual Vector3 GetSerieDataTitlePosition(SerieData serieData, TitleStyle titleStyle) + +### SerieHandler<T>.InitComponent + +public override void InitComponent() + +### SerieHandler<T>.OnLegendButtonClick + +public override void OnLegendButtonClick(int index, string legendName, bool show) + +### SerieHandler<T>.OnLegendButtonEnter + +public override void OnLegendButtonEnter(int index, string legendName) + +### SerieHandler<T>.OnLegendButtonExit + +public override void OnLegendButtonExit(int index, string legendName) + +### SerieHandler<T>.OnPointerClick + +public override void OnPointerClick(PointerEventData eventData) + +### SerieHandler<T>.OnPointerDown + +public override void OnPointerDown(PointerEventData eventData) + +### SerieHandler<T>.RefreshEndLabelInternal + +public virtual void RefreshEndLabelInternal() + +### SerieHandler<T>.RefreshLabelInternal + +public override void RefreshLabelInternal() + +### SerieHandler<T>.RefreshLabelNextFrame + +public override void RefreshLabelNextFrame() + +### SerieHandler<T>.RemoveComponent + +public override void RemoveComponent() + +### SerieHandler<T>.Update + +public override void Update() ## SerieHandlerAttribute -> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### SerieHandlerAttribute.SerieHandlerAttribute + +public SerieHandlerAttribute(Type handler, bool allowMultiple) -|API|版本|描述| -|--|--|--| -|SerieHandlerAttribute()||public SerieHandlerAttribute(Type handler)| -|SerieHandlerAttribute()||public SerieHandlerAttribute(Type handler, bool allowMultiple)| ## SerieHelper -> class in XCharts.Runtime +class in XCharts.Runtime + +### SerieHelper.CloneSerie<T> + +public static T CloneSerie<T>(Serie serie) where T : Serie + +### SerieHelper.CopySerie + +public static void CopySerie(Serie oldSerie, Serie newSerie) + +### SerieHelper.GetAllMinMaxData + +public static void GetAllMinMaxData(Serie serie, double ceilRate = 0, DataZoom dataZoom = null) + +### SerieHelper.GetAreaStyle + +public static AreaStyle GetAreaStyle(Serie serie, SerieData serieData) + +### SerieHelper.GetAverageData + +public static double GetAverageData(Serie serie, int dimension = 1, DataZoom dataZoom = null) + +### SerieHelper.GetBlurStyle + +public static BlurStyle GetBlurStyle(Serie serie, SerieData serieData) + +### SerieHelper.GetEmphasisStyle + +public static EmphasisStyle GetEmphasisStyle(Serie serie, SerieData serieData) + +### SerieHelper.GetItemColor + +public static Color32 GetItemColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto, bool opacity = true) + +### SerieHelper.GetItemFormatter + +public static string GetItemFormatter(Serie serie, SerieData serieData, string defaultFormatter = null) + +### SerieHelper.GetItemMarker + +public static string GetItemMarker(Serie serie, SerieData serieData, string defaultMarker = null) + +### SerieHelper.GetItemStyle + +public static ItemStyle GetItemStyle(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) + +### SerieHelper.GetLineColor + +public static Color32 GetLineColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto) + +### SerieHelper.GetLineStyle + +public static LineStyle GetLineStyle(Serie serie, SerieData serieData) + +### SerieHelper.GetMaxData + +public static double GetMaxData(Serie serie, int dimension = 1, DataZoom dataZoom = null) + +### SerieHelper.GetMaxSerieData + +public static SerieData GetMaxSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null) + +### SerieHelper.GetMedianData + +public static double GetMedianData(Serie serie, int dimension = 1, DataZoom dataZoom = null) + +### SerieHelper.GetMinData + +public static double GetMinData(Serie serie, int dimension = 1, DataZoom dataZoom = null) + +### SerieHelper.GetMinMaxData + +public static void GetMinMaxData(Serie serie, out double min, out double max, DataZoom dataZoom = null, int dimension = 0) +获得系列所有数据的最大最小值。 + +### SerieHelper.GetMinSerieData + +public static SerieData GetMinSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null) + +### SerieHelper.GetNumericFormatter + +public static string GetNumericFormatter(Serie serie, SerieData serieData, string defaultFormatter = null) + +### SerieHelper.GetSelectStyle + +public static SelectStyle GetSelectStyle(Serie serie, SerieData serieData) + +### SerieHelper.GetSerieLabel + +public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) + +### SerieHelper.GetSerieLabelLine + +public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) + +### SerieHelper.GetSerieState + +public static SerieState GetSerieState(Serie serie, SerieData serieData, bool defaultSerieState = false) + +public static SerieState GetSerieState(SerieData serieData) -|API|版本|描述| -|--|--|--| -|CloneSerie<T>()||public static T CloneSerie<T>(Serie serie) where T : Serie| -|CopySerie()||public static void CopySerie(Serie oldSerie, Serie newSerie)| -|GetAllMinMaxData()||public static void GetAllMinMaxData(Serie serie, double ceilRate = 0, DataZoom dataZoom = null)| -|GetAreaStyle()||public static AreaStyle GetAreaStyle(Serie serie, SerieData serieData)| -|GetAverageData()||public static double GetAverageData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| -|GetBlurStyle()||public static BlurStyle GetBlurStyle(Serie serie, SerieData serieData)| -|GetEmphasisStyle()||public static EmphasisStyle GetEmphasisStyle(Serie serie, SerieData serieData)| -|GetItemColor()||public static Color32 GetItemColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto, bool opacity = true)| -|GetItemFormatter()||public static string GetItemFormatter(Serie serie, SerieData serieData, string defaultFormatter = null)| -|GetItemMarker()||public static string GetItemMarker(Serie serie, SerieData serieData, string defaultMarker = null)| -|GetItemStyle()||public static ItemStyle GetItemStyle(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)| -|GetLineColor()||public static Color32 GetLineColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto)| -|GetLineStyle()||public static LineStyle GetLineStyle(Serie serie, SerieData serieData)| -|GetMaxData()||public static double GetMaxData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| -|GetMaxSerieData()||public static SerieData GetMaxSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| -|GetMedianData()||public static double GetMedianData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| -|GetMinData()||public static double GetMinData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| -|GetMinMaxData()||public static void GetMinMaxData(Serie serie, out double min, out double max, DataZoom dataZoom = null, int dimension = 0)
获得系列所有数据的最大最小值。 | -|GetMinSerieData()||public static SerieData GetMinSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null)| -|GetNumericFormatter()||public static string GetNumericFormatter(Serie serie, SerieData serieData, string defaultFormatter = null)| -|GetSelectStyle()||public static SelectStyle GetSelectStyle(Serie serie, SerieData serieData)| -|GetSerieLabel()||public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)| -|GetSerieLabelLine()||public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)| -|GetSerieState()||public static SerieState GetSerieState(Serie serie)| -|GetSerieState()||public static SerieState GetSerieState(Serie serie, SerieData serieData, bool defaultSerieState = false)| -|GetSerieState()||public static SerieState GetSerieState(SerieData serieData)| -|GetSerieSymbol()||public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData, SerieState state = SerieState.Auto)| -|GetStateStyle()||public static StateStyle GetStateStyle(Serie serie, SerieData serieData, SerieState state)| -|GetSysmbolSize()||public static float GetSysmbolSize(Serie serie, SerieData serieData, float defaultSize, SerieState state = SerieState.Auto, bool checkAnimation = false)| -|GetTitleStyle()||public static TitleStyle GetTitleStyle(Serie serie, SerieData serieData)| -|IsAllZeroValue()||public static bool IsAllZeroValue(Serie serie, int dimension = 1)
系列指定维数的数据是否全部为0。 | -|IsDownPoint()||public static bool IsDownPoint(Serie serie, int index)| -|UpdateCenter()||public static void UpdateCenter(Serie serie, BaseChart chart)
更新运行时中心点和半径 | -|UpdateFilterData()||public static void UpdateFilterData(Serie serie, DataZoom dataZoom)
根据dataZoom更新数据列表缓存 | -|UpdateMinMaxData()||public static void UpdateMinMaxData(Serie serie, int dimension, double ceilRate = 0, DataZoom dataZoom = null)
获得指定维数的最大最小值 | -|UpdateRect()||public static void UpdateRect(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight)| -|UpdateSerieRuntimeFilterData()||public static void UpdateSerieRuntimeFilterData(Serie serie, bool filterInvisible = true)| +### SerieHelper.GetSerieSymbol + +public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) + +### SerieHelper.GetStateStyle + +public static StateStyle GetStateStyle(Serie serie, SerieData serieData, SerieState state) + +### SerieHelper.GetSysmbolSize + +public static float GetSysmbolSize(Serie serie, SerieData serieData, float defaultSize, SerieState state = SerieState.Auto, bool checkAnimation = false) + +### SerieHelper.GetTitleStyle + +public static TitleStyle GetTitleStyle(Serie serie, SerieData serieData) + +### SerieHelper.IsAllZeroValue + +public static bool IsAllZeroValue(Serie serie, int dimension = 1) +系列指定维数的数据是否全部为0。 + +### SerieHelper.IsDownPoint + +public static bool IsDownPoint(Serie serie, int index) + +### SerieHelper.UpdateCenter + +public static void UpdateCenter(Serie serie, BaseChart chart) +更新运行时中心点和半径 + +### SerieHelper.UpdateFilterData + +public static void UpdateFilterData(Serie serie, DataZoom dataZoom) +根据dataZoom更新数据列表缓存 + +### SerieHelper.UpdateMinMaxData + +public static void UpdateMinMaxData(Serie serie, int dimension, double ceilRate = 0, DataZoom dataZoom = null) +获得指定维数的最大最小值 + +### SerieHelper.UpdateRect + +public static void UpdateRect(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight) + +### SerieHelper.UpdateSerieRuntimeFilterData + +public static void UpdateSerieRuntimeFilterData(Serie serie, bool filterInvisible = true) ## SerieLabelHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### SerieLabelHelper.CanShowLabel -|API|版本|描述| -|--|--|--| -|CanShowLabel()||public static bool CanShowLabel(Serie serie, SerieData serieData, LabelStyle label, int dimesion)| -|GetLabelColor()||public static Color GetLabelColor(Serie serie, ThemeStyle theme, int index)| -|SetGaugeLabelText()||public static void SetGaugeLabelText(Serie serie)| +public static bool CanShowLabel(Serie serie, SerieData serieData, LabelStyle label, int dimesion) + +### SerieLabelHelper.GetLabelColor + +public static Color GetLabelColor(Serie serie, ThemeStyle theme, int index) + +### SerieLabelHelper.SetGaugeLabelText + +public static void SetGaugeLabelText(Serie serie) ## SerieLabelPool -> class in XCharts.Runtime +class in XCharts.Runtime +### SerieLabelPool.ClearAll -|API|版本|描述| -|--|--|--| -|ClearAll()||public static void ClearAll()| -|Release()||public static void Release(GameObject element)| -|ReleaseAll()||public static void ReleaseAll(Transform parent)| +public static void ClearAll() + +### SerieLabelPool.Release + +public static void Release(GameObject element) + +### SerieLabelPool.ReleaseAll + +public static void ReleaseAll(Transform parent) ## SerieParams -> class in XCharts.Runtime - +class in XCharts.Runtime ## SeriesHelper -> class in XCharts.Runtime +class in XCharts.Runtime + +### SeriesHelper.GetLastStackSerie + +public static Serie GetLastStackSerie(List<Serie> series, Serie serie) +获得上一个同堆叠且显示的serie。 + +### SeriesHelper.GetLegalSerieNameList + +public static List<string> GetLegalSerieNameList(List<Serie> series) + +### SeriesHelper.GetMaxSerieDataCount + +public static int GetMaxSerieDataCount(List<Serie> series) + +### SeriesHelper.GetMinAnimationDuration + +public static float GetMinAnimationDuration(List<Serie> series) + +### SeriesHelper.GetNameColor + +public static Color GetNameColor(BaseChart chart, int index, string name) + +### SeriesHelper.GetStackSeries + +public static void GetStackSeries(List<Serie> series, ref Dictionary<int, List<Serie>> stackSeries) +获得堆叠系列列表 + +### SeriesHelper.IsAnyClipSerie + +public static bool IsAnyClipSerie(List<Serie> series) +是否有需裁剪的serie。 + +### SeriesHelper.IsLegalLegendName + +public static bool IsLegalLegendName(string name) + +### SeriesHelper.IsPercentStack<T> + +public static bool IsPercentStack<T>(List<Serie> series, string stackName) where T : Serie +是否时百分比堆叠 -|API|版本|描述| -|--|--|--| -|GetLastStackSerie()||public static Serie GetLastStackSerie(List<Serie> series, Serie serie)
获得上一个同堆叠且显示的serie。 | -|GetLegalSerieNameList()||public static List<string> GetLegalSerieNameList(List<Serie> series)| -|GetMaxSerieDataCount()||public static int GetMaxSerieDataCount(List<Serie> series)| -|GetMinAnimationDuration()||public static float GetMinAnimationDuration(List<Serie> series)| -|GetNameColor()||public static Color GetNameColor(BaseChart chart, int index, string name)| -|GetStackSeries()||public static void GetStackSeries(List<Serie> series, ref Dictionary<int, List<Serie>> stackSeries)
获得堆叠系列列表 | -|IsAnyClipSerie()||public static bool IsAnyClipSerie(List<Serie> series)
是否有需裁剪的serie。 | -|IsLegalLegendName()||public static bool IsLegalLegendName(string name)| -|IsPercentStack<T>()||public static bool IsPercentStack<T>(List<Serie> series) where T : Serie
是否时百分比堆叠 | -|IsPercentStack<T>()||public static bool IsPercentStack<T>(List<Serie> series, string stackName) where T : Serie
是否时百分比堆叠 | -|IsStack()||public static bool IsStack(List<Serie> series)
是否由数据堆叠 | -|IsStack<T>()||public static bool IsStack<T>(List<Serie> series, string stackName) where T : Serie
是否堆叠 | -|UpdateSerieNameList()||public static void UpdateSerieNameList(BaseChart chart, ref List<string> serieNameList)
获得所有系列名,不包含空名字。 | -|UpdateStackDataList()||public static void UpdateStackDataList(List<Serie> series, Serie currSerie, DataZoom dataZoom, List<List<SerieData>> dataList)| +### SeriesHelper.IsStack + +public static bool IsStack(List<Serie> series) +是否由数据堆叠 + +### SeriesHelper.IsStack<T> + +public static bool IsStack<T>(List<Serie> series, string stackName) where T : Serie +是否堆叠 + +### SeriesHelper.UpdateSerieNameList + +public static void UpdateSerieNameList(BaseChart chart, ref List<string> serieNameList) +获得所有系列名,不包含空名字。 + +### SeriesHelper.UpdateStackDataList + +public static void UpdateStackDataList(List<Serie> series, Serie currSerie, DataZoom dataZoom, List<List<SerieData>> dataList) + +## SerieState + +class in XCharts.Runtime + +Serie状态。支持正常、高亮、淡出、选中四种状态。 + +可选: + +- `Normal`: 正常状态。 +- `Emphasis`: 高亮状态。 +- `Blur`: 淡出状态。 +- `Select`: 选中状态。 +- `Auto`: 自动保持和父节点一致。一般用在SerieData。 ## SerieSymbol -> class in XCharts.Runtime / 继承自: [SymbolStyle](#symbolstyle),[ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [SymbolStyle](#symbolstyle),[ISerieDataComponent](#iseriedatacomponent) 系列数据项的标记的图形 -|API|版本|描述| -|--|--|--| -|GetSize()||public float GetSize(List<double> data, float themeSize)
根据指定的sizeType获得标记的大小 | -|Reset()||public override void Reset()| -|ShowSymbol()||public bool ShowSymbol(int dataIndex, int dataCount)| +### SerieSymbol.GetSize + +public float GetSize(List<double> data, float themeSize) +根据指定的sizeType获得标记的大小 + +### SerieSymbol.Reset + +public override void Reset() + +### SerieSymbol.ShowSymbol + +public bool ShowSymbol(int dataIndex, int dataCount) ## SerieTheme -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +### SerieTheme.Copy -|API|版本|描述| -|--|--|--| -|Copy()||public void Copy(SerieTheme theme)| -|SerieTheme()||public SerieTheme(ThemeType theme)| +public void Copy(SerieTheme theme) + +### SerieTheme.SerieTheme + +public SerieTheme(ThemeType theme) ## Settings -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) 全局参数设置组件。一般情况下可使用默认值,当有需要时可进行调整。 -|API|版本|描述| -|--|--|--| -|Copy()||public void Copy(Settings settings)| -|Reset()||public override void Reset()| +### Settings.show + +public bool show + +### Settings.Copy + +public void Copy(Settings settings) + +### Settings.Reset + +public override void Reset() ## SimplifiedBar -> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) +class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) +### SimplifiedBar.containerIndex -|API|版本|描述| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| -|ConvertSerie()||public static SimplifiedBar ConvertSerie(Serie serie)| +public int containerIndex + +### SimplifiedBar.containterInstanceId + +public int containterInstanceId + +### SimplifiedBar.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) + +### SimplifiedBar.ConvertSerie + +public static SimplifiedBar ConvertSerie(Serie serie) ## SimplifiedBarChart -> class in XCharts.Runtime / 继承自: [BaseChart](#basechart) +class in XCharts.Runtime / 继承自: [BaseChart](#basechart) 简化柱状图是柱状图的简化模式,通过简化组件和配置,拥有更好的性能。 ## SimplifiedCandlestick -> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) +class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) +### SimplifiedCandlestick.containerIndex -|API|版本|描述| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| -|ConvertSerie()||public static SimplifiedCandlestick ConvertSerie(Serie serie)| +public int containerIndex + +### SimplifiedCandlestick.containterInstanceId + +public int containterInstanceId + +### SimplifiedCandlestick.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) + +### SimplifiedCandlestick.ConvertSerie + +public static SimplifiedCandlestick ConvertSerie(Serie serie) ## SimplifiedCandlestickChart -> class in XCharts.Runtime / 继承自: [BaseChart](#basechart) +class in XCharts.Runtime / 继承自: [BaseChart](#basechart) 简化K线图是K线图的简化模式,通过简化组件和配置,拥有更好的性能。 ## SimplifiedLine -> class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) +class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ineedseriecontainer),[ISimplifiedSerie](#isimplifiedserie) +### SimplifiedLine.containerIndex -|API|版本|描述| -|--|--|--| -|AddDefaultSerie()||public static Serie AddDefaultSerie(BaseChart chart, string serieName)| -|ConvertSerie()||public static SimplifiedLine ConvertSerie(Serie serie)| +public int containerIndex + +### SimplifiedLine.containterInstanceId + +public int containterInstanceId + +### SimplifiedLine.AddDefaultSerie + +public static Serie AddDefaultSerie(BaseChart chart, string serieName) + +### SimplifiedLine.ConvertSerie + +public static SimplifiedLine ConvertSerie(Serie serie) ## SimplifiedLineChart -> class in XCharts.Runtime / 继承自: [BaseChart](#basechart) +class in XCharts.Runtime / 继承自: [BaseChart](#basechart) 简化折线图是折线图的简化模式,通过简化组件和配置,拥有更好的性能。 ## Since -> class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/ScriptReference/30_search.html?q=attribute) +### Since.Since -|API|版本|描述| -|--|--|--| -|Since()||public Since(string version)| +public Since(string version) ## SingleAxis -> class in XCharts.Runtime / 继承自: [Axis](#axis),[IUpdateRuntimeData](#iupdateruntimedata) +class in XCharts.Runtime / 继承自: [Axis](#axis),[IUpdateRuntimeData](#iupdateruntimedata) 单轴。 -|API|版本|描述| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()| -|UpdateRuntimeData()||public void UpdateRuntimeData(BaseChart chart)| +### SingleAxis.SetDefaultValue + +public override void SetDefaultValue() + +### SingleAxis.UpdateRuntimeData + +public void UpdateRuntimeData(BaseChart chart) ## SingleAxisCoord -> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem) - +class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem) ## StageColor -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +### StageColor.color -|API|版本|描述| -|--|--|--| -|StageColor()||public StageColor(float percent, Color32 color)| +public Color32 color +颜色。 + +### StageColor.percent + +public float percent +结束位置百分比。 + +### StageColor.StageColor + +public StageColor(float percent, Color32 color) ## StateStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [BlurStyle](#blurstyle),[EmphasisStyle](#emphasisstyle),[SelectStyle](#selectstyle) > 从 `v3.2.0` 开始支持 Serie的状态样式。Serie的状态有正常,高亮,淡出,选中四种状态。 -|API|版本|描述| -|--|--|--| -|ClearComponentDirty()||public override void ClearComponentDirty()| -|ClearVerticesDirty()||public override void ClearVerticesDirty()| -|Reset()||public void Reset()| +### StateStyle.ClearComponentDirty + +public override void ClearComponentDirty() + +### StateStyle.ClearVerticesDirty + +public override void ClearVerticesDirty() + +### StateStyle.Reset + +public void Reset() ## SubTitleTheme -> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +### SubTitleTheme.SubTitleTheme -|API|版本|描述| -|--|--|--| -|SubTitleTheme()||public SubTitleTheme(ThemeType theme) : base(theme)| +public SubTitleTheme(ThemeType theme) : base(theme) ## SVG -> class in XUGL +class in XUGL + +### SVG.DrawPath + +public static void DrawPath(VertexHelper vh, SVGPath path) -|API|版本|描述| -|--|--|--| -|DrawPath()||public static void DrawPath(VertexHelper vh, string path)| -|DrawPath()||public static void DrawPath(VertexHelper vh, SVGPath path)| -|Test()||public static void Test(VertexHelper vh)| +### SVG.Test + +public static void Test(VertexHelper vh) ## SVGPath -> class in XUGL +class in XUGL +### SVGPath.AddSegment -|API|版本|描述| -|--|--|--| -|AddSegment()||public void AddSegment(SVGPathSeg seg)| -|Draw()||public void Draw(VertexHelper vh)| -|Parse()||public static SVGPath Parse(string path)| +public void AddSegment(SVGPathSeg seg) + +### SVGPath.Draw + +public void Draw(VertexHelper vh) + +### SVGPath.Parse + +public static SVGPath Parse(string path) ## SVGPathSeg -> class in XUGL +class in XUGL +### SVGPathSeg.p1 -|API|版本|描述| -|--|--|--| -|SVGPathSeg()||public SVGPathSeg(SVGPathSegType type)| +public Vector2 p1 + +### SVGPathSeg.p2 + +public Vector2 p2 + +### SVGPathSeg.p3 + +public Vector2 p3 + +### SVGPathSeg.x + +public float x + +### SVGPathSeg.y + +public float y + +### SVGPathSeg.SVGPathSeg + +public SVGPathSeg(SVGPathSegType type) + +## SVGPathSegType + +class in XUGL + +可选: + +- `M`: move to +- `L`: line to +- `H`: horizontal line to +- `V`: vertial line to +- `C`: curve to +- `S`: smooth curve to +- `Q`: quadratic bezier curve +- `T`: smooth quadratic bezier curve to +- `A`: elliptical Arc +- `Z`: close path + +## SymbolSizeType + +class in XCharts.Runtime + +获取标记图形大小的方式。 + +可选: + +- `Custom`: 自定义大小。 +- `FromData`: 通过 dataIndex 从数据中获取,再乘以一个比例系数 dataScale 。 +- `Function`: 通过委托函数获取。 ## SymbolStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [SerieSymbol](#seriesymbol) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [SerieSymbol](#seriesymbol) 系列数据项的标记的图形 -|API|版本|描述| -|--|--|--| -|GetColor()||public Color32 GetColor(Color32 defaultColor)| -|Reset()||public virtual void Reset()| +### SymbolStyle.animationSize + +public List<float> animationSize +带有涟漪特效动画的散点图的动画参数。 + +### SymbolStyle.offset3 + +public Vector3 offset3 + +### SymbolStyle.GetColor + +public Color32 GetColor(Color32 defaultColor) + +### SymbolStyle.Reset + +public virtual void Reset() + +## SymbolType + +class in XCharts.Runtime + +标记图形的类型。 + +可选: + +- `None`: 不显示标记。 +- `Custom`: 自定义标记。 +- `Circle`: 圆形。 +- `EmptyCircle`: 空心圆。 +- `Rect`: 正方形。可通过设置`itemStyle`的`cornerRadius`变成圆角矩形。 +- `EmptyRect`: 空心正方形。 +- `Triangle`: 三角形。 +- `EmptyTriangle`: 空心三角形。 +- `Diamond`: 菱形。 +- `EmptyDiamond`: 空心菱形。 +- `Arrow`: 箭头。 +- `EmptyArrow`: 空心箭头。 +- `Plus`: 加号。 +- `Minus`: 减号。 ## TextLimit -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 文本字符限制和自适应。当文本长度超过设定的长度时进行裁剪,并将后缀附加在最后。 只在类目轴中有效。 -|API|版本|描述| -|--|--|--| -|Clone()||public TextLimit Clone()| -|Copy()||public void Copy(TextLimit textLimit)| -|GetLimitContent()||public string GetLimitContent(string content)| -|SetRelatedText()||public void SetRelatedText(ChartText txt, float labelWidth)| +### TextLimit.Clone + +public TextLimit Clone() + +### TextLimit.Copy + +public void Copy(TextLimit textLimit) + +### TextLimit.GetLimitContent + +public string GetLimitContent(string content) + +### TextLimit.SetRelatedText + +public void SetRelatedText(ChartText txt, float labelWidth) ## TextPadding -> class in XCharts.Runtime / 继承自: [Padding](#padding) +class in XCharts.Runtime / 继承自: [Padding](#padding) 文本的内边距设置。 -|API|版本|描述| -|--|--|--| -|TextPadding()||public TextPadding() { }| -|TextPadding()||public TextPadding(float top, float right, float bottom, float left)| +### TextPadding.TextPadding() + +public TextPadding() +文本的内边距设置。 + +### TextPadding.TextPadding + +public TextPadding(float top, float right, float bottom, float left) + ## TextStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 文本的相关设置。 -|API|版本|描述| -|--|--|--| -|Copy()||public void Copy(TextStyle textStyle)| -|GetAlignment()||public TextAnchor GetAlignment(TextAnchor defaultAlignment)| -|GetColor()||public Color GetColor(Color defaultColor)| -|GetFontSize()||public int GetFontSize(ComponentTheme defaultTheme)| -|TextStyle()||public TextStyle() { }| -|TextStyle()||public TextStyle(int fontSize)| -|TextStyle()||public TextStyle(int fontSize, FontStyle fontStyle)| -|TextStyle()||public TextStyle(int fontSize, FontStyle fontStyle, Color color)| -|TextStyle()||public TextStyle(int fontSize, FontStyle fontStyle, Color color, int rorate)| -|UpdateAlignmentByLocation()||public void UpdateAlignmentByLocation(Location location)| +### TextStyle.TextStyle() + +public TextStyle() + +### TextStyle.Copy + +public void Copy(TextStyle textStyle) + +### TextStyle.GetAlignment + +public TextAnchor GetAlignment(TextAnchor defaultAlignment) + +### TextStyle.GetColor + +public Color GetColor(Color defaultColor) + +### TextStyle.GetFontSize + +public int GetFontSize(ComponentTheme defaultTheme) + +### TextStyle.TextStyle + +public TextStyle(int fontSize) + +public TextStyle(int fontSize, FontStyle fontStyle) + +public TextStyle(int fontSize, FontStyle fontStyle, Color color) + +public TextStyle(int fontSize, FontStyle fontStyle, Color color, int rorate) + + +### TextStyle.UpdateAlignmentByLocation + +public void UpdateAlignmentByLocation(Location location) ## Theme -> class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject) +class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject) 主题相关配置。 -|API|版本|描述| -|--|--|--| -|CheckWarning()||public void CheckWarning(StringBuilder sb)| -|CloneTheme()||public Theme CloneTheme()
克隆主题。 | -|CopyTheme()||public bool CopyTheme(ThemeType theme)| -|CopyTheme()||public void CopyTheme(Theme theme)
复制主题的所有配置。 | -|GetColor()||public Color32 GetColor(int index)
获得调色盘对应系列索引的颜色值。 | -|GetColor()||public static Color32 GetColor(string hexColorStr)
将字符串颜色值转成Color。 | -|GetColorStr()||public string GetColorStr(int index)
获得指定索引的十六进制颜色值字符串。 | -|GetHashCode()||public override int GetHashCode()| -|ResetTheme()||public bool ResetTheme()
重置,清除所有自定义配置。 | -|ResetToDarkTheme()||public static void ResetToDarkTheme(Theme theme)
暗主题。 | -|ResetToDefaultTheme()||public static void ResetToDefaultTheme(Theme theme)
默认主题。 | -|SetColorPalette()||public void SetColorPalette(List<string> hexColorStringList)| -|SetDefaultFont()||public void SetDefaultFont()| -|SyncFontToSubComponent()||public void SyncFontToSubComponent()| -|SyncTMPFontToSubComponent()||public void SyncTMPFontToSubComponent()| +### Theme.axis + +public AxisTheme axis + +### Theme.colorPalette + +public List<Color32> colorPalette +调色盘颜色列表。如果系列没有设置颜色,则会依次循环从该列表中取颜色作为系列颜色。 + +### Theme.common + +public ComponentTheme common + +### Theme.dataZoom + +public DataZoomTheme dataZoom + +### Theme.legend + +public LegendTheme legend + +### Theme.serie + +public SerieTheme serie + +### Theme.subTitle + +public SubTitleTheme subTitle + +### Theme.title + +public TitleTheme title + +### Theme.tooltip + +public TooltipTheme tooltip + +### Theme.visualMap + +public VisualMapTheme visualMap + +### Theme.CheckWarning + +public void CheckWarning(StringBuilder sb) + +### Theme.CloneTheme + +public Theme CloneTheme() +克隆主题。 + +### Theme.CopyTheme + +public void CopyTheme(Theme theme) +复制主题的所有配置。 + + +### Theme.GetColor + +public static Color32 GetColor(string hexColorStr) +将字符串颜色值转成Color。 + + +### Theme.GetColorStr + +public string GetColorStr(int index) +获得指定索引的十六进制颜色值字符串。 + +### Theme.GetHashCode + +public override int GetHashCode() + +### Theme.ResetTheme + +public bool ResetTheme() +重置,清除所有自定义配置。 + +### Theme.ResetToDarkTheme + +public static void ResetToDarkTheme(Theme theme) +暗主题。 + +### Theme.ResetToDefaultTheme + +public static void ResetToDefaultTheme(Theme theme) +默认主题。 + +### Theme.SetColorPalette + +public void SetColorPalette(List<string> hexColorStringList) + +### Theme.SetDefaultFont + +public void SetDefaultFont() + +### Theme.SyncFontToSubComponent + +public void SyncFontToSubComponent() + +### Theme.SyncTMPFontToSubComponent + +public void SyncTMPFontToSubComponent() ## ThemeStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 主题相关配置。 -|API|版本|描述| -|--|--|--| -|CheckWarning()||public void CheckWarning(StringBuilder sb)| -|GetBackgroundColor()||public Color32 GetBackgroundColor(Background background)| -|GetColor()||public Color32 GetColor(int index)
获得调色盘对应系列索引的颜色值。 | -|GetColor()||public static Color32 GetColor(string hexColorStr)
将字符串颜色值转成Color。 | -|GetColorStr()||public string GetColorStr(int index)
获得指定索引的十六进制颜色值字符串。 | -|SyncSharedThemeColorToCustom()||public void SyncSharedThemeColorToCustom()| +### ThemeStyle.axis + +public AxisTheme axis + +### ThemeStyle.common + +public ComponentTheme common + +### ThemeStyle.customColorPalette + +public List<Color32> customColorPalette + +### ThemeStyle.dataZoom + +public DataZoomTheme dataZoom + +### ThemeStyle.legend + +public LegendTheme legend + +### ThemeStyle.serie + +public SerieTheme serie + +### ThemeStyle.show + +public bool show + +### ThemeStyle.subTitle + +public SubTitleTheme subTitle + +### ThemeStyle.title + +public TitleTheme title + +### ThemeStyle.tooltip + +public TooltipTheme tooltip + +### ThemeStyle.visualMap + +public VisualMapTheme visualMap + +### ThemeStyle.CheckWarning + +public void CheckWarning(StringBuilder sb) + +### ThemeStyle.GetBackgroundColor + +public Color32 GetBackgroundColor(Background background) + +### ThemeStyle.GetColor + +public static Color32 GetColor(string hexColorStr) +将字符串颜色值转成Color。 + + +### ThemeStyle.GetColorStr + +public string GetColorStr(int index) +获得指定索引的十六进制颜色值字符串。 + +### ThemeStyle.SyncSharedThemeColorToCustom + +public void SyncSharedThemeColorToCustom() + +## ThemeType + +class in XCharts.Runtime + +主题 + +可选: + +- `Default`: 默认主题。 +- `Light`: 亮主题。 +- `Dark`: 暗主题。 +- `Custom`: 自定义主题。 ## Title -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IPropertyChanged](#ipropertychanged) 标题组件,包含主标题和副标题。 -|API|版本|描述| -|--|--|--| -|ClearComponentDirty()||public override void ClearComponentDirty()| -|OnChanged()||public void OnChanged()| +### Title.show + +public bool show +是否显示标题组件。 + +### Title.text + +public string text +主标题文本,支持使用 \n 换行。 + +### Title.vertsDirty + +public override bool vertsDirty + +### Title.ClearComponentDirty + +public override void ClearComponentDirty() + +### Title.OnChanged + +public void OnChanged() ## TitleStyle -> class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle),[ISerieDataComponent](#iseriedatacomponent),[ISerieComponent](#iseriecomponent) +class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle),[ISerieDataComponent](#iseriedatacomponent),[ISerieComponent](#iseriecomponent) 标题相关设置。 ## TitleTheme -> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +### TitleTheme.TitleTheme -|API|版本|描述| -|--|--|--| -|TitleTheme()||public TitleTheme(ThemeType theme) : base(theme)| +public TitleTheme(ThemeType theme) : base(theme) ## Tooltip -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) 提示框组件。 -|API|版本|描述| -|--|--|--| -|onClickIndex||public System.Action<int> onClickIndex
Tooltip为Click触发时,点击的X轴索引的回调。 | -|AddSerieDataIndex()||public void AddSerieDataIndex(int serieIndex, int dataIndex)| -|ClearComponentDirty()||public override void ClearComponentDirty()| -|ClearData()||public override void ClearData()| -|ClearSerieDataIndex()||public void ClearSerieDataIndex()| -|GetContentLabelStyle()||public LabelStyle GetContentLabelStyle(int index)| -|IsActive()||public bool IsActive()
提示框是否显示 | -|isAnySerieDataIndex()||public bool isAnySerieDataIndex()| -|IsSelected()||public bool IsSelected()
当前提示框是否选中数据项 | -|IsSelected()||public bool IsSelected(int index)
指定索引的数据项是否被提示框选中 | -|IsTriggerAxis()||public bool IsTriggerAxis()| -|IsTriggerItem()||public bool IsTriggerItem()| -|KeepTop()||public void KeepTop()
保持Tooltiop显示在最顶上 | -|SetActive()||public void SetActive(bool flag)
设置Tooltip组件是否显示 | -|SetContentActive()||public void SetContentActive(bool flag)
设置文本框是否显示 | -|UpdateContentPos()||public void UpdateContentPos(Vector2 pos, float width, float height)
更新文本框位置 | +### Tooltip.alwayShowContent + +public bool alwayShowContent +是否触发后一直显示提示框浮层。 + +### Tooltip.backgroundColor + +public Color backgroundColor +提示框的背景颜色。 + +### Tooltip.backgroundImage + +public Sprite backgroundImage +提示框的背景图片。 + +### Tooltip.backgroundType + +public Image.Type backgroundType +提示框的背景图片显示类型。 + +### Tooltip.fixedHeight + +public float fixedHeight +固定高度。比 minHeight 优先。 + +### Tooltip.fixedWidth + +public float fixedWidth +固定宽度。比 minWidth 优先。 + +### Tooltip.ignoreDataDefaultContent + +public string ignoreDataDefaultContent +被忽略数据的默认显示字符信息。如果设置为空,则表示完全不显示忽略数据。 + +### Tooltip.ignoreDataShow + +public bool ignoreDataShow +是否显示忽略数据在tooltip上。 + +### Tooltip.itemFormatter + +public string itemFormatter +提示框单个serie或数据项内容的字符串模版格式器。支持用 \n 换行。用|来表示多个列的分隔。 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。
{i}或-表示忽略当前项。 {.}为当前所指示的serie或数据项的对应颜色的圆点。
{a}为当前所指示的serie或数据项的系列名name。
{b}为当前所指示的serie或数据项的数据项serieData的name,或者类目值(如折线图的X轴)。
{c}为当前所指示的serie或数据项的y维(dimesion为1)的数值。
{d}为当前所指示的serie或数据项的y维(dimesion为1)百分比值,注意不带%号。
{e}为当前所指示的serie或数据项的数据项serieData的name。
{f}为当前所指示的serie的默认维度的数据总和。
{g}为当前所指示的serie的数据总个数。
{h}为当前所指示的serie的十六进制颜色值。
{y}为当前所指示的serie的y轴的类目值。
{c0}表示当前数据项维度为0的数据。
{c1}表示当前数据项维度为1的数据。
{d3}表示维度3的数据的百分比。它的分母是默认维度(一般是1维度)数据。
|表示多个列的分隔。
示例:"{i}", "{.}|{a}|{c}", "{.}|{b}|{c2:f2}", "{.}|{b}|{y}" + +### Tooltip.marker + +public string marker +serie的符号标志。 + +### Tooltip.minHeight + +public float minHeight +最小高度。如若 fixedHeight 设有值,优先取 fixedHeight。 + +### Tooltip.minWidth + +public float minWidth +最小宽度。如若 fixedWidth 设有值,优先取 fixedWidth。 + +### Tooltip.offset + +public Vector2 offset +提示框相对于鼠标位置的偏移。 + +### Tooltip.onClickIndex + +public System.Action<int> onClickIndex +Tooltip为Click触发时,点击的X轴索引的回调。 + +### Tooltip.paddingLeftRight + +public int paddingLeftRight +左右边距。 + +### Tooltip.paddingTopBottom + +public int paddingTopBottom +上下边距。 + +### Tooltip.runtimeDataIndex + +public List<int> runtimeDataIndex +当前提示框所指示的数据项索引。 + +### Tooltip.showContent + +public bool showContent +是否显示提示框浮层,默认显示。只需tooltip触发事件或显示axisPointer而不需要显示内容时可配置该项为false。 + +### Tooltip.titleFormatter + +public string titleFormatter +提示框标题内容的字符串模版格式器。支持用 \n 换行。可以单独设置占位符{i}表示忽略不显示title。 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。
{.}为当前所指示或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)百分比值,注意不带%号。
{e}为当前所指示或index为0的serie的数据项serieData的name。
{h}为当前所指示或index为0的serie的数据项serieData的十六进制颜色值。
{f}为数据总和。
{g}为数据总个数。
{y}为value所对应的y轴的类目值。
{.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)。
{d:0.##} 表示单独指定了数值的格式化字符串为 0.## (用于百分比,保留2位有效数同时又能避免使用 f2 而出现的类似于"100.00%"的情况 )。
示例:"{a}:{c}"、"{a1}:{c1:f1}"、"{a1}:{c1:0:f1}"、"{a1}:{c1:1-1:f1}" + +### Tooltip.AddSerieDataIndex + +public void AddSerieDataIndex(int serieIndex, int dataIndex) + +### Tooltip.ClearComponentDirty + +public override void ClearComponentDirty() + +### Tooltip.ClearData + +public override void ClearData() + +### Tooltip.ClearSerieDataIndex + +public void ClearSerieDataIndex() + +### Tooltip.GetContentLabelStyle + +public LabelStyle GetContentLabelStyle(int index) + +### Tooltip.IsActive + +public bool IsActive() +提示框是否显示 + +### Tooltip.isAnySerieDataIndex + +public bool isAnySerieDataIndex() + +### Tooltip.IsSelected + +public bool IsSelected(int index) +指定索引的数据项是否被提示框选中 + + +### Tooltip.IsTriggerAxis + +public bool IsTriggerAxis() + +### Tooltip.IsTriggerItem + +public bool IsTriggerItem() + +### Tooltip.KeepTop + +public void KeepTop() +保持Tooltiop显示在最顶上 + +### Tooltip.SetActive + +public void SetActive(bool flag) +设置Tooltip组件是否显示 + +### Tooltip.SetContentActive + +public void SetContentActive(bool flag) +设置文本框是否显示 + +### Tooltip.UpdateContentPos + +public void UpdateContentPos(Vector2 pos, float width, float height) +更新文本框位置 + +## Tooltip.Position + +class in XCharts.Runtime + +坐标类型。 + +可选: + +- `Auto`: 自适应。移动平台靠顶部显示,非移动平台跟随鼠标位置。 +- `Custom`: 自定义。完全自定义显示位置(x,y)。 +- `FixedX`: 只固定坐标X。Y跟随鼠标位置。 +- `FixedY`: + +## Tooltip.Trigger + +class in XCharts.Runtime + +触发类型。 + +可选: + +- `Item`: 数据项图形触发,主要在散点图,饼图等无类目轴的图表中使用。 +- `Axis`: 坐标轴触发,主要在柱状图,折线图等会使用类目轴的图表中使用。 +- `None`: 什么都不触发。 +- `Auto`: 根据serie的类型自动选择触发类型。 + +## Tooltip.TriggerOn + +class in XCharts.Runtime + +触发条件。 + +可选: + +- `MouseMove`: 鼠标移动时触发。 +- `Click`: 鼠标点击时触发。 + +## Tooltip.Type + +class in XCharts.Runtime + +指示器类型。 + +可选: + +- `Line`: 直线指示器 +- `Shadow`: 阴影指示器 +- `None`: 无指示器 +- `Cross`: 十字准星指示器。坐标轴显示Label和交叉线。 +- `Auto`: 根据serie的类型自动选择显示指示器。 ## TooltipContext -> class in XCharts.Runtime - +class in XCharts.Runtime ## TooltipData -> class in XCharts.Runtime - +class in XCharts.Runtime ## TooltipHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### TooltipHelper.GetItemNumericFormatter -|API|版本|描述| -|--|--|--| -|GetItemNumericFormatter()||public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData)| -|GetLineColor()||public static Color32 GetLineColor(Tooltip tooltip, Color32 defaultColor)| -|IsIgnoreFormatter()||public static bool IsIgnoreFormatter(string itemFormatter)| -|LimitInRect()||public static void LimitInRect(Tooltip tooltip, Rect chartRect)| +public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData) + +### TooltipHelper.GetLineColor + +public static Color32 GetLineColor(Tooltip tooltip, Color32 defaultColor) + +### TooltipHelper.IsIgnoreFormatter + +public static bool IsIgnoreFormatter(string itemFormatter) + +### TooltipHelper.LimitInRect + +public static void LimitInRect(Tooltip tooltip, Rect chartRect) ## TooltipTheme -> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +### TooltipTheme.Copy -|API|版本|描述| -|--|--|--| -|Copy()||public void Copy(TooltipTheme theme)| -|TooltipTheme()||public TooltipTheme(ThemeType theme) : base(theme)| +public void Copy(TooltipTheme theme) + +### TooltipTheme.TooltipTheme + +public TooltipTheme(ThemeType theme) : base(theme) ## TooltipView -> class in XCharts.Runtime +class in XCharts.Runtime +### TooltipView.CreateView -|API|版本|描述| -|--|--|--| -|CreateView()||public static TooltipView CreateView(Tooltip tooltip, ThemeStyle theme, Transform parent)| -|GetCurrentPos()||public Vector3 GetCurrentPos()| -|GetTargetPos()||public Vector3 GetTargetPos()| -|Refresh()||public void Refresh()| -|SetActive()||public void SetActive(bool flag)| -|Update()||public void Update()| -|UpdatePosition()||public void UpdatePosition(Vector3 pos)| +public static TooltipView CreateView(Tooltip tooltip, ThemeStyle theme, Transform parent) + +### TooltipView.GetCurrentPos + +public Vector3 GetCurrentPos() + +### TooltipView.GetTargetPos + +public Vector3 GetTargetPos() + +### TooltipView.Refresh + +public void Refresh() + +### TooltipView.SetActive + +public void SetActive(bool flag) + +### TooltipView.Update + +public void Update() + +### TooltipView.UpdatePosition + +public void UpdatePosition(Vector3 pos) ## TooltipViewItem -> class in XCharts.Runtime - +class in XCharts.Runtime ## UGL -> class in XUGL +class in XUGL UGUI 图形库 -|API|版本|描述| -|--|--|--| -|DrawDiamond()||public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color)
Draw a diamond. 画菱形(钻石形状) | -|DrawDiamond()||public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color, Color32 toColor)
Draw a diamond. 画菱形(钻石形状) | -|DrawDiamond()||public static void DrawDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, Color32 color, Color32 toColor)| -|DrawEllipse()||public static void DrawEllipse(VertexHelper vh, Vector3 center, float w, float h, Color32 color, float smoothness = 1)| -|DrawEmptyDiamond()||public static void DrawEmptyDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, float tickness, Color32 color)| -|DrawEmptyDiamond()||public static void DrawEmptyDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, float tickness, Color32 color, Color32 emptyColor)| -|DrawEmptyTriangle()||public static void DrawEmptyTriangle(VertexHelper vh, Vector3 pos, float size, float tickness, Color32 color)| -|DrawEmptyTriangle()||public static void DrawEmptyTriangle(VertexHelper vh, Vector3 pos, float size, float tickness, Color32 color, Color32 backgroundColor)| -|DrawLine()||public static void DrawLine(VertexHelper vh, List<Vector3> points, float width, Color32 color, bool smooth, bool closepath = false)| -|DrawLine()||public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color)
Draw a line. 画直线 | -|DrawLine()||public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color, Color32 toColor)
Draw a line. 画直线 | -|DrawMinus()||public static void DrawMinus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color)
绘制减号 | -|DrawPlus()||public static void DrawPlus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color)
绘制加号 | -|DrawPolygon()||public static void DrawPolygon(VertexHelper vh, List<Vector3> points, Color32 color)
填充任意多边形(目前只支持凸多边形) | -|DrawRectangle()||public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color)| -|DrawRectangle()||public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color, Color32 toColor)| -|DrawRectangle()||public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color)| -|DrawRectangle()||public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color, Color32 toColor)| -|DrawRectangle()||public static void DrawRectangle(VertexHelper vh, Vector3 p1, Vector3 p2, float radius, Color32 color)
Draw a rectangle. 画带长方形 | -|DrawSquare()||public static void DrawSquare(VertexHelper vh, Vector3 center, float radius, Color32 color)
Draw a square. 画正方形 | -|DrawSvgPath()||public static void DrawSvgPath(VertexHelper vh, string path)| -|DrawTriangle()||public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color)| -|DrawTriangle()||public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color, Color32 toColor)| +### UGL.DrawDiamond + +public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color, Color32 toColor) +Draw a diamond. 画菱形(钻石形状) + +public static void DrawDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, Color32 color, Color32 toColor) + + +### UGL.DrawEllipse + +public static void DrawEllipse(VertexHelper vh, Vector3 center, float w, float h, Color32 color, float smoothness = 1) + +### UGL.DrawEmptyDiamond + +public static void DrawEmptyDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, float tickness, Color32 color, Color32 emptyColor) + + +### UGL.DrawEmptyTriangle + +public static void DrawEmptyTriangle(VertexHelper vh, Vector3 pos, float size, float tickness, Color32 color, Color32 backgroundColor) + + +### UGL.DrawLine + +public static void DrawLine(VertexHelper vh, List<Vector3> points, float width, Color32 color, bool smooth, bool closepath = false) + +public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color, Color32 toColor) +Draw a line. 画直线 + + +### UGL.DrawMinus + +public static void DrawMinus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color) +绘制减号 + +### UGL.DrawPlus + +public static void DrawPlus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color) +绘制加号 + +### UGL.DrawPolygon + +public static void DrawPolygon(VertexHelper vh, List<Vector3> points, Color32 color) +填充任意多边形(目前只支持凸多边形) + +### UGL.DrawRectangle + +public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color) + +public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color, Color32 toColor) + +public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color) + +public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color, Color32 toColor) + + +### UGL.DrawSquare + +public static void DrawSquare(VertexHelper vh, Vector3 center, float radius, Color32 color) +Draw a square. 画正方形 + +### UGL.DrawSvgPath + +public static void DrawSvgPath(VertexHelper vh, string path) + +### UGL.DrawTriangle + +public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color, Color32 toColor) + + +## UGL.Direction + +class in XUGL + +曲线方向 + +可选: + +- `XAxis`: 沿X轴方向 +- `YAxis`: 沿Y轴方向 +- `Random`: 随机无序的。如一个闭合的环状曲线。 ## UGLExample -> class in XUGL / 继承自: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic) - +class in XUGL / 继承自: [MaskableGraphic](https://docs.unity3d.com/ScriptReference/30_search.html?q=maskablegraphic) ## UGLHelper -> class in XUGL +class in XUGL + +### UGLHelper.GetAngle360 + +public static float GetAngle360(Vector2 from, Vector2 to) +获得0-360的角度(12点钟方向为0度) + +### UGLHelper.GetBezier + +public static Vector3 GetBezier(float t, Vector3 sp, Vector3 cp, Vector3 ep) + +### UGLHelper.GetBezier2 + +public static Vector3 GetBezier2(float t, Vector3 sp, Vector3 p1, Vector3 p2, Vector3 ep) + +### UGLHelper.GetBezierList + +public static List<Vector3> GetBezierList(Vector3 sp, Vector3 ep, int segment, Vector3 cp) + +### UGLHelper.GetDire + +public static Vector3 GetDire(float angle, bool isDegree = false) + +### UGLHelper.GetIntersection + +public static bool GetIntersection(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, ref List<Vector3> intersection) +获得两直线的交点 -|API|版本|描述| -|--|--|--| -|GetAngle360()||public static float GetAngle360(Vector2 from, Vector2 to)
获得0-360的角度(12点钟方向为0度) | -|GetBezier()||public static Vector3 GetBezier(float t, Vector3 sp, Vector3 cp, Vector3 ep)| -|GetBezier2()||public static Vector3 GetBezier2(float t, Vector3 sp, Vector3 p1, Vector3 p2, Vector3 ep)| -|GetBezierList()||public static List<Vector3> GetBezierList(Vector3 sp, Vector3 ep, int segment, Vector3 cp)| -|GetDire()||public static Vector3 GetDire(float angle, bool isDegree = false)| -|GetIntersection()||public static bool GetIntersection(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, ref List<Vector3> intersection)
获得两直线的交点 | -|GetIntersection()||public static bool GetIntersection(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, ref Vector3 intersection)
获得两直线的交点 | -|GetPos()||public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false)| -|GetVertialDire()||public static Vector3 GetVertialDire(Vector3 dire)| -|IsClearColor()||public static bool IsClearColor(Color color)| -|IsClearColor()||public static bool IsClearColor(Color32 color)| -|IsPointInPolygon()||public static bool IsPointInPolygon(Vector3 p, List<Vector2> polyons)| -|IsPointInPolygon()||public static bool IsPointInPolygon(Vector3 p, List<Vector3> polyons)| -|IsPointInPolygon()||public static bool IsPointInPolygon(Vector3 p, params Vector3[] polyons)| -|IsPointInTriangle()||public static bool IsPointInTriangle(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 check)| -|IsValueEqualsColor()||public static bool IsValueEqualsColor(Color color1, Color color2)| -|IsValueEqualsColor()||public static bool IsValueEqualsColor(Color32 color1, Color32 color2)| -|IsValueEqualsList<T>()||public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2)| -|IsValueEqualsString()||public static bool IsValueEqualsString(string str1, string str2)| -|IsValueEqualsVector2()||public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2)| -|IsValueEqualsVector3()||public static bool IsValueEqualsVector3(Vector3 v1, Vector2 v2)| -|IsValueEqualsVector3()||public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2)| -|IsZeroVector()||public static bool IsZeroVector(Vector3 pos)| -|RotateRound()||public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle)| +### UGLHelper.GetPos + +public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false) + +### UGLHelper.GetVertialDire + +public static Vector3 GetVertialDire(Vector3 dire) + +### UGLHelper.IsClearColor + +public static bool IsClearColor(Color color) + + +### UGLHelper.IsPointInPolygon + +public static bool IsPointInPolygon(Vector3 p, List<Vector2> polyons) + +public static bool IsPointInPolygon(Vector3 p, params Vector3[] polyons) + + +### UGLHelper.IsPointInTriangle + +public static bool IsPointInTriangle(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 check) + +### UGLHelper.IsValueEqualsColor + +public static bool IsValueEqualsColor(Color color1, Color color2) + + +### UGLHelper.IsValueEqualsList<T> + +public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2) + +### UGLHelper.IsValueEqualsString + +public static bool IsValueEqualsString(string str1, string str2) + +### UGLHelper.IsValueEqualsVector2 + +public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2) + +### UGLHelper.IsValueEqualsVector3 + +public static bool IsValueEqualsVector3(Vector3 v1, Vector2 v2) + + +### UGLHelper.IsZeroVector + +public static bool IsZeroVector(Vector3 pos) + +### UGLHelper.RotateRound + +public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle) ## UIComponent -> class in XCharts.Runtime / 继承自: [BaseGraph](#basegraph) +class in XCharts.Runtime / 继承自: [BaseGraph](#basegraph) UI组件基类。 -|API|版本|描述| -|--|--|--| -|SetAllDirty()||public override void SetAllDirty()| -|SetDataDirty()|v3.9.0|public void SetDataDirty()| -|SetVerticesDirty()||public override void SetVerticesDirty()| -|UpdateTheme()||public bool UpdateTheme(ThemeType theme)
切换内置主题。 | +### UIComponent.background + +public Background background +背景样式。 + +### UIComponent.chartHideFlags + +public override HideFlags chartHideFlags + +### UIComponent.theme + +public UIComponentTheme theme + +### UIComponent.SetAllDirty + +public override void SetAllDirty() + +### UIComponent.SetDataDirty + +public void SetDataDirty() + +> 从 `v3.9.0` 开始支持 + + +### UIComponent.SetVerticesDirty + +public override void SetVerticesDirty() + +### UIComponent.UpdateTheme + +public bool UpdateTheme(ThemeType theme) +切换内置主题。 ## UIComponentTheme -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +### UIComponentTheme.show -|API|版本|描述| -|--|--|--| -|GetBackgroundColor()||public Color32 GetBackgroundColor(Background background)| +public bool show + +### UIComponentTheme.GetBackgroundColor + +public Color32 GetBackgroundColor(Background background) ## UIHelper -> class in XCharts.Runtime +class in XCharts.Runtime UI帮助类。 ## ViewControl -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) > 从 `v3.11.0` 开始支持 @@ -3358,218 +9093,620 @@ UI帮助类。 ## VisualMap -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) 视觉映射组件。用于进行『视觉编码』,也就是将数据映射到视觉元素(视觉通道)。 -|API|版本|描述| -|--|--|--| -|AddColors()||public void AddColors(List<Color32> colors)| -|AddColors()||public void AddColors(List<string> colors)| -|ClearComponentDirty()||public override void ClearComponentDirty()| -|ClearVerticesDirty()||public override void ClearVerticesDirty()| -|GetColor()||public Color32 GetColor(double value)| -|GetColor()||public Color32 GetColor(double xValue, double yValue, double zValue, byte alpha = 255)| -|GetIndex()||public int GetIndex(double value)| -|GetValue()||public double GetValue(Vector3 pos, Rect chartRect)| -|IsInRangeMaxRect()||public bool IsInRangeMaxRect(Vector3 local, Rect chartRect, float triangleLen)| -|IsInRangeMinRect()||public bool IsInRangeMinRect(Vector3 local, Rect chartRect, float triangleLen)| -|IsInRangeRect()||public bool IsInRangeRect(Vector3 local, Rect chartRect)| -|IsInRect()||public bool IsInRect(Vector3 local, Rect chartRect, float triangleLen = 20)| -|IsInSelectedValue()||public bool IsInSelectedValue(double value)| -|IsPiecewise()||public bool IsPiecewise()| +### VisualMap.range + +public double[] range +指定手柄对应数值的位置。range 应在[min,max]范围内。 + +### VisualMap.runtimeRangeMaxHeight + +public float runtimeRangeMaxHeight + +### VisualMap.runtimeRangeMinHeight + +public float runtimeRangeMinHeight + +### VisualMap.text + +public string[] text +两端的文本,如 ['High', 'Low']。 + +### VisualMap.textGap + +public float[] textGap +两端文字主体之间的距离,单位为px。 + +### VisualMap.vertsDirty + +public override bool vertsDirty + +### VisualMap.AddColors + +public void AddColors(List<string> colors) + + +### VisualMap.ClearComponentDirty + +public override void ClearComponentDirty() + +### VisualMap.ClearVerticesDirty + +public override void ClearVerticesDirty() + +### VisualMap.GetColor + +public Color32 GetColor(double value) + + +### VisualMap.GetIndex + +public int GetIndex(double value) + +### VisualMap.GetValue + +public double GetValue(Vector3 pos, Rect chartRect) + +### VisualMap.IsInRangeMaxRect + +public bool IsInRangeMaxRect(Vector3 local, Rect chartRect, float triangleLen) + +### VisualMap.IsInRangeMinRect + +public bool IsInRangeMinRect(Vector3 local, Rect chartRect, float triangleLen) + +### VisualMap.IsInRangeRect + +public bool IsInRangeRect(Vector3 local, Rect chartRect) + +### VisualMap.IsInRect + +public bool IsInRect(Vector3 local, Rect chartRect, float triangleLen = 20) + +### VisualMap.IsInSelectedValue + +public bool IsInSelectedValue(double value) + +### VisualMap.IsPiecewise + +public bool IsPiecewise() + +## VisualMap.SelectedMode + +class in XCharts.Runtime + +选择模式 + +可选: + +- `Multiple`: 多选。 +- `Single`: 单选。 + +## VisualMap.Type + +class in XCharts.Runtime + +类型。分为连续型和分段型。 + +可选: + +- `Continuous`: 连续型。 +- `Piecewise`: 分段型。 ## VisualMapContext -> class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) +class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentcontext) +### VisualMapContext.max + +public double max + +### VisualMapContext.maxDrag + +public bool maxDrag + +### VisualMapContext.min + +public double min + +### VisualMapContext.minDrag + +public bool minDrag + +### VisualMapContext.pointerIndex + +public int pointerIndex +鼠标悬停选中的index + +### VisualMapContext.pointerValue + +public double pointerValue ## VisualMapHelper -> class in XCharts.Runtime +class in XCharts.Runtime +### VisualMapHelper.AutoSetLineMinMax -|API|版本|描述| -|--|--|--| -|AutoSetLineMinMax()||public static void AutoSetLineMinMax(VisualMap visualMap, Serie serie, bool isY, Axis axis, Axis relativedAxis)| -|GetDimension()||public static int GetDimension(VisualMap visualMap, int defaultDimension)| -|IsNeedAreaGradient()||public static bool IsNeedAreaGradient(VisualMap visualMap)| -|IsNeedGradient()||public static bool IsNeedGradient(VisualMap visualMap)| -|IsNeedLineGradient()||public static bool IsNeedLineGradient(VisualMap visualMap)| -|SetMinMax()||public static void SetMinMax(VisualMap visualMap, double min, double max)| +public static void AutoSetLineMinMax(VisualMap visualMap, Serie serie, bool isY, Axis axis, Axis relativedAxis) + +### VisualMapHelper.GetDimension + +public static int GetDimension(VisualMap visualMap, int defaultDimension) + +### VisualMapHelper.IsNeedAreaGradient + +public static bool IsNeedAreaGradient(VisualMap visualMap) + +### VisualMapHelper.IsNeedGradient + +public static bool IsNeedGradient(VisualMap visualMap) + +### VisualMapHelper.IsNeedLineGradient + +public static bool IsNeedLineGradient(VisualMap visualMap) + +### VisualMapHelper.SetMinMax + +public static void SetMinMax(VisualMap visualMap, double min, double max) ## VisualMapRange -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +### VisualMapRange.color -|API|版本|描述| -|--|--|--| -|Contains()||public bool Contains(double value, double minMaxRange)| +public Color32 color +颜色 + +### VisualMapRange.label + +public string label +文字描述 + +### VisualMapRange.max + +public double max +范围最大值 + +### VisualMapRange.min + +public double min +范围最小值 + +### VisualMapRange.Contains + +public bool Contains(double value, double minMaxRange) ## VisualMapTheme -> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +### VisualMapTheme.Copy -|API|版本|描述| -|--|--|--| -|Copy()||public void Copy(VisualMapTheme theme)| -|VisualMapTheme()||public VisualMapTheme(ThemeType theme) : base(theme)| +public void Copy(VisualMapTheme theme) + +### VisualMapTheme.VisualMapTheme + +public VisualMapTheme(ThemeType theme) : base(theme) ## Wrapper<T> -> class in XCharts.Runtime - +class in XCharts.Runtime ## XAxis -> class in XCharts.Runtime / 继承自: [Axis](#axis) +class in XCharts.Runtime / 继承自: [Axis](#axis) 直角坐标系 grid 中的 x 轴。 -|API|版本|描述| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()
直角坐标系 grid 中的 x 轴。 | +### XAxis.SetDefaultValue + +public override void SetDefaultValue() +直角坐标系 grid 中的 x 轴。 ## XAxis3D -> class in XCharts.Runtime / 继承自: [Axis](#axis) +class in XCharts.Runtime / 继承自: [Axis](#axis) > 从 `v3.11.0` 开始支持 直角坐标系 grid 中的 x 轴。 -|API|版本|描述| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()
直角坐标系 grid 中的 x 轴。 | +### XAxis3D.SetDefaultValue + +public override void SetDefaultValue() +直角坐标系 grid 中的 x 轴。 ## XChartsMgr -> class in XCharts.Runtime +class in XCharts.Runtime + +### XChartsMgr.fullVersion + +public static string fullVersion + +### XChartsMgr.AddChart + +public static void AddChart(BaseChart chart) + +### XChartsMgr.ContainsChart + +public static bool ContainsChart(BaseChart chart) -|API|版本|描述| -|--|--|--| -|AddChart()||public static void AddChart(BaseChart chart)| -|ContainsChart()||public static bool ContainsChart(BaseChart chart)| -|ContainsChart()||public static bool ContainsChart(string chartName)| -|GetChart()||public static BaseChart GetChart(string chartName)| -|GetCharts()||public static List<BaseChart> GetCharts(string chartName)| -|GetPackageFullPath()||public static string GetPackageFullPath()| -|GetRepeatChartNameInfo()||public static string GetRepeatChartNameInfo(BaseChart chart, string chartName)| -|IsRepeatChartName()||public static bool IsRepeatChartName(BaseChart chart, string chartName = null)| -|RemoveAllChartObject()||public static void RemoveAllChartObject()| -|RemoveChart()||public static void RemoveChart(string chartName)| +### XChartsMgr.GetChart + +public static BaseChart GetChart(string chartName) + +### XChartsMgr.GetCharts + +public static List<BaseChart> GetCharts(string chartName) + +### XChartsMgr.GetPackageFullPath + +public static string GetPackageFullPath() + +### XChartsMgr.GetRepeatChartNameInfo + +public static string GetRepeatChartNameInfo(BaseChart chart, string chartName) + +### XChartsMgr.IsRepeatChartName + +public static bool IsRepeatChartName(BaseChart chart, string chartName = null) + +### XChartsMgr.RemoveAllChartObject + +public static void RemoveAllChartObject() + +### XChartsMgr.RemoveChart + +public static void RemoveChart(string chartName) ## XCResourceImporterWindow -> class in XCharts.Runtime / 继承自: [UnityEditor.EditorWindow](https://docs.unity3d.com/ScriptReference/30_search.html?q=unityeditor.editorwindow) +class in XCharts.Runtime / 继承自: [UnityEditor.EditorWindow](https://docs.unity3d.com/ScriptReference/30_search.html?q=unityeditoreditorwindow) +### XCResourceImporterWindow.ShowPackageImporterWindow -|API|版本|描述| -|--|--|--| -|ShowPackageImporterWindow()||public static void ShowPackageImporterWindow()| +public static void ShowPackageImporterWindow() ## XCResourcesImporter -> class in XCharts.Runtime +class in XCharts.Runtime +### XCResourcesImporter.OnDestroy() -|API|版本|描述| -|--|--|--| -|OnDestroy()||public void OnDestroy() { }| -|OnGUI()||public void OnGUI()| -|XCResourcesImporter()||public XCResourcesImporter() { }| +public void OnDestroy() + +### XCResourcesImporter.XCResourcesImporter() + +public XCResourcesImporter() + +### XCResourcesImporter.OnDestroy + +public void OnDestroy() { } + +### XCResourcesImporter.OnGUI + +public void OnGUI() + +### XCResourcesImporter.XCResourcesImporter + +public XCResourcesImporter() { } ## XCSettings -> class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject) +class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=scriptableobject) +### XCSettings.axisLineType -|API|版本|描述| -|--|--|--| -|AddCustomTheme()||public static bool AddCustomTheme(Theme theme)| -|ExistAssetFile()||public static bool ExistAssetFile()| -|GetSettingAssetPath()||public static string GetSettingAssetPath()| +public static LineStyle.Type axisLineType + +### XCSettings.axisLineWidth + +public static float axisLineWidth + +### XCSettings.axisSplitLineType + +public static LineStyle.Type axisSplitLineType + +### XCSettings.axisSplitLineWidth + +public static float axisSplitLineWidth + +### XCSettings.axisTickLength + +public static float axisTickLength + +### XCSettings.axisTickWidth + +public static float axisTickWidth + +### XCSettings.cicleSmoothness + +public static float cicleSmoothness + +### XCSettings.customThemes + +public static List<Theme> customThemes + +### XCSettings.dataZoomBorderWidth + +public static float dataZoomBorderWidth + +### XCSettings.dataZoomDataLineWidth + +public static float dataZoomDataLineWidth + +### XCSettings.editorShowAllListData + +public static bool editorShowAllListData + +### XCSettings.font + +public static Font font + +### XCSettings.fontSizeLv1 + +public static int fontSizeLv1 +一级字体大小。 + +### XCSettings.fontSizeLv2 + +public static int fontSizeLv2 + +### XCSettings.fontSizeLv3 + +public static int fontSizeLv3 + +### XCSettings.fontSizeLv4 + +public static int fontSizeLv4 + +### XCSettings.gaugeAxisLineWidth + +public static float gaugeAxisLineWidth + +### XCSettings.gaugeAxisSplitLineLength + +public static float gaugeAxisSplitLineLength + +### XCSettings.gaugeAxisSplitLineWidth + +public static float gaugeAxisSplitLineWidth + +### XCSettings.gaugeAxisTickLength + +public static float gaugeAxisTickLength + +### XCSettings.gaugeAxisTickWidth + +public static float gaugeAxisTickWidth + +### XCSettings.lang + +public static Lang lang + +### XCSettings.lineSegmentDistance + +public static float lineSegmentDistance + +### XCSettings.lineSmoothness + +public static float lineSmoothness + +### XCSettings.lineSmoothStyle + +public static float lineSmoothStyle + +### XCSettings.maxPainter + +public static int maxPainter + +### XCSettings.serieCandlestickBorderWidth + +public static float serieCandlestickBorderWidth + +### XCSettings.serieLineSymbolSize + +public static float serieLineSymbolSize + +### XCSettings.serieLineWidth + +public static float serieLineWidth + +### XCSettings.serieScatterSymbolSize + +public static float serieScatterSymbolSize + +### XCSettings.serieSelectedRate + +public static float serieSelectedRate + +### XCSettings.tmpFont + +public static TMP_FontAsset tmpFont + +### XCSettings.tootipLineWidth + +public static float tootipLineWidth + +### XCSettings.visualMapBorderWidth + +public static float visualMapBorderWidth + +### XCSettings.visualMapTriangeLen + +public static float visualMapTriangeLen + +### XCSettings.AddCustomTheme + +public static bool AddCustomTheme(Theme theme) + +### XCSettings.ExistAssetFile + +public static bool ExistAssetFile() + +### XCSettings.GetSettingAssetPath + +public static string GetSettingAssetPath() ## XCThemeMgr -> class in XCharts.Runtime +class in XCharts.Runtime + +### XCThemeMgr.AddTheme + +public static void AddTheme(Theme theme) + +### XCThemeMgr.CheckReloadTheme + +public static void CheckReloadTheme() + +### XCThemeMgr.ContainsTheme + +public static bool ContainsTheme(string themeName) + +### XCThemeMgr.ExportTheme + +public static bool ExportTheme(Theme theme) -|API|版本|描述| -|--|--|--| -|AddTheme()||public static void AddTheme(Theme theme)| -|CheckReloadTheme()||public static void CheckReloadTheme()| -|ContainsTheme()||public static bool ContainsTheme(string themeName)| -|ExportTheme()||public static bool ExportTheme(Theme theme)| -|ExportTheme()||public static bool ExportTheme(Theme theme, string themeNewName)| -|GetAllThemeNames()||public static List<string> GetAllThemeNames()| -|GetTheme()||public static Theme GetTheme(string themeName)| -|GetTheme()||public static Theme GetTheme(ThemeType type)| -|GetThemeAssetPath()||public static string GetThemeAssetPath(string themeName)| -|GetThemeList()||public static List<Theme> GetThemeList()| -|LoadTheme()||public static Theme LoadTheme(string themeName)| -|LoadTheme()||public static Theme LoadTheme(ThemeType type)| -|ReloadThemeList()||public static void ReloadThemeList()
重新加载主题列表 | -|SwitchTheme()||public static void SwitchTheme(BaseChart chart, string themeName)| +### XCThemeMgr.GetAllThemeNames + +public static List<string> GetAllThemeNames() + +### XCThemeMgr.GetTheme + +public static Theme GetTheme(string themeName) + + +### XCThemeMgr.GetThemeAssetPath + +public static string GetThemeAssetPath(string themeName) + +### XCThemeMgr.GetThemeList + +public static List<Theme> GetThemeList() + +### XCThemeMgr.LoadTheme + +public static Theme LoadTheme(string themeName) + + +### XCThemeMgr.ReloadThemeList + +public static void ReloadThemeList() +重新加载主题列表 + +### XCThemeMgr.SwitchTheme + +public static void SwitchTheme(BaseChart chart, string themeName) ## XLog -> class in XCharts.Runtime / 继承自: [MonoBehaviour](#monobehaviour) +class in XCharts.Runtime / 继承自: [MonoBehaviour](#monobehaviour) 日志系统。用于输出带日期和日志类型的日志,支持输出到文件,支持自定义输出的日志类型。 -|API|版本|描述| -|--|--|--| -|CanLog()||public static bool CanLog(int level)| -|ClearAllLog()||public static void ClearAllLog()| -|Debug()||public static void Debug(string log)| -|EnableLog()||public static void EnableLog(int logType)| -|Error()||public static void Error(string log)| -|FlushLog()||public static void FlushLog()| -|GetNowTime()||public static string GetNowTime(string formatter = null)| -|GetTimestamp()||public static ulong GetTimestamp()| -|Info()||public static void Info(string log)| -|Log()||public static void Log(string log)| -|LogError()||public static void LogError(string log)| -|LogWarning()||public static void LogWarning(string log)| -|Proto()||public static void Proto(string log)| -|Vital()||public static void Vital(string log)| -|Warning()||public static void Warning(string log)| +### XLog.CanLog + +public static bool CanLog(int level) + +### XLog.ClearAllLog + +public static void ClearAllLog() + +### XLog.Debug + +public static void Debug(string log) + +### XLog.EnableLog + +public static void EnableLog(int logType) + +### XLog.Error + +public static void Error(string log) + +### XLog.FlushLog + +public static void FlushLog() + +### XLog.GetNowTime + +public static string GetNowTime(string formatter = null) + +### XLog.GetTimestamp + +public static ulong GetTimestamp() + +### XLog.Info + +public static void Info(string log) + +### XLog.Log + +public static void Log(string log) + +### XLog.LogError + +public static void LogError(string log) + +### XLog.LogWarning + +public static void LogWarning(string log) + +### XLog.Proto + +public static void Proto(string log) + +### XLog.Vital + +public static void Vital(string log) + +### XLog.Warning + +public static void Warning(string log) ## YAxis -> class in XCharts.Runtime / 继承自: [Axis](#axis) +class in XCharts.Runtime / 继承自: [Axis](#axis) 直角坐标系 grid 中的 y 轴。 -|API|版本|描述| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()
直角坐标系 grid 中的 y 轴。 | +### YAxis.SetDefaultValue + +public override void SetDefaultValue() +直角坐标系 grid 中的 y 轴。 ## YAxis3D -> class in XCharts.Runtime / 继承自: [Axis](#axis) +class in XCharts.Runtime / 继承自: [Axis](#axis) > 从 `v3.11.0` 开始支持 直角坐标系 grid 中的 y 轴。 -|API|版本|描述| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()
直角坐标系 grid 中的 y 轴。 | +### YAxis3D.SetDefaultValue + +public override void SetDefaultValue() +直角坐标系 grid 中的 y 轴。 ## ZAxis3D -> class in XCharts.Runtime / 继承自: [Axis](#axis) +class in XCharts.Runtime / 继承自: [Axis](#axis) > 从 `v3.11.0` 开始支持 直角坐标系 grid 中的 y 轴。 -|API|版本|描述| -|--|--|--| -|SetDefaultValue()||public override void SetDefaultValue()
直角坐标系 grid 中的 y 轴。 | +### ZAxis3D.SetDefaultValue + +public override void SetDefaultValue() +直角坐标系 grid 中的 y 轴。 diff --git a/Documentation~/zh/configuration.md b/Documentation~/zh/configuration.md index 703bf268..2776cd90 100644 --- a/Documentation~/zh/configuration.md +++ b/Documentation~/zh/configuration.md @@ -206,29 +206,22 @@ import APITable from '@site/src/components/APITable'; ## AngleAxis -> class in XCharts.Runtime / 继承自: [Axis](#axis) +class in XCharts.Runtime / 继承自: [Axis](#axis) 极坐标系的角度轴。 -```mdx-code-block - -``` +### AngleAxis.startAngle -|参数|默认|版本|描述| -|--|--|--|--| -|startAngle|0||起始刻度的角度,默认为 0 度,即圆心的正右方。 - -```mdx-code-block - -``` +`float` `0` +起始刻度的角度,默认为 0 度,即圆心的正右方。 ## AngleAxisTheme -> class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) ## AnimationAddition -> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) > 从 `v3.8.0` 开始支持 @@ -236,7 +229,7 @@ import APITable from '@site/src/components/APITable'; ## AnimationChange -> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) > 从 `v3.8.0` 开始支持 @@ -244,7 +237,7 @@ import APITable from '@site/src/components/APITable'; ## AnimationFadeIn -> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) > 从 `v3.8.0` 开始支持 @@ -252,7 +245,7 @@ import APITable from '@site/src/components/APITable'; ## AnimationFadeOut -> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) > 从 `v3.8.0` 开始支持 @@ -260,7 +253,7 @@ import APITable from '@site/src/components/APITable'; ## AnimationHiding -> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) > 从 `v3.8.0` 开始支持 @@ -268,457 +261,804 @@ import APITable from '@site/src/components/APITable'; ## AnimationInfo -> class in XCharts.Runtime / 子类: [AnimationFadeIn](#animationfadein), [AnimationFadeOut](#animationfadeout), [AnimationChange](#animationchange), [AnimationAddition](#animationaddition), [AnimationHiding](#animationhiding), [AnimationInteraction](#animationinteraction) +class in XCharts.Runtime / 子类: [AnimationFadeIn](#animationfadein), [AnimationFadeOut](#animationfadeout), [AnimationChange](#animationchange), [AnimationAddition](#animationaddition), [AnimationHiding](#animationhiding), [AnimationInteraction](#animationinteraction) > 从 `v3.8.0` 开始支持 动画配置参数。 -```mdx-code-block - -``` +### AnimationInfo.delay -|参数|默认|版本|描述| -|--|--|--|--| -|enable|true|v3.8.0|是否开启动画效果。 -|reverse|false|v3.8.0|是否开启反向动画效果。 -|delay|0|v3.8.0|动画开始前的延迟时间。 -|duration|1000|v3.8.0|动画的时长。 +`float` `0` `v3.8.0` +动画开始前的延迟时间。 -```mdx-code-block - -``` +### AnimationInfo.duration + +`float` `1000` `v3.8.0` +动画的时长。 + +### AnimationInfo.enable + +`bool` `true` `v3.8.0` +是否开启动画效果。 + +### AnimationInfo.reverse + +`bool` `false` `v3.8.0` +是否开启反向动画效果。 ## AnimationInteraction -> class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) +class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) > 从 `v3.8.0` 开始支持 交互动画。 -```mdx-code-block - -``` +### AnimationInteraction.offset -|参数|默认|版本|描述| -|--|--|--|--| -|width||v3.8.0|宽度的多样式数值。 [MLValue](#mlvalue)| -|radius||v3.8.0|半径的多样式数值。 [MLValue](#mlvalue)| -|offset||v3.8.0|交互的多样式数值。如饼图的扇形选中时的偏移。 [MLValue](#mlvalue)| +`MLValue` `v3.8.0` +交互的多样式数值。如饼图的扇形选中时的偏移。 [MLValue](#mlvalue) -```mdx-code-block - -``` +### AnimationInteraction.radius + +`MLValue` `v3.8.0` +半径的多样式数值。 [MLValue](#mlvalue) + +### AnimationInteraction.width + +`MLValue` `v3.8.0` +宽度的多样式数值。 [MLValue](#mlvalue) ## AnimationStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 动画组件,用于控制图表的动画播放。支持配置五种动画表现:FadeIn(渐入动画),FadeOut(渐出动画),Change(变更动画),Addition(新增动画),Interaction(交互动画)。 按作用的对象可以分为两类:SerieAnimation(系列动画)和DataAnimation(数据动画)。 -```mdx-code-block - -``` +### AnimationStyle.addition -|参数|默认|版本|描述| -|--|--|--|--| -|enable|true||是否开启动画效果。 -|type|||动画类型。
`AnimationType`:
- `Default`: 默认。内部会根据实际情况选择一种动画播放方式。
- `LeftToRight`: 从左往右播放动画。
- `BottomToTop`: 从下往上播放动画。
- `InsideOut`: 由内到外播放动画。
- `AlongPath`: 沿着路径播放动画。当折线图从左到右无序或有折返时,可以使用该模式。
- `Clockwise`: 顺时针播放动画。
| -|easting|||
`AnimationEasing`:
- `Linear`:
| -|threshold|2000||是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。 -|unscaledTime||v3.4.0|动画是否受TimeScaled的影响。默认为 false 受TimeScaled的影响。 -|fadeIn||v3.8.0|渐入动画配置。 [AnimationFadeIn](#animationfadein)| -|fadeOut||v3.8.0|渐出动画配置。 [AnimationFadeOut](#animationfadeout)| -|change||v3.8.0|数据变更动画配置。 [AnimationChange](#animationchange)| -|addition||v3.8.0|数据新增动画配置。 [AnimationAddition](#animationaddition)| -|hiding||v3.8.0|数据隐藏动画配置。 [AnimationHiding](#animationhiding)| -|interaction||v3.8.0|交互动画配置。 [AnimationInteraction](#animationinteraction)| +`AnimationAddition` `v3.8.0` +数据新增动画配置。 [AnimationAddition](#animationaddition) -```mdx-code-block -
-``` +### AnimationStyle.change + +`AnimationChange` `v3.8.0` +数据变更动画配置。 [AnimationChange](#animationchange) + +### AnimationStyle.easting + +`AnimationEasing` + + +可选: + +- `Linear`: + +### AnimationStyle.enable + +`bool` `true` +是否开启动画效果。 + +### AnimationStyle.fadeIn + +`AnimationFadeIn` `v3.8.0` +渐入动画配置。 [AnimationFadeIn](#animationfadein) + +### AnimationStyle.fadeOut + +`AnimationFadeOut` `v3.8.0` +渐出动画配置。 [AnimationFadeOut](#animationfadeout) + +### AnimationStyle.hiding + +`AnimationHiding` `v3.8.0` +数据隐藏动画配置。 [AnimationHiding](#animationhiding) + +### AnimationStyle.interaction + +`AnimationInteraction` `v3.8.0` +交互动画配置。 [AnimationInteraction](#animationinteraction) + +### AnimationStyle.threshold + +`int` `2000` +是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。 + +### AnimationStyle.type + +`AnimationType` +动画类型。 + +可选: + +- `Default`: 默认。内部会根据实际情况选择一种动画播放方式。 +- `LeftToRight`: 从左往右播放动画。 +- `BottomToTop`: 从下往上播放动画。 +- `InsideOut`: 由内到外播放动画。 +- `AlongPath`: 沿着路径播放动画。当折线图从左到右无序或有折返时,可以使用该模式。 +- `Clockwise`: 顺时针播放动画。 + +### AnimationStyle.unscaledTime + +`bool` `v3.4.0` +动画是否受TimeScaled的影响。默认为 false 受TimeScaled的影响。 ## AreaStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) 区域填充样式。 -```mdx-code-block - -``` +### AreaStyle.color -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示区域填充。 -|origin|||区域填充的起始位置。
`AreaStyle.AreaOrigin`:
- `Auto`: 填充坐标轴轴线到数据间的区域。
- `Start`: 填充坐标轴底部到数据间的区域。
- `End`: 填充坐标轴顶部到数据间的区域。
| -|color|||区域填充的颜色,如果toColor不是默认值,则表示渐变色的起点颜色。 -|toColor|||渐变色的终点颜色。 -|opacity|0.6f||图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 -|innerFill||v3.2.0|是否只填充多边形区域。目前只支持凸多边形。 -|toTop|true|v3.6.0|渐变色是到顶部还是到实际位置。默认为true到顶部。 +`Color32` +区域填充的颜色,如果toColor不是默认值,则表示渐变色的起点颜色。 -```mdx-code-block -
-``` +### AreaStyle.innerFill + +`bool` `v3.2.0` +是否只填充多边形区域。目前只支持凸多边形。 + +### AreaStyle.opacity + +`float` `0.6f` +图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 + +### AreaStyle.origin + +`AreaStyle.AreaOrigin` +区域填充的起始位置。 + +可选: + +- `Auto`: 填充坐标轴轴线到数据间的区域。 +- `Start`: 填充坐标轴底部到数据间的区域。 +- `End`: 填充坐标轴顶部到数据间的区域。 + +### AreaStyle.show + +`bool` `true` +是否显示区域填充。 + +### AreaStyle.toColor + +`Color32` +渐变色的终点颜色。 + +### AreaStyle.toTop + +`bool` `true` `v3.6.0` +渐变色是到顶部还是到实际位置。默认为true到顶部。 ## ArrowStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) -```mdx-code-block - -``` +### ArrowStyle.color -|参数|默认|版本|描述| -|--|--|--|--| -|width|10||箭头宽。 -|height|15||箭头高。 -|offset|0||箭头偏移。 -|dent|3||箭头的凹度。 -|color|Color.clear||箭头颜色。 +`Color32` `Color.clear` +箭头颜色。 -```mdx-code-block - -``` +### ArrowStyle.dent + +`float` `3` +箭头的凹度。 + +### ArrowStyle.height + +`float` `15` +箭头高。 + +### ArrowStyle.offset + +`float` `0` +箭头偏移。 + +### ArrowStyle.width + +`float` `10` +箭头宽。 ## Axis -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) / 子类: [AngleAxis](#angleaxis), [ParallelAxis](#parallelaxis), [RadiusAxis](#radiusaxis), [SingleAxis](#singleaxis), [XAxis](#xaxis), [XAxis3D](#xaxis3d), [YAxis](#yaxis), [YAxis3D](#yaxis3d), [ZAxis3D](#zaxis3d) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) / 子类: [AngleAxis](#angleaxis), [ParallelAxis](#parallelaxis), [RadiusAxis](#radiusaxis), [SingleAxis](#singleaxis), [XAxis](#xaxis), [XAxis3D](#xaxis3d), [YAxis](#yaxis), [YAxis3D](#yaxis3d), [ZAxis3D](#zaxis3d) 直角坐标系的坐标轴组件。 -```mdx-code-block - -``` +### Axis.animation -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示坐标轴。 -|type|||坐标轴类型。
`Axis.AxisType`:
- `Value`: 数值轴。适用于连续数据。
- `Category`: 类目轴。适用于离散的类目数据,为该类型时必须通过 data 设置类目数据。serie的数据第0维数据对应坐标轴data的index。
- `Log`: 对数轴。适用于对数数据。
- `Time`: 时间轴。适用于连续的时序数据。
| -|minMaxType|||坐标轴刻度最大最小值显示类型。
`Axis.AxisMinMaxType`:
- `Default`: 0-最大值。
- `MinMax`: 最小值-最大值。
- `Custom`: 自定义最小值最大值。
- `MinMaxAuto`: [since("v3.7.0")]最小值-最大值。自动计算合适的值。
| -|gridIndex|||坐标轴所在的 grid 的索引,默认位于第一个 grid。 -|polarIndex|||坐标轴所在的 ploar 的索引,默认位于第一个 polar。 -|parallelIndex|||坐标轴所在的 parallel 的索引,默认位于第一个 parallel。 -|position|||坐标轴在Grid中的位置。
`Axis.AxisPosition`:
- `Left`: 坐标轴在Grid中的位置
- `Right`: 坐标轴在Grid中的位置
- `Bottom`: 坐标轴在Grid中的位置
- `Top`: 坐标轴在Grid中的位置
- `Center`: 坐标轴在Grid中的位置
| -|offset|||坐标轴相对默认位置的偏移。在相同position有多个坐标轴时有用。 -|min|||设定的坐标轴刻度最小值,当minMaxType为Custom时有效。 -|max|||设定的坐标轴刻度最大值,当minMaxType为Custom时有效。 -|splitNumber|0||坐标轴的期望的分割段数。默认为0表示自动分割。 -|interval|0||强制设置坐标轴分割间隔。无法在类目轴中使用。 -|boundaryGap|true||坐标轴两边是否留白。只对类目轴有效。 -|maxCache|0||The first data will be remove when the size of axis data is larger then maxCache. -|logBase|10||对数轴的底数,只在对数轴(type:'Log')中有效。 -|logBaseE|false||对数轴是否以自然数 e 为底数,为 true 时 logBase 失效。 -|ceilRate|0||最大最小值向上取整的倍率。默认为0时自动计算。 -|inverse|false||是否反向坐标轴。在类目轴中无效。 -|clockwise|true||刻度增长是否按顺时针,默认顺时针。 -|insertDataToHead|||添加新数据时是在列表的头部还是尾部加入。 -|minCategorySpacing|0|v3.11.0|类目之间的最小间距。 -|icons|||类目数据对应的图标。 -|data|||类目数据,在类目轴(type: 'category')中有效。 -|axisLine|||坐标轴轴线。 [AxisLine](#axisline)| -|axisName|||坐标轴名称。 [AxisName](#axisname)| -|axisTick|||坐标轴刻度。 [AxisTick](#axistick)| -|axisLabel|||坐标轴刻度标签。 [AxisLabel](#axislabel)| -|splitLine|||坐标轴分割线。 [AxisSplitLine](#axissplitline)| -|splitArea|||坐标轴分割区域。 [AxisSplitArea](#axissplitarea)| -|animation|||坐标轴动画。 [AxisAnimation](#axisanimation)| -|minorTick||v3.2.0|坐标轴次刻度。 [AxisMinorTick](#axisminortick)| -|minorSplitLine||v3.2.0|坐标轴次分割线。 [AxisMinorSplitLine](#axisminorsplitline)| -|indicatorLabel||v3.4.0|指示器文本的样式。Tooltip为Cross时使用。 [LabelStyle](#labelstyle)| +`AxisAnimation` +坐标轴动画。 [AxisAnimation](#axisanimation) -```mdx-code-block -
-``` +### Axis.axisLabel + +`AxisLabel` +坐标轴刻度标签。 [AxisLabel](#axislabel) + +### Axis.axisLine + +`AxisLine` +坐标轴轴线。 [AxisLine](#axisline) + +### Axis.axisName + +`AxisName` +坐标轴名称。 [AxisName](#axisname) + +### Axis.axisTick + +`AxisTick` +坐标轴刻度。 [AxisTick](#axistick) + +### Axis.boundaryGap + +`bool` `true` +坐标轴两边是否留白。只对类目轴有效。 + +### Axis.ceilRate + +`double` `0` +最大最小值向上取整的倍率。默认为0时自动计算。 + +### Axis.clockwise + +`bool` `true` +刻度增长是否按顺时针,默认顺时针。 + +### Axis.data + +`List` +类目数据,在类目轴(type: 'category')中有效。 + +### Axis.gridIndex + +`int` +坐标轴所在的 grid 的索引,默认位于第一个 grid。 + +### Axis.icons + +`List` +类目数据对应的图标。 + +### Axis.indicatorLabel + +`LabelStyle` `v3.4.0` +指示器文本的样式。Tooltip为Cross时使用。 [LabelStyle](#labelstyle) + +### Axis.insertDataToHead + +`bool` +添加新数据时是在列表的头部还是尾部加入。 + +### Axis.interval + +`double` `0` +强制设置坐标轴分割间隔。无法在类目轴中使用。 + +### Axis.inverse + +`bool` `false` +是否反向坐标轴。在类目轴中无效。 + +### Axis.logBase + +`float` `10` +对数轴的底数,只在对数轴(type:'Log')中有效。 + +### Axis.logBaseE + +`bool` `false` +对数轴是否以自然数 e 为底数,为 true 时 logBase 失效。 + +### Axis.max + +`double` +设定的坐标轴刻度最大值,当minMaxType为Custom时有效。 + +### Axis.maxCache + +`int` `0` +The first data will be remove when the size of axis data is larger then maxCache. + +### Axis.min + +`double` +设定的坐标轴刻度最小值,当minMaxType为Custom时有效。 + +### Axis.minCategorySpacing + +`float` `0` `v3.11.0` +类目之间的最小间距。 + +### Axis.minMaxType + +`Axis.AxisMinMaxType` +坐标轴刻度最大最小值显示类型。 + +可选: + +- `Default`: 0-最大值。 +- `MinMax`: 最小值-最大值。 +- `Custom`: 自定义最小值最大值。 +- `MinMaxAuto`: [since("v3.7.0")]最小值-最大值。自动计算合适的值。 + +### Axis.minorSplitLine + +`AxisMinorSplitLine` `v3.2.0` +坐标轴次分割线。 [AxisMinorSplitLine](#axisminorsplitline) + +### Axis.minorTick + +`AxisMinorTick` `v3.2.0` +坐标轴次刻度。 [AxisMinorTick](#axisminortick) + +### Axis.offset + +`float` +坐标轴相对默认位置的偏移。在相同position有多个坐标轴时有用。 + +### Axis.parallelIndex + +`int` +坐标轴所在的 parallel 的索引,默认位于第一个 parallel。 + +### Axis.polarIndex + +`int` +坐标轴所在的 ploar 的索引,默认位于第一个 polar。 + +### Axis.position + +`Axis.AxisPosition` +坐标轴在Grid中的位置。 + +可选: + +- `Left`: 坐标轴在Grid中的位置 +- `Right`: 坐标轴在Grid中的位置 +- `Bottom`: 坐标轴在Grid中的位置 +- `Top`: 坐标轴在Grid中的位置 +- `Center`: 坐标轴在Grid中的位置 + +### Axis.show + +`bool` `true` +是否显示坐标轴。 + +### Axis.splitArea + +`AxisSplitArea` +坐标轴分割区域。 [AxisSplitArea](#axissplitarea) + +### Axis.splitLine + +`AxisSplitLine` +坐标轴分割线。 [AxisSplitLine](#axissplitline) + +### Axis.splitNumber + +`int` `0` +坐标轴的期望的分割段数。默认为0表示自动分割。 + +### Axis.type + +`Axis.AxisType` +坐标轴类型。 + +可选: + +- `Value`: 数值轴。适用于连续数据。 +- `Category`: 类目轴。适用于离散的类目数据,为该类型时必须通过 data 设置类目数据。serie的数据第0维数据对应坐标轴data的index。 +- `Log`: 对数轴。适用于对数数据。 +- `Time`: 时间轴。适用于连续的时序数据。 ## AxisAnimation -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) > 从 `v3.9.0` 开始支持 坐标轴动画配置。 -```mdx-code-block - -``` +### AxisAnimation.duration -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否开启动画。 -|duration|||动画时长(ms)。 默认设置为0时,会自动获取serie的动画时长。 -|unscaledTime|||动画是否受TimeScaled的影响。默认为 false 受TimeScaled的影响。 +`float` +动画时长(ms)。 默认设置为0时,会自动获取serie的动画时长。 -```mdx-code-block - -``` +### AxisAnimation.show + +`bool` `true` +是否开启动画。 + +### AxisAnimation.unscaledTime + +`bool` +动画是否受TimeScaled的影响。默认为 false 受TimeScaled的影响。 ## AxisLabel -> class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle) +class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle) 坐标轴刻度标签的相关设置。 -```mdx-code-block - -``` +### AxisLabel.inside -|参数|默认|版本|描述| -|--|--|--|--| -|interval|0||坐标轴刻度标签的显示间隔,在类目轴中有效。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。 -|inside|false||刻度标签是否朝内,默认朝外。 -|showAsPositiveNumber|false||将负数数值显示为正数。一般和`Serie`的`showAsPositiveNumber`配合使用。 -|onZero|false||刻度标签显示在0刻度上。 -|showStartLabel|true||是否显示第一个文本。 -|showEndLabel|true||是否显示最后一个文本。 -|textLimit|||文本限制。 [TextLimit](#textlimit)| +`bool` `false` +刻度标签是否朝内,默认朝外。 -```mdx-code-block - -``` +### AxisLabel.interval + +`int` `0` +坐标轴刻度标签的显示间隔,在类目轴中有效。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。 + +### AxisLabel.onZero + +`bool` `false` +刻度标签显示在0刻度上。 + +### AxisLabel.showAsPositiveNumber + +`bool` `false` +将负数数值显示为正数。一般和`Serie`的`showAsPositiveNumber`配合使用。 + +### AxisLabel.showEndLabel + +`bool` `true` +是否显示最后一个文本。 + +### AxisLabel.showStartLabel + +`bool` `true` +是否显示第一个文本。 + +### AxisLabel.textLimit + +`TextLimit` +文本限制。 [TextLimit](#textlimit) ## AxisLine -> class in XCharts.Runtime / 继承自: [BaseLine](#baseline) +class in XCharts.Runtime / 继承自: [BaseLine](#baseline) 坐标轴轴线。 -```mdx-code-block - -``` +### AxisLine.arrow -|参数|默认|版本|描述| -|--|--|--|--| -|onZero|||X 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一个轴为数值轴且包含 0 刻度时有效。 -|showArrow|||是否显示箭头。 -|arrow|||轴线箭头。 [ArrowStyle](#arrowstyle)| +`ArrowStyle` +轴线箭头。 [ArrowStyle](#arrowstyle) -```mdx-code-block - -``` +### AxisLine.onZero + +`bool` +X 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一个轴为数值轴且包含 0 刻度时有效。 + +### AxisLine.showArrow + +`bool` +是否显示箭头。 ## AxisMinorSplitLine -> class in XCharts.Runtime / 继承自: [BaseLine](#baseline) +class in XCharts.Runtime / 继承自: [BaseLine](#baseline) > 从 `v3.2.0` 开始支持 坐标轴在 grid 区域中的次分隔线。次分割线会对齐次刻度线 minorTick。 -```mdx-code-block - -``` +### AxisMinorSplitLine.autoColor -|参数|默认|版本|描述| -|--|--|--|--| -|distance|||刻度线与轴线的距离。 -|autoColor|||自动设置颜色。 +`bool` +自动设置颜色。 -```mdx-code-block - -``` +### AxisMinorSplitLine.distance + +`float` +刻度线与轴线的距离。 ## AxisMinorTick -> class in XCharts.Runtime / 继承自: [BaseLine](#baseline) +class in XCharts.Runtime / 继承自: [BaseLine](#baseline) > 从 `v3.2.0` 开始支持 坐标轴次刻度相关设置。注意:次刻度无法在类目轴中使用。 -```mdx-code-block - -``` +### AxisMinorTick.autoColor -|参数|默认|版本|描述| -|--|--|--|--| -|splitNumber|5||分隔线之间分割的刻度数。 -|autoColor||| +`bool` -```mdx-code-block - -``` +### AxisMinorTick.splitNumber + +`int` `5` +分隔线之间分割的刻度数。 ## AxisName -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 坐标轴名称。 -```mdx-code-block - -``` +### AxisName.labelStyle -|参数|默认|版本|描述| -|--|--|--|--| -|show|||是否显示坐标轴名称。 -|name|||坐标轴名称。 -|onZero||v3.1.0|坐标轴名称的位置是否保持和Y轴0刻度一致。 -|labelStyle|||文本样式。 [LabelStyle](#labelstyle)| +`LabelStyle` +文本样式。 [LabelStyle](#labelstyle) -```mdx-code-block - -``` +### AxisName.name + +`string` +坐标轴名称。 + +### AxisName.onZero + +`bool` `v3.1.0` +坐标轴名称的位置是否保持和Y轴0刻度一致。 + +### AxisName.show + +`bool` +是否显示坐标轴名称。 ## AxisSplitArea -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 坐标轴在 grid 区域中的分隔区域,默认不显示。 -```mdx-code-block - -``` +### AxisSplitArea.color -|参数|默认|版本|描述| -|--|--|--|--| -|show|||是否显示分隔区域。 -|color|||分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。 +`List` +分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。 -```mdx-code-block - -``` +### AxisSplitArea.show + +`bool` +是否显示分隔区域。 ## AxisSplitLine -> class in XCharts.Runtime / 继承自: [BaseLine](#baseline) +class in XCharts.Runtime / 继承自: [BaseLine](#baseline) 坐标轴在 grid 区域中的分隔线。 -```mdx-code-block - -``` +### AxisSplitLine.autoColor -|参数|默认|版本|描述| -|--|--|--|--| -|interval|||坐标轴分隔线的显示间隔。 -|distance|||刻度线与轴线的距离。 -|autoColor|||自动设置颜色。 -|showStartLine|true|v3.3.0|是否显示第一条分割线。 -|showEndLine|true|v3.3.0|是否显示最后一条分割线。 -|showZLine|true|v3.11.0|是否显示Z轴部分分割线。一般用于3D坐标系。 +`bool` +自动设置颜色。 -```mdx-code-block - -``` +### AxisSplitLine.distance + +`float` +刻度线与轴线的距离。 + +### AxisSplitLine.interval + +`int` +坐标轴分隔线的显示间隔。 + +### AxisSplitLine.showEndLine + +`bool` `true` `v3.3.0` +是否显示最后一条分割线。 + +### AxisSplitLine.showStartLine + +`bool` `true` `v3.3.0` +是否显示第一条分割线。 + +### AxisSplitLine.showZLine + +`bool` `true` `v3.11.0` +是否显示Z轴部分分割线。一般用于3D坐标系。 ## AxisTheme -> class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) ## AxisTick -> class in XCharts.Runtime / 继承自: [BaseLine](#baseline) +class in XCharts.Runtime / 继承自: [BaseLine](#baseline) 坐标轴刻度相关设置。 -```mdx-code-block - -``` +### AxisTick.alignWithLabel -|参数|默认|版本|描述| -|--|--|--|--| -|alignWithLabel|||类目轴中在 boundaryGap 为 true 的时候有效,可以保证刻度线和标签对齐。 -|inside|||坐标轴刻度是否朝内,默认朝外。 -|showStartTick|||是否显示第一个刻度。 -|showEndTick|||是否显示最后一个刻度。 -|distance|||刻度线与轴线的距离。 -|splitNumber|0||分隔线之间分割的刻度数。 -|autoColor||| +`bool` +类目轴中在 boundaryGap 为 true 的时候有效,可以保证刻度线和标签对齐。 -```mdx-code-block - -``` +### AxisTick.autoColor + +`bool` + +### AxisTick.distance + +`float` +刻度线与轴线的距离。 + +### AxisTick.inside + +`bool` +坐标轴刻度是否朝内,默认朝外。 + +### AxisTick.showEndTick + +`bool` +是否显示最后一个刻度。 + +### AxisTick.showStartTick + +`bool` +是否显示第一个刻度。 + +### AxisTick.splitNumber + +`int` `0` +分隔线之间分割的刻度数。 ## Background -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) 背景组件。 -```mdx-code-block - -``` +### Background.autoColor -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否启用背景组件。 -|image|||背景图。 -|imageType|||背景图填充类型。 -|imageColor|||背景图颜色。 -|imageWidth|0|v3.10.0|背景图宽度。 -|imageHeight|0|v3.10.0|背景图高度。 -|autoColor|true||当background组件开启时,是否自动使用主题背景色作为backgrounnd组件的颜色。当设置为false时,用imageColor作为颜色。 -|borderStyle||v3.10.0|背景边框样式。 [BorderStyle](#borderstyle)| +`bool` `true` +当background组件开启时,是否自动使用主题背景色作为backgrounnd组件的颜色。当设置为false时,用imageColor作为颜色。 -```mdx-code-block - -``` +### Background.borderStyle + +`BorderStyle` `v3.10.0` +背景边框样式。 [BorderStyle](#borderstyle) + +### Background.image + +`Sprite` +背景图。 + +### Background.imageColor + +`Color` +背景图颜色。 + +### Background.imageHeight + +`float` `0` `v3.10.0` +背景图高度。 + +### Background.imageType + +`Image.Type` +背景图填充类型。 + +### Background.imageWidth + +`float` `0` `v3.10.0` +背景图宽度。 + +### Background.show + +`bool` `true` +是否启用背景组件。 ## Bar -> class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) ## BaseAxisTheme -> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) / 子类: [AxisTheme](#axistheme), [RadiusAxisTheme](#radiusaxistheme), [AngleAxisTheme](#angleaxistheme), [PolarAxisTheme](#polaraxistheme), [RadarAxisTheme](#radaraxistheme) +class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) / 子类: [AxisTheme](#axistheme), [RadiusAxisTheme](#radiusaxistheme), [AngleAxisTheme](#angleaxistheme), [PolarAxisTheme](#polaraxistheme), [RadarAxisTheme](#radaraxistheme) -```mdx-code-block - -``` +### BaseAxisTheme.lineColor -|参数|默认|版本|描述| -|--|--|--|--| -|lineType|||坐标轴线类型。
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|lineWidth|1f||坐标轴线宽。 -|lineLength|0f||坐标轴线长。 -|lineColor|||坐标轴线颜色。 -|splitLineType|||分割线线类型。
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|splitLineWidth|1f||分割线线宽。 -|splitLineLength|0f||分割线线长。 -|splitLineColor|||分割线线颜色。 -|minorSplitLineColor|||次分割线线颜色。 -|tickWidth|1f||刻度线线宽。 -|tickLength|5f||刻度线线长。 -|tickColor|||坐标轴线颜色。 -|splitAreaColors|||坐标轴分隔区域的颜色。 +`Color32` +坐标轴线颜色。 -```mdx-code-block -
-``` +### BaseAxisTheme.lineLength + +`float` `0f` +坐标轴线长。 + +### BaseAxisTheme.lineType + +`LineStyle.Type` +坐标轴线类型。 + +可选: + +- `Solid`: 实线 +- `Dashed`: 虚线 +- `Dotted`: 点线 +- `DashDot`: 点划线 +- `DashDotDot`: 双点划线 +- `None`: 双点划线 + +### BaseAxisTheme.lineWidth + +`float` `1f` +坐标轴线宽。 + +### BaseAxisTheme.minorSplitLineColor + +`Color32` +次分割线线颜色。 + +### BaseAxisTheme.splitAreaColors + +`List` +坐标轴分隔区域的颜色。 + +### BaseAxisTheme.splitLineColor + +`Color32` +分割线线颜色。 + +### BaseAxisTheme.splitLineLength + +`float` `0f` +分割线线长。 + +### BaseAxisTheme.splitLineType + +`LineStyle.Type` +分割线线类型。 + +可选: + +- `Solid`: 实线 +- `Dashed`: 虚线 +- `Dotted`: 点线 +- `DashDot`: 点划线 +- `DashDotDot`: 双点划线 +- `None`: 双点划线 + +### BaseAxisTheme.splitLineWidth + +`float` `1f` +分割线线宽。 + +### BaseAxisTheme.tickColor + +`Color32` +坐标轴线颜色。 + +### BaseAxisTheme.tickLength + +`float` `5f` +刻度线线长。 + +### BaseAxisTheme.tickWidth + +`float` `1f` +刻度线线宽。 ## BaseLine -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [AxisLine](#axisline), [AxisMinorSplitLine](#axisminorsplitline), [AxisMinorTick](#axisminortick), [AxisSplitLine](#axissplitline), [AxisTick](#axistick) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [AxisLine](#axisline), [AxisMinorSplitLine](#axisminorsplitline), [AxisMinorTick](#axisminortick), [AxisSplitLine](#axissplitline), [AxisTick](#axistick) 线条基础配置。 -```mdx-code-block - -``` +### BaseLine.lineStyle -|参数|默认|版本|描述| -|--|--|--|--| -|show|||是否显示坐标轴轴线。 -|lineStyle|||线条样式 [LineStyle](#linestyle)| +`LineStyle` +线条样式 [LineStyle](#linestyle) -```mdx-code-block - -``` +### BaseLine.show + +`bool` +是否显示坐标轴轴线。 ## BaseScatter -> class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) / 子类: [EffectScatter](#effectscatter), [Scatter](#scatter) +class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) / 子类: [EffectScatter](#effectscatter), [Scatter](#scatter) ## BaseSerie -> class in XCharts.Runtime / 子类: [Serie](#serie) +class in XCharts.Runtime / 子类: [Serie](#serie) ## BlurStyle -> class in XCharts.Runtime / 继承自: [StateStyle](#statestyle), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [StateStyle](#statestyle), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) > 从 `v3.2.0` 开始支持 @@ -726,1056 +1066,1925 @@ import APITable from '@site/src/components/APITable'; ## BorderStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) > 从 `v3.10.0` 开始支持 边框样式。 -```mdx-code-block - -``` +### BorderStyle.borderColor -|参数|默认|版本|描述| -|--|--|--|--| -|show|false||是否显示边框。 -|borderWidth|||边框宽度。 -|borderColor|||边框颜色。 -|roundedCorner|true||是否显示圆角。 -|cornerRadius|||圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。当为(1,1,1,1)时为全圆角。 +`Color32` +边框颜色。 -```mdx-code-block - -``` +### BorderStyle.borderWidth + +`float` +边框宽度。 + +### BorderStyle.cornerRadius + +`float[]` +圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。当为(1,1,1,1)时为全圆角。 + +### BorderStyle.roundedCorner + +`bool` `true` +是否显示圆角。 + +### BorderStyle.show + +`bool` `false` +是否显示边框。 ## CalendarCoord -> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem), [IUpdateRuntimeData](#iupdateruntimedata), [ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem), [IUpdateRuntimeData](#iupdateruntimedata), [ISerieContainer](#iseriecontainer) ## Candlestick -> class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) ## ChartText -> class in XCharts.Runtime +class in XCharts.Runtime ## ChildComponent -> class in XCharts.Runtime / 子类: [AnimationStyle](#animationstyle), [AxisAnimation](#axisanimation), [AxisName](#axisname), [AxisSplitArea](#axissplitarea), [AreaStyle](#areastyle), [ArrowStyle](#arrowstyle), [BaseLine](#baseline), [BorderStyle](#borderstyle), [IconStyle](#iconstyle), [ImageStyle](#imagestyle), [ItemStyle](#itemstyle), [Level](#level), [LevelStyle](#levelstyle), [LineArrow](#linearrow), [LineStyle](#linestyle), [Location](#location), [MLValue](#mlvalue), [MarqueeStyle](#marqueestyle), [Padding](#padding), [StageColor](#stagecolor), [SymbolStyle](#symbolstyle), [TextLimit](#textlimit), [TextStyle](#textstyle), [CommentItem](#commentitem), [CommentMarkStyle](#commentmarkstyle), [LabelLine](#labelline), [LabelStyle](#labelstyle), [MarkAreaData](#markareadata), [MarkLineData](#marklinedata), [StateStyle](#statestyle), [VisualMapRange](#visualmaprange), [ViewControl](#viewcontrol), [UIComponentTheme](#uicomponenttheme), [SerieData](#seriedata), [SerieDataLink](#seriedatalink), [ComponentTheme](#componenttheme), [SerieTheme](#serietheme), [ThemeStyle](#themestyle) +class in XCharts.Runtime / 子类: [AnimationStyle](#animationstyle), [AxisAnimation](#axisanimation), [AxisName](#axisname), [AxisSplitArea](#axissplitarea), [AreaStyle](#areastyle), [ArrowStyle](#arrowstyle), [BaseLine](#baseline), [BorderStyle](#borderstyle), [IconStyle](#iconstyle), [ImageStyle](#imagestyle), [ItemStyle](#itemstyle), [Level](#level), [LevelStyle](#levelstyle), [LineArrow](#linearrow), [LineStyle](#linestyle), [Location](#location), [MLValue](#mlvalue), [MarqueeStyle](#marqueestyle), [Padding](#padding), [StageColor](#stagecolor), [SymbolStyle](#symbolstyle), [TextLimit](#textlimit), [TextStyle](#textstyle), [CommentItem](#commentitem), [CommentMarkStyle](#commentmarkstyle), [LabelLine](#labelline), [LabelStyle](#labelstyle), [MarkAreaData](#markareadata), [MarkLineData](#marklinedata), [StateStyle](#statestyle), [VisualMapRange](#visualmaprange), [ViewControl](#viewcontrol), [UIComponentTheme](#uicomponenttheme), [SerieData](#seriedata), [SerieDataLink](#seriedatalink), [ComponentTheme](#componenttheme), [SerieTheme](#serietheme), [ThemeStyle](#themestyle) ## Comment -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropertyChanged](#ipropertychanged) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropertyChanged](#ipropertychanged) 图表注解组件。 -```mdx-code-block - -``` +### Comment.items -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示注解组件。 -|labelStyle|||所有组件的文本样式。 [LabelStyle](#labelstyle)| -|markStyle|||所有组件的文本样式。 [CommentMarkStyle](#commentmarkstyle)| -|items|||注解项。每个注解组件可以设置多个注解项。 +`List` +注解项。每个注解组件可以设置多个注解项。 -```mdx-code-block - -``` +### Comment.labelStyle + +`LabelStyle` +所有组件的文本样式。 [LabelStyle](#labelstyle) + +### Comment.markStyle + +`CommentMarkStyle` +所有组件的文本样式。 [CommentMarkStyle](#commentmarkstyle) + +### Comment.show + +`bool` `true` +是否显示注解组件。 ## CommentItem -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 注解项。 -```mdx-code-block - -``` +### CommentItem.content -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示当前注解项。 -|content|||注解的文本内容。支持模板参数,可以参考Tooltip的itemFormatter。 -|markRect|||注解区域。 -|markStyle|||注解标记区域样式。 [CommentMarkStyle](#commentmarkstyle)| -|labelStyle|||注解项的文本样式。 [LabelStyle](#labelstyle)| -|location||v3.5.0|Comment显示的位置。 [Location](#location)| +`string` +注解的文本内容。支持模板参数,可以参考Tooltip的itemFormatter。 -```mdx-code-block - -``` +### CommentItem.labelStyle + +`LabelStyle` +注解项的文本样式。 [LabelStyle](#labelstyle) + +### CommentItem.location + +`Location` `v3.5.0` +Comment显示的位置。 [Location](#location) + +### CommentItem.markRect + +`Rect` +注解区域。 + +### CommentItem.markStyle + +`CommentMarkStyle` +注解标记区域样式。 [CommentMarkStyle](#commentmarkstyle) + +### CommentItem.show + +`bool` `true` +是否显示当前注解项。 ## CommentMarkStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 注解项区域样式。 -```mdx-code-block - -``` +### CommentMarkStyle.lineStyle -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示当前注解项。 -|lineStyle|||线条样式。 [LineStyle](#linestyle)| +`LineStyle` +线条样式。 [LineStyle](#linestyle) -```mdx-code-block - -``` +### CommentMarkStyle.show + +`bool` `true` +是否显示当前注解项。 ## ComponentTheme -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [BaseAxisTheme](#baseaxistheme), [DataZoomTheme](#datazoomtheme), [LegendTheme](#legendtheme), [SubTitleTheme](#subtitletheme), [TitleTheme](#titletheme), [TooltipTheme](#tooltiptheme), [VisualMapTheme](#visualmaptheme) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [BaseAxisTheme](#baseaxistheme), [DataZoomTheme](#datazoomtheme), [LegendTheme](#legendtheme), [SubTitleTheme](#subtitletheme), [TitleTheme](#titletheme), [TooltipTheme](#tooltiptheme), [VisualMapTheme](#visualmaptheme) -```mdx-code-block - -``` +### ComponentTheme.font -|参数|默认|版本|描述| -|--|--|--|--| -|font|||字体。 -|textColor|||文本颜色。 -|textBackgroundColor|||文本颜色。 -|fontSize|18||文本字体大小。 -|tMPFont|||字体。 +`Font` +字体。 -```mdx-code-block - -``` +### ComponentTheme.fontSize + +`int` `18` +文本字体大小。 + +### ComponentTheme.textBackgroundColor + +`Color` +文本颜色。 + +### ComponentTheme.textColor + +`Color` +文本颜色。 + +### ComponentTheme.tMPFont + +`TMP_FontAsset` +字体。 ## CoordSystem -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) / 子类: [RadarCoord](#radarcoord), [CalendarCoord](#calendarcoord), [GridCoord](#gridcoord), [GridCoord3D](#gridcoord3d), [ParallelCoord](#parallelcoord), [PolarCoord](#polarcoord), [SingleAxisCoord](#singleaxiscoord) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) / 子类: [RadarCoord](#radarcoord), [CalendarCoord](#calendarcoord), [GridCoord](#gridcoord), [GridCoord3D](#gridcoord3d), [ParallelCoord](#parallelcoord), [PolarCoord](#polarcoord), [SingleAxisCoord](#singleaxiscoord) 坐标系系统。 ## DataZoom -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IUpdateRuntimeData](#iupdateruntimedata) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IUpdateRuntimeData](#iupdateruntimedata) DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息,或者概览数据整体,或者去除离群点的影响。 -```mdx-code-block - -``` +### DataZoom.areaStyle -|参数|默认|版本|描述| -|--|--|--|--| -|enable|true||是否显示缩放区域。 -|filterMode|||数据过滤类型。
`DataZoom.FilterMode`:
- `Filter`: 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只要有一个维度在数据窗口外,整个数据项就会被过滤掉。
- `WeakFilter`: 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只有当全部维度都在数据窗口同侧外部,整个数据项才会被过滤掉。
- `Empty`: 当前数据窗口外的数据,被 设置为空。即 不会 影响其他轴的数据范围。
- `None`: 不过滤数据,只改变数轴范围。
| -|xAxisIndexs|||控制的 x 轴索引列表。 -|yAxisIndexs|||控制的 y 轴索引列表。 -|supportInside|||是否支持内置。内置于坐标系中,使用户可以在坐标系上通过鼠标拖拽、鼠标滚轮、手指滑动(触屏上)来缩放或漫游坐标系。 -|supportInsideScroll|true||是否支持坐标系内滚动 -|supportInsideDrag|true||是否支持坐标系内拖拽 -|supportSlider|||是否支持滑动条。有单独的滑动条,用户在滑动条上进行缩放或漫游。 -|supportMarquee|||是否支持框选。提供一个选框进行数据区域缩放。 -|showDataShadow|||是否显示数据阴影。数据阴影可以简单地反应数据走势。 -|showDetail|||是否显示detail,即拖拽时候显示详细数值信息。 -|zoomLock|||是否锁定选择区域(或叫做数据窗口)的大小。 如果设置为 true 则锁定选择区域的大小,也就是说,只能平移,不能缩放。 -|fillerColor|||数据区域颜色。 -|borderColor|||边框颜色。 -|borderWidth|||边框宽。 -|backgroundColor|||组件的背景颜色。 -|left|||组件离容器左侧的距离。 -|right|||组件离容器右侧的距离。 -|top|||组件离容器上侧的距离。 -|bottom|||组件离容器下侧的距离。 -|rangeMode|||取绝对值还是百分比。
`DataZoom.RangeMode`:
- `//Value`: The value type of start and end.取值类型
- `Percent`: 百分比。
| -|start|||数据窗口范围的起始百分比。范围是:0 ~ 100。 -|end|||数据窗口范围的结束百分比。范围是:0 ~ 100。 -|minShowNum|2||最小显示数据个数。当DataZoom放大到最大时,最小显示的数据个数。 -|scrollSensitivity|1.1f||缩放区域组件的敏感度。值越高每次缩放所代表的数据越多。 -|orient|||布局方式是横还是竖。不仅是布局方式,对于直角坐标系而言,也决定了,缺省情况控制横向数轴还是纵向数轴。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|labelStyle|||文本标签格式。 [LabelStyle](#labelstyle)| -|lineStyle|||阴影线条样式。 [LineStyle](#linestyle)| -|areaStyle|||阴影填充样式。 [AreaStyle](#areastyle)| -|marqueeStyle||v3.5.0|选取框样式。 [MarqueeStyle](#marqueestyle)| -|startLock||v3.6.0|固定起始值,不让改变。 -|endLock||v3.6.0|固定结束值,不让改变。 +`AreaStyle` +阴影填充样式。 [AreaStyle](#areastyle) -```mdx-code-block -
-``` +### DataZoom.backgroundColor + +`Color32` +组件的背景颜色。 + +### DataZoom.borderColor + +`Color32` +边框颜色。 + +### DataZoom.borderWidth + +`float` +边框宽。 + +### DataZoom.bottom + +`float` +组件离容器下侧的距离。 + +### DataZoom.enable + +`bool` `true` +是否显示缩放区域。 + +### DataZoom.end + +`float` +数据窗口范围的结束百分比。范围是:0 ~ 100。 + +### DataZoom.endLock + +`bool` `v3.6.0` +固定结束值,不让改变。 + +### DataZoom.fillerColor + +`Color32` +数据区域颜色。 + +### DataZoom.filterMode + +`DataZoom.FilterMode` +数据过滤类型。 + +可选: + +- `Filter`: 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只要有一个维度在数据窗口外,整个数据项就会被过滤掉。 +- `WeakFilter`: 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只有当全部维度都在数据窗口同侧外部,整个数据项才会被过滤掉。 +- `Empty`: 当前数据窗口外的数据,被 设置为空。即 不会 影响其他轴的数据范围。 +- `None`: 不过滤数据,只改变数轴范围。 + +### DataZoom.labelStyle + +`LabelStyle` +文本标签格式。 [LabelStyle](#labelstyle) + +### DataZoom.left + +`float` +组件离容器左侧的距离。 + +### DataZoom.lineStyle + +`LineStyle` +阴影线条样式。 [LineStyle](#linestyle) + +### DataZoom.marqueeStyle + +`MarqueeStyle` `v3.5.0` +选取框样式。 [MarqueeStyle](#marqueestyle) + +### DataZoom.minShowNum + +`int` `2` +最小显示数据个数。当DataZoom放大到最大时,最小显示的数据个数。 + +### DataZoom.orient + +`Orient` +布局方式是横还是竖。不仅是布局方式,对于直角坐标系而言,也决定了,缺省情况控制横向数轴还是纵向数轴。 + +可选: + +- `Horizonal`: 水平 +- `Vertical`: 垂直 + +### DataZoom.rangeMode + +`DataZoom.RangeMode` +取绝对值还是百分比。 + +可选: + +- `//Value`: The value type of start and end.取值类型 +- `Percent`: 百分比。 + +### DataZoom.right + +`float` +组件离容器右侧的距离。 + +### DataZoom.scrollSensitivity + +`float` `1.1f` +缩放区域组件的敏感度。值越高每次缩放所代表的数据越多。 + +### DataZoom.showDataShadow + +`bool` +是否显示数据阴影。数据阴影可以简单地反应数据走势。 + +### DataZoom.showDetail + +`bool` +是否显示detail,即拖拽时候显示详细数值信息。 + +### DataZoom.start + +`float` +数据窗口范围的起始百分比。范围是:0 ~ 100。 + +### DataZoom.startLock + +`bool` `v3.6.0` +固定起始值,不让改变。 + +### DataZoom.supportInside + +`bool` +是否支持内置。内置于坐标系中,使用户可以在坐标系上通过鼠标拖拽、鼠标滚轮、手指滑动(触屏上)来缩放或漫游坐标系。 + +### DataZoom.supportInsideDrag + +`bool` `true` +是否支持坐标系内拖拽 + +### DataZoom.supportInsideScroll + +`bool` `true` +是否支持坐标系内滚动 + +### DataZoom.supportMarquee + +`bool` +是否支持框选。提供一个选框进行数据区域缩放。 + +### DataZoom.supportSlider + +`bool` +是否支持滑动条。有单独的滑动条,用户在滑动条上进行缩放或漫游。 + +### DataZoom.top + +`float` +组件离容器上侧的距离。 + +### DataZoom.xAxisIndexs + +`List` +控制的 x 轴索引列表。 + +### DataZoom.yAxisIndexs + +`List` +控制的 y 轴索引列表。 + +### DataZoom.zoomLock + +`bool` +是否锁定选择区域(或叫做数据窗口)的大小。 如果设置为 true 则锁定选择区域的大小,也就是说,只能平移,不能缩放。 ## DataZoomTheme -> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) -```mdx-code-block - -``` +### DataZoomTheme.backgroundColor -|参数|默认|版本|描述| -|--|--|--|--| -|borderWidth|||边框线宽。 -|dataLineWidth|||数据阴影线宽。 -|fillerColor|||数据区域颜色。 -|borderColor|||边框颜色。 -|dataLineColor|||数据阴影的线条颜色。 -|dataAreaColor|||数据阴影的填充颜色。 -|backgroundColor|||背景颜色。 +`Color32` +背景颜色。 -```mdx-code-block - -``` +### DataZoomTheme.borderColor + +`Color32` +边框颜色。 + +### DataZoomTheme.borderWidth + +`float` +边框线宽。 + +### DataZoomTheme.dataAreaColor + +`Color32` +数据阴影的填充颜色。 + +### DataZoomTheme.dataLineColor + +`Color32` +数据阴影的线条颜色。 + +### DataZoomTheme.dataLineWidth + +`float` +数据阴影线宽。 + +### DataZoomTheme.fillerColor + +`Color32` +数据区域颜色。 ## DebugInfo -> class in XCharts.Runtime +class in XCharts.Runtime -```mdx-code-block - -``` +### DebugInfo.foldSeries -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示Debug组件。 -|showDebugInfo|false|| -|showAllChartObject|false||是否在Hierarchy试图显示所有chart下的节点。 -|foldSeries|false||是否在Inspector上折叠Serie。 -|labelStyle||| [LabelStyle](#labelstyle)| +`bool` `false` +是否在Inspector上折叠Serie。 -```mdx-code-block - -``` +### DebugInfo.labelStyle + +`LabelStyle` + [LabelStyle](#labelstyle) + +### DebugInfo.show + +`bool` `true` +是否显示Debug组件。 + +### DebugInfo.showAllChartObject + +`bool` `false` +是否在Hierarchy试图显示所有chart下的节点。 + +### DebugInfo.showDebugInfo + +`bool` `false` ## EffectScatter -> class in XCharts.Runtime / 继承自: [BaseScatter](#basescatter) +class in XCharts.Runtime / 继承自: [BaseScatter](#basescatter) ## EmphasisStyle -> class in XCharts.Runtime / 继承自: [StateStyle](#statestyle), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [StateStyle](#statestyle), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) > 从 `v3.2.0` 开始支持 高亮状态样式。 -```mdx-code-block - -``` +### EmphasisStyle.blurScope -|参数|默认|版本|描述| -|--|--|--|--| -|scale|1.1f||高亮时的缩放倍数。 -|focus|||在高亮图形时,是否淡出其它数据的图形已达到聚焦的效果。
`EmphasisStyle.FocusType`:
- `None`: 不淡出其它图形,默认使用该配置。
- `Self`: 只聚焦(不淡出)当前高亮的数据的图形。
- `Series`: 聚焦当前高亮的数据所在的系列的所有图形。
| -|blurScope|||在开启focus的时候,可以通过blurScope配置淡出的范围。
`EmphasisStyle.BlurScope`:
- `GridCoord`: 淡出范围为坐标系,默认使用该配置。
- `Series`: 淡出范围为系列。
- `Global`: 淡出范围为全局。
| +`EmphasisStyle.BlurScope` +在开启focus的时候,可以通过blurScope配置淡出的范围。 -```mdx-code-block -
-``` +可选: + +- `GridCoord`: 淡出范围为坐标系,默认使用该配置。 +- `Series`: 淡出范围为系列。 +- `Global`: 淡出范围为全局。 + +### EmphasisStyle.focus + +`EmphasisStyle.FocusType` +在高亮图形时,是否淡出其它数据的图形已达到聚焦的效果。 + +可选: + +- `None`: 不淡出其它图形,默认使用该配置。 +- `Self`: 只聚焦(不淡出)当前高亮的数据的图形。 +- `Series`: 聚焦当前高亮的数据所在的系列的所有图形。 + +### EmphasisStyle.scale + +`float` `1.1f` +高亮时的缩放倍数。 ## EndLabelStyle -> class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle) +class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle) ## GridCoord -> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem), [IUpdateRuntimeData](#iupdateruntimedata), [ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem), [IUpdateRuntimeData](#iupdateruntimedata), [ISerieContainer](#iseriecontainer) Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid. -```mdx-code-block - -``` +### GridCoord.backgroundColor -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示直角坐标系网格。 -|layoutIndex|-1|v3.8.0|网格所属的网格布局组件的索引。默认为-1,表示不属于任何网格布局组件。当设置了该值时,left、right、top、bottom属性将失效。 -|left|0.11f||grid 组件离容器左侧的距离。 -|right|0.08f||grid 组件离容器右侧的距离。 -|top|0.22f||grid 组件离容器上侧的距离。 -|bottom|0.14f||grid 组件离容器下侧的距离。 -|backgroundColor|||网格背景色,默认透明。 -|showBorder|false||是否显示网格边框。 -|borderWidth|0f||网格边框宽。 -|borderColor|||网格边框颜色。 +`Color32` +网格背景色,默认透明。 -```mdx-code-block - -``` +### GridCoord.borderColor + +`Color32` +网格边框颜色。 + +### GridCoord.borderWidth + +`float` `0f` +网格边框宽。 + +### GridCoord.bottom + +`float` `0.14f` +grid 组件离容器下侧的距离。 + +### GridCoord.layoutIndex + +`int` `-1` `v3.8.0` +网格所属的网格布局组件的索引。默认为-1,表示不属于任何网格布局组件。当设置了该值时,left、right、top、bottom属性将失效。 + +### GridCoord.left + +`float` `0.11f` +grid 组件离容器左侧的距离。 + +### GridCoord.right + +`float` `0.08f` +grid 组件离容器右侧的距离。 + +### GridCoord.show + +`bool` `true` +是否显示直角坐标系网格。 + +### GridCoord.showBorder + +`bool` `false` +是否显示网格边框。 + +### GridCoord.top + +`float` `0.22f` +grid 组件离容器上侧的距离。 ## GridCoord3D -> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem), [IUpdateRuntimeData](#iupdateruntimedata), [ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem), [IUpdateRuntimeData](#iupdateruntimedata), [ISerieContainer](#iseriecontainer) > 从 `v3.11.0` 开始支持 Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid. -```mdx-code-block - -``` +### GridCoord3D.bottom -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示直角坐标系网格。 -|left|0.15f||grid 组件离容器左侧的距离。 -|right|0.2f||grid 组件离容器右侧的距离。 -|top|0.3f||grid 组件离容器上侧的距离。 -|bottom|0.15f||grid 组件离容器下侧的距离。 -|showBorder|false||是否显示网格边框。 -|boxWidth|0.55f||坐标系的宽度。 -|boxHeight|0.4f||坐标系的高度。 -|boxDepth|0.2f||坐标系的深度。 -|xYExchanged|false|| -|viewControl|||3D视角控制组件。 [ViewControl](#viewcontrol)| +`float` `0.15f` +grid 组件离容器下侧的距离。 -```mdx-code-block - -``` +### GridCoord3D.boxDepth + +`float` `0.2f` +坐标系的深度。 + +### GridCoord3D.boxHeight + +`float` `0.4f` +坐标系的高度。 + +### GridCoord3D.boxWidth + +`float` `0.55f` +坐标系的宽度。 + +### GridCoord3D.left + +`float` `0.15f` +grid 组件离容器左侧的距离。 + +### GridCoord3D.right + +`float` `0.2f` +grid 组件离容器右侧的距离。 + +### GridCoord3D.show + +`bool` `true` +是否显示直角坐标系网格。 + +### GridCoord3D.showBorder + +`bool` `false` +是否显示网格边框。 + +### GridCoord3D.top + +`float` `0.3f` +grid 组件离容器上侧的距离。 + +### GridCoord3D.viewControl + +`ViewControl` +3D视角控制组件。 [ViewControl](#viewcontrol) + +### GridCoord3D.xYExchanged + +`bool` `false` ## GridLayout -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IUpdateRuntimeData](#iupdateruntimedata) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IUpdateRuntimeData](#iupdateruntimedata) > 从 `v3.8.0` 开始支持 网格布局组件。用于管理多个`GridCoord`的布局,可以通过`row`和`column`来控制网格的行列数。 -```mdx-code-block - -``` +### GridLayout.bottom -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示直角坐标系网格。 -|left|0.1f||grid 组件离容器左侧的距离。 -|right|0.08f||grid 组件离容器右侧的距离。 -|top|0.22f||grid 组件离容器上侧的距离。 -|bottom|0.12f||grid 组件离容器下侧的距离。 -|row|2||网格布局的行数。 -|column|2||网格布局的列数。 -|spacing|Vector2.zero||网格布局的间距。 -|inverse|false||是否反转网格布局。 +`float` `0.12f` +grid 组件离容器下侧的距离。 -```mdx-code-block - -``` +### GridLayout.column + +`int` `2` +网格布局的列数。 + +### GridLayout.inverse + +`bool` `false` +是否反转网格布局。 + +### GridLayout.left + +`float` `0.1f` +grid 组件离容器左侧的距离。 + +### GridLayout.right + +`float` `0.08f` +grid 组件离容器右侧的距离。 + +### GridLayout.row + +`int` `2` +网格布局的行数。 + +### GridLayout.show + +`bool` `true` +是否显示直角坐标系网格。 + +### GridLayout.spacing + +`Vector2` `Vector2.zero` +网格布局的间距。 + +### GridLayout.top + +`float` `0.22f` +grid 组件离容器上侧的距离。 ## Heatmap -> class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) -```mdx-code-block - -``` +### Heatmap.heatmapType -|参数|默认|版本|描述| -|--|--|--|--| -|heatmapType||v3.3.0|热力图类型。通过颜色映射划分。
`HeatmapType`:
- `Data`: 数据映射型。默认用第2维数据作为颜色映射。要求数据至少有3个维度数据。
- `Count`: 个数映射型。统计数据在划分的格子中出现的次数,作为颜色映射。要求数据至少有2个维度数据。
| +`HeatmapType` `v3.3.0` +热力图类型。通过颜色映射划分。 -```mdx-code-block -
-``` +可选: + +- `Data`: 数据映射型。默认用第2维数据作为颜色映射。要求数据至少有3个维度数据。 +- `Count`: 个数映射型。统计数据在划分的格子中出现的次数,作为颜色映射。要求数据至少有2个维度数据。 ## IconStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) -```mdx-code-block - -``` +### IconStyle.align -|参数|默认|版本|描述| -|--|--|--|--| -|show|false||是否显示图标。 -|layer|||显示在上层还是在下层。
`IconStyle.Layer`:
- `UnderText`: The icon is display under the label text. 图标在标签文字下
- `AboveText`: The icon is display above the label text. 图标在标签文字上
| -|align|||水平方向对齐方式。
`Align`:
- `Center`: 对齐方式。文本,图标,图形等的对齐方式。
- `Left`: 对齐方式。文本,图标,图形等的对齐方式。
- `Right`: 对齐方式。文本,图标,图形等的对齐方式。
| -|sprite|||图标的图片。 -|type|||图片的显示类型。 -|color|||图标颜色。 -|width|20||图标宽。 -|height|20||图标高。 -|offset|||图标偏移。 -|autoHideWhenLabelEmpty|false||当label内容为空时是否自动隐藏图标 +`Align` +水平方向对齐方式。 -```mdx-code-block -
-``` +可选: + +- `Center`: 对齐方式。文本,图标,图形等的对齐方式。 +- `Left`: 对齐方式。文本,图标,图形等的对齐方式。 +- `Right`: 对齐方式。文本,图标,图形等的对齐方式。 + +### IconStyle.autoHideWhenLabelEmpty + +`bool` `false` +当label内容为空时是否自动隐藏图标 + +### IconStyle.color + +`Color` +图标颜色。 + +### IconStyle.height + +`float` `20` +图标高。 + +### IconStyle.layer + +`IconStyle.Layer` +显示在上层还是在下层。 + +可选: + +- `UnderText`: The icon is display under the label text. 图标在标签文字下 +- `AboveText`: The icon is display above the label text. 图标在标签文字上 + +### IconStyle.offset + +`Vector3` +图标偏移。 + +### IconStyle.show + +`bool` `false` +是否显示图标。 + +### IconStyle.sprite + +`Sprite` +图标的图片。 + +### IconStyle.type + +`Image.Type` +图片的显示类型。 + +### IconStyle.width + +`float` `20` +图标宽。 ## ImageStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) -```mdx-code-block - -``` +### ImageStyle.autoColor -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示图标。 -|sprite|||图标的图片。 -|type|||图片的显示类型。 -|autoColor|||是否自动颜色。 -|color|||图标颜色。 -|width|0||图标宽。 -|height|0||图标高。 +`bool` +是否自动颜色。 -```mdx-code-block - -``` +### ImageStyle.color + +`Color` +图标颜色。 + +### ImageStyle.height + +`float` `0` +图标高。 + +### ImageStyle.show + +`bool` `true` +是否显示图标。 + +### ImageStyle.sprite + +`Sprite` +图标的图片。 + +### ImageStyle.type + +`Image.Type` +图片的显示类型。 + +### ImageStyle.width + +`float` `0` +图标宽。 ## Indicator -> class in XCharts.Runtime +class in XCharts.Runtime 雷达图的指示器,用来指定雷达图中的多个变量(维度)。 -```mdx-code-block - -``` +### Indicator.axisLine -|参数|默认|版本|描述| -|--|--|--|--| -|name|||指示器名称。 -|max|||指示器的最大值,默认为 0 无限制。 -|min|||指示器的最小值,默认为 0 无限制。 -|range|||正常值范围。当数值不在这个范围时,会自动变更显示颜色。 -|show|||是否显示雷达坐标系组件。 -|shape|||雷达图绘制类型,支持 'Polygon' 和 'Circle'。 -|radius|100||雷达图的半径。 -|splitNumber|5||指示器轴的分割段数。 -|center|||雷达图的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。 -|axisLine|||轴线。 [AxisLine](#axisline)| -|axisName|||雷达图每个指示器名称的配置项。 [AxisName](#axisname)| -|splitLine|||分割线。 [AxisSplitLine](#axissplitline)| -|splitArea|||分割区域。 [AxisSplitArea](#axissplitarea)| -|indicator|true||是否显示指示器。 -|positionType|||显示位置类型。 -|indicatorGap|10||指示器和雷达的间距。 -|ceilRate|0||最大最小值向上取整的倍率。默认为0时自动计算。 -|isAxisTooltip|||是否Tooltip显示轴线上的所有数据。 -|outRangeColor|Color.red||数值超出范围时显示的颜色。 -|connectCenter|false||数值是否连线到中心点。 -|lineGradient|true||数值线段是否需要渐变。 -|startAngle||v3.4.0|起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。 -|gridIndex|-1|v3.8.0|所使用的 layout 组件的 index。 默认为-1不指定index, 当为大于或等于0时, 为第一个layout组件的第index个格子。 -|indicatorList|||指示器列表。 +`AxisLine` +轴线。 [AxisLine](#axisline) -```mdx-code-block - -``` +### Indicator.axisName + +`AxisName` +雷达图每个指示器名称的配置项。 [AxisName](#axisname) + +### Indicator.ceilRate + +`double` `0` +最大最小值向上取整的倍率。默认为0时自动计算。 + +### Indicator.center + +`float[]` +雷达图的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。 + +### Indicator.connectCenter + +`bool` `false` +数值是否连线到中心点。 + +### Indicator.gridIndex + +`int` `-1` `v3.8.0` +所使用的 layout 组件的 index。 默认为-1不指定index, 当为大于或等于0时, 为第一个layout组件的第index个格子。 + +### Indicator.indicator + +`bool` `true` +是否显示指示器。 + +### Indicator.indicatorGap + +`float` `10` +指示器和雷达的间距。 + +### Indicator.indicatorList + +`List` +指示器列表。 + +### Indicator.isAxisTooltip + +`bool` +是否Tooltip显示轴线上的所有数据。 + +### Indicator.lineGradient + +`bool` `true` +数值线段是否需要渐变。 + +### Indicator.max + +`double` +指示器的最大值,默认为 0 无限制。 + +### Indicator.min + +`double` +指示器的最小值,默认为 0 无限制。 + +### Indicator.name + +`string` +指示器名称。 + +### Indicator.outRangeColor + +`Color32` `Color.red` +数值超出范围时显示的颜色。 + +### Indicator.positionType + +`PositionType` +显示位置类型。 + +### Indicator.radius + +`float` `100` +雷达图的半径。 + +### Indicator.range + +`double[]` +正常值范围。当数值不在这个范围时,会自动变更显示颜色。 + +### Indicator.shape + +`Shape` +雷达图绘制类型,支持 'Polygon' 和 'Circle'。 + +### Indicator.show + +`bool` +是否显示雷达坐标系组件。 + +### Indicator.splitArea + +`AxisSplitArea` +分割区域。 [AxisSplitArea](#axissplitarea) + +### Indicator.splitLine + +`AxisSplitLine` +分割线。 [AxisSplitLine](#axissplitline) + +### Indicator.splitNumber + +`int` `5` +指示器轴的分割段数。 + +### Indicator.startAngle + +`float` `v3.4.0` +起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。 ## INeedSerieContainer -> class in XCharts.Runtime / 子类: [Bar](#bar), [SimplifiedBar](#simplifiedbar), [Candlestick](#candlestick), [SimplifiedCandlestick](#simplifiedcandlestick), [Heatmap](#heatmap), [Line](#line), [SimplifiedLine](#simplifiedline), [Parallel](#parallel), [Radar](#radar), [BaseScatter](#basescatter) +class in XCharts.Runtime / 子类: [Bar](#bar), [SimplifiedBar](#simplifiedbar), [Candlestick](#candlestick), [SimplifiedCandlestick](#simplifiedcandlestick), [Heatmap](#heatmap), [Line](#line), [SimplifiedLine](#simplifiedline), [Parallel](#parallel), [Radar](#radar), [BaseScatter](#basescatter) ## IPropertyChanged -> class in XCharts.Runtime / 子类: [Location](#location), [Comment](#comment), [Legend](#legend), [Title](#title) +class in XCharts.Runtime / 子类: [Location](#location), [Comment](#comment), [Legend](#legend), [Title](#title) 属性变更接口 ## ISerieComponent -> class in XCharts.Runtime / 子类: [AreaStyle](#areastyle), [ImageStyle](#imagestyle), [LineArrow](#linearrow), [LabelLine](#labelline), [LabelStyle](#labelstyle), [BlurStyle](#blurstyle), [EmphasisStyle](#emphasisstyle), [SelectStyle](#selectstyle), [TitleStyle](#titlestyle) +class in XCharts.Runtime / 子类: [AreaStyle](#areastyle), [ImageStyle](#imagestyle), [LineArrow](#linearrow), [LabelLine](#labelline), [LabelStyle](#labelstyle), [BlurStyle](#blurstyle), [EmphasisStyle](#emphasisstyle), [SelectStyle](#selectstyle), [TitleStyle](#titlestyle) 可用于Serie的组件。 ## ISerieContainer -> class in XCharts.Runtime / 子类: [RadarCoord](#radarcoord), [CalendarCoord](#calendarcoord), [GridCoord](#gridcoord), [GridCoord3D](#gridcoord3d), [ParallelCoord](#parallelcoord), [PolarCoord](#polarcoord) +class in XCharts.Runtime / 子类: [RadarCoord](#radarcoord), [CalendarCoord](#calendarcoord), [GridCoord](#gridcoord), [GridCoord3D](#gridcoord3d), [ParallelCoord](#parallelcoord), [PolarCoord](#polarcoord) ## ISerieDataComponent -> class in XCharts.Runtime / 子类: [AreaStyle](#areastyle), [ImageStyle](#imagestyle), [ItemStyle](#itemstyle), [LineStyle](#linestyle), [SerieSymbol](#seriesymbol), [LabelLine](#labelline), [LabelStyle](#labelstyle), [BlurStyle](#blurstyle), [EmphasisStyle](#emphasisstyle), [SelectStyle](#selectstyle), [TitleStyle](#titlestyle) +class in XCharts.Runtime / 子类: [AreaStyle](#areastyle), [ImageStyle](#imagestyle), [ItemStyle](#itemstyle), [LineStyle](#linestyle), [SerieSymbol](#seriesymbol), [LabelLine](#labelline), [LabelStyle](#labelstyle), [BlurStyle](#blurstyle), [EmphasisStyle](#emphasisstyle), [SelectStyle](#selectstyle), [TitleStyle](#titlestyle) 可用于SerieData的组件。 ## ISimplifiedSerie -> class in XCharts.Runtime / 子类: [SimplifiedBar](#simplifiedbar), [SimplifiedCandlestick](#simplifiedcandlestick), [SimplifiedLine](#simplifiedline) +class in XCharts.Runtime / 子类: [SimplifiedBar](#simplifiedbar), [SimplifiedCandlestick](#simplifiedcandlestick), [SimplifiedLine](#simplifiedline) ## ItemStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerieDataComponent](#iseriedatacomponent) 图形样式。 -```mdx-code-block - -``` +### ItemStyle.backgroundColor -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否启用。 -|color|||数据项颜色。 -|color0|||数据项颜色。 -|toColor|||渐变色的颜色1。 -|toColor2|||渐变色的颜色2。只在折线图中有效。 -|markColor||v3.6.0|Serie的标识颜色。仅用于Legend和Tooltip的展示,不影响绘制颜色,默认为clear。 -|backgroundColor|||数据项背景颜色。 -|backgroundWidth|||数据项背景宽度。 -|centerColor|||中心区域颜色。 -|centerGap|||中心区域间隙。 -|borderWidth|0||边框宽。 -|borderGap|0||边框间隙。 -|borderColor|||边框的颜色。 -|borderColor0|||边框的颜色。 -|borderToColor|||边框的渐变色。 -|opacity|1||透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 -|itemMarker|||提示框单项的字符标志。用在Tooltip中。 -|itemFormatter|||提示框单项的字符串模版格式器。具体配置参考`Tooltip`的`formatter` -|numericFormatter|||标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
日期格式:以`date`开头,用来格式化DateTime,常见格式有:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:date:yyyy-MM-dd HH:mm:ss
时间格式:以`time`开头,用来格式化TimeSpan,常见格式有:d日,HH时,mm分,ss秒,fffffff小数部分。 需要Unity2018以上版本才支持格式化,并且里面的字符要转义。如:time:d\.HH\:mm\:ss
数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
时间格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings
注意:date和time格式需要`v3.12.0`以上版本才支持。 -|cornerRadius|||圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。 +`Color32` +数据项背景颜色。 -```mdx-code-block -
-``` +### ItemStyle.backgroundWidth + +`float` +数据项背景宽度。 + +### ItemStyle.borderColor + +`Color32` +边框的颜色。 + +### ItemStyle.borderColor0 + +`Color32` +边框的颜色。 + +### ItemStyle.borderGap + +`float` `0` +边框间隙。 + +### ItemStyle.borderToColor + +`Color32` +边框的渐变色。 + +### ItemStyle.borderWidth + +`float` `0` +边框宽。 + +### ItemStyle.centerColor + +`Color32` +中心区域颜色。 + +### ItemStyle.centerGap + +`float` +中心区域间隙。 + +### ItemStyle.color + +`Color32` +数据项颜色。 + +### ItemStyle.color0 + +`Color32` +数据项颜色。 + +### ItemStyle.cornerRadius + +`float[]` +圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。 + +### ItemStyle.itemFormatter + +`string` +提示框单项的字符串模版格式器。具体配置参考`Tooltip`的`formatter` + +### ItemStyle.itemMarker + +`string` +提示框单项的字符标志。用在Tooltip中。 + +### ItemStyle.markColor + +`Color32` `v3.6.0` +Serie的标识颜色。仅用于Legend和Tooltip的展示,不影响绘制颜色,默认为clear。 + +### ItemStyle.numericFormatter + +`string` +标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
日期格式:以`date`开头,用来格式化DateTime,常见格式有:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:date:yyyy-MM-dd HH:mm:ss
时间格式:以`time`开头,用来格式化TimeSpan,常见格式有:d日,HH时,mm分,ss秒,fffffff小数部分。 需要Unity2018以上版本才支持格式化,并且里面的字符要转义。如:time:d\.HH\:mm\:ss
数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
时间格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings
注意:date和time格式需要`v3.12.0`以上版本才支持。 + +### ItemStyle.opacity + +`float` `1` +透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 + +### ItemStyle.show + +`bool` `true` +是否启用。 + +### ItemStyle.toColor + +`Color32` +渐变色的颜色1。 + +### ItemStyle.toColor2 + +`Color32` +渐变色的颜色2。只在折线图中有效。 ## IUpdateRuntimeData -> class in XCharts.Runtime / 子类: [SingleAxis](#singleaxis), [DataZoom](#datazoom), [CalendarCoord](#calendarcoord), [GridCoord](#gridcoord), [GridLayout](#gridlayout), [GridCoord3D](#gridcoord3d), [ParallelCoord](#parallelcoord) +class in XCharts.Runtime / 子类: [SingleAxis](#singleaxis), [DataZoom](#datazoom), [CalendarCoord](#calendarcoord), [GridCoord](#gridcoord), [GridLayout](#gridlayout), [GridCoord3D](#gridcoord3d), [ParallelCoord](#parallelcoord) ## LabelLine -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) 标签的引导线 -```mdx-code-block - -``` +### LabelLine.endSymbol -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示视觉引导线。 -|lineType|||视觉引导线类型。
`LabelLine.LineType`:
- `BrokenLine`: 折线
- `Curves`: 曲线
- `HorizontalLine`: 水平线
| -|lineColor|Color32(0,0,0,0)||视觉引导线颜色。默认和serie一致取自调色板。 -|lineAngle|60||视觉引导线的固定角度。对折线和曲线有效。在Pie中无效。 -|lineWidth|1.0f||视觉引导线的宽度。 -|lineGap|1.0f||视觉引导线和容器的间距。 -|lineLength1|25f||视觉引导线第一段的长度。 -|lineLength2|15f||视觉引导线第二段的长度。 -|lineEndX|0f|v3.8.0|视觉引导线结束点的固定x位置。当不为0时,会代替lineLength2设定引导线的x位置。 -|startSymbol|||起始点的图形标记。 [SymbolStyle](#symbolstyle)| -|endSymbol|||结束点的图形标记。 [SymbolStyle](#symbolstyle)| +`SymbolStyle` +结束点的图形标记。 [SymbolStyle](#symbolstyle) -```mdx-code-block -
-``` +### LabelLine.lineAngle + +`float` `60` +视觉引导线的固定角度。对折线和曲线有效。在Pie中无效。 + +### LabelLine.lineColor + +`Color32` `Color32(0,0,0,0)` +视觉引导线颜色。默认和serie一致取自调色板。 + +### LabelLine.lineEndX + +`float` `0f` `v3.8.0` +视觉引导线结束点的固定x位置。当不为0时,会代替lineLength2设定引导线的x位置。 + +### LabelLine.lineGap + +`float` `1.0f` +视觉引导线和容器的间距。 + +### LabelLine.lineLength1 + +`float` `25f` +视觉引导线第一段的长度。 + +### LabelLine.lineLength2 + +`float` `15f` +视觉引导线第二段的长度。 + +### LabelLine.lineType + +`LabelLine.LineType` +视觉引导线类型。 + +可选: + +- `BrokenLine`: 折线 +- `Curves`: 曲线 +- `HorizontalLine`: 水平线 + +### LabelLine.lineWidth + +`float` `1.0f` +视觉引导线的宽度。 + +### LabelLine.show + +`bool` `true` +是否显示视觉引导线。 + +### LabelLine.startSymbol + +`SymbolStyle` +起始点的图形标记。 [SymbolStyle](#symbolstyle) ## LabelStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) / 子类: [AxisLabel](#axislabel), [EndLabelStyle](#endlabelstyle), [TitleStyle](#titlestyle) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) / 子类: [AxisLabel](#axislabel), [EndLabelStyle](#endlabelstyle), [TitleStyle](#titlestyle) 图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。 -```mdx-code-block - -``` +### LabelStyle.autoOffset -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示文本标签。 -|Position|||标签的位置。 -|autoOffset|false||是否开启自动偏移。当开启时,Y的偏移会自动判断曲线的开口来决定向上还是向下偏移。 -|offset|||距离图形元素的偏移 -|rotate|||文本的旋转。 -|autoRotate|false|v3.6.0|是否自动旋转。 -|distance|||距离轴线的距离。 -|formatter|||标签内容字符串模版格式器。支持用 \n 换行。部分组件的格式器会不生效。
模板通配符有以下这些,部分只适用于固定的组件:
`{.}`:圆点标记。
`{a}`:系列名。
`{b}`:X轴类目名或数据名。
`{c}`:数据值。
`{d}`:百分比。
`{e}`:数据名。
`{f}`:数据和。
`{g}`:数据总个数。
`{h}`:十六进制颜色值。
`{y}`:Y轴的类目名。
`{value}`:坐标轴或图例的值。
以下通配符适用UITable组件:
`{name}`: 表格的行名。
`{index}`:表格的行号。
以下通配符适用UIStatistc组件:
`{title}`:标题文本。
`{dd}`:天。
`{hh}`:小时。
`{mm}`:分钟。
`{ss}`:秒。
`{fff}`:毫秒。
`{d}`:天。
`{h}`:小时。
`{m}`:分钟。
`{s}`:秒。
`{f}`:毫秒。
示例:“{b}:{c}” -|numericFormatter|||标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
日期格式:以`date`开头,用来格式化DateTime,常见格式有:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:date:yyyy-MM-dd HH:mm:ss
时间格式:以`time`开头,用来格式化TimeSpan,常见格式有:d日,HH时,mm分,ss秒,fffffff小数部分。 需要Unity2018以上版本才支持格式化,并且里面的字符要转义。如:time:d\.HH\:mm\:ss
数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
时间格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings
注意:date和time格式需要`v3.12.0`以上版本才支持。 -|width|0||标签的宽度。一般不用指定,不指定时则自动是文字的宽度。 -|height|0||标签的高度。一般不用指定,不指定时则自动是文字的高度。 -|icon|||图标样式。 [IconStyle](#iconstyle)| -|background|||背景图样式。 [ImageStyle](#imagestyle)| -|textPadding|||文本的边距。 [TextPadding](#textpadding)| -|textStyle|||文本样式。 [TextStyle](#textstyle)| +`bool` `false` +是否开启自动偏移。当开启时,Y的偏移会自动判断曲线的开口来决定向上还是向下偏移。 -```mdx-code-block -
-``` +### LabelStyle.autoRotate + +`bool` `false` `v3.6.0` +是否自动旋转。 + +### LabelStyle.background + +`ImageStyle` +背景图样式。 [ImageStyle](#imagestyle) + +### LabelStyle.distance + +`float` +距离轴线的距离。 + +### LabelStyle.formatter + +`string` +标签内容字符串模版格式器。支持用 \n 换行。部分组件的格式器会不生效。
模板通配符有以下这些,部分只适用于固定的组件:
`{.}`:圆点标记。
`{a}`:系列名。
`{b}`:X轴类目名或数据名。
`{c}`:数据值。
`{d}`:百分比。
`{e}`:数据名。
`{f}`:数据和。
`{g}`:数据总个数。
`{h}`:十六进制颜色值。
`{y}`:Y轴的类目名。
`{value}`:坐标轴或图例的值。
以下通配符适用UITable组件:
`{name}`: 表格的行名。
`{index}`:表格的行号。
以下通配符适用UIStatistc组件:
`{title}`:标题文本。
`{dd}`:天。
`{hh}`:小时。
`{mm}`:分钟。
`{ss}`:秒。
`{fff}`:毫秒。
`{d}`:天。
`{h}`:小时。
`{m}`:分钟。
`{s}`:秒。
`{f}`:毫秒。
示例:“{b}:{c}” + +### LabelStyle.height + +`float` `0` +标签的高度。一般不用指定,不指定时则自动是文字的高度。 + +### LabelStyle.icon + +`IconStyle` +图标样式。 [IconStyle](#iconstyle) + +### LabelStyle.numericFormatter + +`string` +标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
日期格式:以`date`开头,用来格式化DateTime,常见格式有:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:date:yyyy-MM-dd HH:mm:ss
时间格式:以`time`开头,用来格式化TimeSpan,常见格式有:d日,HH时,mm分,ss秒,fffffff小数部分。 需要Unity2018以上版本才支持格式化,并且里面的字符要转义。如:time:d\.HH\:mm\:ss
数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
时间格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings
注意:date和time格式需要`v3.12.0`以上版本才支持。 + +### LabelStyle.offset + +`Vector3` +距离图形元素的偏移 + +### LabelStyle.Position + +`[SerializeField]` +标签的位置。 + +### LabelStyle.rotate + +`float` +文本的旋转。 + +### LabelStyle.show + +`bool` `true` +是否显示文本标签。 + +### LabelStyle.textPadding + +`TextPadding` +文本的边距。 [TextPadding](#textpadding) + +### LabelStyle.textStyle + +`TextStyle` +文本样式。 [TextStyle](#textstyle) + +### LabelStyle.width + +`float` `0` +标签的宽度。一般不用指定,不指定时则自动是文字的宽度。 ## Lang -> class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject) +class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject) 国际化语言表。 ## LangCandlestick -> class in XCharts.Runtime +class in XCharts.Runtime ## LangTime -> class in XCharts.Runtime +class in XCharts.Runtime ## Legend -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropertyChanged](#ipropertychanged) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropertyChanged](#ipropertychanged) 图例组件。 图例组件展现了不同系列的标记,颜色和名字。可以通过点击图例控制哪些系列不显示。 -```mdx-code-block - -``` +### Legend.background -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示图例组件。 -|iconType|||图例类型。
`Legend.Type`:
- `Auto`: 自动匹配。
- `Custom`: 自定义图标。
- `EmptyCircle`: 空心圆。
- `Circle`: 圆形。
- `Rect`: 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。
- `Triangle`: 三角形。
- `Diamond`: 菱形。
- `Candlestick`: 烛台(可用于K线图)。
| -|selectedMode|||选择模式。控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。
`Legend.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
- `None`: 无法选择。
| -|orient|||布局方式是横还是竖。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|location|||图例显示的位置。 [Location](#location)| -|itemWidth|25.0f||图例标记的图形宽度。 -|itemHeight|12.0f||图例标记的图形高度。 -|itemGap|10f||图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。 -|itemAutoColor|true||图例标记的图形是否自动匹配颜色。 -|itemOpacity|1||图例标记的图形的颜色透明度。 -|formatter|||不再使用,使用LabelStyle.formatter代替。 -|labelStyle|||文本样式。 [LabelStyle](#labelstyle)| -|textLimit||v3.10.0|文本限制。 [TextLimit](#textlimit)| -|data|||图例的数据数组。数组项通常为一个字符串,每一项代表一个系列的 name(如果是饼图,也可以是饼图单个数据的 name)。 如果 data 没有被指定,会自动从当前系列中获取。指定data时里面的数据项和serie匹配时才会生效。 -|icons|||自定义的图例标记图形。 -|colors|||图例标记的颜色列表。 -|background||v3.1.0|背景图样式。 [ImageStyle](#imagestyle)| -|padding||v3.1.0|图例标记和背景的间距。 [Padding](#padding)| -|positions||v3.6.0|图例标记的自定义位置列表。 +`ImageStyle` `v3.1.0` +背景图样式。 [ImageStyle](#imagestyle) -```mdx-code-block -
-``` +### Legend.colors + +`List` +图例标记的颜色列表。 + +### Legend.data + +`List` +图例的数据数组。数组项通常为一个字符串,每一项代表一个系列的 name(如果是饼图,也可以是饼图单个数据的 name)。 如果 data 没有被指定,会自动从当前系列中获取。指定data时里面的数据项和serie匹配时才会生效。 + +### Legend.formatter + +`string` +不再使用,使用LabelStyle.formatter代替。 + +### Legend.icons + +`List` +自定义的图例标记图形。 + +### Legend.iconType + +`Legend.Type` +图例类型。 + +可选: + +- `Auto`: 自动匹配。 +- `Custom`: 自定义图标。 +- `EmptyCircle`: 空心圆。 +- `Circle`: 圆形。 +- `Rect`: 正方形。可通过Setting的legendIconCornerRadius参数调整圆角。 +- `Triangle`: 三角形。 +- `Diamond`: 菱形。 +- `Candlestick`: 烛台(可用于K线图)。 + +### Legend.itemAutoColor + +`bool` `true` +图例标记的图形是否自动匹配颜色。 + +### Legend.itemGap + +`float` `10f` +图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。 + +### Legend.itemHeight + +`float` `12.0f` +图例标记的图形高度。 + +### Legend.itemOpacity + +`float` `1` +图例标记的图形的颜色透明度。 + +### Legend.itemWidth + +`float` `25.0f` +图例标记的图形宽度。 + +### Legend.labelStyle + +`LabelStyle` +文本样式。 [LabelStyle](#labelstyle) + +### Legend.location + +`Location` +图例显示的位置。 [Location](#location) + +### Legend.orient + +`Orient` +布局方式是横还是竖。 + +可选: + +- `Horizonal`: 水平 +- `Vertical`: 垂直 + +### Legend.padding + +`Padding` `v3.1.0` +图例标记和背景的间距。 [Padding](#padding) + +### Legend.positions + +`List` `v3.6.0` +图例标记的自定义位置列表。 + +### Legend.selectedMode + +`Legend.SelectedMode` +选择模式。控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。 + +可选: + +- `Multiple`: 多选。 +- `Single`: 单选。 +- `None`: 无法选择。 + +### Legend.show + +`bool` `true` +是否显示图例组件。 + +### Legend.textLimit + +`TextLimit` `v3.10.0` +文本限制。 [TextLimit](#textlimit) ## LegendTheme -> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) -```mdx-code-block - -``` +### LegendTheme.unableColor -|参数|默认|版本|描述| -|--|--|--|--| -|unableColor|||文本颜色。 - -```mdx-code-block - -``` +`Color` +文本颜色。 ## Level -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) -```mdx-code-block - -``` +### Level.depth -|参数|默认|版本|描述| -|--|--|--|--| -|depth|0|v3.10.0|层级深度。 -|label|||文本标签样式。 [LabelStyle](#labelstyle)| -|upperLabel|||上方的文本标签样式。 [LabelStyle](#labelstyle)| -|lineStyle||v3.10.0|线条样式。 [LineStyle](#linestyle)| -|itemStyle|||数据项样式。 [ItemStyle](#itemstyle)| +`int` `0` `v3.10.0` +层级深度。 -```mdx-code-block - -``` +### Level.itemStyle + +`ItemStyle` +数据项样式。 [ItemStyle](#itemstyle) + +### Level.label + +`LabelStyle` +文本标签样式。 [LabelStyle](#labelstyle) + +### Level.lineStyle + +`LineStyle` `v3.10.0` +线条样式。 [LineStyle](#linestyle) + +### Level.upperLabel + +`LabelStyle` +上方的文本标签样式。 [LabelStyle](#labelstyle) ## LevelStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) > 从 `v3.10.0` 开始支持 -```mdx-code-block - -``` +### LevelStyle.levels -|参数|默认|版本|描述| -|--|--|--|--| -|show|false||是否启用LevelStyle -|levels|||各层节点对应的配置。当enableLevels为true时生效,levels[0]对应的第一层的配置,levels[1]对应第二层,依次类推。当levels中没有对应层时用默认的设置。 +`List` +各层节点对应的配置。当enableLevels为true时生效,levels[0]对应的第一层的配置,levels[1]对应第二层,依次类推。当levels中没有对应层时用默认的设置。 -```mdx-code-block - -``` +### LevelStyle.show + +`bool` `false` +是否启用LevelStyle ## Line -> class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) ## LineArrow -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerieComponent](#iseriecomponent) -```mdx-code-block - -``` +### LineArrow.arrow -|参数|默认|版本|描述| -|--|--|--|--| -|show|||是否显示箭头。 -|position|||箭头位置。
`LineArrow.Position`:
- `End`: 末端箭头
- `Start`: 头端箭头
| -|arrow|||箭头。 [ArrowStyle](#arrowstyle)| +`ArrowStyle` +箭头。 [ArrowStyle](#arrowstyle) -```mdx-code-block -
-``` +### LineArrow.position + +`LineArrow.Position` +箭头位置。 + +可选: + +- `End`: 末端箭头 +- `Start`: 头端箭头 + +### LineArrow.show + +`bool` +是否显示箭头。 ## LineStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerieDataComponent](#iseriedatacomponent) 线条样式。 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color,线条颜色默认也会取该颜色。 toColor,toColor2可设置水平方向的渐变,如需要设置垂直方向的渐变,可使用VisualMap。 -```mdx-code-block - -``` +### LineStyle.color -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。 -|type|||线的类型。
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|color|||线的颜色。 -|toColor|||线的渐变颜色(需要水平方向渐变时)。 -|toColor2|||线的渐变颜色2(需要水平方向三个渐变色的渐变时)。 -|width|0||线宽。 -|length|0||线长。 -|opacity|1||线的透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 -|dashLength|4|v3.8.1|虚线的长度。默认0时为线条宽度的12倍。在折线图中代表分割段数的倍数。 -|dotLength|2|v3.8.1|点线的长度。默认0时为线条宽度的3倍。在折线图中代表分割段数的倍数。 -|gapLength|2|v3.8.1|点线的长度。默认0时为线条宽度的3倍。在折线图中代表分割段数的倍数。 +`Color32` +线的颜色。 -```mdx-code-block -
-``` +### LineStyle.dashLength + +`float` `4` `v3.8.1` +虚线的长度。默认0时为线条宽度的12倍。在折线图中代表分割段数的倍数。 + +### LineStyle.dotLength + +`float` `2` `v3.8.1` +点线的长度。默认0时为线条宽度的3倍。在折线图中代表分割段数的倍数。 + +### LineStyle.gapLength + +`float` `2` `v3.8.1` +点线的长度。默认0时为线条宽度的3倍。在折线图中代表分割段数的倍数。 + +### LineStyle.length + +`float` `0` +线长。 + +### LineStyle.opacity + +`float` `1` +线的透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 + +### LineStyle.show + +`bool` `true` +是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。 + +### LineStyle.toColor + +`Color32` +线的渐变颜色(需要水平方向渐变时)。 + +### LineStyle.toColor2 + +`Color32` +线的渐变颜色2(需要水平方向三个渐变色的渐变时)。 + +### LineStyle.type + +`LineStyle.Type` +线的类型。 + +可选: + +- `Solid`: 实线 +- `Dashed`: 虚线 +- `Dotted`: 点线 +- `DashDot`: 点划线 +- `DashDotDot`: 双点划线 +- `None`: 双点划线 + +### LineStyle.width + +`float` `0` +线宽。 ## Location -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [IPropertyChanged](#ipropertychanged) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [IPropertyChanged](#ipropertychanged) 位置类型。通过Align快速设置大体位置,再通过left,right,top,bottom微调具体位置。 -```mdx-code-block - -``` +### Location.align -|参数|默认|版本|描述| -|--|--|--|--| -|align|||对齐方式。
`Location.Align`:
- `TopLeft`: 对齐方式
- `TopRight`: 对齐方式
- `TopCenter`: 对齐方式
- `BottomLeft`: 对齐方式
- `BottomRight`: 对齐方式
- `BottomCenter`: 对齐方式
- `Center`: 对齐方式
- `CenterLeft`: 对齐方式
- `CenterRight`: 对齐方式
| -|left|||离容器左侧的距离。 -|right|||离容器右侧的距离。 -|top|||离容器上侧的距离。 -|bottom|||离容器下侧的距离。 +`Location.Align` +对齐方式。 -```mdx-code-block -
-``` +可选: + +- `TopLeft`: 对齐方式 +- `TopRight`: 对齐方式 +- `TopCenter`: 对齐方式 +- `BottomLeft`: 对齐方式 +- `BottomRight`: 对齐方式 +- `BottomCenter`: 对齐方式 +- `Center`: 对齐方式 +- `CenterLeft`: 对齐方式 +- `CenterRight`: 对齐方式 + +### Location.bottom + +`float` +离容器下侧的距离。 + +### Location.left + +`float` +离容器左侧的距离。 + +### Location.right + +`float` +离容器右侧的距离。 + +### Location.top + +`float` +离容器上侧的距离。 ## MainComponent -> class in XCharts.Runtime / 继承自: [IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=IComparable) / 子类: [Axis](#axis), [Background](#background), [Comment](#comment), [DataZoom](#datazoom), [Legend](#legend), [MarkArea](#markarea), [MarkLine](#markline), [Settings](#settings), [Title](#title), [Tooltip](#tooltip), [VisualMap](#visualmap), [GridLayout](#gridlayout), [CoordSystem](#coordsystem) +class in XCharts.Runtime / 继承自: [IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=IComparable) / 子类: [Axis](#axis), [Background](#background), [Comment](#comment), [DataZoom](#datazoom), [Legend](#legend), [MarkArea](#markarea), [MarkLine](#markline), [Settings](#settings), [Title](#title), [Tooltip](#tooltip), [VisualMap](#visualmap), [GridLayout](#gridlayout), [CoordSystem](#coordsystem) ## MarkArea -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) 图表标域,常用于标记图表中某个范围的数据。 -```mdx-code-block - -``` +### MarkArea.end -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示标域。 -|text|||The text of markArea. 标域显示的文本。 -|serieIndex|0||Serie index of markArea. 标域影响的Serie索引。 -|start|||标域范围的起始数据。 [MarkAreaData](#markareadata)| -|end|||标域范围的结束数据。 [MarkAreaData](#markareadata)| -|itemStyle|||标域样式。 [ItemStyle](#itemstyle)| -|label|||标域文本样式。 [LabelStyle](#labelstyle)| +`MarkAreaData` +标域范围的结束数据。 [MarkAreaData](#markareadata) -```mdx-code-block - -``` +### MarkArea.itemStyle + +`ItemStyle` +标域样式。 [ItemStyle](#itemstyle) + +### MarkArea.label + +`LabelStyle` +标域文本样式。 [LabelStyle](#labelstyle) + +### MarkArea.serieIndex + +`int` `0` +Serie index of markArea. 标域影响的Serie索引。 + +### MarkArea.show + +`bool` `true` +是否显示标域。 + +### MarkArea.start + +`MarkAreaData` +标域范围的起始数据。 [MarkAreaData](#markareadata) + +### MarkArea.text + +`string` +The text of markArea. 标域显示的文本。 ## MarkAreaData -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 标域的数据。 -```mdx-code-block - -``` +### MarkAreaData.dimension -|参数|默认|版本|描述| -|--|--|--|--| -|type|||特殊的标域类型,用于标注最大值最小值等。
`MarkAreaType`:
- `None`: 标域类型
- `Min`: 最小值。
- `Max`: 最大值。
- `Average`: 平均值。
- `Median`: 中位数。
| -|name|||标注名称。会作为文字显示。 -|dimension|1||从哪个维度的数据计算最大最小值等。 -|xPosition|||相对原点的 x 坐标,单位像素。当type为None时有效。 -|yPosition|||相对原点的 y 坐标,单位像素。当type为None时有效。 -|xValue|||X轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 -|yValue|||Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 +`int` `1` +从哪个维度的数据计算最大最小值等。 -```mdx-code-block -
-``` +### MarkAreaData.name + +`string` +标注名称。会作为文字显示。 + +### MarkAreaData.type + +`MarkAreaType` +特殊的标域类型,用于标注最大值最小值等。 + +可选: + +- `None`: 标域类型 +- `Min`: 最小值。 +- `Max`: 最大值。 +- `Average`: 平均值。 +- `Median`: 中位数。 + +### MarkAreaData.xPosition + +`float` +相对原点的 x 坐标,单位像素。当type为None时有效。 + +### MarkAreaData.xValue + +`double` +X轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 + +### MarkAreaData.yPosition + +`float` +相对原点的 y 坐标,单位像素。当type为None时有效。 + +### MarkAreaData.yValue + +`double` +Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 ## MarkLine -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) 图表标线。 -```mdx-code-block - -``` +### MarkLine.animation -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示标线。 -|serieIndex|0||标线影响的Serie索引。 -|onTop|true|v3.9.0|是否在最上层。 -|animation|||标线的动画样式。 [AnimationStyle](#animationstyle)| -|data|||标线的数据列表。当数据项的group为0时,每个数据项表示一条标线;当group不为0时,相同group的两个数据项分别表 示标线的起始点和终止点来组成一条标线,此时标线的相关样式参数取起始点的参数。 +`AnimationStyle` +标线的动画样式。 [AnimationStyle](#animationstyle) -```mdx-code-block - -``` +### MarkLine.data + +`List` +标线的数据列表。当数据项的group为0时,每个数据项表示一条标线;当group不为0时,相同group的两个数据项分别表 示标线的起始点和终止点来组成一条标线,此时标线的相关样式参数取起始点的参数。 + +### MarkLine.onTop + +`bool` `true` `v3.9.0` +是否在最上层。 + +### MarkLine.serieIndex + +`int` `0` +标线影响的Serie索引。 + +### MarkLine.show + +`bool` `true` +是否显示标线。 ## MarkLineData -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) > 从 `v3.9.0` 开始支持 图表标线的数据。 -```mdx-code-block - -``` +### MarkLineData.dimension -|参数|默认|版本|描述| -|--|--|--|--| -|type|||特殊的标线类型,用于标注最大值最小值等。
`MarkLineType`:
- `None`: 标线类型
- `Min`: 最小值。
- `Max`: 最大值。
- `Average`: 平均值。
- `Median`: 中位数。
| -|name|||标线名称,将会作为文字显示。label的formatter可通过{b}显示名称,通过{c}显示数值。 -|dimension|1||从哪个维度的数据计算最大最小值等。 -|xPosition|||相对原点的 x 坐标,单位像素。当type为None时有效。 -|yPosition|||相对原点的 y 坐标,单位像素。当type为None时有效。 -|xValue|||X轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 -|yValue|||Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 -|group|0||分组。当group不为0时,表示这个data是标线的起点或终点,group一致的data组成一条标线。 -|zeroPosition|false||是否为坐标系原点。 -|startSymbol|||起始点的图形标记。 [SymbolStyle](#symbolstyle)| -|endSymbol|||结束点的图形标记。 [SymbolStyle](#symbolstyle)| -|lineStyle|||标线样式。 [LineStyle](#linestyle)| -|label|||文本样式。可设置position为Start、Middle和End在不同的位置显示文本。 [LabelStyle](#labelstyle)| +`int` `1` +从哪个维度的数据计算最大最小值等。 -```mdx-code-block -
-``` +### MarkLineData.endSymbol + +`SymbolStyle` +结束点的图形标记。 [SymbolStyle](#symbolstyle) + +### MarkLineData.group + +`int` `0` +分组。当group不为0时,表示这个data是标线的起点或终点,group一致的data组成一条标线。 + +### MarkLineData.label + +`LabelStyle` +文本样式。可设置position为Start、Middle和End在不同的位置显示文本。 [LabelStyle](#labelstyle) + +### MarkLineData.lineStyle + +`LineStyle` +标线样式。 [LineStyle](#linestyle) + +### MarkLineData.name + +`string` +标线名称,将会作为文字显示。label的formatter可通过{b}显示名称,通过{c}显示数值。 + +### MarkLineData.startSymbol + +`SymbolStyle` +起始点的图形标记。 [SymbolStyle](#symbolstyle) + +### MarkLineData.type + +`MarkLineType` +特殊的标线类型,用于标注最大值最小值等。 + +可选: + +- `None`: 标线类型 +- `Min`: 最小值。 +- `Max`: 最大值。 +- `Average`: 平均值。 +- `Median`: 中位数。 + +### MarkLineData.xPosition + +`float` +相对原点的 x 坐标,单位像素。当type为None时有效。 + +### MarkLineData.xValue + +`double` +X轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 + +### MarkLineData.yPosition + +`float` +相对原点的 y 坐标,单位像素。当type为None时有效。 + +### MarkLineData.yValue + +`double` +Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 + +### MarkLineData.zeroPosition + +`bool` `false` +是否为坐标系原点。 ## MarqueeStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) > 从 `v3.5.0` 开始支持 Marquee style. It can be used for the DataZoom component. 选取框样式。可用于DataZoom组件。 -```mdx-code-block - -``` +### MarqueeStyle.apply -|参数|默认|版本|描述| -|--|--|--|--| -|apply|false|v3.5.0|选取框范围是否应用到DataZoom上。当为true时,框选结束后的范围即为DataZoom的选择范围。 -|realRect|false|v3.5.0|是否选取实际框选区域。当为true时,以鼠标的其实点和结束点间的实际范围作为框选区域。 -|areaStyle||v3.5.0|选取框区域填充样式。 [AreaStyle](#areastyle)| -|lineStyle||v3.5.0|选取框区域边框样式。 [LineStyle](#linestyle)| +`bool` `false` `v3.5.0` +选取框范围是否应用到DataZoom上。当为true时,框选结束后的范围即为DataZoom的选择范围。 -```mdx-code-block - -``` +### MarqueeStyle.areaStyle + +`AreaStyle` `v3.5.0` +选取框区域填充样式。 [AreaStyle](#areastyle) + +### MarqueeStyle.lineStyle + +`LineStyle` `v3.5.0` +选取框区域边框样式。 [LineStyle](#linestyle) + +### MarqueeStyle.realRect + +`bool` `false` `v3.5.0` +是否选取实际框选区域。当为true时,以鼠标的其实点和结束点间的实际范围作为框选区域。 ## MLValue -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) > 从 `v3.8.0` 开始支持 多样式数值。 -```mdx-code-block - -``` +### MLValue.type -|参数|默认|版本|描述| -|--|--|--|--| -|type|||
`MLValue.Type`:
- `Percent`: 百分比形式。
- `Absolute`: 绝对值形式。
- `Extra`: 额外形式。
| -|value||| +`MLValue.Type` -```mdx-code-block -
-``` + +可选: + +- `Percent`: 百分比形式。 +- `Absolute`: 绝对值形式。 +- `Extra`: 额外形式。 + +### MLValue.value + +`float` ## Padding -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [TextPadding](#textpadding) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [TextPadding](#textpadding) 边距设置。 -```mdx-code-block - -``` +### Padding.bottom -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||show padding. 是否显示。 -|top|0||顶部间距。 -|right|2f||右部间距。 -|left|2f||左边间距。 -|bottom|0||底部间距。 +`float` `0` +底部间距。 -```mdx-code-block - -``` +### Padding.left + +`float` `2f` +左边间距。 + +### Padding.right + +`float` `2f` +右部间距。 + +### Padding.show + +`bool` `true` +show padding. 是否显示。 + +### Padding.top + +`float` `0` +顶部间距。 ## Parallel -> class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) ## ParallelAxis -> class in XCharts.Runtime / 继承自: [Axis](#axis) +class in XCharts.Runtime / 继承自: [Axis](#axis) ## ParallelCoord -> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem), [IUpdateRuntimeData](#iupdateruntimedata), [ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem), [IUpdateRuntimeData](#iupdateruntimedata), [ISerieContainer](#iseriecontainer) Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid. -```mdx-code-block - -``` +### ParallelCoord.backgroundColor -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示直角坐标系网格。 -|orient|||坐标轴朝向。默认为垂直朝向。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|left|0.1f||grid 组件离容器左侧的距离。 -|right|0.08f||grid 组件离容器右侧的距离。 -|top|0.22f||grid 组件离容器上侧的距离。 -|bottom|0.12f||grid 组件离容器下侧的距离。 -|backgroundColor|||网格背景色,默认透明。 +`Color` +网格背景色,默认透明。 -```mdx-code-block -
-``` +### ParallelCoord.bottom + +`float` `0.12f` +grid 组件离容器下侧的距离。 + +### ParallelCoord.left + +`float` `0.1f` +grid 组件离容器左侧的距离。 + +### ParallelCoord.orient + +`Orient` +坐标轴朝向。默认为垂直朝向。 + +可选: + +- `Horizonal`: 水平 +- `Vertical`: 垂直 + +### ParallelCoord.right + +`float` `0.08f` +grid 组件离容器右侧的距离。 + +### ParallelCoord.show + +`bool` `true` +是否显示直角坐标系网格。 + +### ParallelCoord.top + +`float` `0.22f` +grid 组件离容器上侧的距离。 ## Pie -> class in XCharts.Runtime / 继承自: [Serie](#serie) +class in XCharts.Runtime / 继承自: [Serie](#serie) -```mdx-code-block - -``` +### Pie.radiusGradient -|参数|默认|版本|描述| -|--|--|--|--| -|radiusGradient|false|v3.8.1|是否开启半径方向的渐变效果。 - -```mdx-code-block - -``` +`bool` `false` `v3.8.1` +是否开启半径方向的渐变效果。 ## PolarAxisTheme -> class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) ## PolarCoord -> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem), [ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem), [ISerieContainer](#iseriecontainer) 极坐标系组件。 极坐标系,可以用于散点图和折线图。每个极坐标系拥有一个角度轴和一个半径轴。 -```mdx-code-block - -``` +### PolarCoord.backgroundColor -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示极坐标。 -|center|||极坐标的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。 -|radius|||半径。radius[0]表示内径,radius[1]表示外径。 -|backgroundColor|||极坐标的背景色,默认透明。 -|indicatorLabelOffset|30f|v3.8.0|指示器标签的偏移量。 +`Color` +极坐标的背景色,默认透明。 -```mdx-code-block - -``` +### PolarCoord.center + +`float[]` +极坐标的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。 + +### PolarCoord.indicatorLabelOffset + +`float` `30f` `v3.8.0` +指示器标签的偏移量。 + +### PolarCoord.radius + +`float[]` +半径。radius[0]表示内径,radius[1]表示外径。 + +### PolarCoord.show + +`bool` `true` +是否显示极坐标。 ## Radar -> class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) +class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer) -```mdx-code-block - -``` +### Radar.smooth -|参数|默认|版本|描述| -|--|--|--|--| -|smooth|false|v3.2.0|是否平滑曲线。平滑曲线时不支持区域填充颜色。 - -```mdx-code-block - -``` +`bool` `false` `v3.2.0` +是否平滑曲线。平滑曲线时不支持区域填充颜色。 ## RadarAxisTheme -> class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) ## RadarCoord -> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem), [ISerieContainer](#iseriecontainer) +class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem), [ISerieContainer](#iseriecontainer) Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适用于雷达图。 ## RadiusAxis -> class in XCharts.Runtime / 继承自: [Axis](#axis) +class in XCharts.Runtime / 继承自: [Axis](#axis) 极坐标系的径向轴。 ## RadiusAxisTheme -> class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) +class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) ## Ring -> class in XCharts.Runtime / 继承自: [Serie](#serie) +class in XCharts.Runtime / 继承自: [Serie](#serie) -```mdx-code-block - -``` +### Ring.radiusGradient -|参数|默认|版本|描述| -|--|--|--|--| -|radiusGradient|false|v3.12.0|是否开启半径方向的渐变效果。 - -```mdx-code-block - -``` +`bool` `false` `v3.12.0` +是否开启半径方向的渐变效果。 ## Scatter -> class in XCharts.Runtime / 继承自: [BaseScatter](#basescatter) +class in XCharts.Runtime / 继承自: [BaseScatter](#basescatter) ## SelectStyle -> class in XCharts.Runtime / 继承自: [StateStyle](#statestyle), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [StateStyle](#statestyle), [ISerieComponent](#iseriecomponent), [ISerieDataComponent](#iseriedatacomponent) > 从 `v3.2.0` 开始支持 @@ -1783,692 +2992,1683 @@ Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适 ## Serie -> class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=IComparable) / 子类: [SerieHandler<T>](#seriehandlert), [Bar](#bar), [SimplifiedBar](#simplifiedbar), [Candlestick](#candlestick), [SimplifiedCandlestick](#simplifiedcandlestick), [Heatmap](#heatmap), [Line](#line), [SimplifiedLine](#simplifiedline), [Parallel](#parallel), [Pie](#pie), [Radar](#radar), [Ring](#ring), [BaseScatter](#basescatter) +class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](https://docs.unity3d.com/ScriptReference/30_search.html?q=IComparable) / 子类: [SerieHandler<T>](#seriehandlert), [Bar](#bar), [SimplifiedBar](#simplifiedbar), [Candlestick](#candlestick), [SimplifiedCandlestick](#simplifiedcandlestick), [Heatmap](#heatmap), [Line](#line), [SimplifiedLine](#simplifiedline), [Parallel](#parallel), [Pie](#pie), [Radar](#radar), [Ring](#ring), [BaseScatter](#basescatter) 系列。系列一般由数据和配置组成,用来表示具体的图表图形,如折线图的一条折线,柱图的一组柱子等。一个图表中可以包含多个不同类型的系列。 -```mdx-code-block - -``` +### Serie.align -|参数|默认|版本|描述| -|--|--|--|--| -|index|||系列索引。 -|show|true||系列是否显示在图表上。 -|coordSystem|||使用的坐标系。 -|serieType|||系列类型。 -|serieName|||系列名称,用于 tooltip 的显示,legend 的图例筛选。 -|state||v3.2.0|系列的默认状态。
`SerieState`:
- `Normal`: 正常状态。
- `Emphasis`: 高亮状态。
- `Blur`: 淡出状态。
- `Select`: 选中状态。
- `Auto`: 自动保持和父节点一致。一般用在SerieData。
| -|colorBy||v3.2.0|从主题中取色的策略。
`SerieColorBy`:
- `Default`: 默认策略。每种Serie都有自己的默认的取颜色策略。比如Line默认是Series策略,Pie默认是Data策略。
- `Serie`: 按照系列分配调色盘中的颜色,同一系列中的所有数据都是用相同的颜色。
- `Data`: 按照数据项分配调色盘中的颜色,每个数据项都使用不同的颜色。
| -|stack|||数据堆叠,同个类目轴上系列配置相同的stack值后,后一个系列的值会在前一个系列的值上相加。 -|xAxisIndex|0||使用X轴的index。 -|yAxisIndex|0||使用Y轴的index。 -|radarIndex|0||雷达图所使用的 radar 组件的 index。 -|vesselIndex|0||水位图所使用的 vessel 组件的 index。 -|polarIndex|0||所使用的 polar 组件的 index。 -|singleAxisIndex|0||所使用的 singleAxis 组件的 index。 -|parallelIndex|0||所使用的 parallel coord 组件的 index。 -|gridIndex|-1|v3.8.0|所使用的 layout 组件的 index。 默认为-1不指定index, 当为大于或等于0时, 为第一个layout组件的第index个格子。 -|minShow|||系列所显示数据的最小索引 -|maxShow|||系列所显示数据的最大索引 -|maxCache|||系列中可缓存的最大数据量。默认为0没有限制,大于0时超过指定值会移除旧数据再插入新数据。 -|sampleDist|0||采样的最小像素距离,默认为0时不采样。当两个数据点间的水平距离小于改值时,开启采样,保证两点间的水平距离不小于改值。 -|sampleType|||采样类型。当sampleDist大于0时有效。
`SampleType`:
- `Peak`: 取峰值。
- `Average`: 取过滤点的平均值。
- `Max`: 取过滤点的最大值。
- `Min`: 取过滤点的最小值。
- `Sum`: 取过滤点的和。
| -|sampleAverage|0||设定的采样平均值。当sampleType 为 Peak 时,用于和过滤数据的平均值做对比是取最大值还是最小值。默认为0时会实时计算所有数据的平均值。 -|lineType|||折线图样式类型。
`LineType`:
- `Normal`: 普通折线图。
- `Smooth`: 平滑曲线。
- `StepStart`: 阶梯线图:当前点。
- `StepMiddle`: 阶梯线图:当前点和下一个点的中间。
- `StepEnd`: 阶梯线图:下一个拐点。
| -|smoothLimit|false|v3.4.0|是否限制曲线。当为true时,两个连续相同数值的数据间的曲线会限制为不超出数据点,和数据点是平直的。 -|barType|||柱形图类型。
`BarType`:
- `Normal`: 普通柱形图。
- `Zebra`: 斑马柱形图。
- `Capsule`: 胶囊柱形图。
| -|barPercentStack|false||柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true,则就显示成百分比堆叠柱状图。 -|barWidth|0||柱条的宽度,不设时自适应。支持设置成相对于类目宽度的百分比。 -|barMaxWidth|0|v3.5.0|柱条的最大宽度,默认为0为不限制最大宽度。支持设置成相对于类目宽度的百分比。 -|barGap|0.1f||不同系列的柱间距离。为百分比(如 '0.3f',表示柱子宽度的 30%) 如果想要两个系列的柱子重叠,可以设置 barGap 为 '-1f'。这在用柱子做背景的时候有用。 在同一坐标系上,此属性会被多个 'bar' 系列共享。此属性应设置于此坐标系中最后一个 'bar' 系列上才会生效,并且是对此坐标系中所有 'bar' 系列生效。 -|barZebraWidth|4f||斑马线的粗细。 -|barZebraGap|2f||斑马线的间距。 -|min|||最小值。 -|max|||最大值。 -|minSize|0f||数据最小值 min 映射的宽度。 -|maxSize|1f||数据最大值 max 映射的宽度。 -|startAngle|||起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。 -|endAngle|||结束角度。和时钟一样,12点钟位置是0度,顺时针到360度。 -|minAngle|||最小的扇区角度(0-360)。用于防止某个值过小导致扇区太小影响交互。 -|clockwise|true||是否顺时针。 -|roundCap|||是否开启圆弧效果。 -|splitNumber|||刻度分割段数。最大可设置36。 -|clickOffset|true||鼠标点击时是否开启偏移,一般用在PieChart图表中。 -|roseType|||是否展示成南丁格尔图,通过半径区分数据大小。
`RoseType`:
- `None`: 不展示成南丁格尔玫瑰图。
- `Radius`: 扇区圆心角展现数据的百分比,半径展现数据的大小。
- `Area`: 所有扇区圆心角相同,仅通过半径展现数据大小。
| -|gap|||间距。 -|center|||中心点。 -|radius|||半径。radius[0]表示内径,radius[1]表示外径。 -|minRadius|0f|v3.8.0|最小半径。可用于限制玫瑰图的最小半径。 -|minShowLabel|false|v3.10.0|是否开启值小于指定值`minShowLabelValue`时不显示标签。 -|minShowLabelValue|0|v3.10.0|当开启`minShowLabel`时,值小于该值时不显示标签。 -|showDataDimension|||数据项里的数据维数。 -|showDataName|||在Editor的inpsector上是否显示name参数 -|clip|false||是否裁剪超出坐标系部分的图形。 -|ignore|false||是否开启忽略数据。当为 true 时,数据值为 ignoreValue 时不进行绘制。 -|ignoreValue|0||忽略数据的默认值。当ignore为true才有效。 -|ignoreLineBreak|false||忽略数据时折线是断开还是连接。默认false为连接。 -|showAsPositiveNumber|false||将负数数值显示为正数。一般和`AxisLabel`的`showAsPositiveNumber`配合使用。仅在折线图和柱状图中有效。 -|large|true||是否开启大数据量优化,在数据图形特别多而出现卡顿时候可以开启。 开启后配合 largeThreshold 在数据量大于指定阈值的时候对绘制进行优化。 缺点:优化后不能自定义设置单个数据项的样式,不能显示Label。 -|largeThreshold|200||开启大数量优化的阈值。只有当开启了large并且数据量大于该阀值时才进入性能模式。 -|avoidLabelOverlap|false||在饼图且标签外部显示的情况下,是否启用防止标签重叠策略,默认关闭,在标签拥挤重叠的情况下会挪动各个标签的位置,防止标签间的重叠。 -|radarType|||雷达图类型。
`RadarType`:
- `Multiple`: 多圈雷达图。此时可一个雷达里绘制多个圈,一个serieData就可组成一个圈(多维数据)。
- `Single`: 单圈雷达图。此时一个雷达只能绘制一个圈,多个serieData组成一个圈,数据取自`data[1]`。
| -|placeHolder|false||占位模式。占位模式时,数据有效但不参与渲染和显示。 -|dataSortType|||组件的数据排序。
`SerieDataSortType`:
- `None`: 按数据的顺序。
- `Ascending`: 升序。
- `Descending`: 降序。
| -|orient|||组件的朝向。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|align|||组件水平方向对齐方式。
`Align`:
- `Center`: 对齐方式。文本,图标,图形等的对齐方式。
- `Left`: 对齐方式。文本,图标,图形等的对齐方式。
- `Right`: 对齐方式。文本,图标,图形等的对齐方式。
| -|left|||组件离容器左侧的距离。 -|right|||组件离容器右侧的距离。 -|top|||组件离容器上侧的距离。 -|bottom|||组件离容器下侧的距离。 -|insertDataToHead|||添加新数据时是在列表的头部还是尾部加入。 -|lineStyle|||线条样式。 [LineStyle](#linestyle)| -|symbol|||标记的图形。 [SerieSymbol](#seriesymbol)| -|animation|||起始动画。 [AnimationStyle](#animationstyle)| -|itemStyle|||图形样式。 [ItemStyle](#itemstyle)| -|data|||系列中的数据内容数组。SerieData可以设置1到n维数据。 -|links|||数据节点的边。 +`Align` +组件水平方向对齐方式。 -```mdx-code-block -
-``` +可选: + +- `Center`: 对齐方式。文本,图标,图形等的对齐方式。 +- `Left`: 对齐方式。文本,图标,图形等的对齐方式。 +- `Right`: 对齐方式。文本,图标,图形等的对齐方式。 + +### Serie.animation + +`AnimationStyle` +起始动画。 [AnimationStyle](#animationstyle) + +### Serie.avoidLabelOverlap + +`bool` `false` +在饼图且标签外部显示的情况下,是否启用防止标签重叠策略,默认关闭,在标签拥挤重叠的情况下会挪动各个标签的位置,防止标签间的重叠。 + +### Serie.barGap + +`float` `0.1f` +不同系列的柱间距离。为百分比(如 '0.3f',表示柱子宽度的 30%) 如果想要两个系列的柱子重叠,可以设置 barGap 为 '-1f'。这在用柱子做背景的时候有用。 在同一坐标系上,此属性会被多个 'bar' 系列共享。此属性应设置于此坐标系中最后一个 'bar' 系列上才会生效,并且是对此坐标系中所有 'bar' 系列生效。 + +### Serie.barMaxWidth + +`float` `0` `v3.5.0` +柱条的最大宽度,默认为0为不限制最大宽度。支持设置成相对于类目宽度的百分比。 + +### Serie.barPercentStack + +`bool` `false` +柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true,则就显示成百分比堆叠柱状图。 + +### Serie.barType + +`BarType` +柱形图类型。 + +可选: + +- `Normal`: 普通柱形图。 +- `Zebra`: 斑马柱形图。 +- `Capsule`: 胶囊柱形图。 + +### Serie.barWidth + +`float` `0` +柱条的宽度,不设时自适应。支持设置成相对于类目宽度的百分比。 + +### Serie.barZebraGap + +`float` `2f` +斑马线的间距。 + +### Serie.barZebraWidth + +`float` `4f` +斑马线的粗细。 + +### Serie.bottom + +`float` +组件离容器下侧的距离。 + +### Serie.center + +`float[]` +中心点。 + +### Serie.clickOffset + +`bool` `true` +鼠标点击时是否开启偏移,一般用在PieChart图表中。 + +### Serie.clip + +`bool` `false` +是否裁剪超出坐标系部分的图形。 + +### Serie.clockwise + +`bool` `true` +是否顺时针。 + +### Serie.colorBy + +`SerieColorBy` `v3.2.0` +从主题中取色的策略。 + +可选: + +- `Default`: 默认策略。每种Serie都有自己的默认的取颜色策略。比如Line默认是Series策略,Pie默认是Data策略。 +- `Serie`: 按照系列分配调色盘中的颜色,同一系列中的所有数据都是用相同的颜色。 +- `Data`: 按照数据项分配调色盘中的颜色,每个数据项都使用不同的颜色。 + +### Serie.coordSystem + +`string` +使用的坐标系。 + +### Serie.data + +`List` +系列中的数据内容数组。SerieData可以设置1到n维数据。 + +### Serie.dataSortType + +`SerieDataSortType` +组件的数据排序。 + +可选: + +- `None`: 按数据的顺序。 +- `Ascending`: 升序。 +- `Descending`: 降序。 + +### Serie.endAngle + +`float` +结束角度。和时钟一样,12点钟位置是0度,顺时针到360度。 + +### Serie.gap + +`float` +间距。 + +### Serie.gridIndex + +`int` `-1` `v3.8.0` +所使用的 layout 组件的 index。 默认为-1不指定index, 当为大于或等于0时, 为第一个layout组件的第index个格子。 + +### Serie.ignore + +`bool` `false` +是否开启忽略数据。当为 true 时,数据值为 ignoreValue 时不进行绘制。 + +### Serie.ignoreLineBreak + +`bool` `false` +忽略数据时折线是断开还是连接。默认false为连接。 + +### Serie.ignoreValue + +`double` `0` +忽略数据的默认值。当ignore为true才有效。 + +### Serie.index + +`int` +系列索引。 + +### Serie.insertDataToHead + +`bool` +添加新数据时是在列表的头部还是尾部加入。 + +### Serie.itemStyle + +`ItemStyle` +图形样式。 [ItemStyle](#itemstyle) + +### Serie.large + +`bool` `true` +是否开启大数据量优化,在数据图形特别多而出现卡顿时候可以开启。 开启后配合 largeThreshold 在数据量大于指定阈值的时候对绘制进行优化。 缺点:优化后不能自定义设置单个数据项的样式,不能显示Label。 + +### Serie.largeThreshold + +`int` `200` +开启大数量优化的阈值。只有当开启了large并且数据量大于该阀值时才进入性能模式。 + +### Serie.left + +`float` +组件离容器左侧的距离。 + +### Serie.lineStyle + +`LineStyle` +线条样式。 [LineStyle](#linestyle) + +### Serie.lineType + +`LineType` +折线图样式类型。 + +可选: + +- `Normal`: 普通折线图。 +- `Smooth`: 平滑曲线。 +- `StepStart`: 阶梯线图:当前点。 +- `StepMiddle`: 阶梯线图:当前点和下一个点的中间。 +- `StepEnd`: 阶梯线图:下一个拐点。 + +### Serie.links + +`List` +数据节点的边。 + +### Serie.max + +`float` +最大值。 + +### Serie.maxCache + +`int` +系列中可缓存的最大数据量。默认为0没有限制,大于0时超过指定值会移除旧数据再插入新数据。 + +### Serie.maxShow + +`int` +系列所显示数据的最大索引 + +### Serie.maxSize + +`float` `1f` +数据最大值 max 映射的宽度。 + +### Serie.min + +`float` +最小值。 + +### Serie.minAngle + +`float` +最小的扇区角度(0-360)。用于防止某个值过小导致扇区太小影响交互。 + +### Serie.minRadius + +`float` `0f` `v3.8.0` +最小半径。可用于限制玫瑰图的最小半径。 + +### Serie.minShow + +`int` +系列所显示数据的最小索引 + +### Serie.minShowLabel + +`bool` `false` `v3.10.0` +是否开启值小于指定值`minShowLabelValue`时不显示标签。 + +### Serie.minShowLabelValue + +`double` `0` `v3.10.0` +当开启`minShowLabel`时,值小于该值时不显示标签。 + +### Serie.minSize + +`float` `0f` +数据最小值 min 映射的宽度。 + +### Serie.orient + +`Orient` +组件的朝向。 + +可选: + +- `Horizonal`: 水平 +- `Vertical`: 垂直 + +### Serie.parallelIndex + +`int` `0` +所使用的 parallel coord 组件的 index。 + +### Serie.placeHolder + +`bool` `false` +占位模式。占位模式时,数据有效但不参与渲染和显示。 + +### Serie.polarIndex + +`int` `0` +所使用的 polar 组件的 index。 + +### Serie.radarIndex + +`int` `0` +雷达图所使用的 radar 组件的 index。 + +### Serie.radarType + +`RadarType` +雷达图类型。 + +可选: + +- `Multiple`: 多圈雷达图。此时可一个雷达里绘制多个圈,一个serieData就可组成一个圈(多维数据)。 +- `Single`: 单圈雷达图。此时一个雷达只能绘制一个圈,多个serieData组成一个圈,数据取自`data[1]`。 + +### Serie.radius + +`float[]` +半径。radius[0]表示内径,radius[1]表示外径。 + +### Serie.right + +`float` +组件离容器右侧的距离。 + +### Serie.roseType + +`RoseType` +是否展示成南丁格尔图,通过半径区分数据大小。 + +可选: + +- `None`: 不展示成南丁格尔玫瑰图。 +- `Radius`: 扇区圆心角展现数据的百分比,半径展现数据的大小。 +- `Area`: 所有扇区圆心角相同,仅通过半径展现数据大小。 + +### Serie.roundCap + +`bool` +是否开启圆弧效果。 + +### Serie.sampleAverage + +`float` `0` +设定的采样平均值。当sampleType 为 Peak 时,用于和过滤数据的平均值做对比是取最大值还是最小值。默认为0时会实时计算所有数据的平均值。 + +### Serie.sampleDist + +`float` `0` +采样的最小像素距离,默认为0时不采样。当两个数据点间的水平距离小于改值时,开启采样,保证两点间的水平距离不小于改值。 + +### Serie.sampleType + +`SampleType` +采样类型。当sampleDist大于0时有效。 + +可选: + +- `Peak`: 取峰值。 +- `Average`: 取过滤点的平均值。 +- `Max`: 取过滤点的最大值。 +- `Min`: 取过滤点的最小值。 +- `Sum`: 取过滤点的和。 + +### Serie.serieName + +`string` +系列名称,用于 tooltip 的显示,legend 的图例筛选。 + +### Serie.serieType + +`string` +系列类型。 + +### Serie.show + +`bool` `true` +系列是否显示在图表上。 + +### Serie.showAsPositiveNumber + +`bool` `false` +将负数数值显示为正数。一般和`AxisLabel`的`showAsPositiveNumber`配合使用。仅在折线图和柱状图中有效。 + +### Serie.showDataDimension + +`int` +数据项里的数据维数。 + +### Serie.showDataName + +`bool` +在Editor的inpsector上是否显示name参数 + +### Serie.singleAxisIndex + +`int` `0` +所使用的 singleAxis 组件的 index。 + +### Serie.smoothLimit + +`bool` `false` `v3.4.0` +是否限制曲线。当为true时,两个连续相同数值的数据间的曲线会限制为不超出数据点,和数据点是平直的。 + +### Serie.splitNumber + +`int` +刻度分割段数。最大可设置36。 + +### Serie.stack + +`string` +数据堆叠,同个类目轴上系列配置相同的stack值后,后一个系列的值会在前一个系列的值上相加。 + +### Serie.startAngle + +`float` +起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。 + +### Serie.state + +`SerieState` `v3.2.0` +系列的默认状态。 + +可选: + +- `Normal`: 正常状态。 +- `Emphasis`: 高亮状态。 +- `Blur`: 淡出状态。 +- `Select`: 选中状态。 +- `Auto`: 自动保持和父节点一致。一般用在SerieData。 + +### Serie.symbol + +`SerieSymbol` +标记的图形。 [SerieSymbol](#seriesymbol) + +### Serie.top + +`float` +组件离容器上侧的距离。 + +### Serie.vesselIndex + +`int` `0` +水位图所使用的 vessel 组件的 index。 + +### Serie.xAxisIndex + +`int` `0` +使用X轴的index。 + +### Serie.yAxisIndex + +`int` `0` +使用Y轴的index。 ## SerieData -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 系列中的一个数据项。可存储数据名和1-n维个数据。 -```mdx-code-block - -``` +### SerieData.data -|参数|默认|版本|描述| -|--|--|--|--| -|index|||数据项索引。 -|name|||数据项名称。 -|id|||数据项的唯一id。唯一id不是必须设置的。 -|parentId|||父节点id。父节点id不是必须设置的。 -|ignore|||是否忽略数据。当为 true 时,数据不进行绘制。 -|selected|||该数据项是否被选中。 -|radius|||自定义半径。可用在饼图中自定义某个数据项的半径。 -|state||v3.2.0|数据项的默认状态。
`SerieState`:
- `Normal`: 正常状态。
- `Emphasis`: 高亮状态。
- `Blur`: 淡出状态。
- `Select`: 选中状态。
- `Auto`: 自动保持和父节点一致。一般用在SerieData。
| -|data|||可指定任意维数的数值列表。 +`List` +可指定任意维数的数值列表。 -```mdx-code-block -
-``` +### SerieData.id + +`string` +数据项的唯一id。唯一id不是必须设置的。 + +### SerieData.ignore + +`bool` +是否忽略数据。当为 true 时,数据不进行绘制。 + +### SerieData.index + +`int` +数据项索引。 + +### SerieData.name + +`string` +数据项名称。 + +### SerieData.parentId + +`string` +父节点id。父节点id不是必须设置的。 + +### SerieData.radius + +`float` +自定义半径。可用在饼图中自定义某个数据项的半径。 + +### SerieData.selected + +`bool` +该数据项是否被选中。 + +### SerieData.state + +`SerieState` `v3.2.0` +数据项的默认状态。 + +可选: + +- `Normal`: 正常状态。 +- `Emphasis`: 高亮状态。 +- `Blur`: 淡出状态。 +- `Select`: 选中状态。 +- `Auto`: 自动保持和父节点一致。一般用在SerieData。 ## SerieDataLink -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) > 从 `v3.10.0` 开始支持 数据节点之间的连线。可用于桑基图等,桑基图只支持有向无环图,请保证数据的连线是有向无环图。 -```mdx-code-block - -``` +### SerieDataLink.source -|参数|默认|版本|描述| -|--|--|--|--| -|source|||边的源节点名称。 -|target|||边的目标节点名称。 -|value|||边的值。决定边的宽度。 +`string` +边的源节点名称。 -```mdx-code-block - -``` +### SerieDataLink.target + +`string` +边的目标节点名称。 + +### SerieDataLink.value + +`double` +边的值。决定边的宽度。 ## SerieSymbol -> class in XCharts.Runtime / 继承自: [SymbolStyle](#symbolstyle), [ISerieDataComponent](#iseriedatacomponent) +class in XCharts.Runtime / 继承自: [SymbolStyle](#symbolstyle), [ISerieDataComponent](#iseriedatacomponent) 系列数据项的标记的图形 -```mdx-code-block - -``` +### SerieSymbol.dataIndex -|参数|默认|版本|描述| -|--|--|--|--| -|sizeType|||标记图形的大小获取方式。
`SymbolSizeType`:
- `Custom`: 自定义大小。
- `FromData`: 通过 dataIndex 从数据中获取,再乘以一个比例系数 dataScale 。
- `Function`: 通过委托函数获取。
| -|dataIndex|1||当sizeType指定为FromData时,指定的数据源索引。 -|dataScale|1||当sizeType指定为FromData时,指定的倍数系数。 -|sizeFunction|||当sizeType指定为Function时,指定的委托函数。 -|startIndex|||开始显示图形标记的索引。 -|interval|||显示图形标记的间隔。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。 -|forceShowLast|false||是否强制显示最后一个图形标记。 -|repeat|false||图形是否重复。 -|minSize|0f|v3.3.0|图形最小尺寸。只在sizeType为SymbolSizeType.FromData时有效。 -|maxSize|0f|v3.3.0|图形最大尺寸。只在sizeType为SymbolSizeType.FromData时有效。 +`int` `1` +当sizeType指定为FromData时,指定的数据源索引。 -```mdx-code-block -
-``` +### SerieSymbol.dataScale + +`float` `1` +当sizeType指定为FromData时,指定的倍数系数。 + +### SerieSymbol.forceShowLast + +`bool` `false` +是否强制显示最后一个图形标记。 + +### SerieSymbol.interval + +`int` +显示图形标记的间隔。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。 + +### SerieSymbol.maxSize + +`float` `0f` `v3.3.0` +图形最大尺寸。只在sizeType为SymbolSizeType.FromData时有效。 + +### SerieSymbol.minSize + +`float` `0f` `v3.3.0` +图形最小尺寸。只在sizeType为SymbolSizeType.FromData时有效。 + +### SerieSymbol.repeat + +`bool` `false` +图形是否重复。 + +### SerieSymbol.sizeFunction + +`SymbolSizeFunction` +当sizeType指定为Function时,指定的委托函数。 + +### SerieSymbol.sizeType + +`SymbolSizeType` +标记图形的大小获取方式。 + +可选: + +- `Custom`: 自定义大小。 +- `FromData`: 通过 dataIndex 从数据中获取,再乘以一个比例系数 dataScale 。 +- `Function`: 通过委托函数获取。 + +### SerieSymbol.startIndex + +`int` +开始显示图形标记的索引。 ## SerieTheme -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) -```mdx-code-block - -``` +### SerieTheme.candlestickBorderColor -|参数|默认|版本|描述| -|--|--|--|--| -|lineWidth|||文本颜色。 -|lineSymbolSize|||折线图的Symbol大小。 -|scatterSymbolSize|||散点图的Symbol大小。 -|candlestickColor|Color32(235, 84, 84, 255)||K线图阳线(涨)填充色 -|candlestickColor0|Color32(71, 178, 98, 255)||K线图阴线(跌)填充色 -|candlestickBorderWidth|1||K线图边框宽度 -|candlestickBorderColor|Color32(235, 84, 84, 255)||K线图阳线(跌)边框色 -|candlestickBorderColor0|Color32(71, 178, 98, 255)||K线图阴线(跌)边框色 +`Color32` `Color32(235, 84, 84, 255)` +K线图阳线(跌)边框色 -```mdx-code-block - -``` +### SerieTheme.candlestickBorderColor0 + +`Color32` `Color32(71, 178, 98, 255)` +K线图阴线(跌)边框色 + +### SerieTheme.candlestickBorderWidth + +`float` `1` +K线图边框宽度 + +### SerieTheme.candlestickColor + +`Color32` `Color32(235, 84, 84, 255)` +K线图阳线(涨)填充色 + +### SerieTheme.candlestickColor0 + +`Color32` `Color32(71, 178, 98, 255)` +K线图阴线(跌)填充色 + +### SerieTheme.lineSymbolSize + +`float` +折线图的Symbol大小。 + +### SerieTheme.lineWidth + +`float` +文本颜色。 + +### SerieTheme.scatterSymbolSize + +`float` +散点图的Symbol大小。 ## Settings -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) 全局参数设置组件。一般情况下可使用默认值,当有需要时可进行调整。 -```mdx-code-block - -``` +### Settings.axisMaxSplitNumber -|参数|默认|版本|描述| -|--|--|--|--| -|show|true|| -|maxPainter|10||设定的painter数量。 -|reversePainter|false||Painter是否逆序。逆序时index大的serie最先绘制。 -|basePainterMaterial|||Base Pointer 材质球,设置后会影响Axis等。 -|seriePainterMaterial|||Serie Pointer 材质球,设置后会影响所有Serie。 -|upperPainterMaterial|||Upper Pointer 材质球。 -|topPainterMaterial|||Top Pointer 材质球。 -|lineSmoothStyle|2.5f||曲线平滑系数。通过调整平滑系数可以改变曲线的曲率,得到外观稍微有变化的不同曲线。 -|lineSmoothness|2f||When the area with gradient is filled, the larger the value, the worse the transition effect. -|lineSegmentDistance|3f||线段的分割距离。普通折线图的线是由很多线段组成,段数由该数值决定。值越小段数越多,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。 -|cicleSmoothness|2f||圆形的平滑度。数越小圆越平滑,但顶点数也会随之增加。 -|legendIconLineWidth|2||Line类型图例图标的线条宽度。 -|legendIconCornerRadius|||图例圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。 -|axisMaxSplitNumber|50|v3.1.0|坐标轴最大分隔段数。段数过大时可能会生成较多的label节点。 +`float` `50` `v3.1.0` +坐标轴最大分隔段数。段数过大时可能会生成较多的label节点。 -```mdx-code-block - -``` +### Settings.basePainterMaterial + +`Material` +Base Pointer 材质球,设置后会影响Axis等。 + +### Settings.cicleSmoothness + +`float` `2f` +圆形的平滑度。数越小圆越平滑,但顶点数也会随之增加。 + +### Settings.legendIconCornerRadius + +`float[]` +图例圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。 + +### Settings.legendIconLineWidth + +`float` `2` +Line类型图例图标的线条宽度。 + +### Settings.lineSegmentDistance + +`float` `3f` +线段的分割距离。普通折线图的线是由很多线段组成,段数由该数值决定。值越小段数越多,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。 + +### Settings.lineSmoothness + +`float` `2f` +When the area with gradient is filled, the larger the value, the worse the transition effect. + +### Settings.lineSmoothStyle + +`float` `2.5f` +曲线平滑系数。通过调整平滑系数可以改变曲线的曲率,得到外观稍微有变化的不同曲线。 + +### Settings.maxPainter + +`int` `10` +设定的painter数量。 + +### Settings.reversePainter + +`bool` `false` +Painter是否逆序。逆序时index大的serie最先绘制。 + +### Settings.seriePainterMaterial + +`Material` +Serie Pointer 材质球,设置后会影响所有Serie。 + +### Settings.show + +`bool` `true` + +### Settings.topPainterMaterial + +`Material` +Top Pointer 材质球。 + +### Settings.upperPainterMaterial + +`Material` +Upper Pointer 材质球。 ## SimplifiedBar -> class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer), [ISimplifiedSerie](#isimplifiedserie) +class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer), [ISimplifiedSerie](#isimplifiedserie) ## SimplifiedCandlestick -> class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer), [ISimplifiedSerie](#isimplifiedserie) +class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer), [ISimplifiedSerie](#isimplifiedserie) ## SimplifiedLine -> class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer), [ISimplifiedSerie](#isimplifiedserie) +class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#ineedseriecontainer), [ISimplifiedSerie](#isimplifiedserie) ## SingleAxis -> class in XCharts.Runtime / 继承自: [Axis](#axis), [IUpdateRuntimeData](#iupdateruntimedata) +class in XCharts.Runtime / 继承自: [Axis](#axis), [IUpdateRuntimeData](#iupdateruntimedata) 单轴。 -```mdx-code-block - -``` +### SingleAxis.bottom -|参数|默认|版本|描述| -|--|--|--|--| -|orient|||坐标轴朝向。默认为水平朝向。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|left|0.1f||组件离容器左侧的距离。 -|right|0.1f||组件离容器右侧的距离。 -|top|0f||组件离容器上侧的距离。 -|bottom|0.2f||组件离容器下侧的距离。 -|width|0||坐标轴宽。 -|height|50||坐标轴高。 +`float` `0.2f` +组件离容器下侧的距离。 -```mdx-code-block -
-``` +### SingleAxis.height + +`float` `50` +坐标轴高。 + +### SingleAxis.left + +`float` `0.1f` +组件离容器左侧的距离。 + +### SingleAxis.orient + +`Orient` +坐标轴朝向。默认为水平朝向。 + +可选: + +- `Horizonal`: 水平 +- `Vertical`: 垂直 + +### SingleAxis.right + +`float` `0.1f` +组件离容器右侧的距离。 + +### SingleAxis.top + +`float` `0f` +组件离容器上侧的距离。 + +### SingleAxis.width + +`float` `0` +坐标轴宽。 ## SingleAxisCoord -> class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem) +class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem) ## StageColor -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) -```mdx-code-block - -``` +### StageColor.color -|参数|默认|版本|描述| -|--|--|--|--| -|percent|||结束位置百分比。 -|color|||颜色。 +`Color32` +颜色。 -```mdx-code-block - -``` +### StageColor.percent + +`float` +结束位置百分比。 ## StateStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [BlurStyle](#blurstyle), [EmphasisStyle](#emphasisstyle), [SelectStyle](#selectstyle) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [BlurStyle](#blurstyle), [EmphasisStyle](#emphasisstyle), [SelectStyle](#selectstyle) > 从 `v3.2.0` 开始支持 Serie的状态样式。Serie的状态有正常,高亮,淡出,选中四种状态。 -```mdx-code-block - -``` +### StateStyle.areaStyle -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否启用高亮样式。 -|label|||图形文本标签。 [LabelStyle](#labelstyle)| -|labelLine|||图形文本引导线样式。 [LabelLine](#labelline)| -|itemStyle|||图形样式。 [ItemStyle](#itemstyle)| -|lineStyle|||折线样式。 [LineStyle](#linestyle)| -|areaStyle|||区域样式。 [AreaStyle](#areastyle)| -|symbol|||标记样式。 [SerieSymbol](#seriesymbol)| +`AreaStyle` +区域样式。 [AreaStyle](#areastyle) -```mdx-code-block - -``` +### StateStyle.itemStyle + +`ItemStyle` +图形样式。 [ItemStyle](#itemstyle) + +### StateStyle.label + +`LabelStyle` +图形文本标签。 [LabelStyle](#labelstyle) + +### StateStyle.labelLine + +`LabelLine` +图形文本引导线样式。 [LabelLine](#labelline) + +### StateStyle.lineStyle + +`LineStyle` +折线样式。 [LineStyle](#linestyle) + +### StateStyle.show + +`bool` `true` +是否启用高亮样式。 + +### StateStyle.symbol + +`SerieSymbol` +标记样式。 [SerieSymbol](#seriesymbol) ## SubTitleTheme -> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) ## SymbolStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [SerieSymbol](#seriesymbol) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [SerieSymbol](#seriesymbol) 系列数据项的标记的图形 -```mdx-code-block - -``` +### SymbolStyle.color -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示标记。 -|type|||标记类型。
`SymbolType`:
- `None`: 不显示标记。
- `Custom`: 自定义标记。
- `Circle`: 圆形。
- `EmptyCircle`: 空心圆。
- `Rect`: 正方形。可通过设置`itemStyle`的`cornerRadius`变成圆角矩形。
- `EmptyRect`: 空心正方形。
- `Triangle`: 三角形。
- `EmptyTriangle`: 空心三角形。
- `Diamond`: 菱形。
- `EmptyDiamond`: 空心菱形。
- `Arrow`: 箭头。
- `EmptyArrow`: 空心箭头。
- `Plus`: 加号。
- `Minus`: 减号。
| -|size|0f||标记的大小。 -|gap|0||图形标记和线条的间隙距离。 -|width|0f||图形的宽。 -|height|0f||图形的高。 -|offset|Vector2.zero||图形的偏移。 -|image|||自定义的标记图形。 -|imageType|||图形填充类型。 -|color|||图形的颜色。 +`Color32` +图形的颜色。 -```mdx-code-block -
-``` +### SymbolStyle.gap + +`float` `0` +图形标记和线条的间隙距离。 + +### SymbolStyle.height + +`float` `0f` +图形的高。 + +### SymbolStyle.image + +`Sprite` +自定义的标记图形。 + +### SymbolStyle.imageType + +`Image.Type` +图形填充类型。 + +### SymbolStyle.offset + +`Vector2` `Vector2.zero` +图形的偏移。 + +### SymbolStyle.show + +`bool` `true` +是否显示标记。 + +### SymbolStyle.size + +`float` `0f` +标记的大小。 + +### SymbolStyle.type + +`SymbolType` +标记类型。 + +可选: + +- `None`: 不显示标记。 +- `Custom`: 自定义标记。 +- `Circle`: 圆形。 +- `EmptyCircle`: 空心圆。 +- `Rect`: 正方形。可通过设置`itemStyle`的`cornerRadius`变成圆角矩形。 +- `EmptyRect`: 空心正方形。 +- `Triangle`: 三角形。 +- `EmptyTriangle`: 空心三角形。 +- `Diamond`: 菱形。 +- `EmptyDiamond`: 空心菱形。 +- `Arrow`: 箭头。 +- `EmptyArrow`: 空心箭头。 +- `Plus`: 加号。 +- `Minus`: 减号。 + +### SymbolStyle.width + +`float` `0f` +图形的宽。 ## TextLimit -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 文本字符限制和自适应。当文本长度超过设定的长度时进行裁剪,并将后缀附加在最后。 只在类目轴中有效。 -```mdx-code-block - -``` +### TextLimit.enable -|参数|默认|版本|描述| -|--|--|--|--| -|enable|false||是否启用文本自适应。 [default:true] -|maxWidth|0||Clipping occurs when the width of the text is greater than this value. -|gap|1||两边留白像素距离。 [default:10f] -|suffix|||长度超出时的后缀。 [default: "..."] +`bool` `false` +是否启用文本自适应。 [default:true] -```mdx-code-block - -``` +### TextLimit.gap + +`float` `1` +两边留白像素距离。 [default:10f] + +### TextLimit.maxWidth + +`float` `0` +Clipping occurs when the width of the text is greater than this value. + +### TextLimit.suffix + +`string` +长度超出时的后缀。 [default: "..."] ## TextPadding -> class in XCharts.Runtime / 继承自: [Padding](#padding) +class in XCharts.Runtime / 继承自: [Padding](#padding) 文本的内边距设置。 ## TextStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 文本的相关设置。 -```mdx-code-block - -``` +### TextStyle.alignment -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||文本的相关设置。 -|font|||文本字体。 [default: null] -|autoWrap|false||是否自动换行。 -|autoAlign|true||文本是否让系统自动选对齐方式。为false时才会用alignment。 -|rotate|0||文本的旋转。 [default: `0f`] -|autoColor|false||是否开启自动颜色。当开启时,会自动设置颜色。 -|color|||文本的颜色。 [default: `Color.clear`] -|fontSize|0||文本字体大小。 [default: 18] -|fontStyle|||文本字体的风格。 [default: FontStyle.Normal] -|lineSpacing|1f||行间距。 [default: 1f] -|alignment|||对齐方式。 -|tMPFont|||TextMeshPro字体。 -|tMPFontStyle||| -|tMPAlignment||| -|tMPSpriteAsset||v3.1.0| +`TextAnchor` +对齐方式。 -```mdx-code-block - -``` +### TextStyle.autoAlign + +`bool` `true` +文本是否让系统自动选对齐方式。为false时才会用alignment。 + +### TextStyle.autoColor + +`bool` `false` +是否开启自动颜色。当开启时,会自动设置颜色。 + +### TextStyle.autoWrap + +`bool` `false` +是否自动换行。 + +### TextStyle.color + +`Color` +文本的颜色。 [default: `Color.clear`] + +### TextStyle.font + +`Font` +文本字体。 [default: null] + +### TextStyle.fontSize + +`int` `0` +文本字体大小。 [default: 18] + +### TextStyle.fontStyle + +`FontStyle` +文本字体的风格。 [default: FontStyle.Normal] + +### TextStyle.lineSpacing + +`float` `1f` +行间距。 [default: 1f] + +### TextStyle.rotate + +`float` `0` +文本的旋转。 [default: `0f`] + +### TextStyle.show + +`bool` `true` +文本的相关设置。 + +### TextStyle.tMPAlignment + +`TextAlignmentOptions` + +### TextStyle.tMPFont + +`TMP_FontAsset` +TextMeshPro字体。 + +### TextStyle.tMPFontStyle + +`FontStyles` + +### TextStyle.tMPSpriteAsset + +`TMP_SpriteAsset` `v3.1.0` ## Theme -> class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject) +class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject) 主题相关配置。 -```mdx-code-block - -``` +### Theme.axis -|参数|默认|版本|描述| -|--|--|--|--| -|themeType|||主题类型。
`ThemeType`:
- `Default`: 默认主题。
- `Light`: 亮主题。
- `Dark`: 暗主题。
- `Custom`: 自定义主题。
| -|themeName|||主题名称。 -|font|||主题字体。 -|tMPFont|||主题字体。 -|contrastColor|||对比色。 -|backgroundColor|||背景颜色。 -|colorPalette|||调色盘颜色列表。如果系列没有设置颜色,则会依次循环从该列表中取颜色作为系列颜色。 -|common||| [ComponentTheme](#componenttheme)| -|title||| [TitleTheme](#titletheme)| -|subTitle||| [SubTitleTheme](#subtitletheme)| -|legend||| [LegendTheme](#legendtheme)| -|axis||| [AxisTheme](#axistheme)| -|tooltip||| [TooltipTheme](#tooltiptheme)| -|dataZoom||| [DataZoomTheme](#datazoomtheme)| -|visualMap||| [VisualMapTheme](#visualmaptheme)| -|serie||| [SerieTheme](#serietheme)| +`AxisTheme` + [AxisTheme](#axistheme) -```mdx-code-block -
-``` +### Theme.backgroundColor + +`Color32` +背景颜色。 + +### Theme.colorPalette + +`List` +调色盘颜色列表。如果系列没有设置颜色,则会依次循环从该列表中取颜色作为系列颜色。 + +### Theme.common + +`ComponentTheme` + [ComponentTheme](#componenttheme) + +### Theme.contrastColor + +`Color32` +对比色。 + +### Theme.dataZoom + +`DataZoomTheme` + [DataZoomTheme](#datazoomtheme) + +### Theme.font + +`Font` +主题字体。 + +### Theme.legend + +`LegendTheme` + [LegendTheme](#legendtheme) + +### Theme.serie + +`SerieTheme` + [SerieTheme](#serietheme) + +### Theme.subTitle + +`SubTitleTheme` + [SubTitleTheme](#subtitletheme) + +### Theme.themeName + +`string` +主题名称。 + +### Theme.themeType + +`ThemeType` +主题类型。 + +可选: + +- `Default`: 默认主题。 +- `Light`: 亮主题。 +- `Dark`: 暗主题。 +- `Custom`: 自定义主题。 + +### Theme.title + +`TitleTheme` + [TitleTheme](#titletheme) + +### Theme.tMPFont + +`TMP_FontAsset` +主题字体。 + +### Theme.tooltip + +`TooltipTheme` + [TooltipTheme](#tooltiptheme) + +### Theme.visualMap + +`VisualMapTheme` + [VisualMapTheme](#visualmaptheme) ## ThemeStyle -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) 主题相关配置。 -```mdx-code-block - -``` +### ThemeStyle.customBackgroundColor -|参数|默认|版本|描述| -|--|--|--|--| -|show|true|| -|sharedTheme|||主题配置。 [Theme](#theme)| -|transparentBackground|false||是否透明背景颜色。当设置为true时,不绘制背景颜色。 -|enableCustomTheme|false||是否自定义主题颜色。当设置为true时,可以用‘sync color to custom’同步主题的颜色到自定义颜色。也可以手动设置。 -|customFont||| -|customBackgroundColor|||自定义的背景颜色。 -|customColorPalette||| +`Color32` +自定义的背景颜色。 -```mdx-code-block - -``` +### ThemeStyle.customColorPalette + +`List` + +### ThemeStyle.customFont + +`Font` + +### ThemeStyle.enableCustomTheme + +`bool` `false` +是否自定义主题颜色。当设置为true时,可以用‘sync color to custom’同步主题的颜色到自定义颜色。也可以手动设置。 + +### ThemeStyle.sharedTheme + +`Theme` +主题配置。 [Theme](#theme) + +### ThemeStyle.show + +`bool` `true` + +### ThemeStyle.transparentBackground + +`bool` `false` +是否透明背景颜色。当设置为true时,不绘制背景颜色。 ## Title -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropertyChanged](#ipropertychanged) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropertyChanged](#ipropertychanged) 标题组件,包含主标题和副标题。 -```mdx-code-block - -``` +### Title.itemGap -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示标题组件。 -|text|||主标题文本,支持使用 \n 换行。 -|subText|||副标题文本,支持使用 \n 换行。 -|labelStyle|||主标题文本样式。 [LabelStyle](#labelstyle)| -|subLabelStyle|||副标题文本样式。 [LabelStyle](#labelstyle)| -|itemGap|0||主副标题之间的间距。 -|location|||标题显示位置。 [Location](#location)| +`float` `0` +主副标题之间的间距。 -```mdx-code-block - -``` +### Title.labelStyle + +`LabelStyle` +主标题文本样式。 [LabelStyle](#labelstyle) + +### Title.location + +`Location` +标题显示位置。 [Location](#location) + +### Title.show + +`bool` `true` +是否显示标题组件。 + +### Title.subLabelStyle + +`LabelStyle` +副标题文本样式。 [LabelStyle](#labelstyle) + +### Title.subText + +`string` +副标题文本,支持使用 \n 换行。 + +### Title.text + +`string` +主标题文本,支持使用 \n 换行。 ## TitleStyle -> class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle), [ISerieDataComponent](#iseriedatacomponent), [ISerieComponent](#iseriecomponent) +class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle), [ISerieDataComponent](#iseriedatacomponent), [ISerieComponent](#iseriecomponent) 标题相关设置。 ## TitleTheme -> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) ## Tooltip -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) 提示框组件。 -```mdx-code-block - -``` +### Tooltip.alwayShowContent -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||是否显示提示框组件。 -|type|||提示框指示器类型。
`Tooltip.Type`:
- `Line`: 直线指示器
- `Shadow`: 阴影指示器
- `None`: 无指示器
- `Cross`: 十字准星指示器。坐标轴显示Label和交叉线。
- `Auto`: 根据serie的类型自动选择显示指示器。
| -|trigger|||触发类型。
`Tooltip.Trigger`:
- `Item`: 数据项图形触发,主要在散点图,饼图等无类目轴的图表中使用。
- `Axis`: 坐标轴触发,主要在柱状图,折线图等会使用类目轴的图表中使用。
- `None`: 什么都不触发。
- `Auto`: 根据serie的类型自动选择触发类型。
| -|triggerOn||v3.11.0|触发条件。
`Tooltip.TriggerOn`:
- `MouseMove`: 鼠标移动时触发。
- `Click`: 鼠标点击时触发。
| -|position||v3.3.0|显示位置类型。
`Tooltip.Position`:
- `Auto`: 自适应。移动平台靠顶部显示,非移动平台跟随鼠标位置。
- `Custom`: 自定义。完全自定义显示位置(x,y)。
- `FixedX`: 只固定坐标X。Y跟随鼠标位置。
- `FixedY`:
| -|itemFormatter|||提示框单个serie或数据项内容的字符串模版格式器。支持用 \n 换行。用|来表示多个列的分隔。 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。
{i}或-表示忽略当前项。 {.}为当前所指示的serie或数据项的对应颜色的圆点。
{a}为当前所指示的serie或数据项的系列名name。
{b}为当前所指示的serie或数据项的数据项serieData的name,或者类目值(如折线图的X轴)。
{c}为当前所指示的serie或数据项的y维(dimesion为1)的数值。
{d}为当前所指示的serie或数据项的y维(dimesion为1)百分比值,注意不带%号。
{e}为当前所指示的serie或数据项的数据项serieData的name。
{f}为当前所指示的serie的默认维度的数据总和。
{g}为当前所指示的serie的数据总个数。
{h}为当前所指示的serie的十六进制颜色值。
{y}为当前所指示的serie的y轴的类目值。
{c0}表示当前数据项维度为0的数据。
{c1}表示当前数据项维度为1的数据。
{d3}表示维度3的数据的百分比。它的分母是默认维度(一般是1维度)数据。
|表示多个列的分隔。
示例:"{i}", "{.}|{a}|{c}", "{.}|{b}|{c2:f2}", "{.}|{b}|{y}" -|titleFormatter|||提示框标题内容的字符串模版格式器。支持用 \n 换行。可以单独设置占位符{i}表示忽略不显示title。 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。
{.}为当前所指示或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)百分比值,注意不带%号。
{e}为当前所指示或index为0的serie的数据项serieData的name。
{h}为当前所指示或index为0的serie的数据项serieData的十六进制颜色值。
{f}为数据总和。
{g}为数据总个数。
{y}为value所对应的y轴的类目值。
{.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)。
{d:0.##} 表示单独指定了数值的格式化字符串为 0.## (用于百分比,保留2位有效数同时又能避免使用 f2 而出现的类似于"100.00%"的情况 )。
示例:"{a}:{c}"、"{a1}:{c1:f1}"、"{a1}:{c1:0:f1}"、"{a1}:{c1:1-1:f1}" -|marker|||serie的符号标志。 -|fixedWidth|0||固定宽度。比 minWidth 优先。 -|fixedHeight|0||固定高度。比 minHeight 优先。 -|minWidth|0||最小宽度。如若 fixedWidth 设有值,优先取 fixedWidth。 -|minHeight|0||最小高度。如若 fixedHeight 设有值,优先取 fixedHeight。 -|numericFormatter|||标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
日期格式:以`date`开头,用来格式化DateTime,常见格式有:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:date:yyyy-MM-dd HH:mm:ss
时间格式:以`time`开头,用来格式化TimeSpan,常见格式有:d日,HH时,mm分,ss秒,fffffff小数部分。 需要Unity2018以上版本才支持格式化,并且里面的字符要转义。如:time:d\.HH\:mm\:ss
数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
时间格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings
注意:date和time格式需要`v3.12.0`以上版本才支持。 -|paddingLeftRight|10||左右边距。 -|paddingTopBottom|10||上下边距。 -|ignoreDataShow|false||是否显示忽略数据在tooltip上。 -|ignoreDataDefaultContent|||被忽略数据的默认显示字符信息。如果设置为空,则表示完全不显示忽略数据。 -|showContent|true||是否显示提示框浮层,默认显示。只需tooltip触发事件或显示axisPointer而不需要显示内容时可配置该项为false。 -|alwayShowContent|false||是否触发后一直显示提示框浮层。 -|offset|Vector2(18f, -25f)||提示框相对于鼠标位置的偏移。 -|backgroundImage|||提示框的背景图片。 -|backgroundType|||提示框的背景图片显示类型。 -|backgroundColor|||提示框的背景颜色。 -|borderWidth|2f||边框线宽。 -|fixedX|0f||固定X位置的坐标。 -|fixedY|0.7f||固定Y位置的坐标。 -|titleHeight|25f||标题文本的高。 -|itemHeight|25f||数据项文本的高。 -|borderColor|Color32(230, 230, 230, 255)||边框颜色。 -|lineStyle|||指示线样式。 [LineStyle](#linestyle)| -|titleLabelStyle|||标题的文本样式。 [LabelStyle](#labelstyle)| -|contentLabelStyles|||内容部分的文本样式列表。和列一一对应。 +`bool` `false` +是否触发后一直显示提示框浮层。 -```mdx-code-block -
-``` +### Tooltip.backgroundColor + +`Color` +提示框的背景颜色。 + +### Tooltip.backgroundImage + +`Sprite` +提示框的背景图片。 + +### Tooltip.backgroundType + +`Image.Type` +提示框的背景图片显示类型。 + +### Tooltip.borderColor + +`Color32` `Color32(230, 230, 230, 255)` +边框颜色。 + +### Tooltip.borderWidth + +`float` `2f` +边框线宽。 + +### Tooltip.contentLabelStyles + +`List` +内容部分的文本样式列表。和列一一对应。 + +### Tooltip.fixedHeight + +`float` `0` +固定高度。比 minHeight 优先。 + +### Tooltip.fixedWidth + +`float` `0` +固定宽度。比 minWidth 优先。 + +### Tooltip.fixedX + +`float` `0f` +固定X位置的坐标。 + +### Tooltip.fixedY + +`float` `0.7f` +固定Y位置的坐标。 + +### Tooltip.ignoreDataDefaultContent + +`string` +被忽略数据的默认显示字符信息。如果设置为空,则表示完全不显示忽略数据。 + +### Tooltip.ignoreDataShow + +`bool` `false` +是否显示忽略数据在tooltip上。 + +### Tooltip.itemFormatter + +`string` +提示框单个serie或数据项内容的字符串模版格式器。支持用 \n 换行。用|来表示多个列的分隔。 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。
{i}或-表示忽略当前项。 {.}为当前所指示的serie或数据项的对应颜色的圆点。
{a}为当前所指示的serie或数据项的系列名name。
{b}为当前所指示的serie或数据项的数据项serieData的name,或者类目值(如折线图的X轴)。
{c}为当前所指示的serie或数据项的y维(dimesion为1)的数值。
{d}为当前所指示的serie或数据项的y维(dimesion为1)百分比值,注意不带%号。
{e}为当前所指示的serie或数据项的数据项serieData的name。
{f}为当前所指示的serie的默认维度的数据总和。
{g}为当前所指示的serie的数据总个数。
{h}为当前所指示的serie的十六进制颜色值。
{y}为当前所指示的serie的y轴的类目值。
{c0}表示当前数据项维度为0的数据。
{c1}表示当前数据项维度为1的数据。
{d3}表示维度3的数据的百分比。它的分母是默认维度(一般是1维度)数据。
|表示多个列的分隔。
示例:"{i}", "{.}|{a}|{c}", "{.}|{b}|{c2:f2}", "{.}|{b}|{y}" + +### Tooltip.itemHeight + +`float` `25f` +数据项文本的高。 + +### Tooltip.lineStyle + +`LineStyle` +指示线样式。 [LineStyle](#linestyle) + +### Tooltip.marker + +`string` +serie的符号标志。 + +### Tooltip.minHeight + +`float` `0` +最小高度。如若 fixedHeight 设有值,优先取 fixedHeight。 + +### Tooltip.minWidth + +`float` `0` +最小宽度。如若 fixedWidth 设有值,优先取 fixedWidth。 + +### Tooltip.numericFormatter + +`string` +标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
日期格式:以`date`开头,用来格式化DateTime,常见格式有:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:date:yyyy-MM-dd HH:mm:ss
时间格式:以`time`开头,用来格式化TimeSpan,常见格式有:d日,HH时,mm分,ss秒,fffffff小数部分。 需要Unity2018以上版本才支持格式化,并且里面的字符要转义。如:time:d\.HH\:mm\:ss
数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
时间格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings
注意:date和time格式需要`v3.12.0`以上版本才支持。 + +### Tooltip.offset + +`Vector2` `Vector2(18f, -25f)` +提示框相对于鼠标位置的偏移。 + +### Tooltip.paddingLeftRight + +`int` `10` +左右边距。 + +### Tooltip.paddingTopBottom + +`int` `10` +上下边距。 + +### Tooltip.position + +`Tooltip.Position` `v3.3.0` +显示位置类型。 + +可选: + +- `Auto`: 自适应。移动平台靠顶部显示,非移动平台跟随鼠标位置。 +- `Custom`: 自定义。完全自定义显示位置(x,y)。 +- `FixedX`: 只固定坐标X。Y跟随鼠标位置。 +- `FixedY`: + +### Tooltip.show + +`bool` `true` +是否显示提示框组件。 + +### Tooltip.showContent + +`bool` `true` +是否显示提示框浮层,默认显示。只需tooltip触发事件或显示axisPointer而不需要显示内容时可配置该项为false。 + +### Tooltip.titleFormatter + +`string` +提示框标题内容的字符串模版格式器。支持用 \n 换行。可以单独设置占位符{i}表示忽略不显示title。 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。
{.}为当前所指示或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)百分比值,注意不带%号。
{e}为当前所指示或index为0的serie的数据项serieData的name。
{h}为当前所指示或index为0的serie的数据项serieData的十六进制颜色值。
{f}为数据总和。
{g}为数据总个数。
{y}为value所对应的y轴的类目值。
{.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)。
{d:0.##} 表示单独指定了数值的格式化字符串为 0.## (用于百分比,保留2位有效数同时又能避免使用 f2 而出现的类似于"100.00%"的情况 )。
示例:"{a}:{c}"、"{a1}:{c1:f1}"、"{a1}:{c1:0:f1}"、"{a1}:{c1:1-1:f1}" + +### Tooltip.titleHeight + +`float` `25f` +标题文本的高。 + +### Tooltip.titleLabelStyle + +`LabelStyle` +标题的文本样式。 [LabelStyle](#labelstyle) + +### Tooltip.trigger + +`Tooltip.Trigger` +触发类型。 + +可选: + +- `Item`: 数据项图形触发,主要在散点图,饼图等无类目轴的图表中使用。 +- `Axis`: 坐标轴触发,主要在柱状图,折线图等会使用类目轴的图表中使用。 +- `None`: 什么都不触发。 +- `Auto`: 根据serie的类型自动选择触发类型。 + +### Tooltip.triggerOn + +`Tooltip.TriggerOn` `v3.11.0` +触发条件。 + +可选: + +- `MouseMove`: 鼠标移动时触发。 +- `Click`: 鼠标点击时触发。 + +### Tooltip.type + +`Tooltip.Type` +提示框指示器类型。 + +可选: + +- `Line`: 直线指示器 +- `Shadow`: 阴影指示器 +- `None`: 无指示器 +- `Cross`: 十字准星指示器。坐标轴显示Label和交叉线。 +- `Auto`: 根据serie的类型自动选择显示指示器。 ## TooltipTheme -> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) -```mdx-code-block - -``` +### TooltipTheme.areaColor -|参数|默认|版本|描述| -|--|--|--|--| -|lineType|||坐标轴线类型。
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|lineWidth|1f||指示线线宽。 -|lineColor|||指示线颜色。 -|areaColor|||区域指示的颜色。 -|labelTextColor|||十字指示器坐标轴标签的文本颜色。 -|labelBackgroundColor|||十字指示器坐标轴标签的背景颜色。 +`Color32` +区域指示的颜色。 -```mdx-code-block -
-``` +### TooltipTheme.labelBackgroundColor + +`Color32` +十字指示器坐标轴标签的背景颜色。 + +### TooltipTheme.labelTextColor + +`Color32` +十字指示器坐标轴标签的文本颜色。 + +### TooltipTheme.lineColor + +`Color32` +指示线颜色。 + +### TooltipTheme.lineType + +`LineStyle.Type` +坐标轴线类型。 + +可选: + +- `Solid`: 实线 +- `Dashed`: 虚线 +- `Dotted`: 点线 +- `DashDot`: 点划线 +- `DashDotDot`: 双点划线 +- `None`: 双点划线 + +### TooltipTheme.lineWidth + +`float` `1f` +指示线线宽。 ## UIComponentTheme -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) -```mdx-code-block - -``` +### UIComponentTheme.sharedTheme -|参数|默认|版本|描述| -|--|--|--|--| -|show|true|| -|sharedTheme|||主题配置。 [Theme](#theme)| -|transparentBackground|false|| +`Theme` +主题配置。 [Theme](#theme) -```mdx-code-block - -``` +### UIComponentTheme.show + +`bool` `true` + +### UIComponentTheme.transparentBackground + +`bool` `false` ## ViewControl -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) > 从 `v3.11.0` 开始支持 3D视角控制组件。 -```mdx-code-block - -``` +### ViewControl.alpha -|参数|默认|版本|描述| -|--|--|--|--| -|alpha|90f||视角在x-z平面的角度。 -|beta|55f||视角在y-z平面的角度。 +`float` `90f` +视角在x-z平面的角度。 -```mdx-code-block - -``` +### ViewControl.beta + +`float` `55f` +视角在y-z平面的角度。 ## VisualMap -> class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) +class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) 视觉映射组件。用于进行『视觉编码』,也就是将数据映射到视觉元素(视觉通道)。 -```mdx-code-block - -``` +### VisualMap.autoMinMax -|参数|默认|版本|描述| -|--|--|--|--| -|show|true||组件是否生效。 -|showUI|false||是否显示组件。如果设置为 false,不会显示,但是数据映射的功能还存在。 -|type|||组件类型。
`VisualMap.Type`:
- `Continuous`: 连续型。
- `Piecewise`: 分段型。
| -|selectedMode|||选择模式。
`VisualMap.SelectedMode`:
- `Multiple`: 多选。
- `Single`: 单选。
| -|serieIndex|0||影响的serie索引。 -|min|0||范围最小值 -|max|0||范围最大值 -|range|||指定手柄对应数值的位置。range 应在[min,max]范围内。 -|text|||两端的文本,如 ['High', 'Low']。 -|textGap|||两端文字主体之间的距离,单位为px。 -|splitNumber|5||对于连续型数据,自动平均切分成几段,默认为0时自动匹配inRange颜色列表大小。 -|calculable|false||是否显示拖拽用的手柄(手柄能拖拽调整选中范围)。 -|realtime|true||拖拽时,是否实时更新。 -|itemWidth|20f||图形的宽度,即颜色条的宽度。 -|itemHeight|140f||图形的高度,即颜色条的高度。 -|itemGap|10f||每个图元之间的间隔距离。 -|borderWidth|0||边框线宽,单位px。 -|dimension|-1||Starting at 1, the default is 0 to take the last dimension in data. -|hoverLink|true||Conversely, when the mouse hovers over a graphic element in a diagram, the corresponding value of the visualMap component is triangulated in the corresponding position. -|autoMinMax|true||Automatically set min, Max value 自动设置min,max的值 -|orient|||布局方式是横还是竖。
`Orient`:
- `Horizonal`: 水平
- `Vertical`: 垂直
| -|location|||组件显示的位置。 [Location](#location)| -|workOnLine|true||组件是否对LineChart的LineStyle有效。 -|workOnArea|false||组件是否对LineChart的AreaStyle有效。 -|outOfRange|||定义 在选中范围外 的视觉颜色。 -|inRange|||分段式每一段的相关配置。 +`bool` `true` +Automatically set min, Max value 自动设置min,max的值 -```mdx-code-block -
-``` +### VisualMap.borderWidth + +`float` `0` +边框线宽,单位px。 + +### VisualMap.calculable + +`bool` `false` +是否显示拖拽用的手柄(手柄能拖拽调整选中范围)。 + +### VisualMap.dimension + +`int` `-1` +Starting at 1, the default is 0 to take the last dimension in data. + +### VisualMap.hoverLink + +`bool` `true` +Conversely, when the mouse hovers over a graphic element in a diagram, the corresponding value of the visualMap component is triangulated in the corresponding position. + +### VisualMap.inRange + +`List` +分段式每一段的相关配置。 + +### VisualMap.itemGap + +`float` `10f` +每个图元之间的间隔距离。 + +### VisualMap.itemHeight + +`float` `140f` +图形的高度,即颜色条的高度。 + +### VisualMap.itemWidth + +`float` `20f` +图形的宽度,即颜色条的宽度。 + +### VisualMap.location + +`Location` +组件显示的位置。 [Location](#location) + +### VisualMap.max + +`double` `0` +范围最大值 + +### VisualMap.min + +`double` `0` +范围最小值 + +### VisualMap.orient + +`Orient` +布局方式是横还是竖。 + +可选: + +- `Horizonal`: 水平 +- `Vertical`: 垂直 + +### VisualMap.outOfRange + +`List` +定义 在选中范围外 的视觉颜色。 + +### VisualMap.range + +`double[]` +指定手柄对应数值的位置。range 应在[min,max]范围内。 + +### VisualMap.realtime + +`bool` `true` +拖拽时,是否实时更新。 + +### VisualMap.selectedMode + +`VisualMap.SelectedMode` +选择模式。 + +可选: + +- `Multiple`: 多选。 +- `Single`: 单选。 + +### VisualMap.serieIndex + +`int` `0` +影响的serie索引。 + +### VisualMap.show + +`bool` `true` +组件是否生效。 + +### VisualMap.showUI + +`bool` `false` +是否显示组件。如果设置为 false,不会显示,但是数据映射的功能还存在。 + +### VisualMap.splitNumber + +`int` `5` +对于连续型数据,自动平均切分成几段,默认为0时自动匹配inRange颜色列表大小。 + +### VisualMap.text + +`string[]` +两端的文本,如 ['High', 'Low']。 + +### VisualMap.textGap + +`float[]` +两端文字主体之间的距离,单位为px。 + +### VisualMap.type + +`VisualMap.Type` +组件类型。 + +可选: + +- `Continuous`: 连续型。 +- `Piecewise`: 分段型。 + +### VisualMap.workOnArea + +`bool` `false` +组件是否对LineChart的AreaStyle有效。 + +### VisualMap.workOnLine + +`bool` `true` +组件是否对LineChart的LineStyle有效。 ## VisualMapRange -> class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) +class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) -```mdx-code-block - -``` +### VisualMapRange.color -|参数|默认|版本|描述| -|--|--|--|--| -|min|||范围最小值 -|max|||范围最大值 -|label|||文字描述 -|color|||颜色 +`Color32` +颜色 -```mdx-code-block - -``` +### VisualMapRange.label + +`string` +文字描述 + +### VisualMapRange.max + +`double` +范围最大值 + +### VisualMapRange.min + +`double` +范围最小值 ## VisualMapTheme -> class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) +class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) -```mdx-code-block - -``` +### VisualMapTheme.backgroundColor -|参数|默认|版本|描述| -|--|--|--|--| -|borderWidth|||边框线宽。 -|borderColor|||边框颜色。 -|backgroundColor|||背景颜色。 -|triangeLen|20f||可视化组件的调节三角形边长。 +`Color32` +背景颜色。 -```mdx-code-block - -``` +### VisualMapTheme.borderColor + +`Color32` +边框颜色。 + +### VisualMapTheme.borderWidth + +`float` +边框线宽。 + +### VisualMapTheme.triangeLen + +`float` `20f` +可视化组件的调节三角形边长。 ## Wrapper<T> -> class in XCharts.Runtime +class in XCharts.Runtime ## XAxis -> class in XCharts.Runtime / 继承自: [Axis](#axis) +class in XCharts.Runtime / 继承自: [Axis](#axis) 直角坐标系 grid 中的 x 轴。 ## XAxis3D -> class in XCharts.Runtime / 继承自: [Axis](#axis) +class in XCharts.Runtime / 继承自: [Axis](#axis) > 从 `v3.11.0` 开始支持 @@ -2476,67 +4676,183 @@ Serie的状态样式。Serie的状态有正常,高亮,淡出,选中四种 ## XCResourcesImporter -> class in XCharts.Runtime +class in XCharts.Runtime ## XCSettings -> class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject) +class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject) -```mdx-code-block - -``` +### XCSettings.axisLineType -|参数|默认|版本|描述| -|--|--|--|--| -|lang||| [Lang](#lang)| -|font||| -|tMPFont||| -|fontSizeLv1|28||一级字体大小。 -|fontSizeLv2|24|| -|fontSizeLv3|20|| -|fontSizeLv4|18|| -|axisLineType|||
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|axisLineWidth|0.8f|| -|axisSplitLineType|||
`LineStyle.Type`:
- `Solid`: 实线
- `Dashed`: 虚线
- `Dotted`: 点线
- `DashDot`: 点划线
- `DashDotDot`: 双点划线
- `None`: 双点划线
| -|axisSplitLineWidth|0.8f|| -|axisTickWidth|0.8f|| -|axisTickLength|5f|| -|gaugeAxisLineWidth|15f|| -|gaugeAxisSplitLineWidth|0.8f|| -|gaugeAxisSplitLineLength|15f|| -|gaugeAxisTickWidth|0.8f|| -|gaugeAxisTickLength|5f|| -|tootipLineWidth|0.8f|| -|dataZoomBorderWidth|0.5f|| -|dataZoomDataLineWidth|0.5f|| -|visualMapBorderWidth|0f|| -|serieLineWidth|1.8f|| -|serieLineSymbolSize|5f|| -|serieScatterSymbolSize|20f|| -|serieSelectedRate|1.3f|| -|serieCandlestickBorderWidth|1f|| -|editorShowAllListData|false|| -|maxPainter|10|| -|lineSmoothStyle|3f|| -|lineSmoothness|2f|| -|lineSegmentDistance|3f|| -|cicleSmoothness|2f|| -|visualMapTriangeLen|20f|| -|customThemes||| +`LineStyle.Type` -```mdx-code-block -
-``` + +可选: + +- `Solid`: 实线 +- `Dashed`: 虚线 +- `Dotted`: 点线 +- `DashDot`: 点划线 +- `DashDotDot`: 双点划线 +- `None`: 双点划线 + +### XCSettings.axisLineWidth + +`float` `0.8f` + +### XCSettings.axisSplitLineType + +`LineStyle.Type` + + +可选: + +- `Solid`: 实线 +- `Dashed`: 虚线 +- `Dotted`: 点线 +- `DashDot`: 点划线 +- `DashDotDot`: 双点划线 +- `None`: 双点划线 + +### XCSettings.axisSplitLineWidth + +`float` `0.8f` + +### XCSettings.axisTickLength + +`float` `5f` + +### XCSettings.axisTickWidth + +`float` `0.8f` + +### XCSettings.cicleSmoothness + +`float` `2f` + +### XCSettings.customThemes + +`List` + +### XCSettings.dataZoomBorderWidth + +`float` `0.5f` + +### XCSettings.dataZoomDataLineWidth + +`float` `0.5f` + +### XCSettings.editorShowAllListData + +`bool` `false` + +### XCSettings.font + +`Font` + +### XCSettings.fontSizeLv1 + +`int` `28` +一级字体大小。 + +### XCSettings.fontSizeLv2 + +`int` `24` + +### XCSettings.fontSizeLv3 + +`int` `20` + +### XCSettings.fontSizeLv4 + +`int` `18` + +### XCSettings.gaugeAxisLineWidth + +`float` `15f` + +### XCSettings.gaugeAxisSplitLineLength + +`float` `15f` + +### XCSettings.gaugeAxisSplitLineWidth + +`float` `0.8f` + +### XCSettings.gaugeAxisTickLength + +`float` `5f` + +### XCSettings.gaugeAxisTickWidth + +`float` `0.8f` + +### XCSettings.lang + +`Lang` + [Lang](#lang) + +### XCSettings.lineSegmentDistance + +`float` `3f` + +### XCSettings.lineSmoothness + +`float` `2f` + +### XCSettings.lineSmoothStyle + +`float` `3f` + +### XCSettings.maxPainter + +`int` `10` + +### XCSettings.serieCandlestickBorderWidth + +`float` `1f` + +### XCSettings.serieLineSymbolSize + +`float` `5f` + +### XCSettings.serieLineWidth + +`float` `1.8f` + +### XCSettings.serieScatterSymbolSize + +`float` `20f` + +### XCSettings.serieSelectedRate + +`float` `1.3f` + +### XCSettings.tMPFont + +`TMP_FontAsset` + +### XCSettings.tootipLineWidth + +`float` `0.8f` + +### XCSettings.visualMapBorderWidth + +`float` `0f` + +### XCSettings.visualMapTriangeLen + +`float` `20f` ## YAxis -> class in XCharts.Runtime / 继承自: [Axis](#axis) +class in XCharts.Runtime / 继承自: [Axis](#axis) 直角坐标系 grid 中的 y 轴。 ## YAxis3D -> class in XCharts.Runtime / 继承自: [Axis](#axis) +class in XCharts.Runtime / 继承自: [Axis](#axis) > 从 `v3.11.0` 开始支持 @@ -2544,9 +4860,8 @@ Serie的状态样式。Serie的状态有正常,高亮,淡出,选中四种 ## ZAxis3D -> class in XCharts.Runtime / 继承自: [Axis](#axis) +class in XCharts.Runtime / 继承自: [Axis](#axis) > 从 `v3.11.0` 开始支持 直角坐标系 grid 中的 y 轴。 - From 3b6ce91c65a81d271c772ae3c97b3c0a71b9bd60 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sun, 22 Sep 2024 09:54:11 +0800 Subject: [PATCH 28/34] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/en/api.md | 3524 ++++++++++++++-------------- Documentation~/en/configuration.md | 1352 ++++++++--- Documentation~/zh/api.md | 3524 ++++++++++++++-------------- Documentation~/zh/changelog.md | 1 + Documentation~/zh/configuration.md | 1352 ++++++++--- 5 files changed, 5597 insertions(+), 4156 deletions(-) diff --git a/Documentation~/en/api.md b/Documentation~/en/api.md index e21619b8..e6d20502 100644 --- a/Documentation~/en/api.md +++ b/Documentation~/en/api.md @@ -317,12 +317,12 @@ Angle axis of Polar Coordinate. ### AngleAxis.GetValueAngle -public float GetValueAngle(double value) +public float GetValueAngle(double value) ### AngleAxis.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() ## AngleAxisTheme @@ -330,11 +330,11 @@ class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) ### AngleAxisTheme.base(theme) -public AngleAxisTheme(ThemeType theme) : base(theme) +public AngleAxisTheme(ThemeType theme) : base(theme) ### AngleAxisTheme.AngleAxisTheme -public AngleAxisTheme(ThemeType theme) : base(theme) { } +public AngleAxisTheme(ThemeType theme) : base(theme) { } ## AnimationAddition @@ -394,92 +394,92 @@ the animation info. ### AnimationInfo.delay -public float delay +public float delay the delay time before animation start. ### AnimationInfo.delayFunction -public AnimationDelayFunction delayFunction +public AnimationDelayFunction delayFunction the delegate function of animation delay. ### AnimationInfo.duration -public float duration +public float duration the duration of animation. ### AnimationInfo.durationFunction -public AnimationDurationFunction durationFunction +public AnimationDurationFunction durationFunction the delegate function of animation duration. ### AnimationInfo.enable -public bool enable +public bool enable whether enable animation. ### AnimationInfo.OnAnimationEnd -public Action OnAnimationEnd +public Action OnAnimationEnd the callback function of animation end. ### AnimationInfo.OnAnimationStart -public Action OnAnimationStart +public Action OnAnimationStart the callback function of animation start. ### AnimationInfo.reverse -public bool reverse +public bool reverse whether enable reverse animation. ### AnimationInfo.End -public void End() +public void End() End animation. ### AnimationInfo.GetIndexDelay -public float GetIndexDelay(int dataIndex) +public float GetIndexDelay(int dataIndex) Get animation delay. ### AnimationInfo.Init -public bool Init(float curr, float dest, int totalPointIndex) +public bool Init(float curr, float dest, int totalPointIndex) Initialize animation. ### AnimationInfo.IsFinish -public bool IsFinish() +public bool IsFinish() Whether animation is finish. ### AnimationInfo.IsInDelay -public bool IsInDelay() +public bool IsInDelay() Whether animation is in delay. ### AnimationInfo.IsInIndexDelay -public bool IsInIndexDelay(int dataIndex) +public bool IsInIndexDelay(int dataIndex) Whether animation is in index delay. ### AnimationInfo.Pause -public void Pause() +public void Pause() Pause animation. ### AnimationInfo.Reset -public void Reset() +public void Reset() Reset animation. ### AnimationInfo.Resume -public void Resume() +public void Resume() Resume animation. ### AnimationInfo.Start -public void Start(bool reset = true) +public void Start(bool reset = true) Start animation. ## AnimationInfoContext @@ -496,31 +496,31 @@ Interactive animation of charts. ### AnimationInteraction.offset -public MLValue offset +public MLValue offset the mlvalue of offset. Such as the offset of the pie chart when the sector is selected. ### AnimationInteraction.radius -public MLValue radius +public MLValue radius the mlvalue of radius. ### AnimationInteraction.width -public MLValue width +public MLValue width the mlvalue of width. ### AnimationInteraction.GetOffset -public float GetOffset() +public float GetOffset() ### AnimationInteraction.GetRadius -public float GetRadius(float radius) +public float GetRadius(float radius) ### AnimationInteraction.GetWidth -public float GetWidth(float width) +public float GetWidth(float width) ## AnimationStyle @@ -530,180 +530,180 @@ the animation of serie. support animation type: fadeIn, fadeOut, change, additio ### AnimationStyle.addition -public AnimationAddition addition +public AnimationAddition addition Add data animation configuration. ### AnimationStyle.change -public AnimationChange change +public AnimationChange change Update data animation configuration. ### AnimationStyle.enable -public bool enable +public bool enable Whether to enable animation. ### AnimationStyle.fadeIn -public AnimationFadeIn fadeIn +public AnimationFadeIn fadeIn Fade in animation configuration. ### AnimationStyle.fadeInFinishCallback -public Action fadeInFinishCallback +public Action fadeInFinishCallback ### AnimationStyle.fadeOut -public AnimationFadeOut fadeOut +public AnimationFadeOut fadeOut Fade out animation configuration. ### AnimationStyle.fadeOutFinishCallback -public Action fadeOutFinishCallback +public Action fadeOutFinishCallback ### AnimationStyle.hiding -public AnimationHiding hiding +public AnimationHiding hiding Data hiding animation configuration. ### AnimationStyle.interaction -public AnimationInteraction interaction +public AnimationInteraction interaction Interaction animation configuration. ### AnimationStyle.threshold -public int threshold +public int threshold Whether to set graphic number threshold to animation. Animation will be disabled when graphic number is larger than threshold. ### AnimationStyle.unscaledTime -public bool unscaledTime +public bool unscaledTime Animation updates independently of Time.timeScale. ### AnimationStyle.Addition -public void Addition() +public void Addition() Start additon animation. ### AnimationStyle.CanCheckInteract -public bool CanCheckInteract() +public bool CanCheckInteract() ### AnimationStyle.CheckDetailBreak -public bool CheckDetailBreak(Vector3 pos, bool isYAxis) +public bool CheckDetailBreak(Vector3 pos, bool isYAxis) ### AnimationStyle.CheckProgress -public void CheckProgress(double total) +public void CheckProgress(double total) ### AnimationStyle.CheckSymbol -public void CheckSymbol(float dest) +public void CheckSymbol(float dest) ### AnimationStyle.FadeIn -public void FadeIn() +public void FadeIn() Start fadein animation. ### AnimationStyle.FadeOut -public void FadeOut() +public void FadeOut() Start fadeout animation. ### AnimationStyle.GetAdditionDuration -public float GetAdditionDuration() +public float GetAdditionDuration() ### AnimationStyle.GetChangeDuration -public float GetChangeDuration() +public float GetChangeDuration() ### AnimationStyle.GetCurrDetail -public float GetCurrDetail() +public float GetCurrDetail() ### AnimationStyle.GetCurrIndex -public int GetCurrIndex() +public int GetCurrIndex() ### AnimationStyle.GetCurrRate -public float GetCurrRate() +public float GetCurrRate() ### AnimationStyle.GetInteractionDuration -public float GetInteractionDuration() +public float GetInteractionDuration() ### AnimationStyle.GetInteractionRadius -public float GetInteractionRadius(float radius) +public float GetInteractionRadius(float radius) ### AnimationStyle.GetSysmbolSize -public float GetSysmbolSize(float dest) +public float GetSysmbolSize(float dest) ### AnimationStyle.HasFadeOut -public bool HasFadeOut() +public bool HasFadeOut() ### AnimationStyle.InitProgress -public void InitProgress(List<Vector3> paths, bool isY) +public void InitProgress(List<Vector3> paths, bool isY) Initialize animation configuration. ### AnimationStyle.IsDataAnimation -public bool IsDataAnimation() +public bool IsDataAnimation() whther animaiton is data animation. BottomToTop and InsideOut are data animation. ### AnimationStyle.IsEnd -public bool IsEnd() +public bool IsEnd() ### AnimationStyle.IsFadeIn -public bool IsFadeIn() +public bool IsFadeIn() ### AnimationStyle.IsFadeOut -public bool IsFadeOut() +public bool IsFadeOut() ### AnimationStyle.IsFinish -public bool IsFinish() +public bool IsFinish() ### AnimationStyle.IsInDelay -public bool IsInDelay() +public bool IsInDelay() ### AnimationStyle.IsSerieAnimation -public bool IsSerieAnimation() +public bool IsSerieAnimation() whther animaiton is serie animation. LeftToRight, AlongPath and Clockwise are serie animation. ### AnimationStyle.Pause -public void Pause() +public void Pause() Pause all animations. ### AnimationStyle.Reset -public void Reset() +public void Reset() Reset all animations. ### AnimationStyle.Restart -public void Restart() +public void Restart() Restart the actived animation. ### AnimationStyle.Resume -public void Resume() +public void Resume() Resume all animations. ## AnimationStyleHelper @@ -712,19 +712,19 @@ class in XCharts.Runtime ### AnimationStyleHelper.CheckDataAnimation -public static float CheckDataAnimation(BaseChart chart, Serie serie, int dataIndex, float destProgress, float startPorgress = 0) +public static float CheckDataAnimation(BaseChart chart, Serie serie, int dataIndex, float destProgress, float startPorgress = 0) ### AnimationStyleHelper.GetAnimationPosition -public static bool GetAnimationPosition(AnimationStyle animation, bool isY, Vector3 lp, Vector3 cp, float progress, ref Vector3 ip, ref float rate) +public static bool GetAnimationPosition(AnimationStyle animation, bool isY, Vector3 lp, Vector3 cp, float progress, ref Vector3 ip, ref float rate) ### AnimationStyleHelper.UpdateAnimationType -public static void UpdateAnimationType(AnimationStyle animation, AnimationType defaultType, bool enableSerieDataAnimation) +public static void UpdateAnimationType(AnimationStyle animation, AnimationType defaultType, bool enableSerieDataAnimation) ### AnimationStyleHelper.UpdateSerieAnimation -public static void UpdateSerieAnimation(Serie serie) +public static void UpdateSerieAnimation(Serie serie) ## AnimationType @@ -747,7 +747,7 @@ The style of area. ### AreaStyle.GetColor -public Color32 GetColor(Color32 themeColor) +public Color32 GetColor(Color32 themeColor) ## AreaStyle.AreaOrigin @@ -768,15 +768,15 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### ArrowStyle.Clone -public ArrowStyle Clone() +public ArrowStyle Clone() ### ArrowStyle.Copy -public void Copy(ArrowStyle arrow) +public void Copy(ArrowStyle arrow) ### ArrowStyle.GetColor -public Color32 GetColor(Color32 defaultColor) +public Color32 GetColor(Color32 defaultColor) ## Axis @@ -786,153 +786,153 @@ The axis in rectangular coordinate. ### Axis.AddData -public void AddData(string category) +public void AddData(string category) 添加一个类目到类目数据列表 ### Axis.AddIcon -public void AddIcon(Sprite icon) +public void AddIcon(Sprite icon) 添加图标 ### Axis.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### Axis.ClearData -public override void ClearData() +public override void ClearData() 清空类目数据 ### Axis.ClearVerticesDirty -public override void ClearVerticesDirty() +public override void ClearVerticesDirty() ### Axis.Clone -public Axis Clone() +public Axis Clone() ### Axis.Copy -public void Copy(Axis axis) +public void Copy(Axis axis) ### Axis.GetAddedDataCount -public int GetAddedDataCount() +public int GetAddedDataCount() get the history data count. ### Axis.GetCategoryPosition -public Vector3 GetCategoryPosition(int categoryIndex, int dataCount = 0) +public Vector3 GetCategoryPosition(int categoryIndex, int dataCount = 0) ### Axis.GetData -public string GetData(int index, DataZoom dataZoom) +public string GetData(int index, DataZoom dataZoom) 获得在dataZoom范围内指定索引的类目数据 ### Axis.GetDistance -public float GetDistance(double value, float axisLength = 0) +public float GetDistance(double value, float axisLength = 0) 获得值在坐标轴上的距离 ### Axis.GetIcon -public Sprite GetIcon(int index) +public Sprite GetIcon(int index) ### Axis.GetLabelValue -public double GetLabelValue(int index) +public double GetLabelValue(int index) ### Axis.GetLastLabelValue -public double GetLastLabelValue() +public double GetLastLabelValue() ### Axis.GetLogMaxIndex -public double GetLogMaxIndex() +public double GetLogMaxIndex() ### Axis.GetLogMinIndex -public double GetLogMinIndex() +public double GetLogMinIndex() ### Axis.GetLogValue -public float GetLogValue(double value) +public float GetLogValue(double value) ### Axis.GetValueLength -public float GetValueLength(double value, float axisLength) +public float GetValueLength(double value, float axisLength) ### Axis.IsBottom -public bool IsBottom() +public bool IsBottom() ### Axis.IsCategory -public bool IsCategory() +public bool IsCategory() 是否为类目轴。 ### Axis.IsLeft -public bool IsLeft() +public bool IsLeft() ### Axis.IsLog -public bool IsLog() +public bool IsLog() 是否为对数轴。 ### Axis.IsNeedShowLabel -public bool IsNeedShowLabel(int index, int total = 0) +public bool IsNeedShowLabel(int index, int total = 0) ### Axis.IsRight -public bool IsRight() +public bool IsRight() ### Axis.IsTime -public bool IsTime() +public bool IsTime() 是否为时间轴。 ### Axis.IsTop -public bool IsTop() +public bool IsTop() ### Axis.IsValue -public bool IsValue() +public bool IsValue() 是否为数值轴。 ### Axis.RemoveData -public void RemoveData(int dataIndex) +public void RemoveData(int dataIndex) ### Axis.ResetStatus -public override void ResetStatus() +public override void ResetStatus() 重置状态。 ### Axis.SetComponentDirty -public override void SetComponentDirty() +public override void SetComponentDirty() ### Axis.SetNeedUpdateFilterData -public void SetNeedUpdateFilterData() +public void SetNeedUpdateFilterData() ### Axis.UpdateData -public void UpdateData(int index, string category) +public void UpdateData(int index, string category) 更新类目数据 ### Axis.UpdateIcon -public void UpdateIcon(int index, Sprite icon) +public void UpdateIcon(int index, Sprite icon) 更新图标 ### Axis.UpdateZeroOffset -public void UpdateZeroOffset(float axisLength) +public void UpdateZeroOffset(float axisLength) ## Axis.AxisMinMaxType @@ -980,12 +980,12 @@ class in XCharts.Runtime ### Axis3DHelper.Get3DGridPosition -public static Vector3 Get3DGridPosition(GridCoord3D grid, XAxis3D xAxis, YAxis3D yAxis, double xValue, double yValue) +public static Vector3 Get3DGridPosition(GridCoord3D grid, XAxis3D xAxis, YAxis3D yAxis, double xValue, double yValue) ### Axis3DHelper.GetLabelPosition -public static Vector3 GetLabelPosition(int i, Axis axis, Axis relativedAxis, AxisTheme theme, float scaleWid) +public static Vector3 GetLabelPosition(int i, Axis axis, Axis relativedAxis, AxisTheme theme, float scaleWid) ## AxisAnimation @@ -997,11 +997,11 @@ animation style of axis. ### AxisAnimation.Clone -public AxisAnimation Clone() +public AxisAnimation Clone() ### AxisAnimation.Copy -public void Copy(AxisAnimation animation) +public void Copy(AxisAnimation animation) ## AxisContext @@ -1009,37 +1009,37 @@ class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentc ### AxisContext.destMaxValue -public double destMaxValue +public double destMaxValue ### AxisContext.destMinValue -public double destMinValue +public double destMinValue ### AxisContext.labelObjectList -public List<ChartLabel> labelObjectList +public List<ChartLabel> labelObjectList ### AxisContext.labelValueList -public List<double> labelValueList +public List<double> labelValueList ### AxisContext.lastMaxValue -public double lastMaxValue +public double lastMaxValue the current maximum value. ### AxisContext.lastMinValue -public double lastMinValue +public double lastMinValue the current minimun value. ### AxisContext.needAnimation -public bool needAnimation +public bool needAnimation ### AxisContext.runtimeData -public List<string> runtimeData +public List<string> runtimeData the tick value of value axis. ## AxisHandler<T> @@ -1048,7 +1048,7 @@ class in XCharts / Inherits from: [MainComponentHandler](#maincomponenthandler) ### AxisHandler<T>.component -public T component +public T component ## AxisHelper @@ -1056,95 +1056,95 @@ class in XCharts.Runtime ### AxisHelper.AdjustCircleLabelPos -public static void AdjustCircleLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset) +public static void AdjustCircleLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset) ### AxisHelper.AdjustMinMaxValue -public static void AdjustMinMaxValue(Axis axis, ref double minValue, ref double maxValue, bool needFormat, double ceilRate = 0) +public static void AdjustMinMaxValue(Axis axis, ref double minValue, ref double maxValue, bool needFormat, double ceilRate = 0) 调整最大最小值 ### AxisHelper.AdjustRadiusAxisLabelPos -public static void AdjustRadiusAxisLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset) +public static void AdjustRadiusAxisLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset) ### AxisHelper.GetAxisLineArrowOffset -public static float GetAxisLineArrowOffset(Axis axis) +public static float GetAxisLineArrowOffset(Axis axis) 包含箭头偏移的轴线长度 ### AxisHelper.GetAxisPosition -public static float GetAxisPosition(GridCoord grid, Axis axis, double value, int dataCount = 0, DataZoom dataZoom = null) +public static float GetAxisPosition(GridCoord grid, Axis axis, double value, int dataCount = 0, DataZoom dataZoom = null) ### AxisHelper.GetAxisPositionValue -public static double GetAxisPositionValue(float xy, float axisLength, double axisRange, float axisStart, float axisOffset) +public static double GetAxisPositionValue(float xy, float axisLength, double axisRange, float axisStart, float axisOffset) ### AxisHelper.GetAxisValueDistance -public static float GetAxisValueDistance(GridCoord grid, Axis axis, float scaleWidth, double value) +public static float GetAxisValueDistance(GridCoord grid, Axis axis, float scaleWidth, double value) 获得数值value在坐标轴上相对起点的距离 ### AxisHelper.GetAxisValueLength -public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value) +public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value) 获得数值value在坐标轴上对应的长度 ### AxisHelper.GetAxisValuePosition -public static float GetAxisValuePosition(GridCoord grid, Axis axis, float scaleWidth, double value) +public static float GetAxisValuePosition(GridCoord grid, Axis axis, float scaleWidth, double value) 获得数值value在坐标轴上的坐标位置 ### AxisHelper.GetAxisValueSplitIndex -public static int GetAxisValueSplitIndex(Axis axis, double value, bool checkMaxCache, int totalSplitNumber = -1) +public static int GetAxisValueSplitIndex(Axis axis, double value, bool checkMaxCache, int totalSplitNumber = -1) 获得数值value在坐标轴上对应的split索引 ### AxisHelper.GetAxisXOrY -public static float GetAxisXOrY(GridCoord grid, Axis axis, Axis relativedAxis) +public static float GetAxisXOrY(GridCoord grid, Axis axis, Axis relativedAxis) ### AxisHelper.GetDataWidth -public static float GetDataWidth(Axis axis, float coordinateWidth, int dataCount, DataZoom dataZoom) +public static float GetDataWidth(Axis axis, float coordinateWidth, int dataCount, DataZoom dataZoom) 获得一个类目数据在坐标系中代表的宽度 ### AxisHelper.GetEachWidth -public static float GetEachWidth(Axis axis, float coordinateWidth, DataZoom dataZoom = null) +public static float GetEachWidth(Axis axis, float coordinateWidth, DataZoom dataZoom = null) ### AxisHelper.GetScaleNumber -public static int GetScaleNumber(Axis axis, float coordinateWidth, DataZoom dataZoom = null) +public static int GetScaleNumber(Axis axis, float coordinateWidth, DataZoom dataZoom = null) 获得分割线条数 ### AxisHelper.GetScaleWidth -public static float GetScaleWidth(Axis axis, float coordinateWidth, int index, DataZoom dataZoom = null) +public static float GetScaleWidth(Axis axis, float coordinateWidth, int index, DataZoom dataZoom = null) 获得分割段宽度 ### AxisHelper.GetSplitNumber -public static int GetSplitNumber(Axis axis, float coordinateWid, DataZoom dataZoom) +public static int GetSplitNumber(Axis axis, float coordinateWid, DataZoom dataZoom) 获得分割段数 ### AxisHelper.GetTotalSplitGridNum -public static int GetTotalSplitGridNum(Axis axis) +public static int GetTotalSplitGridNum(Axis axis) 获得分割网格个数,包含次刻度 ### AxisHelper.GetXAxisXOrY -public static float GetXAxisXOrY(GridCoord grid, Axis xAxis, Axis relativedAxis) +public static float GetXAxisXOrY(GridCoord grid, Axis xAxis, Axis relativedAxis) ### AxisHelper.GetYAxisXOrY -public static float GetYAxisXOrY(GridCoord grid, Axis yAxis, Axis relativedAxis) +public static float GetYAxisXOrY(GridCoord grid, Axis yAxis, Axis relativedAxis) ### AxisHelper.NeedShowSplit -public static bool NeedShowSplit(Axis axis) +public static bool NeedShowSplit(Axis axis) ## AxisLabel @@ -1154,32 +1154,32 @@ Settings related to axis label. ### AxisLabel.componentDirty -public override bool componentDirty +public override bool componentDirty ### AxisLabel.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### AxisLabel.Clone -public new AxisLabel Clone() +public new AxisLabel Clone() ### AxisLabel.Copy -public void Copy(AxisLabel axisLabel) +public void Copy(AxisLabel axisLabel) ### AxisLabel.GetFormatterContent -public override string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false) +public override string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false) ### AxisLabel.IsNeedShowLabel -public bool IsNeedShowLabel(int index, int total) +public bool IsNeedShowLabel(int index, int total) ### AxisLabel.SetRelatedText -public void SetRelatedText(ChartText txt, float labelWidth) +public void SetRelatedText(ChartText txt, float labelWidth) ## AxisLine @@ -1189,11 +1189,11 @@ Settings related to axis line. ### AxisLine.Clone -public AxisLine Clone() +public AxisLine Clone() ### AxisLine.Copy -public void Copy(AxisLine axisLine) +public void Copy(AxisLine axisLine) ## AxisMinorSplitLine @@ -1205,29 +1205,29 @@ Minor split line of axis in grid area. ### AxisMinorSplitLine.autoColor -public bool autoColor +public bool autoColor auto color. ### AxisMinorSplitLine.distance -public float distance +public float distance The distance between the split line and axis line. ### AxisMinorSplitLine.vertsDirty -public override bool vertsDirty +public override bool vertsDirty ### AxisMinorSplitLine.ClearVerticesDirty -public override void ClearVerticesDirty() +public override void ClearVerticesDirty() ### AxisMinorSplitLine.Clone -public AxisMinorSplitLine Clone() +public AxisMinorSplitLine Clone() ### AxisMinorSplitLine.Copy -public void Copy(AxisMinorSplitLine splitLine) +public void Copy(AxisMinorSplitLine splitLine) ## AxisMinorTick @@ -1239,23 +1239,23 @@ Settings related to axis minor tick. ### AxisMinorTick.autoColor -public bool autoColor +public bool autoColor ### AxisMinorTick.vertsDirty -public override bool vertsDirty +public override bool vertsDirty ### AxisMinorTick.ClearVerticesDirty -public override void ClearVerticesDirty() +public override void ClearVerticesDirty() ### AxisMinorTick.Clone -public AxisMinorTick Clone() +public AxisMinorTick Clone() ### AxisMinorTick.Copy -public void Copy(AxisMinorTick axisTick) +public void Copy(AxisMinorTick axisTick) ## AxisName @@ -1265,11 +1265,11 @@ the name of axis. ### AxisName.Clone -public AxisName Clone() +public AxisName Clone() ### AxisName.Copy -public void Copy(AxisName axisName) +public void Copy(AxisName axisName) ## AxisSplitArea @@ -1279,15 +1279,15 @@ Split area of axis in grid area, not shown by default. ### AxisSplitArea.Clone -public AxisSplitArea Clone() +public AxisSplitArea Clone() ### AxisSplitArea.Copy -public void Copy(AxisSplitArea splitArea) +public void Copy(AxisSplitArea splitArea) ### AxisSplitArea.GetColor -public Color32 GetColor(int index, BaseAxisTheme theme) +public Color32 GetColor(int index, BaseAxisTheme theme) ## AxisSplitLine @@ -1297,29 +1297,29 @@ Split line of axis in grid area. ### AxisSplitLine.autoColor -public bool autoColor +public bool autoColor auto color. ### AxisSplitLine.distance -public float distance +public float distance The distance between the split line and axis line. ### AxisSplitLine.vertsDirty -public override bool vertsDirty +public override bool vertsDirty ### AxisSplitLine.ClearVerticesDirty -public override void ClearVerticesDirty() +public override void ClearVerticesDirty() ### AxisSplitLine.Clone -public AxisSplitLine Clone() +public AxisSplitLine Clone() ### AxisSplitLine.Copy -public void Copy(AxisSplitLine splitLine) +public void Copy(AxisSplitLine splitLine) ## AxisTheme @@ -1327,11 +1327,11 @@ class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) ### AxisTheme.base(theme) -public AxisTheme(ThemeType theme) : base(theme) +public AxisTheme(ThemeType theme) : base(theme) ### AxisTheme.AxisTheme -public AxisTheme(ThemeType theme) : base(theme) { } +public AxisTheme(ThemeType theme) : base(theme) { } ## AxisTick @@ -1341,20 +1341,20 @@ Settings related to axis tick. ### AxisTick.autoColor -public bool autoColor +public bool autoColor ### AxisTick.distance -public float distance +public float distance The distance between the tick line and axis line. ### AxisTick.Clone -public AxisTick Clone() +public AxisTick Clone() ### AxisTick.Copy -public void Copy(AxisTick axisTick) +public void Copy(AxisTick axisTick) ## Background @@ -1364,7 +1364,7 @@ Background component. ### Background.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() ## Bar @@ -1372,19 +1372,19 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer]( ### Bar.containerIndex -public int containerIndex +public int containerIndex ### Bar.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### Bar.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ### Bar.ConvertSerie -public static Bar ConvertSerie(Serie serie) +public static Bar ConvertSerie(Serie serie) ## BarChart @@ -1394,57 +1394,57 @@ Bar chart shows different data through the height of a bar, which is used in rec ### BarChart.DefaultBarChart -public void DefaultBarChart() +public void DefaultBarChart() default bar chart. ### BarChart.DefaultCapsuleBarChart -public void DefaultCapsuleBarChart() +public void DefaultCapsuleBarChart() default capsule bar chart. ### BarChart.DefaultCapsuleColumnChart -public void DefaultCapsuleColumnChart() +public void DefaultCapsuleColumnChart() default capsule column chart. ### BarChart.DefaultGroupedBarChart -public void DefaultGroupedBarChart() +public void DefaultGroupedBarChart() default grouped bar chart. ### BarChart.DefaultGroupedColumnChart -public void DefaultGroupedColumnChart() +public void DefaultGroupedColumnChart() default grouped column chart. ### BarChart.DefaultPercentBarChart -public void DefaultPercentBarChart() +public void DefaultPercentBarChart() default percent bar chart. ### BarChart.DefaultPercentColumnChart -public void DefaultPercentColumnChart() +public void DefaultPercentColumnChart() default percent column chart. ### BarChart.DefaultStackedBarChart -public void DefaultStackedBarChart() +public void DefaultStackedBarChart() default stacked bar chart. ### BarChart.DefaultStackedColumnChart -public void DefaultStackedColumnChart() +public void DefaultStackedColumnChart() default stacked column chart. ### BarChart.DefaultZebraBarChart -public void DefaultZebraBarChart() +public void DefaultZebraBarChart() default zebra bar chart. ### BarChart.DefaultZebraColumnChart -public void DefaultZebraColumnChart() +public void DefaultZebraColumnChart() default zebra column chart. ## BarType @@ -1465,11 +1465,11 @@ class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) / Su ### BaseAxisTheme.BaseAxisTheme -public BaseAxisTheme(ThemeType theme) : base(theme) +public BaseAxisTheme(ThemeType theme) : base(theme) ### BaseAxisTheme.Copy -public void Copy(BaseAxisTheme theme) +public void Copy(BaseAxisTheme theme) ## BaseChart @@ -1477,138 +1477,138 @@ class in XCharts.Runtime / Inherits from: [BaseGraph](#basegraph),[ISerializatio ### BaseChart.axis) -public virtual void InitAxisRuntimeData(Axis axis) +public virtual void InitAxisRuntimeData(Axis axis) ### BaseChart.chartHeight -public float chartHeight +public float chartHeight The height of chart. ### BaseChart.chartHideFlags -public override HideFlags chartHideFlags +public override HideFlags chartHideFlags ### BaseChart.chartMaxAnchor -public Vector2 chartMaxAnchor +public Vector2 chartMaxAnchor ### BaseChart.chartMinAnchor -public Vector2 chartMinAnchor +public Vector2 chartMinAnchor ### BaseChart.chartPivot -public Vector2 chartPivot +public Vector2 chartPivot ### BaseChart.chartPosition -public Vector3 chartPosition +public Vector3 chartPosition The position of chart. ### BaseChart.chartRect -public Rect chartRect +public Rect chartRect ### BaseChart.chartSizeDelta -public Vector2 chartSizeDelta +public Vector2 chartSizeDelta ### BaseChart.chartWidth -public float chartWidth +public float chartWidth The width of chart. ### BaseChart.chartX -public float chartX +public float chartX The x of chart. ### BaseChart.chartY -public float chartY +public float chartY The y of chart. ### BaseChart.components -public List<MainComponent> components +public List<MainComponent> components ### BaseChart.customDrawGaugePointerFunction -public CustomDrawGaugePointerFunction customDrawGaugePointerFunction +public CustomDrawGaugePointerFunction customDrawGaugePointerFunction 自定义仪表盘指针绘制委托。 ### BaseChart.debug -public DebugInfo debug +public DebugInfo debug ### BaseChart.onAxisPointerValueChanged -public Action<Axis, double> onAxisPointerValueChanged +public Action<Axis, double> onAxisPointerValueChanged 坐标轴变更数据索引时回调。参数:axis, dataIndex/dataValue ### BaseChart.onDraw -public Action<VertexHelper> onDraw +public Action<VertexHelper> onDraw 自定义绘制回调。在绘制Serie前调用。 ### BaseChart.onDrawAfterSerie -public Action<VertexHelper, Serie> onDrawAfterSerie +public Action<VertexHelper, Serie> onDrawAfterSerie 自定义Serie绘制回调。在每个Serie绘制完后调用。 ### BaseChart.onDrawBeforeSerie -public Action<VertexHelper, Serie> onDrawBeforeSerie +public Action<VertexHelper, Serie> onDrawBeforeSerie 自定义Serie绘制回调。在每个Serie绘制完前调用。 ### BaseChart.onDrawTop -public Action<VertexHelper> onDrawTop +public Action<VertexHelper> onDrawTop 自定义Top层绘制回调。在绘制Tooltip前调用。 ### BaseChart.onDrawUpper -public Action<VertexHelper> onDrawUpper +public Action<VertexHelper> onDrawUpper 自定义Upper层绘制回调。在绘制Tooltip前调用。 ### BaseChart.onInit -public Action onInit +public Action onInit The callback function of chart init. ### BaseChart.onLegendClick -public Action<Legend, int, string, bool> onLegendClick +public Action<Legend, int, string, bool> onLegendClick the callback function of click legend. ### BaseChart.onLegendEnter -public Action<Legend, int, string> onLegendEnter +public Action<Legend, int, string> onLegendEnter the callback function of enter legend. ### BaseChart.onLegendExit -public Action<Legend, int, string> onLegendExit +public Action<Legend, int, string> onLegendExit the callback function of exit legend. ### BaseChart.onPointerClickBar -public Action<PointerEventData, int> onPointerClickBar +public Action<PointerEventData, int> onPointerClickBar the callback function of click bar. ### BaseChart.onPointerClickPie -public Action<PointerEventData, int, int> onPointerClickPie +public Action<PointerEventData, int, int> onPointerClickPie the callback function of pointer click pie area. ### BaseChart.onPointerEnterPie -public Action<int, int> onPointerEnterPie +public Action<int, int> onPointerEnterPie the callback function of pointer enter pie area. ### BaseChart.onSerieClick -public Action<SerieEventData> onSerieClick +public Action<SerieEventData> onSerieClick > Since `v3.6.0` @@ -1616,7 +1616,7 @@ the callback function of pointer click serie. ### BaseChart.onSerieDown -public Action<SerieEventData> onSerieDown +public Action<SerieEventData> onSerieDown > Since `v3.6.0` @@ -1624,7 +1624,7 @@ the callback function of pointer down serie. ### BaseChart.onSerieEnter -public Action<SerieEventData> onSerieEnter +public Action<SerieEventData> onSerieEnter > Since `v3.6.0` @@ -1632,7 +1632,7 @@ the callback function of pointer enter serie. ### BaseChart.onSerieExit -public Action<SerieEventData> onSerieExit +public Action<SerieEventData> onSerieExit > Since `v3.6.0` @@ -1640,150 +1640,150 @@ the callback function of pointer exit serie. ### BaseChart.onUpdate -public Action onUpdate +public Action onUpdate The callback function of chart update. ### BaseChart.series -public List<Serie> series +public List<Serie> series ### BaseChart.settings -public Settings settings +public Settings settings Global parameter setting component. ### BaseChart.theme -public ThemeStyle theme +public ThemeStyle theme ### BaseChart.typeListForComponent -public Dictionary<Type, FieldInfo> typeListForComponent +public Dictionary<Type, FieldInfo> typeListForComponent ### BaseChart.typeListForSerie -public Dictionary<Type, FieldInfo> typeListForSerie +public Dictionary<Type, FieldInfo> typeListForSerie ### BaseChart.AddChartComponent -public MainComponent AddChartComponent(Type type) +public MainComponent AddChartComponent(Type type) ### BaseChart.AddChartComponent<T> -public T AddChartComponent<T>() where T : MainComponent +public T AddChartComponent<T>() where T : MainComponent ### BaseChart.AddChartComponentWhenNoExist<T> -public T AddChartComponentWhenNoExist<T>() where T : MainComponent +public T AddChartComponentWhenNoExist<T>() where T : MainComponent ### BaseChart.AddData -public SerieData AddData(int serieIndex, DateTime time, double yValue, string dataName = null, string dataId = null) +public SerieData AddData(int serieIndex, DateTime time, double yValue, string dataName = null, string dataId = null) Add a (time,y) data to serie. -public SerieData AddData(int serieIndex, double data, string dataName = null, string dataId = null) +public SerieData AddData(int serieIndex, double data, string dataName = null, string dataId = null) Add a data to serie. -public SerieData AddData(int serieIndex, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null) +public SerieData AddData(int serieIndex, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null) -public SerieData AddData(int serieIndex, double xValue, double yValue, string dataName = null, string dataId = null) +public SerieData AddData(int serieIndex, double xValue, double yValue, string dataName = null, string dataId = null) Add a (x,y) data to serie. -public SerieData AddData(int serieIndex, List<double> multidimensionalData, string dataName = null, string dataId = null) +public SerieData AddData(int serieIndex, List<double> multidimensionalData, string dataName = null, string dataId = null) Add an arbitray dimension data to serie,such as (x,y,z,...). -public SerieData AddData(int serieIndex, params double[] multidimensionalData) +public SerieData AddData(int serieIndex, params double[] multidimensionalData) Add an arbitray dimension data to serie,such as (x,y,z,...). -public SerieData AddData(string serieName, DateTime time, double yValue, string dataName = null, string dataId = null) +public SerieData AddData(string serieName, DateTime time, double yValue, string dataName = null, string dataId = null) Add a (time,y) data to serie. -public SerieData AddData(string serieName, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null) +public SerieData AddData(string serieName, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null) -public SerieData AddData(string serieName, double xValue, double yValue, string dataName = null, string dataId = null) +public SerieData AddData(string serieName, double xValue, double yValue, string dataName = null, string dataId = null) Add a (x,y) data to serie. -public SerieData AddData(string serieName, List<double> multidimensionalData, string dataName = null, string dataId = null) +public SerieData AddData(string serieName, List<double> multidimensionalData, string dataName = null, string dataId = null) Add an arbitray dimension data to serie,such as (x,y,z,...). -public SerieData AddData(string serieName, params double[] multidimensionalData) +public SerieData AddData(string serieName, params double[] multidimensionalData) Add an arbitray dimension data to serie,such as (x,y,z,...). ### BaseChart.AddLink -public SerieDataLink AddLink(int serieIndex, string sourceId, string targetId, double value = 0) +public SerieDataLink AddLink(int serieIndex, string sourceId, string targetId, double value = 0) Add a link data to serie. ### BaseChart.AddSerie<T> -public T AddSerie<T>(string serieName = null, bool show = true, bool addToHead = false) where T : Serie +public T AddSerie<T>(string serieName = null, bool show = true, bool addToHead = false) where T : Serie ### BaseChart.AddXAxisData -public void AddXAxisData(string category, int xAxisIndex = 0) +public void AddXAxisData(string category, int xAxisIndex = 0) Add a category data to xAxis. ### BaseChart.AddXAxisIcon -public void AddXAxisIcon(Sprite icon, int xAxisIndex = 0) +public void AddXAxisIcon(Sprite icon, int xAxisIndex = 0) Add an icon to xAxis. ### BaseChart.AddYAxisData -public void AddYAxisData(string category, int yAxisIndex = 0) +public void AddYAxisData(string category, int yAxisIndex = 0) Add a category data to yAxis. ### BaseChart.AddYAxisIcon -public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0) +public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0) Add an icon to yAxis. ### BaseChart.AnimationEnable -public void AnimationEnable(bool flag) +public void AnimationEnable(bool flag) Whether enable serie animations. ### BaseChart.AnimationFadeIn -public void AnimationFadeIn(bool reset = true) +public void AnimationFadeIn(bool reset = true) Start all serie fadein animations. ### BaseChart.AnimationFadeOut -public void AnimationFadeOut() +public void AnimationFadeOut() Start all serie fadeout animations. ### BaseChart.AnimationPause -public void AnimationPause() +public void AnimationPause() Pause all animations. ### BaseChart.AnimationReset -public void AnimationReset() +public void AnimationReset() Reset all animations. ### BaseChart.AnimationResume -public void AnimationResume() +public void AnimationResume() Resume all animations. ### BaseChart.CanAddChartComponent -public bool CanAddChartComponent(Type type) +public bool CanAddChartComponent(Type type) ### BaseChart.CanAddSerie -public bool CanAddSerie(Type type) +public bool CanAddSerie(Type type) ### BaseChart.CanAddSerie<T> -public bool CanAddSerie<T>() where T : Serie +public bool CanAddSerie<T>() where T : Serie ### BaseChart.CancelTooltip -public void CancelTooltip() +public void CancelTooltip() > Since `v3.7.0` @@ -1791,19 +1791,19 @@ cancel tooltip. ### BaseChart.CanMultipleComponent -public bool CanMultipleComponent(Type type) +public bool CanMultipleComponent(Type type) ### BaseChart.ClampInChart -public void ClampInChart(ref Vector3 pos) +public void ClampInChart(ref Vector3 pos) ### BaseChart.ClampInGrid -public Vector3 ClampInGrid(GridCoord grid, Vector3 pos) +public Vector3 ClampInGrid(GridCoord grid, Vector3 pos) ### BaseChart.ClearComponentData -public virtual void ClearComponentData() +public virtual void ClearComponentData() > Since `v3.4.0` @@ -1811,12 +1811,12 @@ Clear the data of all components. ### BaseChart.ClearData -public virtual void ClearData() +public virtual void ClearData() Clear all components and series data. Note: serie only empties the data and does not remove serie. ### BaseChart.ClearSerieData -public virtual void ClearSerieData() +public virtual void ClearSerieData() > Since `v3.4.0` @@ -1824,7 +1824,7 @@ Clear the data of all series. ### BaseChart.ClearSerieLinks -public virtual void ClearSerieLinks() +public virtual void ClearSerieLinks() > Since `v3.10.0` @@ -1832,25 +1832,25 @@ Clear the link data of all series. ### BaseChart.ClickLegendButton -public void ClickLegendButton(int legendIndex, string legendName, bool show) +public void ClickLegendButton(int legendIndex, string legendName, bool show) 点击图例按钮 ### BaseChart.ConvertSerie -public bool ConvertSerie(Serie serie, Type type) +public bool ConvertSerie(Serie serie, Type type) ### BaseChart.ConvertSerie<T> -public bool ConvertSerie<T>(Serie serie) where T : Serie +public bool ConvertSerie<T>(Serie serie) where T : Serie ### BaseChart.ConvertXYAxis -public void ConvertXYAxis(int index) +public void ConvertXYAxis(int index) 转换X轴和Y轴的配置 ### BaseChart.EnsureChartComponent<T> -public T EnsureChartComponent<T>() where T : MainComponent +public T EnsureChartComponent<T>() where T : MainComponent > Since `v3.6.0` @@ -1858,71 +1858,71 @@ Ensure the chart has the component, if not, add it. Note: it may fail to add. ### BaseChart.GenerateDefaultSerieName -public string GenerateDefaultSerieName() +public string GenerateDefaultSerieName() ### BaseChart.GetAllSerieDataCount -public int GetAllSerieDataCount() +public int GetAllSerieDataCount() ### BaseChart.GetChartBackgroundColor -public Color32 GetChartBackgroundColor() +public Color32 GetChartBackgroundColor() ### BaseChart.GetChartComponent<T> -public T GetChartComponent<T>(int index = 0) where T : MainComponent +public T GetChartComponent<T>(int index = 0) where T : MainComponent ### BaseChart.GetChartComponentNum -public int GetChartComponentNum(Type type) +public int GetChartComponentNum(Type type) ### BaseChart.GetChartComponentNum<T> -public int GetChartComponentNum<T>() where T : MainComponent +public int GetChartComponentNum<T>() where T : MainComponent ### BaseChart.GetChartComponents<T> -public List<MainComponent> GetChartComponents<T>() where T : MainComponent +public List<MainComponent> GetChartComponents<T>() where T : MainComponent ### BaseChart.GetData -public double GetData(int serieIndex, int dataIndex, int dimension = 1) +public double GetData(int serieIndex, int dataIndex, int dimension = 1) ### BaseChart.GetDataZoomOfAxis -public DataZoom GetDataZoomOfAxis(Axis axis) +public DataZoom GetDataZoomOfAxis(Axis axis) ### BaseChart.GetDataZoomOfSerie -public void GetDataZoomOfSerie(Serie serie, out DataZoom xDataZoom, out DataZoom yDataZoom) +public void GetDataZoomOfSerie(Serie serie, out DataZoom xDataZoom, out DataZoom yDataZoom) ### BaseChart.GetGrid -public GridCoord GetGrid(Vector2 local) +public GridCoord GetGrid(Vector2 local) ### BaseChart.GetGridOfDataZoom -public GridCoord GetGridOfDataZoom(DataZoom dataZoom) +public GridCoord GetGridOfDataZoom(DataZoom dataZoom) ### BaseChart.GetItemColor -public Color32 GetItemColor(Serie serie) +public Color32 GetItemColor(Serie serie) -public Color32 GetItemColor(Serie serie, SerieData serieData, int colorIndex) +public Color32 GetItemColor(Serie serie, SerieData serieData, int colorIndex) ### BaseChart.GetLegendRealShowNameColor -public Color32 GetLegendRealShowNameColor(string name) +public Color32 GetLegendRealShowNameColor(string name) ### BaseChart.GetLegendRealShowNameIndex -public int GetLegendRealShowNameIndex(string name) +public int GetLegendRealShowNameIndex(string name) ### BaseChart.GetMarkColor -public Color32 GetMarkColor(Serie serie, SerieData serieData) +public Color32 GetMarkColor(Serie serie, SerieData serieData) > Since `v3.4.0` @@ -1930,244 +1930,244 @@ public Color32 GetMarkColor(Serie serie, SerieData serieData) ### BaseChart.GetOrAddChartComponent<T> -public T GetOrAddChartComponent<T>() where T : MainComponent +public T GetOrAddChartComponent<T>() where T : MainComponent ### BaseChart.GetPainter -public Painter GetPainter(int index) +public Painter GetPainter(int index) ### BaseChart.GetSerie -public Serie GetSerie(int serieIndex) +public Serie GetSerie(int serieIndex) ### BaseChart.GetSerie<T> -public T GetSerie<T>(int serieIndex) where T : Serie +public T GetSerie<T>(int serieIndex) where T : Serie ### BaseChart.GetSerieBarGap<T> -public float GetSerieBarGap<T>() where T : Serie +public float GetSerieBarGap<T>() where T : Serie ### BaseChart.GetSerieBarRealCount<T> -public int GetSerieBarRealCount<T>() where T : Serie +public int GetSerieBarRealCount<T>() where T : Serie ### BaseChart.GetSerieIndexIfStack<T> -public int GetSerieIndexIfStack<T>(Serie currSerie) where T : Serie +public int GetSerieIndexIfStack<T>(Serie currSerie) where T : Serie ### BaseChart.GetSerieSameStackTotalValue<T> -public double GetSerieSameStackTotalValue<T>(string stack, int dataIndex) where T : Serie +public double GetSerieSameStackTotalValue<T>(string stack, int dataIndex) where T : Serie ### BaseChart.GetSeriesMinMaxValue -public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue) +public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue) ### BaseChart.GetSerieTotalGap<T> -public float GetSerieTotalGap<T>(float categoryWidth, float gap, int index) where T : Serie +public float GetSerieTotalGap<T>(float categoryWidth, float gap, int index) where T : Serie ### BaseChart.GetSerieTotalWidth<T> -public float GetSerieTotalWidth<T>(float categoryWidth, float gap, int realBarCount) where T : Serie +public float GetSerieTotalWidth<T>(float categoryWidth, float gap, int realBarCount) where T : Serie ### BaseChart.GetTitlePosition -public Vector3 GetTitlePosition(Title title) +public Vector3 GetTitlePosition(Title title) ### BaseChart.GetVisualMapOfSerie -public VisualMap GetVisualMapOfSerie(Serie serie) +public VisualMap GetVisualMapOfSerie(Serie serie) ### BaseChart.GetXDataZoomOfSerie -public DataZoom GetXDataZoomOfSerie(Serie serie) +public DataZoom GetXDataZoomOfSerie(Serie serie) ### BaseChart.GetXLerpColor -public Color32 GetXLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid) +public Color32 GetXLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid) ### BaseChart.GetYLerpColor -public Color32 GetYLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid) +public Color32 GetYLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid) ### BaseChart.HasChartComponent -public bool HasChartComponent(Type type) +public bool HasChartComponent(Type type) ### BaseChart.HasChartComponent<T> -public bool HasChartComponent<T>() +public bool HasChartComponent<T>() ### BaseChart.HasSerie -public bool HasSerie(Type type) +public bool HasSerie(Type type) ### BaseChart.HasSerie<T> -public bool HasSerie<T>() where T : Serie +public bool HasSerie<T>() where T : Serie ### BaseChart.Init -public void Init(bool defaultChart = true) +public void Init(bool defaultChart = true) ### BaseChart.InitAxisRuntimeData -public virtual void InitAxisRuntimeData(Axis axis) { } +public virtual void InitAxisRuntimeData(Axis axis) { } ### BaseChart.InsertSerie -public void InsertSerie(Serie serie, int index = -1, bool addToHead = false) +public void InsertSerie(Serie serie, int index = -1, bool addToHead = false) ### BaseChart.InsertSerie<T> -public T InsertSerie<T>(int index, string serieName = null, bool show = true) where T : Serie +public T InsertSerie<T>(int index, string serieName = null, bool show = true) where T : Serie ### BaseChart.Internal_CheckAnimation -public void Internal_CheckAnimation() +public void Internal_CheckAnimation() ### BaseChart.IsActiveByLegend -public virtual bool IsActiveByLegend(string legendName) +public virtual bool IsActiveByLegend(string legendName) Whether serie is activated. ### BaseChart.IsAllAxisCategory -public bool IsAllAxisCategory() +public bool IsAllAxisCategory() 纯类目轴。 ### BaseChart.IsAllAxisValue -public bool IsAllAxisValue() +public bool IsAllAxisValue() reutrn true when all the show axis is `Value` type. ### BaseChart.IsInAnyGrid -public bool IsInAnyGrid(Vector2 local) +public bool IsInAnyGrid(Vector2 local) ### BaseChart.IsInChart -public bool IsInChart(float x, float y) +public bool IsInChart(float x, float y) ### BaseChart.IsSerieName -public bool IsSerieName(string name) +public bool IsSerieName(string name) ### BaseChart.MoveDownSerie -public bool MoveDownSerie(int serieIndex) +public bool MoveDownSerie(int serieIndex) ### BaseChart.MoveUpSerie -public bool MoveUpSerie(int serieIndex) +public bool MoveUpSerie(int serieIndex) ### BaseChart.OnAfterDeserialize -public void OnAfterDeserialize() +public void OnAfterDeserialize() ### BaseChart.OnBeforeSerialize -public void OnBeforeSerialize() +public void OnBeforeSerialize() ### BaseChart.OnBeginDrag -public override void OnBeginDrag(PointerEventData eventData) +public override void OnBeginDrag(PointerEventData eventData) ### BaseChart.OnDataZoomRangeChanged -public virtual void OnDataZoomRangeChanged(DataZoom dataZoom) +public virtual void OnDataZoomRangeChanged(DataZoom dataZoom) ### BaseChart.OnDrag -public override void OnDrag(PointerEventData eventData) +public override void OnDrag(PointerEventData eventData) ### BaseChart.OnEndDrag -public override void OnEndDrag(PointerEventData eventData) +public override void OnEndDrag(PointerEventData eventData) ### BaseChart.OnLegendButtonClick -public virtual void OnLegendButtonClick(int index, string legendName, bool show) +public virtual void OnLegendButtonClick(int index, string legendName, bool show) ### BaseChart.OnLegendButtonEnter -public virtual void OnLegendButtonEnter(int index, string legendName) +public virtual void OnLegendButtonEnter(int index, string legendName) ### BaseChart.OnLegendButtonExit -public virtual void OnLegendButtonExit(int index, string legendName) +public virtual void OnLegendButtonExit(int index, string legendName) ### BaseChart.OnPointerClick -public override void OnPointerClick(PointerEventData eventData) +public override void OnPointerClick(PointerEventData eventData) ### BaseChart.OnPointerDown -public override void OnPointerDown(PointerEventData eventData) +public override void OnPointerDown(PointerEventData eventData) ### BaseChart.OnPointerEnter -public override void OnPointerEnter(PointerEventData eventData) +public override void OnPointerEnter(PointerEventData eventData) ### BaseChart.OnPointerExit -public override void OnPointerExit(PointerEventData eventData) +public override void OnPointerExit(PointerEventData eventData) ### BaseChart.OnPointerUp -public override void OnPointerUp(PointerEventData eventData) +public override void OnPointerUp(PointerEventData eventData) ### BaseChart.OnScroll -public override void OnScroll(PointerEventData eventData) +public override void OnScroll(PointerEventData eventData) ### BaseChart.RefreshBasePainter -public void RefreshBasePainter() +public void RefreshBasePainter() ### BaseChart.RefreshChart -public void RefreshChart(int serieIndex) +public void RefreshChart(int serieIndex) Redraw chart serie in next frame. -public void RefreshChart(Serie serie) +public void RefreshChart(Serie serie) Redraw chart serie in next frame. ### BaseChart.RefreshDataZoom -public void RefreshDataZoom() +public void RefreshDataZoom() 在下一帧刷新DataZoom ### BaseChart.RefreshGraph -public override void RefreshGraph() +public override void RefreshGraph() ### BaseChart.RefreshPainter -public void RefreshPainter(Serie serie) +public void RefreshPainter(Serie serie) ### BaseChart.RefreshTopPainter -public void RefreshTopPainter() +public void RefreshTopPainter() ### BaseChart.RefreshUpperPainter -public void RefreshUpperPainter() +public void RefreshUpperPainter() ### BaseChart.RemoveAllChartComponent -public void RemoveAllChartComponent() +public void RemoveAllChartComponent() ### BaseChart.RemoveAllSerie -public virtual void RemoveAllSerie() +public virtual void RemoveAllSerie() > Since `v3.2.0` @@ -2175,45 +2175,45 @@ Remove all of them Serie. This interface is used when Serie needs to be removed ### BaseChart.RemoveChartComponent -public bool RemoveChartComponent(MainComponent component) +public bool RemoveChartComponent(MainComponent component) ### BaseChart.RemoveChartComponent<T> -public bool RemoveChartComponent<T>(int index = 0) +public bool RemoveChartComponent<T>(int index = 0) ### BaseChart.RemoveChartComponents -public int RemoveChartComponents(Type type) +public int RemoveChartComponents(Type type) ### BaseChart.RemoveChartComponents<T> -public int RemoveChartComponents<T>() +public int RemoveChartComponents<T>() ### BaseChart.RemoveData -public virtual void RemoveData(string serieName) +public virtual void RemoveData(string serieName) Remove legend and serie by name. ### BaseChart.RemoveSerie -public void RemoveSerie(int serieIndex) +public void RemoveSerie(int serieIndex) -public void RemoveSerie(Serie serie) +public void RemoveSerie(Serie serie) ### BaseChart.RemoveSerie<T> -public void RemoveSerie<T>() where T : Serie +public void RemoveSerie<T>() where T : Serie ### BaseChart.ReplaceSerie -public bool ReplaceSerie(Serie oldSerie, Serie newSerie) +public bool ReplaceSerie(Serie oldSerie, Serie newSerie) ### BaseChart.ResetChartStatus -public void ResetChartStatus() +public void ResetChartStatus() > Since `v3.10.0` @@ -2221,17 +2221,17 @@ reset chart status. When some parameters are set, due to the animation effect, t ### BaseChart.ResetDataIndex -public bool ResetDataIndex(int serieIndex) +public bool ResetDataIndex(int serieIndex) 重置serie的数据项索引。避免数据项索引异常。 ### BaseChart.SetBasePainterMaterial -public void SetBasePainterMaterial(Material material) +public void SetBasePainterMaterial(Material material) 设置Base Painter的材质球 ### BaseChart.SetInsertDataToHead -public void SetInsertDataToHead(bool insertDataToHead) +public void SetInsertDataToHead(bool insertDataToHead) > Since `v3.11.0` @@ -2239,39 +2239,39 @@ set insert data to head. ### BaseChart.SetMaxCache -public void SetMaxCache(int maxCache) +public void SetMaxCache(int maxCache) 设置可缓存的最大数据量。当数据量超过该值时,会自动删除第一个值再加入最新值。 ### BaseChart.SetPainterActive -public void SetPainterActive(int index, bool flag) +public void SetPainterActive(int index, bool flag) ### BaseChart.SetSerieActive -public void SetSerieActive(int serieIndex, bool active) +public void SetSerieActive(int serieIndex, bool active) Whether to show serie. -public void SetSerieActive(Serie serie, bool active) +public void SetSerieActive(Serie serie, bool active) ### BaseChart.SetSeriePainterMaterial -public void SetSeriePainterMaterial(Material material) +public void SetSeriePainterMaterial(Material material) 设置Serie Painter的材质球 ### BaseChart.SetTopPainterMaterial -public void SetTopPainterMaterial(Material material) +public void SetTopPainterMaterial(Material material) 设置Top Painter的材质球 ### BaseChart.SetUpperPainterMaterial -public void SetUpperPainterMaterial(Material material) +public void SetUpperPainterMaterial(Material material) 设置Upper Painter的材质球 ### BaseChart.TriggerTooltip -public bool TriggerTooltip(Vector3 localPosition) +public bool TriggerTooltip(Vector3 localPosition) > Since `v3.7.0` @@ -2280,69 +2280,69 @@ trigger tooltip by chart local position. ### BaseChart.TryAddChartComponent -public bool TryAddChartComponent(Type type) +public bool TryAddChartComponent(Type type) ### BaseChart.TryAddChartComponent<T> -public bool TryAddChartComponent<T>(out T component) where T : MainComponent +public bool TryAddChartComponent<T>(out T component) where T : MainComponent ### BaseChart.TryGetChartComponent<T> -public bool TryGetChartComponent<T>(out T component, int index = 0) +public bool TryGetChartComponent<T>(out T component, int index = 0) ### BaseChart.UpdateData -public bool UpdateData(int serieIndex, int dataIndex, double value) +public bool UpdateData(int serieIndex, int dataIndex, double value) Update serie data by serie index. -public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value) +public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value) 更新指定系列指定索引指定维数的数据。维数从0开始。 -public bool UpdateData(int serieIndex, int dataIndex, List<double> multidimensionalData) +public bool UpdateData(int serieIndex, int dataIndex, List<double> multidimensionalData) 更新指定系列指定索引的数据项的多维数据。 -public bool UpdateData(string serieName, int dataIndex, int dimension, double value) +public bool UpdateData(string serieName, int dataIndex, int dimension, double value) 更新指定系列指定索引指定维数的数据。维数从0开始。 -public bool UpdateData(string serieName, int dataIndex, List<double> multidimensionalData) +public bool UpdateData(string serieName, int dataIndex, List<double> multidimensionalData) 更新指定系列指定索引的数据项的多维数据。 ### BaseChart.UpdateDataName -public bool UpdateDataName(int serieIndex, int dataIndex, string dataName) +public bool UpdateDataName(int serieIndex, int dataIndex, string dataName) Update serie data name. ### BaseChart.UpdateLegendColor -public virtual void UpdateLegendColor(string legendName, bool active) +public virtual void UpdateLegendColor(string legendName, bool active) ### BaseChart.UpdateTheme -public void UpdateTheme(Theme theme) +public void UpdateTheme(Theme theme) Update chart theme info. ### BaseChart.UpdateXAxisData -public void UpdateXAxisData(int index, string category, int xAxisIndex = 0) +public void UpdateXAxisData(int index, string category, int xAxisIndex = 0) Update category data. ### BaseChart.UpdateXAxisIcon -public void UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0) +public void UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0) Update xAxis icon. ### BaseChart.UpdateYAxisData -public void UpdateYAxisData(int index, string category, int yAxisIndex = 0) +public void UpdateYAxisData(int index, string category, int yAxisIndex = 0) Update category data. ### BaseChart.UpdateYAxisIcon -public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0) +public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0) 更新Y轴图标。 ## BaseGraph @@ -2351,143 +2351,143 @@ class in XCharts.Runtime / Inherits from: [MaskableGraphic](https://docs.unity3d ### BaseGraph.chartHideFlags -public virtual HideFlags chartHideFlags +public virtual HideFlags chartHideFlags ### BaseGraph.clickPos -public Vector2 clickPos +public Vector2 clickPos ### BaseGraph.forceOpenRaycastTarget -public bool forceOpenRaycastTarget +public bool forceOpenRaycastTarget 强制开启鼠标事件检测。 ### BaseGraph.graphAnchoredPosition -public Vector2 graphAnchoredPosition +public Vector2 graphAnchoredPosition ### BaseGraph.graphHeight -public float graphHeight +public float graphHeight The height of graph. ### BaseGraph.graphMaxAnchor -public Vector2 graphMaxAnchor +public Vector2 graphMaxAnchor ### BaseGraph.graphMinAnchor -public Vector2 graphMinAnchor +public Vector2 graphMinAnchor ### BaseGraph.graphPivot -public Vector2 graphPivot +public Vector2 graphPivot ### BaseGraph.graphPosition -public Vector3 graphPosition +public Vector3 graphPosition The position of graph. ### BaseGraph.graphRect -public Rect graphRect +public Rect graphRect ### BaseGraph.graphSizeDelta -public Vector2 graphSizeDelta +public Vector2 graphSizeDelta ### BaseGraph.graphWidth -public float graphWidth +public float graphWidth The width of graph. ### BaseGraph.graphX -public float graphX +public float graphX The x of graph. ### BaseGraph.graphY -public float graphY +public float graphY The y of graph. ### BaseGraph.isPointerClick -public bool isPointerClick +public bool isPointerClick Whether the mouse click the chart. ### BaseGraph.isPointerInChart -public bool isPointerInChart +public bool isPointerInChart Whether the mouse pointer is in the chart. ### BaseGraph.onBeginDrag -public Action<PointerEventData, BaseGraph> onBeginDrag +public Action<PointerEventData, BaseGraph> onBeginDrag 鼠标开始拖拽回调。 ### BaseGraph.onDrag -public Action<PointerEventData, BaseGraph> onDrag +public Action<PointerEventData, BaseGraph> onDrag 鼠标拖拽回调。 ### BaseGraph.onEndDrag -public Action<PointerEventData, BaseGraph> onEndDrag +public Action<PointerEventData, BaseGraph> onEndDrag 鼠标结束拖拽回调。 ### BaseGraph.onPointerClick -public Action<PointerEventData, BaseGraph> onPointerClick +public Action<PointerEventData, BaseGraph> onPointerClick 鼠标点击回调。 ### BaseGraph.onPointerDown -public Action<PointerEventData, BaseGraph> onPointerDown +public Action<PointerEventData, BaseGraph> onPointerDown 鼠标按下回调。 ### BaseGraph.onPointerEnter -public Action<PointerEventData, BaseGraph> onPointerEnter +public Action<PointerEventData, BaseGraph> onPointerEnter 鼠标进入回调。 ### BaseGraph.onPointerExit -public Action<PointerEventData, BaseGraph> onPointerExit +public Action<PointerEventData, BaseGraph> onPointerExit 鼠标退出回调。 ### BaseGraph.onPointerUp -public Action<PointerEventData, BaseGraph> onPointerUp +public Action<PointerEventData, BaseGraph> onPointerUp 鼠标弹起回调。 ### BaseGraph.onScroll -public Action<PointerEventData, BaseGraph> onScroll +public Action<PointerEventData, BaseGraph> onScroll 鼠标滚动回调。 ### BaseGraph.painter -public Painter painter +public Painter painter ### BaseGraph.pointerPos -public Vector2 pointerPos +public Vector2 pointerPos The postion of pointer move. ### BaseGraph.warningInfo -public string warningInfo +public string warningInfo 警告信息。 ### BaseGraph.CheckWarning -public string CheckWarning() +public string CheckWarning() 检测警告信息。 ### BaseGraph.LocalPointToScreenPoint -public Vector2 LocalPointToScreenPoint(Vector2 localPoint) +public Vector2 LocalPointToScreenPoint(Vector2 localPoint) > Since `v3.7.0` @@ -2495,7 +2495,7 @@ chart local point to screen point. ### BaseGraph.LocalPointToWorldPoint -public Vector2 LocalPointToWorldPoint(Vector2 localPoint) +public Vector2 LocalPointToWorldPoint(Vector2 localPoint) > Since `v3.7.0` @@ -2503,71 +2503,71 @@ chart local point to world point. ### BaseGraph.OnBeginDrag -public virtual void OnBeginDrag(PointerEventData eventData) +public virtual void OnBeginDrag(PointerEventData eventData) ### BaseGraph.OnDrag -public virtual void OnDrag(PointerEventData eventData) +public virtual void OnDrag(PointerEventData eventData) ### BaseGraph.OnEndDrag -public virtual void OnEndDrag(PointerEventData eventData) +public virtual void OnEndDrag(PointerEventData eventData) ### BaseGraph.OnPointerClick -public virtual void OnPointerClick(PointerEventData eventData) +public virtual void OnPointerClick(PointerEventData eventData) ### BaseGraph.OnPointerDown -public virtual void OnPointerDown(PointerEventData eventData) +public virtual void OnPointerDown(PointerEventData eventData) ### BaseGraph.OnPointerEnter -public virtual void OnPointerEnter(PointerEventData eventData) +public virtual void OnPointerEnter(PointerEventData eventData) ### BaseGraph.OnPointerExit -public virtual void OnPointerExit(PointerEventData eventData) +public virtual void OnPointerExit(PointerEventData eventData) ### BaseGraph.OnPointerUp -public virtual void OnPointerUp(PointerEventData eventData) +public virtual void OnPointerUp(PointerEventData eventData) ### BaseGraph.OnScroll -public virtual void OnScroll(PointerEventData eventData) +public virtual void OnScroll(PointerEventData eventData) ### BaseGraph.RebuildChartObject -public void RebuildChartObject() +public void RebuildChartObject() 移除并重新创建所有图表的Object。 ### BaseGraph.RefreshAllComponent -public void RefreshAllComponent() +public void RefreshAllComponent() ### BaseGraph.RefreshGraph -public virtual void RefreshGraph() +public virtual void RefreshGraph() Redraw graph in next frame. ### BaseGraph.SaveAsImage -public void SaveAsImage(string imageType = "png", string savePath = "") +public void SaveAsImage(string imageType = "png", string savePath = "") 保存图表为图片。 ### BaseGraph.ScreenPointToChartPoint -public bool ScreenPointToChartPoint(Vector2 screenPoint, out Vector2 chartPoint) +public bool ScreenPointToChartPoint(Vector2 screenPoint, out Vector2 chartPoint) ### BaseGraph.SetPainterDirty -public void SetPainterDirty() +public void SetPainterDirty() 重新初始化Painter ### BaseGraph.SetSize -public virtual void SetSize(float width, float height) +public virtual void SetSize(float width, float height) 设置图形的宽高(在非stretch pivot下才有效,其他情况需要自己调整RectTransform) ## BaseLine @@ -2578,28 +2578,28 @@ Settings related to base line. ### BaseLine.BaseLine -public BaseLine(bool show) : base() +public BaseLine(bool show) : base() ### BaseLine.Copy -public void Copy(BaseLine axisLine) +public void Copy(BaseLine axisLine) ### BaseLine.GetColor -public Color32 GetColor(Color32 themeColor) +public Color32 GetColor(Color32 themeColor) ### BaseLine.GetLength -public float GetLength(float themeLength) +public float GetLength(float themeLength) ### BaseLine.GetType -public LineStyle.Type GetType(LineStyle.Type themeType) +public LineStyle.Type GetType(LineStyle.Type themeType) ### BaseLine.GetWidth -public float GetWidth(float themeWidth) +public float GetWidth(float themeWidth) ## BaseScatter @@ -2607,11 +2607,11 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer]( ### BaseScatter.containerIndex -public int containerIndex +public int containerIndex ### BaseScatter.containterInstanceId -public int containterInstanceId +public int containterInstanceId ## BaseSerie @@ -2619,117 +2619,117 @@ class in XCharts.Runtime / Subclasses: [Serie](#serie) ### BaseSerie.anyDirty -public bool anyDirty +public bool anyDirty ### BaseSerie.ClearData() -public virtual void ClearData() +public virtual void ClearData() ### BaseSerie.componentDirty -public virtual bool componentDirty +public virtual bool componentDirty ### BaseSerie.defaultColorBy -public virtual SerieColorBy defaultColorBy +public virtual SerieColorBy defaultColorBy ### BaseSerie.gameObject -public GameObject gameObject +public GameObject gameObject ### BaseSerie.handler -public SerieHandler handler +public SerieHandler handler ### BaseSerie.multiDimensionLabel -public virtual bool multiDimensionLabel +public virtual bool multiDimensionLabel ### BaseSerie.OnBeforeSerialize() -public virtual void OnBeforeSerialize() +public virtual void OnBeforeSerialize() ### BaseSerie.OnDataUpdate() -public virtual void OnDataUpdate() +public virtual void OnDataUpdate() ### BaseSerie.painter -public Painter painter +public Painter painter ### BaseSerie.refreshComponent -public Action refreshComponent +public Action refreshComponent ### BaseSerie.titleJustForSerie -public virtual bool titleJustForSerie +public virtual bool titleJustForSerie ### BaseSerie.useSortData -public virtual bool useSortData +public virtual bool useSortData ### BaseSerie.vertsDirty -public virtual bool vertsDirty +public virtual bool vertsDirty ### BaseSerie.ClearComponentDirty -public virtual void ClearComponentDirty() +public virtual void ClearComponentDirty() ### BaseSerie.ClearData -public virtual void ClearData() { } +public virtual void ClearData() { } ### BaseSerie.ClearDirty -public virtual void ClearDirty() +public virtual void ClearDirty() ### BaseSerie.ClearVerticesDirty -public virtual void ClearVerticesDirty() +public virtual void ClearVerticesDirty() ### BaseSerie.IsComponentDirty -public static bool IsComponentDirty(ChildComponent component) +public static bool IsComponentDirty(ChildComponent component) ### BaseSerie.IsVertsDirty -public static bool IsVertsDirty(ChildComponent component) +public static bool IsVertsDirty(ChildComponent component) ### BaseSerie.OnAfterDeserialize -public virtual void OnAfterDeserialize() +public virtual void OnAfterDeserialize() ### BaseSerie.OnBeforeSerialize -public virtual void OnBeforeSerialize() { } +public virtual void OnBeforeSerialize() { } ### BaseSerie.OnDataUpdate -public virtual void OnDataUpdate() { } +public virtual void OnDataUpdate() { } ### BaseSerie.OnRemove -public virtual void OnRemove() +public virtual void OnRemove() ### BaseSerie.RefreshLabel -public void RefreshLabel() +public void RefreshLabel() ### BaseSerie.SetAllDirty -public virtual void SetAllDirty() +public virtual void SetAllDirty() ### BaseSerie.SetComponentDirty -public virtual void SetComponentDirty() +public virtual void SetComponentDirty() ### BaseSerie.SetVerticesDirty -public virtual void SetVerticesDirty() +public virtual void SetVerticesDirty() ## BlurStyle @@ -2749,15 +2749,15 @@ The style of border. ### BorderStyle.GetRuntimeBorderColor -public Color32 GetRuntimeBorderColor() +public Color32 GetRuntimeBorderColor() ### BorderStyle.GetRuntimeBorderWidth -public float GetRuntimeBorderWidth() +public float GetRuntimeBorderWidth() ### BorderStyle.GetRuntimeCornerRadius -public float[] GetRuntimeCornerRadius() +public float[] GetRuntimeCornerRadius() ## CalendarCoord @@ -2765,11 +2765,11 @@ class in XCharts.Runtime / Inherits from: [CoordSystem](#coordsystem),[IUpdateRu ### CalendarCoord.IsPointerEnter -public bool IsPointerEnter() +public bool IsPointerEnter() ### CalendarCoord.UpdateRuntimeData -public void UpdateRuntimeData(BaseChart chart) +public void UpdateRuntimeData(BaseChart chart) ## Candlestick @@ -2777,15 +2777,15 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer]( ### Candlestick.containerIndex -public int containerIndex +public int containerIndex ### Candlestick.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### Candlestick.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## CandlestickChart @@ -2799,47 +2799,47 @@ class in XCharts.Runtime ### ChartCached.ColorToDotStr -public static string ColorToDotStr(Color color) +public static string ColorToDotStr(Color color) ### ChartCached.ColorToStr -public static string ColorToStr(Color color) +public static string ColorToStr(Color color) ### ChartCached.FloatToStr -public static string FloatToStr(double value, string numericFormatter = "F", int precision = 0) +public static string FloatToStr(double value, string numericFormatter = "F", int precision = 0) ### ChartCached.GetSerieLabelName -public static string GetSerieLabelName(string prefix, int i, int j) +public static string GetSerieLabelName(string prefix, int i, int j) ### ChartCached.GetString -public static string GetString(string prefix, int suffix) +public static string GetString(string prefix, int suffix) ### ChartCached.IntToStr -public static string IntToStr(int value, string numericFormatter = "") +public static string IntToStr(int value, string numericFormatter = "") ### ChartCached.NumberToDateStr -public static string NumberToDateStr(double timestamp, string formatter) +public static string NumberToDateStr(double timestamp, string formatter) ### ChartCached.NumberToDateTime -public static DateTime NumberToDateTime(double timestamp) +public static DateTime NumberToDateTime(double timestamp) ### ChartCached.NumberToStr -public static string NumberToStr(double value, string formatter) +public static string NumberToStr(double value, string formatter) ### ChartCached.NumberToTimeSpan -public static TimeSpan NumberToTimeSpan(double timestamp) +public static TimeSpan NumberToTimeSpan(double timestamp) ### ChartCached.NumberToTimeStr -public static string NumberToTimeStr(double timestamp, string formatter) +public static string NumberToTimeStr(double timestamp, string formatter) ## ChartConst @@ -2855,239 +2855,239 @@ class in XCharts.Runtime ### ChartHelper.ignoreVector3 -public static Vector3 ignoreVector3 +public static Vector3 ignoreVector3 ### ChartHelper.sb -public static StringBuilder sb +public static StringBuilder sb ### ChartHelper.ActiveAllObject -public static void ActiveAllObject(Transform parent, bool active, string match = null) +public static void ActiveAllObject(Transform parent, bool active, string match = null) ### ChartHelper.AddIcon -public static Image AddIcon(string name, Transform parent, IconStyle iconStyle) +public static Image AddIcon(string name, Transform parent, IconStyle iconStyle) ### ChartHelper.Cancat -public static string Cancat(string str1, int i) +public static string Cancat(string str1, int i) ### ChartHelper.ClearEventListener -public static void ClearEventListener(GameObject obj) +public static void ClearEventListener(GameObject obj) ### ChartHelper.CopyArray<T> -public static bool CopyArray<T>(T[] toList, T[] fromList) +public static bool CopyArray<T>(T[] toList, T[] fromList) ### ChartHelper.CopyList<T> -public static bool CopyList<T>(List<T> toList, List<T> fromList) +public static bool CopyList<T>(List<T> toList, List<T> fromList) ### ChartHelper.DestoryGameObject -public static void DestoryGameObject(GameObject go) +public static void DestoryGameObject(GameObject go) ### ChartHelper.DestoryGameObjectByMatch -public static void DestoryGameObjectByMatch(Transform parent, string containString) +public static void DestoryGameObjectByMatch(Transform parent, string containString) ### ChartHelper.DestroyAllChildren -public static void DestroyAllChildren(Transform parent) +public static void DestroyAllChildren(Transform parent) ### ChartHelper.EnsureComponent<T> -public static T EnsureComponent<T>(GameObject gameObject) where T : Component +public static T EnsureComponent<T>(GameObject gameObject) where T : Component Ensure that the game object has the specified component, add it if not. ### ChartHelper.GetActualValue -public static float GetActualValue(float valueOrRate, float total, float maxRate = 1.5f) +public static float GetActualValue(float valueOrRate, float total, float maxRate = 1.5f) ### ChartHelper.GetAngle360 -public static float GetAngle360(Vector2 from, Vector2 to) +public static float GetAngle360(Vector2 from, Vector2 to) 获得0-360的角度(12点钟方向为0度) ### ChartHelper.GetBlurColor -public static Color32 GetBlurColor(Color32 color, float a = 0.3f) +public static Color32 GetBlurColor(Color32 color, float a = 0.3f) ### ChartHelper.GetColor -public static Color32 GetColor(string hexColorStr) +public static Color32 GetColor(string hexColorStr) ### ChartHelper.GetDire -public static Vector3 GetDire(float angle, bool isDegree = false) +public static Vector3 GetDire(float angle, bool isDegree = false) ### ChartHelper.GetFullName -public static string GetFullName(Transform transform) +public static string GetFullName(Transform transform) ### ChartHelper.GetHighlightColor -public static Color32 GetHighlightColor(Color32 color, float rate = 0.8f) +public static Color32 GetHighlightColor(Color32 color, float rate = 0.8f) ### ChartHelper.GetLastValue -public static Vector3 GetLastValue(List<Vector3> list) +public static Vector3 GetLastValue(List<Vector3> list) ### ChartHelper.GetMaxCeilRate -public static double GetMaxCeilRate(double value, double ceilRate) +public static double GetMaxCeilRate(double value, double ceilRate) ### ChartHelper.GetMaxDivisibleValue -public static double GetMaxDivisibleValue(double max, double ceilRate) +public static double GetMaxDivisibleValue(double max, double ceilRate) ### ChartHelper.GetMaxLogValue -public static double GetMaxLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber) +public static double GetMaxLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber) ### ChartHelper.GetMinCeilRate -public static double GetMinCeilRate(double value, double ceilRate) +public static double GetMinCeilRate(double value, double ceilRate) ### ChartHelper.GetMinDivisibleValue -public static double GetMinDivisibleValue(double min, double ceilRate) +public static double GetMinDivisibleValue(double min, double ceilRate) ### ChartHelper.GetMinLogValue -public static double GetMinLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber) +public static double GetMinLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber) ### ChartHelper.GetOrAddComponent<T> -public static T GetOrAddComponent<T>(GameObject gameObject) where T : Component +public static T GetOrAddComponent<T>(GameObject gameObject) where T : Component ### ChartHelper.GetPointList -public static void GetPointList(ref List<Vector3> posList, Vector3 sp, Vector3 ep, float k = 30f) +public static void GetPointList(ref List<Vector3> posList, Vector3 sp, Vector3 ep, float k = 30f) ### ChartHelper.GetPos -public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false) +public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false) ### ChartHelper.GetPosition -public static Vector3 GetPosition(Vector3 center, float angle, float radius) +public static Vector3 GetPosition(Vector3 center, float angle, float radius) ### ChartHelper.GetSelectColor -public static Color32 GetSelectColor(Color32 color, float rate = 0.8f) +public static Color32 GetSelectColor(Color32 color, float rate = 0.8f) ### ChartHelper.GetVertialDire -public static Vector3 GetVertialDire(Vector3 dire) +public static Vector3 GetVertialDire(Vector3 dire) ### ChartHelper.HideAllObject -public static void HideAllObject(Transform parent, string match = null) +public static void HideAllObject(Transform parent, string match = null) ### ChartHelper.IsActiveByScale -public static bool IsActiveByScale(Image image) +public static bool IsActiveByScale(Image image) -public static bool IsActiveByScale(Transform transform) +public static bool IsActiveByScale(Transform transform) ### ChartHelper.IsClearColor -public static bool IsClearColor(Color color) +public static bool IsClearColor(Color color) ### ChartHelper.IsColorAlphaZero -public static bool IsColorAlphaZero(Color color) +public static bool IsColorAlphaZero(Color color) ### ChartHelper.IsEquals -public static bool IsEquals(float d1, float d2) +public static bool IsEquals(float d1, float d2) ### ChartHelper.IsIngore -public static bool IsIngore(Vector3 pos) +public static bool IsIngore(Vector3 pos) ### ChartHelper.IsInRect -public static bool IsInRect(Vector3 pos, float xMin, float xMax, float yMin, float yMax) +public static bool IsInRect(Vector3 pos, float xMin, float xMax, float yMin, float yMax) ### ChartHelper.IsPointInQuadrilateral -public static bool IsPointInQuadrilateral(Vector3 P, Vector3 A, Vector3 B, Vector3 C, Vector3 D) +public static bool IsPointInQuadrilateral(Vector3 P, Vector3 A, Vector3 B, Vector3 C, Vector3 D) ### ChartHelper.IsValueEqualsColor -public static bool IsValueEqualsColor(Color color1, Color color2) +public static bool IsValueEqualsColor(Color color1, Color color2) ### ChartHelper.IsValueEqualsList<T> -public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2) +public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2) ### ChartHelper.IsValueEqualsString -public static bool IsValueEqualsString(string str1, string str2) +public static bool IsValueEqualsString(string str1, string str2) ### ChartHelper.IsValueEqualsVector2 -public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2) +public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2) ### ChartHelper.IsValueEqualsVector3 -public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2) +public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2) ### ChartHelper.IsZeroVector -public static bool IsZeroVector(Vector3 pos) +public static bool IsZeroVector(Vector3 pos) ### ChartHelper.ParseFloatFromString -public static List<float> ParseFloatFromString(string jsonData) +public static List<float> ParseFloatFromString(string jsonData) ### ChartHelper.ParseStringFromString -public static List<string> ParseStringFromString(string jsonData) +public static List<string> ParseStringFromString(string jsonData) ### ChartHelper.RemoveComponent<T> -public static void RemoveComponent<T>(GameObject gameObject) +public static void RemoveComponent<T>(GameObject gameObject) ### ChartHelper.RotateRound -public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle) +public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle) ### ChartHelper.SaveAsImage -public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "") +public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "") ### ChartHelper.SetActive -public static bool SetActive(Image image, bool active) +public static bool SetActive(Image image, bool active) -public static bool SetActive(Text text, bool active) +public static bool SetActive(Text text, bool active) -public static bool SetActive(Transform transform, bool active) +public static bool SetActive(Transform transform, bool active) 通过设置scale实现是否显示,优化性能,减少GC ### ChartHelper.SetBackground -public static void SetBackground(Image background, Background imageStyle) +public static void SetBackground(Image background, Background imageStyle) ### ChartHelper.SetColorOpacity -public static void SetColorOpacity(ref Color32 color, float opacity) +public static void SetColorOpacity(ref Color32 color, float opacity) ## ChartLabel @@ -3095,107 +3095,107 @@ class in XCharts.Runtime / Inherits from: [Image](https://docs.unity3d.com/Scrip ### ChartLabel.hideIconIfTextEmpty -public bool hideIconIfTextEmpty +public bool hideIconIfTextEmpty ### ChartLabel.isAnimationEnd -public bool isAnimationEnd +public bool isAnimationEnd ### ChartLabel.isIconActive -public bool isIconActive +public bool isIconActive ### ChartLabel.rect -public Rect rect +public Rect rect ### ChartLabel.GetHeight -public float GetHeight() +public float GetHeight() ### ChartLabel.GetPosition -public Vector3 GetPosition() +public Vector3 GetPosition() ### ChartLabel.GetTextHeight -public float GetTextHeight() +public float GetTextHeight() ### ChartLabel.GetTextWidth -public float GetTextWidth() +public float GetTextWidth() ### ChartLabel.GetWidth -public float GetWidth() +public float GetWidth() ### ChartLabel.IsActiveByScale -public bool IsActiveByScale() +public bool IsActiveByScale() ### ChartLabel.SetActive -public void SetActive(bool flag, bool force = false) +public void SetActive(bool flag, bool force = false) ### ChartLabel.SetIcon -public void SetIcon(Image image) +public void SetIcon(Image image) ### ChartLabel.SetIconActive -public void SetIconActive(bool flag) +public void SetIconActive(bool flag) ### ChartLabel.SetIconSize -public void SetIconSize(float width, float height) +public void SetIconSize(float width, float height) ### ChartLabel.SetIconSprite -public void SetIconSprite(Sprite sprite) +public void SetIconSprite(Sprite sprite) ### ChartLabel.SetPadding -public void SetPadding(float[] padding) +public void SetPadding(float[] padding) ### ChartLabel.SetPosition -public void SetPosition(Vector3 position) +public void SetPosition(Vector3 position) ### ChartLabel.SetRectPosition -public void SetRectPosition(Vector3 position) +public void SetRectPosition(Vector3 position) ### ChartLabel.SetRotate -public void SetRotate(float rotate) +public void SetRotate(float rotate) ### ChartLabel.SetSize -public void SetSize(float width, float height) +public void SetSize(float width, float height) ### ChartLabel.SetText -public bool SetText(string text) +public bool SetText(string text) ### ChartLabel.SetTextActive -public void SetTextActive(bool flag) +public void SetTextActive(bool flag) ### ChartLabel.SetTextColor -public void SetTextColor(Color color) +public void SetTextColor(Color color) ### ChartLabel.SetTextPadding -public void SetTextPadding(TextPadding padding) +public void SetTextPadding(TextPadding padding) ### ChartLabel.SetTextRotate -public void SetTextRotate(float rotate) +public void SetTextRotate(float rotate) ### ChartLabel.UpdateIcon -public void UpdateIcon(IconStyle iconStyle, Sprite sprite = null, Color color = default(Color)) +public void UpdateIcon(IconStyle iconStyle, Sprite sprite = null, Color color = default(Color)) ## ChartObject @@ -3203,7 +3203,7 @@ class in XCharts.Runtime ### ChartObject.Destroy -public virtual void Destroy() +public virtual void Destroy() ## ChartText @@ -3211,86 +3211,86 @@ class in XCharts.Runtime ### ChartText.tmpText -public TextMeshProUGUI tmpText +public TextMeshProUGUI tmpText ### ChartText.ChartText -public ChartText(GameObject textParent) +public ChartText(GameObject textParent) ### ChartText.GetColor -public Color GetColor() +public Color GetColor() ### ChartText.GetPreferredHeight -public float GetPreferredHeight() +public float GetPreferredHeight() ### ChartText.GetPreferredText -public string GetPreferredText(string content, string suffix, float maxWidth) +public string GetPreferredText(string content, string suffix, float maxWidth) ### ChartText.GetPreferredWidth -public float GetPreferredWidth() +public float GetPreferredWidth() ### ChartText.GetText -public string GetText() +public string GetText() ### ChartText.SetActive -public void SetActive(bool flag) +public void SetActive(bool flag) ### ChartText.SetAlignment -public void SetAlignment(TextAnchor alignment) +public void SetAlignment(TextAnchor alignment) ### ChartText.SetColor -public void SetColor(Color color) +public void SetColor(Color color) ### ChartText.SetFont -public void SetFont(TMP_FontAsset font) +public void SetFont(TMP_FontAsset font) ### ChartText.SetFontAndSizeAndStyle -public void SetFontAndSizeAndStyle(TextStyle textStyle, ComponentTheme theme) +public void SetFontAndSizeAndStyle(TextStyle textStyle, ComponentTheme theme) ### ChartText.SetFontSize -public void SetFontSize(float fontSize) +public void SetFontSize(float fontSize) ### ChartText.SetFontStyle -public void SetFontStyle(FontStyle fontStyle) +public void SetFontStyle(FontStyle fontStyle) ### ChartText.SetLineSpacing -public void SetLineSpacing(float lineSpacing) +public void SetLineSpacing(float lineSpacing) ### ChartText.SetLocalEulerAngles -public void SetLocalEulerAngles(Vector3 position) +public void SetLocalEulerAngles(Vector3 position) ### ChartText.SetLocalPosition -public void SetLocalPosition(Vector3 position) +public void SetLocalPosition(Vector3 position) ### ChartText.SetRectPosition -public void SetRectPosition(Vector3 position) +public void SetRectPosition(Vector3 position) ### ChartText.SetSizeDelta -public void SetSizeDelta(Vector2 sizeDelta) +public void SetSizeDelta(Vector2 sizeDelta) ### ChartText.SetText -public void SetText(string text) +public void SetText(string text) ## CheckHelper @@ -3298,7 +3298,7 @@ class in XCharts.Runtime ### CheckHelper.CheckChart -public static string CheckChart(BaseChart chart) +public static string CheckChart(BaseChart chart) ## ChildComponent @@ -3307,68 +3307,68 @@ class in XCharts.Runtime / Subclasses: [AnimationStyle](#animationstyle),[AxisAn ### ChildComponent.anyDirty -public bool anyDirty +public bool anyDirty 需要重绘图表或重新初始化组件。 ### ChildComponent.componentDirty -public virtual bool componentDirty +public virtual bool componentDirty 组件重新初始化标记。 ### ChildComponent.gameObject -public GameObject gameObject +public GameObject gameObject ### ChildComponent.index -public virtual int index +public virtual int index ### ChildComponent.painter -public Painter painter +public Painter painter ### ChildComponent.refreshComponent -public Action refreshComponent +public Action refreshComponent ### ChildComponent.vertsDirty -public virtual bool vertsDirty +public virtual bool vertsDirty 图表重绘标记。 ### ChildComponent.ClearComponentDirty -public virtual void ClearComponentDirty() +public virtual void ClearComponentDirty() ### ChildComponent.ClearDirty -public virtual void ClearDirty() +public virtual void ClearDirty() ### ChildComponent.ClearVerticesDirty -public virtual void ClearVerticesDirty() +public virtual void ClearVerticesDirty() ### ChildComponent.IsComponentDirty -public static bool IsComponentDirty(ChildComponent component) +public static bool IsComponentDirty(ChildComponent component) ### ChildComponent.IsVertsDirty -public static bool IsVertsDirty(ChildComponent component) +public static bool IsVertsDirty(ChildComponent component) ### ChildComponent.SetAllDirty -public virtual void SetAllDirty() +public virtual void SetAllDirty() ### ChildComponent.SetComponentDirty -public virtual void SetComponentDirty() +public virtual void SetComponentDirty() ### ChildComponent.SetVerticesDirty -public virtual void SetVerticesDirty() +public virtual void SetVerticesDirty() ## ColorUtil @@ -3376,7 +3376,7 @@ class in XCharts.Runtime ### ColorUtil.GetColor -public static Color32 GetColor(string hexColorStr) +public static Color32 GetColor(string hexColorStr) Convert the html string to color. ## Comment @@ -3387,25 +3387,25 @@ comment of chart. ### Comment.items -public List<CommentItem> items +public List<CommentItem> items The items of comment. ### Comment.show -public bool show +public bool show Set this to false to prevent the comment from showing. ### Comment.GetLabelStyle -public LabelStyle GetLabelStyle(int index) +public LabelStyle GetLabelStyle(int index) ### Comment.GetMarkStyle -public CommentMarkStyle GetMarkStyle(int index) +public CommentMarkStyle GetMarkStyle(int index) ### Comment.OnChanged -public void OnChanged() +public void OnChanged() Callback handling when parameters change. ## CommentItem @@ -3416,22 +3416,22 @@ comment of chart. ### CommentItem.content -public string content +public string content content of comment. ### CommentItem.markRect -public Rect markRect +public Rect markRect the mark rect of comment. ### CommentItem.markStyle -public CommentMarkStyle markStyle +public CommentMarkStyle markStyle the mark rect style. ### CommentItem.show -public bool show +public bool show Set this to false to prevent this comment item from showing. ## CommentMarkStyle @@ -3442,12 +3442,12 @@ the comment mark style. ### CommentMarkStyle.lineStyle -public LineStyle lineStyle +public LineStyle lineStyle line style of comment mark area. ### CommentMarkStyle.show -public bool show +public bool show Set this to false to prevent this comment item from showing. ## ComponentHandlerAttribute @@ -3456,7 +3456,7 @@ class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/S ### ComponentHandlerAttribute.ComponentHandlerAttribute -public ComponentHandlerAttribute(Type handler, bool allowMultiple, int order = 3) +public ComponentHandlerAttribute(Type handler, bool allowMultiple, int order = 3) ## ComponentHelper @@ -3465,23 +3465,23 @@ class in XCharts.Runtime ### ComponentHelper.GetAngleAxis -public static AngleAxis GetAngleAxis(List<MainComponent> components, int polarIndex) +public static AngleAxis GetAngleAxis(List<MainComponent> components, int polarIndex) ### ComponentHelper.GetRadiusAxis -public static RadiusAxis GetRadiusAxis(List<MainComponent> components, int polarIndex) +public static RadiusAxis GetRadiusAxis(List<MainComponent> components, int polarIndex) ### ComponentHelper.GetXAxisOnZeroOffset -public static float GetXAxisOnZeroOffset(List<MainComponent> components, XAxis axis) +public static float GetXAxisOnZeroOffset(List<MainComponent> components, XAxis axis) ### ComponentHelper.GetYAxisOnZeroOffset -public static float GetYAxisOnZeroOffset(List<MainComponent> components, YAxis axis) +public static float GetYAxisOnZeroOffset(List<MainComponent> components, YAxis axis) ### ComponentHelper.IsAnyCategoryOfYAxis -public static bool IsAnyCategoryOfYAxis(List<MainComponent> components) +public static bool IsAnyCategoryOfYAxis(List<MainComponent> components) ## ComponentTheme @@ -3489,15 +3489,15 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Su ### ComponentTheme.ComponentTheme -public ComponentTheme(ThemeType theme) +public ComponentTheme(ThemeType theme) ### ComponentTheme.Copy -public virtual void Copy(ComponentTheme theme) +public virtual void Copy(ComponentTheme theme) ### ComponentTheme.Reset -public virtual void Reset(ComponentTheme defaultTheme) +public virtual void Reset(ComponentTheme defaultTheme) ## CoordOptionsAttribute @@ -3505,15 +3505,15 @@ class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/S ### CoordOptionsAttribute.Contains<T> -public bool Contains<T>() where T : CoordSystem +public bool Contains<T>() where T : CoordSystem ### CoordOptionsAttribute.CoordOptionsAttribute -public CoordOptionsAttribute(Type coord, Type coord2) +public CoordOptionsAttribute(Type coord, Type coord2) -public CoordOptionsAttribute(Type coord, Type coord2, Type coord3) +public CoordOptionsAttribute(Type coord, Type coord2, Type coord3) -public CoordOptionsAttribute(Type coord, Type coord2, Type coord3, Type coord4) +public CoordOptionsAttribute(Type coord, Type coord2, Type coord3, Type coord4) ## CoordSystem @@ -3534,70 +3534,70 @@ DataZoom component is used for zooming a specific area, which enables user to in ### DataZoom.realtime -public bool realtime +public bool realtime Whether to show data shadow in dataZoom-silder component, to indicate the data tendency in brief. ### DataZoom.startEndFunction -public CustomDataZoomStartEndFunction startEndFunction +public CustomDataZoomStartEndFunction startEndFunction start和end变更委托。 ### DataZoom.GetBackgroundColor -public Color32 GetBackgroundColor(Color32 themeColor) +public Color32 GetBackgroundColor(Color32 themeColor) ### DataZoom.GetBorderColor -public Color32 GetBorderColor(Color32 themeColor) +public Color32 GetBorderColor(Color32 themeColor) ### DataZoom.GetFillerColor -public Color32 GetFillerColor(Color32 themeColor) +public Color32 GetFillerColor(Color32 themeColor) ### DataZoom.IsContainsAxis -public bool IsContainsAxis(Axis axis) +public bool IsContainsAxis(Axis axis) ### DataZoom.IsContainsXAxis -public bool IsContainsXAxis(int index) +public bool IsContainsXAxis(int index) ### DataZoom.IsContainsYAxis -public bool IsContainsYAxis(int index) +public bool IsContainsYAxis(int index) ### DataZoom.IsInEndZoom -public bool IsInEndZoom(Vector2 pos) +public bool IsInEndZoom(Vector2 pos) 给定的坐标是否在结束活动条触发区域内 ### DataZoom.IsInMarqueeArea -public bool IsInMarqueeArea(Vector2 pos) +public bool IsInMarqueeArea(Vector2 pos) ### DataZoom.IsInSelectedZoom -public bool IsInSelectedZoom(int totalIndex, int index, bool invert) +public bool IsInSelectedZoom(int totalIndex, int index, bool invert) ### DataZoom.IsInStartZoom -public bool IsInStartZoom(Vector2 pos) +public bool IsInStartZoom(Vector2 pos) 给定的坐标是否在开始活动条触发区域内 ### DataZoom.IsInZoom -public bool IsInZoom(Vector2 pos) +public bool IsInZoom(Vector2 pos) 给定的坐标是否在缩放区域内 ### DataZoom.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() ### DataZoom.UpdateRuntimeData -public void UpdateRuntimeData(BaseChart chart) +public void UpdateRuntimeData(BaseChart chart) ## DataZoom.FilterMode @@ -3629,65 +3629,65 @@ class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentc ### DataZoomContext.endValue -public double endValue +public double endValue 运行时实际范围的结束值 ### DataZoomContext.height -public float height +public float height ### DataZoomContext.invert -public bool invert +public bool invert ### DataZoomContext.isCoordinateDrag -public bool isCoordinateDrag +public bool isCoordinateDrag ### DataZoomContext.isDrag -public bool isDrag +public bool isDrag ### DataZoomContext.isEndDrag -public bool isEndDrag +public bool isEndDrag ### DataZoomContext.isMarqueeDrag -public bool isMarqueeDrag +public bool isMarqueeDrag ### DataZoomContext.isStartDrag -public bool isStartDrag +public bool isStartDrag ### DataZoomContext.marqueeEndPos -public Vector3 marqueeEndPos +public Vector3 marqueeEndPos ### DataZoomContext.marqueeRect -public Rect marqueeRect +public Rect marqueeRect ### DataZoomContext.marqueeStartPos -public Vector3 marqueeStartPos +public Vector3 marqueeStartPos ### DataZoomContext.startValue -public double startValue +public double startValue 运行时实际范围的开始值 ### DataZoomContext.width -public float width +public float width ### DataZoomContext.x -public float x +public float x ### DataZoomContext.y -public float y +public float y ## DataZoomHelper @@ -3695,11 +3695,11 @@ class in XCharts.Runtime ### DataZoomHelper.UpdateDataZoomRuntimeStartEndValue -public static void UpdateDataZoomRuntimeStartEndValue(DataZoom dataZoom, Serie serie) +public static void UpdateDataZoomRuntimeStartEndValue(DataZoom dataZoom, Serie serie) ### DataZoomHelper.UpdateDataZoomRuntimeStartEndValue<T> -public static void UpdateDataZoomRuntimeStartEndValue<T>(BaseChart chart) where T : Serie +public static void UpdateDataZoomRuntimeStartEndValue<T>(BaseChart chart) where T : Serie ## DataZoomTheme @@ -3707,11 +3707,11 @@ class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) ### DataZoomTheme.Copy -public void Copy(DataZoomTheme theme) +public void Copy(DataZoomTheme theme) ### DataZoomTheme.DataZoomTheme -public DataZoomTheme(ThemeType theme) : base(theme) +public DataZoomTheme(ThemeType theme) : base(theme) ## DateTimeUtil @@ -3719,22 +3719,22 @@ class in XCharts.Runtime ### DateTimeUtil.GetDateTime -public static DateTime GetDateTime(double timestamp, bool local = true) +public static DateTime GetDateTime(double timestamp, bool local = true) ### DateTimeUtil.GetDefaultDateTimeString -public static string GetDefaultDateTimeString(int timestamp, double range = 0) +public static string GetDefaultDateTimeString(int timestamp, double range = 0) ### DateTimeUtil.GetTimestamp -public static int GetTimestamp(DateTime time, bool local = false) +public static int GetTimestamp(DateTime time, bool local = false) -public static int GetTimestamp(string dateTime, bool local = false) +public static int GetTimestamp(string dateTime, bool local = false) ### DateTimeUtil.IsDateOrTimeRegex -public static bool IsDateOrTimeRegex(string regex, ref bool date, ref string formatter) +public static bool IsDateOrTimeRegex(string regex, ref bool date, ref string formatter) ## DebugInfo @@ -3743,41 +3743,41 @@ class in XCharts.Runtime ### DebugInfo.avgFps -public float avgFps +public float avgFps The average frame rate. ### DebugInfo.foldSeries -public bool foldSeries +public bool foldSeries Whether to fold series in inspector view. ### DebugInfo.fps -public float fps +public float fps frame rate. ### DebugInfo.refreshCount -public int refreshCount +public int refreshCount The fefresh count of chart per second. ### DebugInfo.show -public bool show +public bool show Whether show debug component. ### DebugInfo.showAllChartObject -public bool showAllChartObject +public bool showAllChartObject Whether show children components of chart in hierarchy view. ### DebugInfo.Init -public void Init(BaseChart chart) +public void Init(BaseChart chart) ### DebugInfo.Update -public void Update() +public void Update() ## DefaultAnimationAttribute @@ -3785,7 +3785,7 @@ class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/S ### DefaultAnimationAttribute.DefaultAnimationAttribute -public DefaultAnimationAttribute(AnimationType handler, bool enableSerieDataAddedAnimation) +public DefaultAnimationAttribute(AnimationType handler, bool enableSerieDataAddedAnimation) ## DefaultTooltipAttribute @@ -3794,7 +3794,7 @@ class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/S ### DefaultTooltipAttribute.DefaultTooltipAttribute -public DefaultTooltipAttribute(Tooltip.Type type, Tooltip.Trigger trigger) +public DefaultTooltipAttribute(Tooltip.Type type, Tooltip.Trigger trigger) ## DefineSymbolsUtil @@ -3802,11 +3802,11 @@ class in XCharts.Runtime ### DefineSymbolsUtil.AddGlobalDefine -public static void AddGlobalDefine(string symbol) +public static void AddGlobalDefine(string symbol) ### DefineSymbolsUtil.RemoveGlobalDefine -public static void RemoveGlobalDefine(string symbol) +public static void RemoveGlobalDefine(string symbol) ## EffectScatter @@ -3814,7 +3814,7 @@ class in XCharts.Runtime / Inherits from: [BaseScatter](#basescatter) ### EffectScatter.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## EmphasisStyle @@ -3854,7 +3854,7 @@ class in XCharts.Runtime / Inherits from: [LabelStyle](#labelstyle) ### EndLabelStyle.EndLabelStyle -public EndLabelStyle() +public EndLabelStyle() ## FormatterHelper @@ -3862,16 +3862,16 @@ class in XCharts.Runtime ### FormatterHelper.NeedFormat -public static bool NeedFormat(string content) +public static bool NeedFormat(string content) ### FormatterHelper.ReplaceAxisLabelContent -public static void ReplaceAxisLabelContent(ref string content, string value) +public static void ReplaceAxisLabelContent(ref string content, string value) ### FormatterHelper.TrimAndReplaceLine -public static string TrimAndReplaceLine(string content) +public static string TrimAndReplaceLine(string content) ## GraphData @@ -3882,82 +3882,82 @@ the data struct of graph. ### GraphData.AddEdge -public GraphEdge AddEdge(string nodeId1, string nodeId2, double value) +public GraphEdge AddEdge(string nodeId1, string nodeId2, double value) ### GraphData.AddNode -public GraphNode AddNode(string nodeId, string nodeName, int dataIndex, double value) +public GraphNode AddNode(string nodeId, string nodeName, int dataIndex, double value) ### GraphData.BreadthFirstTraverse -public void BreadthFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse) +public void BreadthFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse) ### GraphData.Clear -public void Clear() +public void Clear() ### GraphData.DeepFirstTraverse -public void DeepFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse) +public void DeepFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse) ### GraphData.EachNode -public void EachNode(System.Action<GraphNode> onEach) +public void EachNode(System.Action<GraphNode> onEach) ### GraphData.ExpandAllNodes -public void ExpandAllNodes(bool flag, int level = -1) +public void ExpandAllNodes(bool flag, int level = -1) ### GraphData.ExpandNode -public void ExpandNode(string nodeId, bool flag) +public void ExpandNode(string nodeId, bool flag) ### GraphData.GetDepthNodes -public List<List<GraphNode>> GetDepthNodes() +public List<List<GraphNode>> GetDepthNodes() ### GraphData.GetEdge -public GraphEdge GetEdge(string nodeId1, string nodeId2) +public GraphEdge GetEdge(string nodeId1, string nodeId2) ### GraphData.GetExpandedNodesCount -public static int GetExpandedNodesCount(List<GraphNode> nodes) +public static int GetExpandedNodesCount(List<GraphNode> nodes) ### GraphData.GetMaxDepth -public int GetMaxDepth() +public int GetMaxDepth() ### GraphData.GetNode -public GraphNode GetNode(string nodeId) +public GraphNode GetNode(string nodeId) ### GraphData.GetNodeDepth -// public void GetNodeDepth(GraphNode node, ref int depth, int recursiveCount = 0) +// public void GetNodeDepth(GraphNode node, ref int depth, int recursiveCount = 0) -public int GetNodeDepth(GraphNode node, int recursiveCount = 0) +public int GetNodeDepth(GraphNode node, int recursiveCount = 0) ### GraphData.GetNodesTotalValue -public static double GetNodesTotalValue(List<GraphNode> nodes) +public static double GetNodesTotalValue(List<GraphNode> nodes) ### GraphData.GetRootNodes -public List<GraphNode> GetRootNodes() +public List<GraphNode> GetRootNodes() ### GraphData.GraphData -public GraphData(bool directed) +public GraphData(bool directed) ### GraphData.IsAllNodeInZeroPosition -public bool IsAllNodeInZeroPosition() +public bool IsAllNodeInZeroPosition() ### GraphData.Refresh -public void Refresh() +public void Refresh() ## GraphEdge @@ -3967,11 +3967,11 @@ The edge of graph. ### GraphEdge.GraphEdge -public GraphEdge(GraphNode node1, GraphNode node2, double value) +public GraphEdge(GraphNode node1, GraphNode node2, double value) ### GraphEdge.IsPointInEdge -public bool IsPointInEdge(Vector2 point) +public bool IsPointInEdge(Vector2 point) ## GraphNode @@ -3981,35 +3981,35 @@ The node of graph. ### GraphNode.degree -public int degree +public int degree ### GraphNode.inDegree -public int inDegree +public int inDegree ### GraphNode.outDegree -public int outDegree +public int outDegree ### GraphNode.Expand -public void Expand(bool flag) +public void Expand(bool flag) ### GraphNode.GraphNode -public GraphNode(string id, string name, int dataIndex) +public GraphNode(string id, string name, int dataIndex) ### GraphNode.IsAllInEdgesCollapsed -public bool IsAllInEdgesCollapsed() +public bool IsAllInEdgesCollapsed() ### GraphNode.IsAnyInEdgesExpanded -public bool IsAnyInEdgesExpanded() +public bool IsAnyInEdgesExpanded() ### GraphNode.ToString -public override string ToString() +public override string ToString() ## GridCoord @@ -4019,13 +4019,13 @@ Grid component. ### GridCoord.BoundaryPoint -public bool BoundaryPoint(Vector3 sp, Vector3 ep, ref List<Vector3> point) +public bool BoundaryPoint(Vector3 sp, Vector3 ep, ref List<Vector3> point) 给定的线段和Grid边界的交点 ### GridCoord.Clamp -public void Clamp(ref Vector3 pos) +public void Clamp(ref Vector3 pos) > Since `v3.7.0` @@ -4033,7 +4033,7 @@ Clamp the position of pos to the grid. ### GridCoord.ClampX -public void ClampX(ref Vector3 pos) +public void ClampX(ref Vector3 pos) > Since `v3.7.0` @@ -4041,7 +4041,7 @@ Clamp the x position of pos to the grid. ### GridCoord.ClampY -public void ClampY(ref Vector3 pos) +public void ClampY(ref Vector3 pos) > Since `v3.7.0` @@ -4049,10 +4049,10 @@ Clamp the y position of pos to the grid. ### GridCoord.Contains -public bool Contains(float x, float y) +public bool Contains(float x, float y) Whether the given position is in the grid. -public bool Contains(Vector3 pos, bool isYAxis) +public bool Contains(Vector3 pos, bool isYAxis) > Since `v3.7.0` @@ -4061,7 +4061,7 @@ Whether the given position is in the grid. ### GridCoord.ContainsX -public bool ContainsX(float x) +public bool ContainsX(float x) > Since `v3.7.0` @@ -4069,7 +4069,7 @@ Whether the given x is in the grid. ### GridCoord.ContainsY -public bool ContainsY(float y) +public bool ContainsY(float y) > Since `v3.7.0` @@ -4077,12 +4077,12 @@ Whether the given y is in the grid. ### GridCoord.IsPointerEnter -public bool IsPointerEnter() +public bool IsPointerEnter() Whether the pointer is in the grid. ### GridCoord.NotAnyIntersect -public bool NotAnyIntersect(Vector3 sp, Vector3 ep) +public bool NotAnyIntersect(Vector3 sp, Vector3 ep) > Since `v3.10.0` @@ -4090,7 +4090,7 @@ Determines whether a given line segment will not intersect the Grid boundary at ### GridCoord.UpdateRuntimeData -public void UpdateRuntimeData(BaseChart chart) +public void UpdateRuntimeData(BaseChart chart) ## GridCoord3D @@ -4102,32 +4102,32 @@ Grid component. ### GridCoord3D.Clamp -public void Clamp(ref Vector3 pos) +public void Clamp(ref Vector3 pos) Clamp the position of pos to the grid. ### GridCoord3D.Contains -public bool Contains(Vector3 pos) +public bool Contains(Vector3 pos) Whether the given position is in the grid. ### GridCoord3D.IsLeft -public bool IsLeft() +public bool IsLeft() The opening of the coordinate system faces to the left. 坐标系开口朝向左边。 ### GridCoord3D.IsPointerEnter -public bool IsPointerEnter() +public bool IsPointerEnter() Whether the pointer is in the grid. ### GridCoord3D.NotAnyIntersect -public bool NotAnyIntersect(Vector3 sp, Vector3 ep) +public bool NotAnyIntersect(Vector3 sp, Vector3 ep) Determines whether a given line segment will not intersect the Grid boundary at all. ### GridCoord3D.UpdateRuntimeData -public void UpdateRuntimeData(BaseChart chart) +public void UpdateRuntimeData(BaseChart chart) ## GridCoord3DContext @@ -4147,7 +4147,7 @@ Grid layout component. Used to manage the layout of multiple `GridCoord`, and th ### GridLayout.UpdateRuntimeData -public void UpdateRuntimeData(BaseChart chart) +public void UpdateRuntimeData(BaseChart chart) ## GridLayoutContext @@ -4159,15 +4159,15 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer]( ### Heatmap.containerIndex -public int containerIndex +public int containerIndex ### Heatmap.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### Heatmap.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## HeatmapChart @@ -4177,7 +4177,7 @@ Heat map mainly use colors to represent values, which must be used along with vi ### HeatmapChart.DefaultCountHeatmapChart -public void DefaultCountHeatmapChart() +public void DefaultCountHeatmapChart() default count heatmap chart. ## HeatmapType @@ -4197,65 +4197,65 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### IconStyle.align -public Align align +public Align align 水平方向对齐方式。 ### IconStyle.autoHideWhenLabelEmpty -public bool autoHideWhenLabelEmpty +public bool autoHideWhenLabelEmpty 当label内容为空时是否自动隐藏图标 ### IconStyle.color -public Color color +public Color color 图标颜色。 ### IconStyle.height -public float height +public float height 图标高。 ### IconStyle.layer -public Layer layer +public Layer layer 显示在上层还是在下层。 ### IconStyle.offset -public Vector3 offset +public Vector3 offset 图标偏移。 ### IconStyle.show -public bool show +public bool show Whether the data icon is show. ### IconStyle.sprite -public Sprite sprite +public Sprite sprite The image of icon. ### IconStyle.type -public Image.Type type +public Image.Type type How to display the icon. ### IconStyle.width -public float width +public float width 图标宽。 ### IconStyle.Clone -public IconStyle Clone() +public IconStyle Clone() ### IconStyle.Copy -public void Copy(IconStyle iconStyle) +public void Copy(IconStyle iconStyle) ### IconStyle.Reset -public void Reset() +public void Reset() ## IconStyle.Layer @@ -4272,7 +4272,7 @@ class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/S ### IgnoreDoc.IgnoreDoc -public IgnoreDoc() +public IgnoreDoc() ## ImageStyle @@ -4280,50 +4280,50 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISe ### ImageStyle.autoColor -public bool autoColor +public bool autoColor 是否自动颜色。 ### ImageStyle.color -public Color color +public Color color 图标颜色。 ### ImageStyle.height -public float height +public float height 图标高。 ### ImageStyle.show -public bool show +public bool show Whether the data icon is show. ### ImageStyle.sprite -public Sprite sprite +public Sprite sprite The image of icon. ### ImageStyle.type -public Image.Type type +public Image.Type type How to display the image. ### ImageStyle.width -public float width +public float width 图标宽。 ### ImageStyle.Clone -public ImageStyle Clone() +public ImageStyle Clone() ### ImageStyle.Copy -public void Copy(ImageStyle imageStyle) +public void Copy(ImageStyle imageStyle) ### ImageStyle.Reset -public void Reset() +public void Reset() ## Indicator @@ -4333,94 +4333,94 @@ Indicator of radar chart, which is used to assign multiple variables(dimensions) ### Indicator.indicatorList -public List<Indicator> indicatorList +public List<Indicator> indicatorList the indicator list. ### Indicator.max -public double max +public double max The maximum value of indicator, with default value of 0, but we recommend to set it manually. ### Indicator.min -public double min +public double min The minimum value of indicator, with default value of 0. ### Indicator.name -public string name +public string name The name of indicator. ### Indicator.show -public bool show +public bool show [default:true] Set this to false to prevent the radar from showing. ### Indicator.text -public Text text +public Text text the text conponent of indicator. ### Indicator.AddIndicator -public RadarCoord.Indicator AddIndicator(string name, double min, double max) +public RadarCoord.Indicator AddIndicator(string name, double min, double max) ### Indicator.AddIndicatorList -public void AddIndicatorList(List<string> nameList, double min = 0, double max = 0) +public void AddIndicatorList(List<string> nameList, double min = 0, double max = 0) > Since `v3.3.0` ### Indicator.ClearData -public override void ClearData() +public override void ClearData() ### Indicator.GetFormatterIndicatorContent -public string GetFormatterIndicatorContent(string indicatorName) +public string GetFormatterIndicatorContent(string indicatorName) ### Indicator.GetIndicator -public RadarCoord.Indicator GetIndicator(int indicatorIndex) +public RadarCoord.Indicator GetIndicator(int indicatorIndex) ### Indicator.GetIndicatorMax -public double GetIndicatorMax(int index) +public double GetIndicatorMax(int index) ### Indicator.GetIndicatorMin -public double GetIndicatorMin(int index) +public double GetIndicatorMin(int index) ### Indicator.GetIndicatorName -public string GetIndicatorName(int indicatorIndex) +public string GetIndicatorName(int indicatorIndex) ### Indicator.GetIndicatorPosition -public Vector3 GetIndicatorPosition(int index) +public Vector3 GetIndicatorPosition(int index) ### Indicator.IsInIndicatorRange -public bool IsInIndicatorRange(int index, double value) +public bool IsInIndicatorRange(int index, double value) ### Indicator.IsInRange -public bool IsInRange(double value) +public bool IsInRange(double value) ### Indicator.IsPointerEnter -public bool IsPointerEnter() +public bool IsPointerEnter() ### Indicator.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() ### Indicator.UpdateIndicator -public bool UpdateIndicator(int indicatorIndex, string name, double min, double max) +public bool UpdateIndicator(int indicatorIndex, string name, double min, double max) ## INeedSerieContainer @@ -4432,11 +4432,11 @@ class in XCharts.Runtime ### InputHelper.GetKeyDown -public static bool GetKeyDown(KeyCode keyCode) +public static bool GetKeyDown(KeyCode keyCode) ### InputHelper.GetTouch -public static Touch GetTouch(int v) +public static Touch GetTouch(int v) ## InteractData @@ -4444,49 +4444,49 @@ class in XCharts.Runtime ### InteractData.Reset -public void Reset() +public void Reset() ### InteractData.SetColor -public void SetColor(ref bool needInteract, Color32 color, Color32 toColor) +public void SetColor(ref bool needInteract, Color32 color, Color32 toColor) ### InteractData.SetPosition -public void SetPosition(ref bool needInteract, Vector3 pos) +public void SetPosition(ref bool needInteract, Vector3 pos) ### InteractData.SetValue -public void SetValue(ref bool needInteract, float value, bool previousValueZero = false) +public void SetValue(ref bool needInteract, float value, bool previousValueZero = false) ### InteractData.SetValueAndColor -public void SetValueAndColor(ref bool needInteract, float value, Color32 color, Color32 toColor) +public void SetValueAndColor(ref bool needInteract, float value, Color32 color, Color32 toColor) ### InteractData.ToString -public override string ToString() +public override string ToString() ### InteractData.TryGetColor -public bool TryGetColor(ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250) +public bool TryGetColor(ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250) ### InteractData.TryGetPosition -public bool TryGetPosition(ref Vector3 pos, ref bool interacting, float animationDuration = 250) +public bool TryGetPosition(ref Vector3 pos, ref bool interacting, float animationDuration = 250) ### InteractData.TryGetValue -public bool TryGetValue(ref float value, ref bool interacting, float animationDuration = 250) +public bool TryGetValue(ref float value, ref bool interacting, float animationDuration = 250) ### InteractData.TryGetValueAndColor -public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref bool interacting, float animationDuration = 250) +public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref bool interacting, float animationDuration = 250) -public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250) +public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250) ## IPropertyChanged @@ -4523,41 +4523,41 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISe ### ItemStyle.GetBorderColor -public Color32 GetBorderColor(Color32 defaultColor) +public Color32 GetBorderColor(Color32 defaultColor) ### ItemStyle.GetBorderColor0 -public Color32 GetBorderColor0(Color32 defaultColor) +public Color32 GetBorderColor0(Color32 defaultColor) ### ItemStyle.GetColor -public Color32 GetColor(Color32 defaultColor) +public Color32 GetColor(Color32 defaultColor) ### ItemStyle.GetColor0 -public Color32 GetColor0(Color32 defaultColor) +public Color32 GetColor0(Color32 defaultColor) ### ItemStyle.GetGradientColor -public Color32 GetGradientColor(float value, Color32 defaultColor) +public Color32 GetGradientColor(float value, Color32 defaultColor) ### ItemStyle.GetToColor -public Color32 GetToColor() +public Color32 GetToColor() ### ItemStyle.IsNeedCorner -public bool IsNeedCorner() +public bool IsNeedCorner() ### ItemStyle.IsNeedGradient -public bool IsNeedGradient() +public bool IsNeedGradient() ### ItemStyle.Reset -public void Reset() +public void Reset() ## IUpdateRuntimeData @@ -4569,15 +4569,15 @@ class in XCharts.Runtime ### JsonUtil.GetJsonArray<T> -public static T[] GetJsonArray<T>(string json) +public static T[] GetJsonArray<T>(string json) ### JsonUtil.GetJsonObject<T> -public static T GetJsonObject<T>(string json) +public static T GetJsonObject<T>(string json) ### JsonUtil.GetWebJson<T> -public static IEnumerator GetWebJson<T>(string url, Action<T> callback) +public static IEnumerator GetWebJson<T>(string url, Action<T> callback) ## LabelLine @@ -4588,15 +4588,15 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent),[ISe ### LabelLine.GetEndSymbolOffset -public Vector3 GetEndSymbolOffset() +public Vector3 GetEndSymbolOffset() ### LabelLine.GetStartSymbolOffset -public Vector3 GetStartSymbolOffset() +public Vector3 GetStartSymbolOffset() ### LabelLine.Reset -public void Reset() +public void Reset() ## LabelLine.LineType @@ -4618,45 +4618,45 @@ Text label of chart, to explain some data information about graphic item like va ### LabelStyle.Clone -public virtual LabelStyle Clone() +public virtual LabelStyle Clone() ### LabelStyle.Copy -public virtual void Copy(LabelStyle label) +public virtual void Copy(LabelStyle label) ### LabelStyle.GetColor -public Color GetColor(Color defaultColor) +public Color GetColor(Color defaultColor) ### LabelStyle.GetFormatterContent -public virtual string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false) +public virtual string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false) ### LabelStyle.GetFormatterDateTime -public string GetFormatterDateTime(int labelIndex, double value, double minValue, double maxValue) +public string GetFormatterDateTime(int labelIndex, double value, double minValue, double maxValue) ### LabelStyle.GetOffset -public Vector3 GetOffset(float radius) +public Vector3 GetOffset(float radius) ### LabelStyle.IsAutoSize -public bool IsAutoSize() +public bool IsAutoSize() ### LabelStyle.IsDefaultPosition -public bool IsDefaultPosition(Position position) +public bool IsDefaultPosition(Position position) ### LabelStyle.IsInside -public bool IsInside() +public bool IsInside() whether the label is inside. ### LabelStyle.Reset -public void Reset() +public void Reset() ## LabelStyle.Position @@ -4686,15 +4686,15 @@ Language. ### Lang.GetCandlestickDimensionName -public string GetCandlestickDimensionName(int i) +public string GetCandlestickDimensionName(int i) ### Lang.GetDay -public string GetDay(int day) +public string GetDay(int day) ### Lang.GetMonthAbbr -public string GetMonthAbbr(int month) +public string GetMonthAbbr(int month) ## LangCandlestick @@ -4702,7 +4702,7 @@ class in XCharts.Runtime ### LangCandlestick.List<string>() -public List<string> dimensionNames = new List<string>() +public List<string> dimensionNames = new List<string>() ## LangTime @@ -4710,13 +4710,13 @@ class in XCharts.Runtime ### LangTime.List<string> -public List<string> dayOfMonth = new List<string>() +public List<string> dayOfMonth = new List<string>() -public List<string> dayOfWeek = new List<string>() +public List<string> dayOfWeek = new List<string>() -public List<string> dayOfWeekAbbr = new List<string>() +public List<string> dayOfWeekAbbr = new List<string>() -public List<string> monthAbbr = new List<string>() +public List<string> monthAbbr = new List<string>() ## LayerHelper @@ -4725,11 +4725,11 @@ class in XCharts.Runtime ### LayerHelper.IsFixedWidthHeight -public static bool IsFixedWidthHeight(RectTransform rt) +public static bool IsFixedWidthHeight(RectTransform rt) ### LayerHelper.IsStretchPivot -public static bool IsStretchPivot(RectTransform rt) +public static bool IsStretchPivot(RectTransform rt) ## Legend @@ -4739,79 +4739,79 @@ Legend component.The legend component shows different sets of tags, colors, and ### Legend.vertsDirty -public override bool vertsDirty +public override bool vertsDirty 图表是否需要刷新(图例组件不需要刷新图表) ### Legend.AddData -public void AddData(string name) +public void AddData(string name) Add legend data. ### Legend.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### Legend.ClearData -public override void ClearData() +public override void ClearData() Clear legend data. ### Legend.ContainsData -public bool ContainsData(string name) +public bool ContainsData(string name) Whether include in legend data by the specified name. ### Legend.GetColor -public Color GetColor(int index) +public Color GetColor(int index) ### Legend.GetData -public string GetData(int index) +public string GetData(int index) Gets the legend for the specified index. ### Legend.GetIcon -public Sprite GetIcon(int index) +public Sprite GetIcon(int index) Gets the legend button for the specified index. ### Legend.GetIndex -public int GetIndex(string legendName) +public int GetIndex(string legendName) Gets the index of the specified legend. ### Legend.GetPosition -public Vector3 GetPosition(int index, Vector3 defaultPos) +public Vector3 GetPosition(int index, Vector3 defaultPos) ### Legend.OnChanged -public void OnChanged() +public void OnChanged() Callback handling when parameters change. ### Legend.RemoveButton -public void RemoveButton() +public void RemoveButton() Remove all legend buttons. ### Legend.RemoveData -public void RemoveData(string name) +public void RemoveData(string name) Removes the legend with the specified name. ### Legend.SetButton -public void SetButton(string name, LegendItem item, int total) +public void SetButton(string name, LegendItem item, int total) Bind buttons to legends. ### Legend.UpdateButtonColor -public void UpdateButtonColor(string name, Color color) +public void UpdateButtonColor(string name, Color color) Update the legend button color. ### Legend.UpdateContentColor -public void UpdateContentColor(string name, Color color) +public void UpdateContentColor(string name, Color color) Update the text color of legend. ## Legend.SelectedMode @@ -4849,20 +4849,20 @@ class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentc ### LegendContext.background -public Image background +public Image background ### LegendContext.center -public Vector2 center +public Vector2 center ### LegendContext.height -public float height +public float height 运行时图例的总高度 ### LegendContext.width -public float width +public float width 运行时图例的总宽度 ## LegendHelper @@ -4871,27 +4871,27 @@ class in XCharts.Runtime ### LegendHelper.CheckDataHighlighted -public static int CheckDataHighlighted(Serie serie, string legendName, bool heighlight) +public static int CheckDataHighlighted(Serie serie, string legendName, bool heighlight) ### LegendHelper.CheckDataShow -public static bool CheckDataShow(Serie serie, string legendName, bool show) +public static bool CheckDataShow(Serie serie, string legendName, bool show) ### LegendHelper.GetContentColor -public static Color GetContentColor(BaseChart chart, int legendIndex, string legendName, Legend legend, ThemeStyle theme, bool active) +public static Color GetContentColor(BaseChart chart, int legendIndex, string legendName, Legend legend, ThemeStyle theme, bool active) ### LegendHelper.GetIconColor -public static Color GetIconColor(BaseChart chart, Legend legend, int readIndex, string legendName, bool active) +public static Color GetIconColor(BaseChart chart, Legend legend, int readIndex, string legendName, bool active) ### LegendHelper.ResetItemPosition -public static void ResetItemPosition(Legend legend, Vector3 chartPos, float chartWidth, float chartHeight) +public static void ResetItemPosition(Legend legend, Vector3 chartPos, float chartWidth, float chartHeight) ### LegendHelper.SetLegendBackground -public static void SetLegendBackground(Legend legend, ImageStyle style) +public static void SetLegendBackground(Legend legend, ImageStyle style) ## LegendItem @@ -4899,99 +4899,99 @@ class in XCharts.Runtime ### LegendItem.button -public Button button +public Button button ### LegendItem.gameObject -public GameObject gameObject +public GameObject gameObject ### LegendItem.index -public int index +public int index ### LegendItem.legendName -public string legendName +public string legendName ### LegendItem.name -public string name +public string name ### LegendItem.text -public ChartText text +public ChartText text ### LegendItem.GetIconColor -public Color GetIconColor() +public Color GetIconColor() ### LegendItem.GetIconRect -public Rect GetIconRect() +public Rect GetIconRect() ### LegendItem.SetActive -public void SetActive(bool active) +public void SetActive(bool active) ### LegendItem.SetBackground -public void SetBackground(ImageStyle imageStyle) +public void SetBackground(ImageStyle imageStyle) ### LegendItem.SetButton -public void SetButton(Button button) +public void SetButton(Button button) ### LegendItem.SetContent -public bool SetContent(string content) +public bool SetContent(string content) ### LegendItem.SetContentBackgroundColor -public void SetContentBackgroundColor(Color color) +public void SetContentBackgroundColor(Color color) ### LegendItem.SetContentColor -public void SetContentColor(Color color) +public void SetContentColor(Color color) ### LegendItem.SetContentPosition -public void SetContentPosition(Vector3 offset) +public void SetContentPosition(Vector3 offset) ### LegendItem.SetIcon -public void SetIcon(Image icon) +public void SetIcon(Image icon) ### LegendItem.SetIconActive -public void SetIconActive(bool active) +public void SetIconActive(bool active) ### LegendItem.SetIconColor -public void SetIconColor(Color color) +public void SetIconColor(Color color) ### LegendItem.SetIconImage -public void SetIconImage(Sprite image) +public void SetIconImage(Sprite image) ### LegendItem.SetIconSize -public void SetIconSize(float width, float height) +public void SetIconSize(float width, float height) ### LegendItem.SetObject -public void SetObject(GameObject obj) +public void SetObject(GameObject obj) ### LegendItem.SetPosition -public void SetPosition(Vector3 position) +public void SetPosition(Vector3 position) ### LegendItem.SetText -public void SetText(ChartText text) +public void SetText(ChartText text) ### LegendItem.SetTextBackground -public void SetTextBackground(Image image) +public void SetTextBackground(Image image) ## LegendTheme @@ -4999,11 +4999,11 @@ class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) ### LegendTheme.Copy -public void Copy(LegendTheme theme) +public void Copy(LegendTheme theme) ### LegendTheme.LegendTheme -public LegendTheme(ThemeType theme) : base(theme) +public LegendTheme(ThemeType theme) : base(theme) ## Level @@ -5011,27 +5011,27 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### Level.depth -public int depth +public int depth the depth of level. ### Level.itemStyle -public ItemStyle itemStyle +public ItemStyle itemStyle the item style of level. ### Level.label -public LabelStyle label +public LabelStyle label the label style of level. ### Level.lineStyle -public LineStyle lineStyle +public LineStyle lineStyle the line style of level. ### Level.upperLabel -public LabelStyle upperLabel +public LabelStyle upperLabel the upper label style of level. ## LevelStyle @@ -5042,12 +5042,12 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### LevelStyle.levels -public List<Level> levels +public List<Level> levels 各层节点对应的配置。当enableLevels为true时生效,levels[0]对应的第一层的配置,levels[1]对应第二层,依次类推。当levels中没有对应层时用默认的设置。 ### LevelStyle.show -public bool show +public bool show 是否启用LevelStyle ## Line @@ -5056,19 +5056,19 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer]( ### Line.containerIndex -public int containerIndex +public int containerIndex ### Line.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### Line.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ### Line.ConvertSerie -public static Line ConvertSerie(Serie serie) +public static Line ConvertSerie(Serie serie) ## LineArrow @@ -5091,47 +5091,47 @@ Line chart relates all the data points symbol by broken lines, which is used to ### LineChart.DefaultAreaLineChart -public void DefaultAreaLineChart() +public void DefaultAreaLineChart() default area line chart. ### LineChart.DefaultDashLineChart -public void DefaultDashLineChart() +public void DefaultDashLineChart() default dash line chart. ### LineChart.DefaultLogLineChart -public void DefaultLogLineChart() +public void DefaultLogLineChart() default logarithmic line chart. ### LineChart.DefaultSmoothAreaLineChart -public void DefaultSmoothAreaLineChart() +public void DefaultSmoothAreaLineChart() default smooth area line chart. ### LineChart.DefaultSmoothLineChart -public void DefaultSmoothLineChart() +public void DefaultSmoothLineChart() default smooth line chart. ### LineChart.DefaultStackAreaLineChart -public void DefaultStackAreaLineChart() +public void DefaultStackAreaLineChart() default stack area line chart. ### LineChart.DefaultStackLineChart -public void DefaultStackLineChart() +public void DefaultStackLineChart() default stack line chart. ### LineChart.DefaultStepLineChart -public void DefaultStepLineChart() +public void DefaultStepLineChart() default step line chart. ### LineChart.DefaultTimeLineChart -public void DefaultTimeLineChart() +public void DefaultTimeLineChart() default time line chart. ## LineHelper @@ -5140,11 +5140,11 @@ class in XCharts.Runtime ### LineHelper.GetDataAverageRate -public static int GetDataAverageRate(Serie serie, float axisLength, int maxCount, bool isYAxis) +public static int GetDataAverageRate(Serie serie, float axisLength, int maxCount, bool isYAxis) ### LineHelper.GetLineWidth -public static float GetLineWidth(ref bool interacting, Serie serie, float defaultWidth) +public static float GetLineWidth(ref bool interacting, Serie serie, float defaultWidth) ## LineStyle @@ -5154,48 +5154,48 @@ The style of line. ### LineStyle.Clone -public LineStyle Clone() +public LineStyle Clone() ### LineStyle.Copy -public void Copy(LineStyle lineStyle) +public void Copy(LineStyle lineStyle) ### LineStyle.GetColor -public Color32 GetColor(Color32 themeColor) +public Color32 GetColor(Color32 themeColor) ### LineStyle.GetGradientColor -public Color32 GetGradientColor(float value, Color32 defaultColor) +public Color32 GetGradientColor(float value, Color32 defaultColor) ### LineStyle.GetLength -public float GetLength(float themeLength) +public float GetLength(float themeLength) ### LineStyle.GetType -public Type GetType(Type themeType) +public Type GetType(Type themeType) ### LineStyle.GetWidth -public float GetWidth(float themeWidth) +public float GetWidth(float themeWidth) ### LineStyle.IsNeedGradient -public bool IsNeedGradient() +public bool IsNeedGradient() ### LineStyle.IsNotSolidLine -public bool IsNotSolidLine() +public bool IsNotSolidLine() ### LineStyle.LineStyle -public LineStyle(float width) +public LineStyle(float width) -public LineStyle(LineStyle.Type type) +public LineStyle(LineStyle.Type type) -public LineStyle(LineStyle.Type type, float width) +public LineStyle(LineStyle.Type type, float width) ## LineStyle.Type @@ -5233,7 +5233,7 @@ class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/S ### ListFor.ListFor -public ListFor(Type type) +public ListFor(Type type) ## ListForComponent @@ -5241,7 +5241,7 @@ class in XCharts.Runtime / Inherits from: [ListFor](#listfor) ### ListForComponent.ListForComponent -public ListForComponent(Type type) : base(type) +public ListForComponent(Type type) : base(type) ## ListForSerie @@ -5249,7 +5249,7 @@ class in XCharts.Runtime / Inherits from: [ListFor](#listfor) ### ListForSerie.ListForSerie -public ListForSerie(Type type) : base(type) +public ListForSerie(Type type) : base(type) ## ListPool<T> @@ -5257,15 +5257,15 @@ class in XCharts.Runtime ### ListPool<T>.ClearAll -public static void ClearAll() +public static void ClearAll() ### ListPool<T>.Get -public static List<T> Get() +public static List<T> Get() ### ListPool<T>.Release -public static void Release(List<T> toRelease) +public static void Release(List<T> toRelease) ## Location @@ -5275,68 +5275,68 @@ Location type. Quick to set the general location. ### Location.runtimeAnchorMax -public Vector2 runtimeAnchorMax +public Vector2 runtimeAnchorMax ### Location.runtimeAnchorMin -public Vector2 runtimeAnchorMin +public Vector2 runtimeAnchorMin the minimum achor. ### Location.runtimeBottom -public float runtimeBottom +public float runtimeBottom ### Location.runtimeLeft -public float runtimeLeft +public float runtimeLeft ### Location.runtimePivot -public Vector2 runtimePivot +public Vector2 runtimePivot the povot. ### Location.runtimeRight -public float runtimeRight +public float runtimeRight ### Location.runtimeTextAlignment -public TextAnchor runtimeTextAlignment +public TextAnchor runtimeTextAlignment the anchor of text. ### Location.runtimeTMPTextAlignment -public TextAlignmentOptions runtimeTMPTextAlignment +public TextAlignmentOptions runtimeTMPTextAlignment ### Location.runtimeTop -public float runtimeTop +public float runtimeTop ### Location.GetPosition -public Vector3 GetPosition(float chartWidth, float chartHeight) +public Vector3 GetPosition(float chartWidth, float chartHeight) 返回在坐标系中的具体位置 ### Location.IsBottom -public bool IsBottom() +public bool IsBottom() ### Location.IsCenter -public bool IsCenter() +public bool IsCenter() ### Location.IsTop -public bool IsTop() +public bool IsTop() ### Location.OnChanged -public void OnChanged() +public void OnChanged() 属性变更时更新textAnchor,minAnchor,maxAnchor,pivot ### Location.UpdateRuntimeData -public void UpdateRuntimeData(float chartWidth, float chartHeight) +public void UpdateRuntimeData(float chartWidth, float chartHeight) ## Location.Align @@ -5362,102 +5362,102 @@ class in XCharts.Runtime / Inherits from: [IComparable](https://docs.unity3d.com ### MainComponent.anyDirty -public bool anyDirty +public bool anyDirty 需要重绘图表或重新初始化组件。 ### MainComponent.ClearData() -public virtual void ClearData() +public virtual void ClearData() ### MainComponent.componentDirty -public virtual bool componentDirty +public virtual bool componentDirty 组件重新初始化标记。 ### MainComponent.gameObject -public GameObject gameObject +public GameObject gameObject ### MainComponent.index -public int index +public int index ### MainComponent.instanceId -public int instanceId +public int instanceId ### MainComponent.painter -public Painter painter +public Painter painter ### MainComponent.refreshComponent -public Action refreshComponent +public Action refreshComponent ### MainComponent.Reset() -public virtual void Reset() +public virtual void Reset() ### MainComponent.ResetStatus() -public virtual void ResetStatus() +public virtual void ResetStatus() ### MainComponent.SetDefaultValue() -public virtual void SetDefaultValue() +public virtual void SetDefaultValue() ### MainComponent.vertsDirty -public virtual bool vertsDirty +public virtual bool vertsDirty 图表重绘标记。 ### MainComponent.ClearComponentDirty -public virtual void ClearComponentDirty() +public virtual void ClearComponentDirty() ### MainComponent.ClearData -public virtual void ClearData() { } +public virtual void ClearData() { } ### MainComponent.ClearDirty -public virtual void ClearDirty() +public virtual void ClearDirty() ### MainComponent.ClearVerticesDirty -public virtual void ClearVerticesDirty() +public virtual void ClearVerticesDirty() ### MainComponent.CompareTo -public int CompareTo(object obj) +public int CompareTo(object obj) ### MainComponent.OnRemove -public virtual void OnRemove() +public virtual void OnRemove() ### MainComponent.Reset -public virtual void Reset() { } +public virtual void Reset() { } ### MainComponent.ResetStatus -public virtual void ResetStatus() { } +public virtual void ResetStatus() { } ### MainComponent.SetAllDirty -public virtual void SetAllDirty() +public virtual void SetAllDirty() ### MainComponent.SetComponentDirty -public virtual void SetComponentDirty() +public virtual void SetComponentDirty() ### MainComponent.SetDefaultValue -public virtual void SetDefaultValue() { } +public virtual void SetDefaultValue() { } ### MainComponent.SetVerticesDirty -public virtual void SetVerticesDirty() +public virtual void SetVerticesDirty() ## MainComponentContext @@ -5469,163 +5469,163 @@ class in XCharts.Runtime / Subclasses: [AxisHandler<T>](#axishandlert),[Ma ### MainComponentHandler.attribute -public ComponentHandlerAttribute attribute +public ComponentHandlerAttribute attribute ### MainComponentHandler.BeforceSerieUpdate() -public virtual void BeforceSerieUpdate() +public virtual void BeforceSerieUpdate() ### MainComponentHandler.chart -public BaseChart chart +public BaseChart chart ### MainComponentHandler.eventData) -public virtual void OnBeginDrag(PointerEventData eventData) +public virtual void OnBeginDrag(PointerEventData eventData) ### MainComponentHandler.eventData) -public virtual void OnDrag(PointerEventData eventData) +public virtual void OnDrag(PointerEventData eventData) ### MainComponentHandler.eventData) -public virtual void OnEndDrag(PointerEventData eventData) +public virtual void OnEndDrag(PointerEventData eventData) ### MainComponentHandler.eventData) -public virtual void OnPointerClick(PointerEventData eventData) +public virtual void OnPointerClick(PointerEventData eventData) ### MainComponentHandler.eventData) -public virtual void OnPointerDown(PointerEventData eventData) +public virtual void OnPointerDown(PointerEventData eventData) ### MainComponentHandler.eventData) -public virtual void OnPointerEnter(PointerEventData eventData) +public virtual void OnPointerEnter(PointerEventData eventData) ### MainComponentHandler.eventData) -public virtual void OnPointerExit(PointerEventData eventData) +public virtual void OnPointerExit(PointerEventData eventData) ### MainComponentHandler.eventData) -public virtual void OnPointerUp(PointerEventData eventData) +public virtual void OnPointerUp(PointerEventData eventData) ### MainComponentHandler.eventData) -public virtual void OnScroll(PointerEventData eventData) +public virtual void OnScroll(PointerEventData eventData) ### MainComponentHandler.InitComponent() -public virtual void InitComponent() +public virtual void InitComponent() ### MainComponentHandler.inited -public bool inited +public bool inited ### MainComponentHandler.order -public int order +public int order ### MainComponentHandler.RemoveComponent() -public virtual void RemoveComponent() +public virtual void RemoveComponent() ### MainComponentHandler.sb) -public virtual void CheckComponent(StringBuilder sb) +public virtual void CheckComponent(StringBuilder sb) ### MainComponentHandler.serieIndex) -public virtual void OnSerieDataUpdate(int serieIndex) +public virtual void OnSerieDataUpdate(int serieIndex) ### MainComponentHandler.Update() -public virtual void Update() +public virtual void Update() ### MainComponentHandler.vh) -public virtual void DrawBase(VertexHelper vh) +public virtual void DrawBase(VertexHelper vh) ### MainComponentHandler.vh) -public virtual void DrawTop(VertexHelper vh) +public virtual void DrawTop(VertexHelper vh) ### MainComponentHandler.vh) -public virtual void DrawUpper(VertexHelper vh) +public virtual void DrawUpper(VertexHelper vh) ### MainComponentHandler.BeforceSerieUpdate -public virtual void BeforceSerieUpdate() { } +public virtual void BeforceSerieUpdate() { } ### MainComponentHandler.CheckComponent -public virtual void CheckComponent(StringBuilder sb) { } +public virtual void CheckComponent(StringBuilder sb) { } ### MainComponentHandler.DrawBase -public virtual void DrawBase(VertexHelper vh) { } +public virtual void DrawBase(VertexHelper vh) { } ### MainComponentHandler.DrawTop -public virtual void DrawTop(VertexHelper vh) { } +public virtual void DrawTop(VertexHelper vh) { } ### MainComponentHandler.DrawUpper -public virtual void DrawUpper(VertexHelper vh) { } +public virtual void DrawUpper(VertexHelper vh) { } ### MainComponentHandler.InitComponent -public virtual void InitComponent() { } +public virtual void InitComponent() { } ### MainComponentHandler.OnBeginDrag -public virtual void OnBeginDrag(PointerEventData eventData) { } +public virtual void OnBeginDrag(PointerEventData eventData) { } ### MainComponentHandler.OnDrag -public virtual void OnDrag(PointerEventData eventData) { } +public virtual void OnDrag(PointerEventData eventData) { } ### MainComponentHandler.OnEndDrag -public virtual void OnEndDrag(PointerEventData eventData) { } +public virtual void OnEndDrag(PointerEventData eventData) { } ### MainComponentHandler.OnPointerClick -public virtual void OnPointerClick(PointerEventData eventData) { } +public virtual void OnPointerClick(PointerEventData eventData) { } ### MainComponentHandler.OnPointerDown -public virtual void OnPointerDown(PointerEventData eventData) { } +public virtual void OnPointerDown(PointerEventData eventData) { } ### MainComponentHandler.OnPointerEnter -public virtual void OnPointerEnter(PointerEventData eventData) { } +public virtual void OnPointerEnter(PointerEventData eventData) { } ### MainComponentHandler.OnPointerExit -public virtual void OnPointerExit(PointerEventData eventData) { } +public virtual void OnPointerExit(PointerEventData eventData) { } ### MainComponentHandler.OnPointerUp -public virtual void OnPointerUp(PointerEventData eventData) { } +public virtual void OnPointerUp(PointerEventData eventData) { } ### MainComponentHandler.OnScroll -public virtual void OnScroll(PointerEventData eventData) { } +public virtual void OnScroll(PointerEventData eventData) { } ### MainComponentHandler.OnSerieDataUpdate -public virtual void OnSerieDataUpdate(int serieIndex) { } +public virtual void OnSerieDataUpdate(int serieIndex) { } ### MainComponentHandler.RemoveComponent -public virtual void RemoveComponent() { } +public virtual void RemoveComponent() { } ### MainComponentHandler.Update -public virtual void Update() { } +public virtual void Update() { } ## MainComponentHandler<T> @@ -5633,7 +5633,7 @@ class in XCharts.Runtime / Inherits from: [MainComponentHandler](#maincomponenth ### MainComponentHandler<T>.component -public T component +public T component ## MarkArea @@ -5643,20 +5643,20 @@ Used to mark an area in chart. For example, mark a time interval. ### MarkArea.runtimeLabel -public ChartLabel runtimeLabel +public ChartLabel runtimeLabel Used to mark an area in chart. For example, mark a time interval. ### MarkArea.runtimeLabelPosition -public Vector3 runtimeLabelPosition +public Vector3 runtimeLabelPosition ### MarkArea.runtimeRect -public Rect runtimeRect +public Rect runtimeRect ### MarkArea.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() ## MarkAreaData @@ -5666,7 +5666,7 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### MarkAreaData.runtimeValue -public double runtimeValue +public double runtimeValue 标域的数据。 ## MarkAreaType @@ -5691,7 +5691,7 @@ Use a line in the chart to illustrate. ### MarkLine.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() ## MarkLineData @@ -5703,27 +5703,27 @@ Data of marking line. ### MarkLineData.runtimeCurrentEndPosition -public Vector3 runtimeCurrentEndPosition +public Vector3 runtimeCurrentEndPosition ### MarkLineData.runtimeEndPosition -public Vector3 runtimeEndPosition +public Vector3 runtimeEndPosition ### MarkLineData.runtimeInGrid -public bool runtimeInGrid +public bool runtimeInGrid ### MarkLineData.runtimeLabel -public ChartLabel runtimeLabel +public ChartLabel runtimeLabel ### MarkLineData.runtimeStartPosition -public Vector3 runtimeStartPosition +public Vector3 runtimeStartPosition ### MarkLineData.runtimeValue -public double runtimeValue +public double runtimeValue ## MarkLineType @@ -5749,37 +5749,37 @@ Marquee style. It can be used for the DataZoom component. 选取框样式。可 ### MarqueeStyle.apply -public bool apply +public bool apply Check whether the scope is applied to the DataZoom. If this parameter is set to true, the range after the selection is complete is the DataZoom selection range. ### MarqueeStyle.areaStyle -public AreaStyle areaStyle +public AreaStyle areaStyle The area style of marquee. ### MarqueeStyle.lineStyle -public LineStyle lineStyle +public LineStyle lineStyle The line style of marquee border. ### MarqueeStyle.onEnd -public Action<DataZoom> onEnd +public Action<DataZoom> onEnd Customize the callback at the end of the selection. ### MarqueeStyle.onGoing -public Action<DataZoom> onGoing +public Action<DataZoom> onGoing Custom checkboxes select ongoing callbacks. ### MarqueeStyle.onStart -public Action<DataZoom> onStart +public Action<DataZoom> onStart Customize the callback to the start of the selection of the checkbox. ### MarqueeStyle.realRect -public bool realRect +public bool realRect Whether to select the actual box selection area. When true, the actual range between the mouse's actual point and the end point is used as the box selection area. ## MathUtil @@ -5788,31 +5788,31 @@ class in XCharts.Runtime ### MathUtil.Abs -public static double Abs(double d) +public static double Abs(double d) ### MathUtil.Approximately -public static bool Approximately(double a, double b) +public static bool Approximately(double a, double b) ### MathUtil.Clamp -public static double Clamp(double d, double min, double max) +public static double Clamp(double d, double min, double max) ### MathUtil.Clamp01 -public static double Clamp01(double value) +public static double Clamp01(double value) ### MathUtil.GetPrecision -public static int GetPrecision(double value) +public static int GetPrecision(double value) ### MathUtil.IsInteger -public static bool IsInteger(double value) +public static bool IsInteger(double value) ### MathUtil.Lerp -public static double Lerp(double a, double b, double t) +public static double Lerp(double a, double b, double t) ## MLValue @@ -5824,20 +5824,20 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### MLValue.type -public Type type +public Type type ### MLValue.value -public float value +public float value ### MLValue.GetValue -public float GetValue(float total) +public float GetValue(float total) Get the value by type. ### MLValue.MLValue -public MLValue(Type type, float value) +public MLValue(Type type, float value) ## MLValue.Type @@ -5862,35 +5862,35 @@ class in XCharts.Runtime / Inherits from: [new()](#new()) ### ObjectPool<T> where T.countActive -public int countActive +public int countActive ### ObjectPool<T> where T.countAll -public int countAll +public int countAll ### ObjectPool<T> where T.countInactive -public int countInactive +public int countInactive ### ObjectPool<T> where T.ClearAll -public void ClearAll() +public void ClearAll() ### ObjectPool<T> where T.Get -public T Get() +public T Get() ### ObjectPool<T> where T.new -public class ObjectPool<T> where T : new() +public class ObjectPool<T> where T : new() ### ObjectPool<T> where T.ObjectPool -public ObjectPool(UnityAction<T> actionOnGet, UnityAction<T> actionOnRelease, bool newIfEmpty = true) +public ObjectPool(UnityAction<T> actionOnGet, UnityAction<T> actionOnRelease, bool newIfEmpty = true) ### ObjectPool<T> where T.Release -public void Release(T element) +public void Release(T element) ## Orient @@ -5911,16 +5911,16 @@ padding setting of item or text. ### Padding.Padding() -public Padding() +public Padding() ### Padding.Padding -public Padding(float top, float right, float bottom, float left) +public Padding(float top, float right, float bottom, float left) ### Padding.SetPadding -public void SetPadding(float top, float right, float bottom, float left) +public void SetPadding(float top, float right, float bottom, float left) ## Painter @@ -5928,31 +5928,31 @@ class in XCharts.Runtime / Inherits from: [MaskableGraphic](https://docs.unity3d ### Painter.index -public int index +public int index ### Painter.onPopulateMesh -public Action<VertexHelper, Painter> onPopulateMesh +public Action<VertexHelper, Painter> onPopulateMesh ### Painter.type -public Type type +public Type type ### Painter.CheckRefresh -public void CheckRefresh() +public void CheckRefresh() ### Painter.Init -public void Init() +public void Init() ### Painter.Refresh -public void Refresh() +public void Refresh() ### Painter.SetActive -public void SetActive(bool flag, bool isDebugMode = false) +public void SetActive(bool flag, bool isDebugMode = false) ## Painter.Type @@ -5970,15 +5970,15 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer]( ### Parallel.containerIndex -public int containerIndex +public int containerIndex ### Parallel.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### Parallel.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## ParallelAxis @@ -5986,7 +5986,7 @@ class in XCharts.Runtime / Inherits from: [Axis](#axis) ### ParallelAxis.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() ## ParallelChart @@ -6002,16 +6002,16 @@ Grid component. ### ParallelCoord.Contains -public bool Contains(float x, float y) +public bool Contains(float x, float y) ### ParallelCoord.IsPointerEnter -public bool IsPointerEnter() +public bool IsPointerEnter() ### ParallelCoord.UpdateRuntimeData -public void UpdateRuntimeData(BaseChart chart) +public void UpdateRuntimeData(BaseChart chart) ## ParallelCoordContext @@ -6023,19 +6023,19 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie) ### Pie.defaultColorBy -public override SerieColorBy defaultColorBy +public override SerieColorBy defaultColorBy ### Pie.titleJustForSerie -public override bool titleJustForSerie +public override bool titleJustForSerie ### Pie.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ### Pie.ConvertSerie -public static Pie ConvertSerie(Serie serie) +public static Pie ConvertSerie(Serie serie) ## PieChart @@ -6045,27 +6045,27 @@ The pie chart is mainly used for showing proportion of different categories. Eac ### PieChart.DefaultAreaRosePieChart -public void DefaultAreaRosePieChart() +public void DefaultAreaRosePieChart() default area rose pie chart. ### PieChart.DefaultDonutPieChart -public void DefaultDonutPieChart() +public void DefaultDonutPieChart() default donut pie chart. ### PieChart.DefaultLabelDonutPieChart -public void DefaultLabelDonutPieChart() +public void DefaultLabelDonutPieChart() default label donut pie chart. ### PieChart.DefaultLabelPieChart -public void DefaultLabelPieChart() +public void DefaultLabelPieChart() default label pie chart. ### PieChart.DefaultRadiusRosePieChart -public void DefaultRadiusRosePieChart() +public void DefaultRadiusRosePieChart() default rose pie chart. ## PolarAxisTheme @@ -6074,11 +6074,11 @@ class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) ### PolarAxisTheme.base(theme) -public PolarAxisTheme(ThemeType theme) : base(theme) +public PolarAxisTheme(ThemeType theme) : base(theme) ### PolarAxisTheme.PolarAxisTheme -public PolarAxisTheme(ThemeType theme) : base(theme) { } +public PolarAxisTheme(ThemeType theme) : base(theme) { } ## PolarChart @@ -6088,17 +6088,17 @@ Polar coordinates are usually used in a circular layout. ### PolarChart.DefaultHeatmapPolarChart -public void DefaultHeatmapPolarChart() +public void DefaultHeatmapPolarChart() default heatmap polar chart. ### PolarChart.DefaultRadialBarPolarChart -public void DefaultRadialBarPolarChart() +public void DefaultRadialBarPolarChart() default radial bar polar chart. ### PolarChart.DefaultTangentialBarPolarChart -public void DefaultTangentialBarPolarChart() +public void DefaultTangentialBarPolarChart() default tangential bar polar chart. ## PolarCoord @@ -6109,11 +6109,11 @@ Polar coordinate can be used in scatter and line chart. Every polar coordinate h ### PolarCoord.Contains -public bool Contains(Vector3 pos) +public bool Contains(Vector3 pos) ### PolarCoord.IsPointerEnter -public bool IsPointerEnter() +public bool IsPointerEnter() ## PolarCoordContext @@ -6125,16 +6125,16 @@ class in XCharts.Runtime ### PropertyUtil.SetClass<T> -public static bool SetClass<T>(ref T currentValue, T newValue, bool notNull = false) where T : class +public static bool SetClass<T>(ref T currentValue, T newValue, bool notNull = false) where T : class ### PropertyUtil.SetColor -public static bool SetColor(ref Color32 currentValue, Color32 newValue) +public static bool SetColor(ref Color32 currentValue, Color32 newValue) ### PropertyUtil.SetStruct<T> -public static bool SetStruct<T>(ref T currentValue, T newValue) where T : struct +public static bool SetStruct<T>(ref T currentValue, T newValue) where T : struct ## Radar @@ -6142,23 +6142,23 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer]( ### Radar.containerIndex -public int containerIndex +public int containerIndex ### Radar.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### Radar.defaultColorBy -public override SerieColorBy defaultColorBy +public override SerieColorBy defaultColorBy ### Radar.multiDimensionLabel -public override bool multiDimensionLabel +public override bool multiDimensionLabel ### Radar.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## RadarAxisTheme @@ -6166,7 +6166,7 @@ class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) ### RadarAxisTheme.RadarAxisTheme -public RadarAxisTheme(ThemeType theme) : base(theme) +public RadarAxisTheme(ThemeType theme) : base(theme) ## RadarChart @@ -6176,7 +6176,7 @@ Radar chart is mainly used to show multi-variable data, such as the analysis of ### RadarChart.DefaultCircleRadarChart -public void DefaultCircleRadarChart() +public void DefaultCircleRadarChart() default circle radar chart. ## RadarCoord @@ -6213,20 +6213,20 @@ class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentc ### RadarCoordContext.center -public Vector3 center +public Vector3 center the center position of radar in container. ### RadarCoordContext.dataRadius -public float dataRadius +public float dataRadius ### RadarCoordContext.isPointerEnter -public bool isPointerEnter +public bool isPointerEnter ### RadarCoordContext.radius -public float radius +public float radius the true radius of radar. ## RadarType @@ -6248,7 +6248,7 @@ Radial axis of polar coordinate. ### RadiusAxis.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() Radial axis of polar coordinate. ## RadiusAxisTheme @@ -6257,11 +6257,11 @@ class in XCharts.Runtime / Inherits from: [BaseAxisTheme](#baseaxistheme) ### RadiusAxisTheme.base(theme) -public RadiusAxisTheme(ThemeType theme) : base(theme) +public RadiusAxisTheme(ThemeType theme) : base(theme) ### RadiusAxisTheme.RadiusAxisTheme -public RadiusAxisTheme(ThemeType theme) : base(theme) { } +public RadiusAxisTheme(ThemeType theme) : base(theme) { } ## ReflectionUtil @@ -6269,27 +6269,27 @@ class in XCharts.Runtime ### ReflectionUtil.DeepCloneSerializeField -public static object DeepCloneSerializeField(object obj) +public static object DeepCloneSerializeField(object obj) ### ReflectionUtil.InvokeListAdd -public static void InvokeListAdd(object obj, FieldInfo field, object item) +public static void InvokeListAdd(object obj, FieldInfo field, object item) ### ReflectionUtil.InvokeListAddTo<T> -public static void InvokeListAddTo<T>(object obj, FieldInfo field, Action<T> callback) +public static void InvokeListAddTo<T>(object obj, FieldInfo field, Action<T> callback) ### ReflectionUtil.InvokeListClear -public static void InvokeListClear(object obj, FieldInfo field) +public static void InvokeListClear(object obj, FieldInfo field) ### ReflectionUtil.InvokeListCount -public static int InvokeListCount(object obj, FieldInfo field) +public static int InvokeListCount(object obj, FieldInfo field) ### ReflectionUtil.InvokeListGet<T> -public static T InvokeListGet<T>(object obj, FieldInfo field, int i) +public static T InvokeListGet<T>(object obj, FieldInfo field, int i) ## RequireChartComponentAttribute @@ -6297,9 +6297,9 @@ class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/S ### RequireChartComponentAttribute.RequireChartComponentAttribute -public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2) +public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2) -public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2, Type requiredComponent3) +public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2, Type requiredComponent3) ## Ring @@ -6308,15 +6308,15 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie) ### Ring.defaultColorBy -public override SerieColorBy defaultColorBy +public override SerieColorBy defaultColorBy ### Ring.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ### Ring.GetDataTotal -public override double GetDataTotal(int dimension, SerieData serieData = null) +public override double GetDataTotal(int dimension, SerieData serieData = null) ## RingChart @@ -6326,7 +6326,7 @@ Ring chart is mainly used to show the proportion of each item and the relationsh ### RingChart.DefaultMultipleRingChart -public void DefaultMultipleRingChart() +public void DefaultMultipleRingChart() default multiple ring chart. ## RoseType @@ -6347,24 +6347,24 @@ class in XCharts.Runtime ### RuntimeUtil.GetAllAssemblyTypes -public static IEnumerable<Type> GetAllAssemblyTypes() +public static IEnumerable<Type> GetAllAssemblyTypes() ### RuntimeUtil.GetAllTypesDerivedFrom -public static IEnumerable<Type> GetAllTypesDerivedFrom(Type type) +public static IEnumerable<Type> GetAllTypesDerivedFrom(Type type) ### RuntimeUtil.GetAllTypesDerivedFrom<T> -public static IEnumerable<Type> GetAllTypesDerivedFrom<T>() +public static IEnumerable<Type> GetAllTypesDerivedFrom<T>() ### RuntimeUtil.GetAttribute<T> -public static T GetAttribute<T>(this MemberInfo type, bool check = true) where T : Attribute +public static T GetAttribute<T>(this MemberInfo type, bool check = true) where T : Attribute ### RuntimeUtil.HasSubclass -public static bool HasSubclass(Type type) +public static bool HasSubclass(Type type) ## SampleType @@ -6386,7 +6386,7 @@ class in XCharts.Runtime / Inherits from: [BaseScatter](#basescatter) ### Scatter.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## ScatterChart @@ -6396,7 +6396,7 @@ Scatter chart is mainly used to show the relationship between two data dimension ### ScatterChart.DefaultBubbleChart -public void DefaultBubbleChart() +public void DefaultBubbleChart() default bubble chart. ## SelectStyle @@ -6415,424 +6415,424 @@ class in XCharts.Runtime / Inherits from: [BaseSerie](#baseserie),[IComparable]( ### Serie.areaStyle -public AreaStyle areaStyle +public AreaStyle areaStyle The style of area. ### Serie.blurStyle -public BlurStyle blurStyle +public BlurStyle blurStyle style of blur state. ### Serie.colorByData -public bool colorByData +public bool colorByData 取色策略是否为按数据项分配。 ### Serie.data -public List<SerieData> data +public List<SerieData> data 系列中的数据内容数组。SerieData可以设置1到n维数据。 ### Serie.dataCount -public int dataCount +public int dataCount the count of data list. ### Serie.dataDirty -public bool dataDirty +public bool dataDirty ### Serie.emphasisStyle -public EmphasisStyle emphasisStyle +public EmphasisStyle emphasisStyle style of emphasis state. ### Serie.endLabel -public LabelStyle endLabel +public LabelStyle endLabel ### Serie.highlight -public bool highlight +public bool highlight Whether the serie is highlighted. ### Serie.index -public int index +public int index The index of serie. ### Serie.interactDirty -public bool interactDirty +public bool interactDirty ### Serie.label -public LabelStyle label +public LabelStyle label Text label of graphic element,to explain some data information about graphic item like value, name and so on. ### Serie.labelDirty -public bool labelDirty +public bool labelDirty ### Serie.labelLine -public LabelLine labelLine +public LabelLine labelLine The line of label. ### Serie.legendName -public string legendName +public string legendName Legend name. When the serie name is not empty, the legend name is the series name; Otherwise, it is index. ### Serie.lineArrow -public LineArrow lineArrow +public LineArrow lineArrow The arrow of line. ### Serie.links -public List<SerieDataLink> links +public List<SerieDataLink> links 数据节点的边。 ### Serie.nameDirty -public bool nameDirty +public bool nameDirty ### Serie.onClick -public Action<SerieEventData> onClick +public Action<SerieEventData> onClick event callback when click serie. ### Serie.onDown -public Action<SerieEventData> onDown +public Action<SerieEventData> onDown event callback when mouse down on serie. ### Serie.onEnter -public Action<SerieEventData> onEnter +public Action<SerieEventData> onEnter event callback when mouse enter serie. ### Serie.onExit -public Action<SerieEventData> onExit +public Action<SerieEventData> onExit event callback when mouse leave serie. ### Serie.selectStyle -public SelectStyle selectStyle +public SelectStyle selectStyle style of select state. ### Serie.showDataDimension -public int showDataDimension +public int showDataDimension 数据项里的数据维数。 ### Serie.showDataName -public bool showDataName +public bool showDataName 在Editor的inpsector上是否显示name参数 ### Serie.titleDirty -public bool titleDirty +public bool titleDirty ### Serie.titleStyle -public TitleStyle titleStyle +public TitleStyle titleStyle the icon of data. ### Serie.AddChildData -public SerieData AddChildData(SerieData parent, List<double> value, string name, string id) +public SerieData AddChildData(SerieData parent, List<double> value, string name, string id) -public void AddChildData(SerieData parent, SerieData serieData) +public void AddChildData(SerieData parent, SerieData serieData) ### Serie.AddData -public SerieData AddData(List<double> valueList, string dataName = null, string dataId = null) +public SerieData AddData(List<double> valueList, string dataName = null, string dataId = null) 将一组数据添加到系列中。 如果数据只有一个,默认添加到维度Y中。 -public SerieData AddData(params double[] values) +public SerieData AddData(params double[] values) 添加任意维数据到系列中。 ### Serie.AddExtraComponent<T> -public T AddExtraComponent<T>() where T : ChildComponent, ISerieComponent +public T AddExtraComponent<T>() where T : ChildComponent, ISerieComponent ### Serie.AddLink -public virtual SerieDataLink AddLink(string sourceId, string targetId, double value = 0) +public virtual SerieDataLink AddLink(string sourceId, string targetId, double value = 0) Add a link data. ### Serie.AddSerieData -public virtual void AddSerieData(SerieData serieData) +public virtual void AddSerieData(SerieData serieData) ### Serie.AddXYData -public SerieData AddXYData(double xValue, double yValue, string dataName = null, string dataId = null) +public SerieData AddXYData(double xValue, double yValue, string dataName = null, string dataId = null) 添加(x,y)数据到维度X和维度Y ### Serie.AddYData -public SerieData AddYData(double value, string dataName = null, string dataId = null) +public SerieData AddYData(double value, string dataName = null, string dataId = null) 添加一个数据到维度Y(此时维度X对应的数据是索引) ### Serie.AnimationEnable -public void AnimationEnable(bool flag) +public void AnimationEnable(bool flag) 启用或取消初始动画 ### Serie.AnimationFadeIn -public void AnimationFadeIn() +public void AnimationFadeIn() 渐入动画 ### Serie.AnimationFadeOut -public void AnimationFadeOut() +public void AnimationFadeOut() 渐出动画 ### Serie.AnimationPause -public void AnimationPause() +public void AnimationPause() 暂停动画 ### Serie.AnimationReset -public void AnimationReset() +public void AnimationReset() 重置动画 ### Serie.AnimationRestart -public void AnimationRestart() +public void AnimationRestart() 重置动画 ### Serie.AnimationResume -public void AnimationResume() +public void AnimationResume() 继续动画 ### Serie.CanAddComponent -public bool CanAddComponent(Type type) +public bool CanAddComponent(Type type) ### Serie.CanAddComponent<T> -public bool CanAddComponent<T>() where T : ChildComponent, ISerieComponent +public bool CanAddComponent<T>() where T : ChildComponent, ISerieComponent ### Serie.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### Serie.ClearData -public override void ClearData() +public override void ClearData() 清空所有数据 ### Serie.ClearDirty -public override void ClearDirty() +public override void ClearDirty() ### Serie.ClearHighlight -public void ClearHighlight() +public void ClearHighlight() 清除所有数据的高亮标志 ### Serie.ClearLinks -public void ClearLinks() +public void ClearLinks() 清空所有Link数据 ### Serie.ClearSerieNameDirty -public void ClearSerieNameDirty() +public void ClearSerieNameDirty() ### Serie.ClearVerticesDirty -public override void ClearVerticesDirty() +public override void ClearVerticesDirty() ### Serie.Clone -public Serie Clone() +public Serie Clone() ### Serie.Clone<T> -public T Clone<T>() where T : Serie +public T Clone<T>() where T : Serie ### Serie.CompareTo -public int CompareTo(object obj) +public int CompareTo(object obj) ### Serie.EnsureComponent -public ISerieComponent EnsureComponent(Type type) +public ISerieComponent EnsureComponent(Type type) ### Serie.EnsureComponent<T> -public T EnsureComponent<T>() where T : ChildComponent, ISerieComponent +public T EnsureComponent<T>() where T : ChildComponent, ISerieComponent Ensure the serie has the component. If not, add it. ### Serie.GetBarWidth -public float GetBarWidth(float categoryWidth, int barCount = 0, float defaultRate = 0.6f) +public float GetBarWidth(float categoryWidth, int barCount = 0, float defaultRate = 0.6f) ### Serie.GetComponent -public ISerieComponent GetComponent(Type type) +public ISerieComponent GetComponent(Type type) ### Serie.GetComponent<T> -public T GetComponent<T>() where T : ChildComponent, ISerieComponent +public T GetComponent<T>() where T : ChildComponent, ISerieComponent ### Serie.GetData -public double GetData(int index, int dimension, DataZoom dataZoom = null) +public double GetData(int index, int dimension, DataZoom dataZoom = null) 获得指定index指定维数的数据 ### Serie.GetDataList -public List<SerieData> GetDataList(DataZoom dataZoom = null) +public List<SerieData> GetDataList(DataZoom dataZoom = null) 获得系列的数据列表 ### Serie.GetDataTotal -public virtual double GetDataTotal(int dimension, SerieData serieData = null) +public virtual double GetDataTotal(int dimension, SerieData serieData = null) ### Serie.GetSerieData -public SerieData GetSerieData(SerieData parent, string id) +public SerieData GetSerieData(SerieData parent, string id) -public SerieData GetSerieData(string id, DataZoom dataZoom = null) +public SerieData GetSerieData(string id, DataZoom dataZoom = null) ### Serie.GetXYData -public void GetXYData(int index, DataZoom dataZoom, out double xValue, out double yVlaue) +public void GetXYData(int index, DataZoom dataZoom, out double xValue, out double yVlaue) 获得指定索引的维度X和维度Y的数据 ### Serie.GetYCurrData -public double GetYCurrData(int index, DataZoom dataZoom = null) +public double GetYCurrData(int index, DataZoom dataZoom = null) ### Serie.GetYData -public void GetYData(int index, out double yData, out string dataName, DataZoom dataZoom = null) +public void GetYData(int index, out double yData, out string dataName, DataZoom dataZoom = null) 获得维度Y索引对应的数据和数据名 ### Serie.IsIgnoreIndex -public bool IsIgnoreIndex(int index, int dimension = 1) +public bool IsIgnoreIndex(int index, int dimension = 1) ### Serie.IsIgnorePoint -public bool IsIgnorePoint(int index) +public bool IsIgnorePoint(int index) ### Serie.IsIgnoreValue -public bool IsIgnoreValue(double value) +public bool IsIgnoreValue(double value) -public bool IsIgnoreValue(SerieData serieData, double value) +public bool IsIgnoreValue(SerieData serieData, double value) ### Serie.IsLegendName -public bool IsLegendName(string legendName) +public bool IsLegendName(string legendName) ### Serie.IsMinShowLabelValue -public bool IsMinShowLabelValue(double value) +public bool IsMinShowLabelValue(double value) -public bool IsMinShowLabelValue(SerieData serieData, int dimension = 1) +public bool IsMinShowLabelValue(SerieData serieData, int dimension = 1) ### Serie.IsPerformanceMode -public bool IsPerformanceMode() +public bool IsPerformanceMode() 是否为性能模式。性能模式下不绘制Symbol,不刷新Label,不单独设置数据项配置。 ### Serie.IsSerie<T> -public bool IsSerie<T>() where T : Serie +public bool IsSerie<T>() where T : Serie ### Serie.IsSerieDataLegendName -public bool IsSerieDataLegendName(string legendName) +public bool IsSerieDataLegendName(string legendName) ### Serie.IsSerieLegendName -public bool IsSerieLegendName(string legendName) +public bool IsSerieLegendName(string legendName) ### Serie.IsUseCoord<T> -public bool IsUseCoord<T>() where T : CoordSystem +public bool IsUseCoord<T>() where T : CoordSystem ### Serie.RemoveAllComponents -public void RemoveAllComponents() +public void RemoveAllComponents() Remove all extra components. ### Serie.RemoveComponent -public void RemoveComponent(Type type) +public void RemoveComponent(Type type) ### Serie.RemoveComponent<T> -public void RemoveComponent<T>() where T : ISerieComponent +public void RemoveComponent<T>() where T : ISerieComponent ### Serie.RemoveData -public void RemoveData(int index) +public void RemoveData(int index) 移除指定索引的数据 ### Serie.ResetDataIndex -public bool ResetDataIndex() +public bool ResetDataIndex() 重置数据项索引。避免部分数据项的索引异常。 ### Serie.ResetInteract -public void ResetInteract() +public void ResetInteract() ### Serie.SetAllDirty -public override void SetAllDirty() +public override void SetAllDirty() ### Serie.SetCoord<T> -public bool SetCoord<T>() where T : CoordSystem +public bool SetCoord<T>() where T : CoordSystem ### Serie.SetHighlight -public void SetHighlight(int index, bool flag) +public void SetHighlight(int index, bool flag) 设置指定索引的数据为高亮状态 ### Serie.SetVerticesDirty -public override void SetVerticesDirty() +public override void SetVerticesDirty() ### Serie.UpdateData -public bool UpdateData(int index, List<double> values) +public bool UpdateData(int index, List<double> values) 更新指定索引的数据项数据列表 ### Serie.UpdateDataName -public bool UpdateDataName(int index, string name) +public bool UpdateDataName(int index, string name) ### Serie.UpdateXYData -public bool UpdateXYData(int index, double xValue, double yValue) +public bool UpdateXYData(int index, double xValue, double yValue) 更新指定索引的维度X和维度Y的数据 ### Serie.UpdateYData -public bool UpdateYData(int index, double value) +public bool UpdateYData(int index, double value) 更新指定索引的维度Y数据 ## SerieColorBy @@ -6855,27 +6855,27 @@ The attribute for serie component. ### SerieComponentAttribute.Contains -public bool Contains(Type type) +public bool Contains(Type type) ### SerieComponentAttribute.Contains<T> -public bool Contains<T>() where T : ISerieComponent +public bool Contains<T>() where T : ISerieComponent ### SerieComponentAttribute.SerieComponentAttribute -public SerieComponentAttribute(Type type1) +public SerieComponentAttribute(Type type1) -public SerieComponentAttribute(Type type1, Type type2) +public SerieComponentAttribute(Type type1, Type type2) -public SerieComponentAttribute(Type type1, Type type2, Type type3) +public SerieComponentAttribute(Type type1, Type type2, Type type3) -public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4) +public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4) -public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5) +public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5) -public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6) +public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6) -public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7) +public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7) ## SerieContext @@ -6884,7 +6884,7 @@ class in XCharts.Runtime ### SerieContext.titleObject -public ChartLabel titleObject +public ChartLabel titleObject 绘制点 ## SerieConvertAttribute @@ -6895,19 +6895,19 @@ The attribute for which serie types can be converted to. ### SerieConvertAttribute.Contains -public bool Contains(Type type) +public bool Contains(Type type) ### SerieConvertAttribute.Contains<T> -public bool Contains<T>() where T : Serie +public bool Contains<T>() where T : Serie ### SerieConvertAttribute.SerieConvertAttribute -public SerieConvertAttribute(Type serie, Type serie2) +public SerieConvertAttribute(Type serie, Type serie2) -public SerieConvertAttribute(Type serie, Type serie2, Type serie3) +public SerieConvertAttribute(Type serie, Type serie2, Type serie3) -public SerieConvertAttribute(Type serie, Type serie2, Type serie3, Type serie4) +public SerieConvertAttribute(Type serie, Type serie2, Type serie3, Type serie4) ## SerieData @@ -6918,119 +6918,119 @@ A data item of serie. ### SerieData.areaStyle -public AreaStyle areaStyle +public AreaStyle areaStyle ### SerieData.blurStyle -public BlurStyle blurStyle +public BlurStyle blurStyle 淡出状态的样式。 ### SerieData.data -public List<double> data +public List<double> data An arbitrary dimension data list of data item. ### SerieData.emphasisStyle -public EmphasisStyle emphasisStyle +public EmphasisStyle emphasisStyle 高亮状态的样式 ### SerieData.id -public string id +public string id the id of data. ### SerieData.index -public override int index +public override int index the index of SerieData. ### SerieData.itemStyle -public ItemStyle itemStyle +public ItemStyle itemStyle 单个数据项的样式设置。 ### SerieData.labelLine -public LabelLine labelLine +public LabelLine labelLine ### SerieData.labelObject -public ChartLabel labelObject +public ChartLabel labelObject ### SerieData.labelStyle -public LabelStyle labelStyle +public LabelStyle labelStyle 单个数据项的标签设置。 ### SerieData.legendName -public string legendName +public string legendName 数据项图例名称。当数据项名称不为空时,图例名称即为系列名称;反之则为索引index。 ### SerieData.lineStyle -public LineStyle lineStyle +public LineStyle lineStyle ### SerieData.name -public string name +public string name the name of data item. ### SerieData.parentId -public string parentId +public string parentId the id of parent SerieData. ### SerieData.radius -public float radius +public float radius 自定义半径。可用在饼图中自定义某个数据项的半径。 ### SerieData.selected -public bool selected +public bool selected Whether the data item is selected. ### SerieData.selectStyle -public SelectStyle selectStyle +public SelectStyle selectStyle 选中状态的样式。 ### SerieData.show -public bool show +public bool show [default:true] Whether the data item is showed. ### SerieData.state -public SerieState state +public SerieState state the state of serie data. ### SerieData.symbol -public SerieSymbol symbol +public SerieSymbol symbol 单个数据项的标记设置。 ### SerieData.titleObject -public ChartLabel titleObject +public ChartLabel titleObject ### SerieData.titleStyle -public TitleStyle titleStyle +public TitleStyle titleStyle ### SerieData.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### SerieData.ClearVerticesDirty -public override void ClearVerticesDirty() +public override void ClearVerticesDirty() ### SerieData.EnsureComponent -public ISerieDataComponent EnsureComponent(Type type) +public ISerieDataComponent EnsureComponent(Type type) > Since `v3.6.0` @@ -7038,7 +7038,7 @@ Ensure the serie data has the component, if not, add it. ### SerieData.EnsureComponent<T> -public T EnsureComponent<T>() where T : ChildComponent, ISerieDataComponent +public T EnsureComponent<T>() where T : ChildComponent, ISerieDataComponent > Since `v3.6.0` @@ -7046,120 +7046,120 @@ Ensure the serie data has the component, if not, add it. ### SerieData.GetAddAnimationData -public double GetAddAnimationData(double min, double max, float animationDuration = 500f, bool unscaledTime = false) +public double GetAddAnimationData(double min, double max, float animationDuration = 500f, bool unscaledTime = false) ### SerieData.GetComponent<T> -public T GetComponent<T>() where T : ChildComponent, ISerieDataComponent +public T GetComponent<T>() where T : ChildComponent, ISerieDataComponent Get the component of the serie data. return null if not exist. ### SerieData.GetCurrData -public double GetCurrData(int index, AnimationStyle animation, bool inverse, double min, double max, bool loop = false) +public double GetCurrData(int index, AnimationStyle animation, bool inverse, double min, double max, bool loop = false) -public double GetCurrData(int index, float dataAddDuration = 500f, float animationDuration = 500f, bool unscaledTime = false, bool inverse = false) +public double GetCurrData(int index, float dataAddDuration = 500f, float animationDuration = 500f, bool unscaledTime = false, bool inverse = false) -public double GetCurrData(int index, float dataAddDuration, float animationDuration, bool inverse, double min, double max, bool unscaledTime, bool loop = false) +public double GetCurrData(int index, float dataAddDuration, float animationDuration, bool inverse, double min, double max, bool unscaledTime, bool loop = false) ### SerieData.GetData -public double GetData(int index, double min, double max) +public double GetData(int index, double min, double max) ### SerieData.GetFirstData -public double GetFirstData(bool unscaledTime, float animationDuration = 500f) +public double GetFirstData(bool unscaledTime, float animationDuration = 500f) ### SerieData.GetLabelHeight -public float GetLabelHeight() +public float GetLabelHeight() ### SerieData.GetLabelWidth -public float GetLabelWidth() +public float GetLabelWidth() ### SerieData.GetLastData -public double GetLastData() +public double GetLastData() ### SerieData.GetMaxData -public double GetMaxData(bool inverse = false) +public double GetMaxData(bool inverse = false) the maxinum value. ### SerieData.GetMinData -public double GetMinData(bool inverse = false) +public double GetMinData(bool inverse = false) the mininum value. ### SerieData.GetMinMaxData -public void GetMinMaxData(int startDimensionIndex, bool inverse, out double min, out double max) +public void GetMinMaxData(int startDimensionIndex, bool inverse, out double min, out double max) ### SerieData.GetOrAddComponent<T> -public T GetOrAddComponent<T>() where T : ChildComponent, ISerieDataComponent +public T GetOrAddComponent<T>() where T : ChildComponent, ISerieDataComponent ### SerieData.GetPreviousData -public double GetPreviousData(int index, bool inverse = false) +public double GetPreviousData(int index, bool inverse = false) ### SerieData.GetTotalData -public double GetTotalData() +public double GetTotalData() ### SerieData.IsDataChanged -public bool IsDataChanged() +public bool IsDataChanged() ### SerieData.IsInPolygon -public bool IsInPolygon(Vector2 p) +public bool IsInPolygon(Vector2 p) ### SerieData.List<string> -public static List<string> extraFieldList = new List<string>() +public static List<string> extraFieldList = new List<string>() A data item of serie. ### SerieData.OnAdd -public void OnAdd(AnimationStyle animation, double startValue = 0) +public void OnAdd(AnimationStyle animation, double startValue = 0) ### SerieData.RemoveAllComponent -public void RemoveAllComponent() +public void RemoveAllComponent() ### SerieData.RemoveComponent -public void RemoveComponent(Type type) +public void RemoveComponent(Type type) ### SerieData.RemoveComponent<T> -public void RemoveComponent<T>() where T : ISerieDataComponent +public void RemoveComponent<T>() where T : ISerieDataComponent ### SerieData.Reset -public void Reset() +public void Reset() ### SerieData.SetIconActive -public void SetIconActive(bool flag) +public void SetIconActive(bool flag) ### SerieData.SetLabelActive -public void SetLabelActive(bool flag) +public void SetLabelActive(bool flag) ### SerieData.SetPolygon -public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) +public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) -public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p5) +public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p5) ### SerieData.UpdateData -public bool UpdateData(int dimension, double value) +public bool UpdateData(int dimension, double value) ## SerieDataComponentAttribute @@ -7170,27 +7170,27 @@ The attribute for serie data component. ### SerieDataComponentAttribute.Contains -public bool Contains(Type type) +public bool Contains(Type type) ### SerieDataComponentAttribute.Contains<T> -public bool Contains<T>() where T : ISerieComponent +public bool Contains<T>() where T : ISerieComponent ### SerieDataComponentAttribute.SerieDataComponentAttribute -public SerieDataComponentAttribute(Type type1) +public SerieDataComponentAttribute(Type type1) -public SerieDataComponentAttribute(Type type1, Type type2) +public SerieDataComponentAttribute(Type type1, Type type2) -public SerieDataComponentAttribute(Type type1, Type type2, Type type3) +public SerieDataComponentAttribute(Type type1, Type type2, Type type3) -public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4) +public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4) -public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5) +public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5) -public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6) +public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6) -public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7) +public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7) ## SerieDataContext @@ -7199,7 +7199,7 @@ class in XCharts.Runtime ### SerieDataContext.Reset -public void Reset() +public void Reset() ## SerieDataExtraFieldAttribute @@ -7207,23 +7207,23 @@ class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/S ### SerieDataExtraFieldAttribute.Contains -public bool Contains(string field) +public bool Contains(string field) ### SerieDataExtraFieldAttribute.SerieDataExtraFieldAttribute -public SerieDataExtraFieldAttribute(string field1) +public SerieDataExtraFieldAttribute(string field1) -public SerieDataExtraFieldAttribute(string field1, string field2) +public SerieDataExtraFieldAttribute(string field1, string field2) -public SerieDataExtraFieldAttribute(string field1, string field2, string field3) +public SerieDataExtraFieldAttribute(string field1, string field2, string field3) -public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4) +public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4) -public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5) +public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5) -public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6) +public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6) -public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6, string field7) +public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6, string field7) ## SerieDataLink @@ -7254,32 +7254,32 @@ the data of serie event. ### SerieEventData.dataIndex -public int dataIndex +public int dataIndex the index of data in serie.data. ### SerieEventData.dimension -public int dimension +public int dimension the dimension of data. ### SerieEventData.pointerPos -public Vector3 pointerPos +public Vector3 pointerPos the position of pointer in chart. ### SerieEventData.serieIndex -public int serieIndex +public int serieIndex the index of serie in chart.series. ### SerieEventData.value -public double value +public double value the value of data. ### SerieEventData.Reset -public void Reset() +public void Reset() ## SerieEventDataPool @@ -7287,11 +7287,11 @@ class in XCharts.Runtime ### SerieEventDataPool.Get -public static SerieEventData Get(Vector3 pos, int serieIndex, int dataIndex, int dimension, double value) +public static SerieEventData Get(Vector3 pos, int serieIndex, int dataIndex, int dimension, double value) ### SerieEventDataPool.Release -public static void Release(SerieEventData toRelease) +public static void Release(SerieEventData toRelease) ## SerieHandler @@ -7299,243 +7299,243 @@ class in XCharts.Runtime ### SerieHandler.AfterUpdate() -public virtual void AfterUpdate() +public virtual void AfterUpdate() ### SerieHandler.attribute -public SerieHandlerAttribute attribute +public SerieHandlerAttribute attribute ### SerieHandler.BeforeUpdate() -public virtual void BeforeUpdate() +public virtual void BeforeUpdate() ### SerieHandler.chart -public BaseChart chart +public BaseChart chart ### SerieHandler.defaultDimension -public virtual int defaultDimension +public virtual int defaultDimension ### SerieHandler.eventData) -public virtual void OnBeginDrag(PointerEventData eventData) +public virtual void OnBeginDrag(PointerEventData eventData) ### SerieHandler.eventData) -public virtual void OnDrag(PointerEventData eventData) +public virtual void OnDrag(PointerEventData eventData) ### SerieHandler.eventData) -public virtual void OnEndDrag(PointerEventData eventData) +public virtual void OnEndDrag(PointerEventData eventData) ### SerieHandler.eventData) -public virtual void OnPointerClick(PointerEventData eventData) +public virtual void OnPointerClick(PointerEventData eventData) ### SerieHandler.eventData) -public virtual void OnPointerDown(PointerEventData eventData) +public virtual void OnPointerDown(PointerEventData eventData) ### SerieHandler.eventData) -public virtual void OnPointerEnter(PointerEventData eventData) +public virtual void OnPointerEnter(PointerEventData eventData) ### SerieHandler.eventData) -public virtual void OnPointerExit(PointerEventData eventData) +public virtual void OnPointerExit(PointerEventData eventData) ### SerieHandler.eventData) -public virtual void OnPointerUp(PointerEventData eventData) +public virtual void OnPointerUp(PointerEventData eventData) ### SerieHandler.eventData) -public virtual void OnScroll(PointerEventData eventData) +public virtual void OnScroll(PointerEventData eventData) ### SerieHandler.ForceUpdateSerieContext() -public virtual void ForceUpdateSerieContext() +public virtual void ForceUpdateSerieContext() ### SerieHandler.GetPointerItemDataDimension() -public virtual int GetPointerItemDataDimension() +public virtual int GetPointerItemDataDimension() ### SerieHandler.GetPointerItemDataIndex() -public virtual int GetPointerItemDataIndex() +public virtual int GetPointerItemDataIndex() ### SerieHandler.InitComponent() -public virtual void InitComponent() +public virtual void InitComponent() ### SerieHandler.inited -public bool inited +public bool inited ### SerieHandler.legendName) -public virtual void OnLegendButtonEnter(int index, string legendName) +public virtual void OnLegendButtonEnter(int index, string legendName) ### SerieHandler.legendName) -public virtual void OnLegendButtonExit(int index, string legendName) +public virtual void OnLegendButtonExit(int index, string legendName) ### SerieHandler.OnDataUpdate() -public virtual void OnDataUpdate() +public virtual void OnDataUpdate() ### SerieHandler.RefreshLabelInternal() -public virtual void RefreshLabelInternal() +public virtual void RefreshLabelInternal() ### SerieHandler.RefreshLabelNextFrame() -public virtual void RefreshLabelNextFrame() +public virtual void RefreshLabelNextFrame() ### SerieHandler.RemoveComponent() -public virtual void RemoveComponent() +public virtual void RemoveComponent() ### SerieHandler.sb) -public virtual void CheckComponent(StringBuilder sb) +public virtual void CheckComponent(StringBuilder sb) ### SerieHandler.show) -public virtual void OnLegendButtonClick(int index, string legendName, bool show) +public virtual void OnLegendButtonClick(int index, string legendName, bool show) ### SerieHandler.Update() -public virtual void Update() +public virtual void Update() ### SerieHandler.UpdateSerieContext() -public virtual void UpdateSerieContext() +public virtual void UpdateSerieContext() ### SerieHandler.vh) -public virtual void DrawBase(VertexHelper vh) +public virtual void DrawBase(VertexHelper vh) ### SerieHandler.vh) -public virtual void DrawSerie(VertexHelper vh) +public virtual void DrawSerie(VertexHelper vh) ### SerieHandler.vh) -public virtual void DrawTop(VertexHelper vh) +public virtual void DrawTop(VertexHelper vh) ### SerieHandler.vh) -public virtual void DrawUpper(VertexHelper vh) +public virtual void DrawUpper(VertexHelper vh) ### SerieHandler.AfterUpdate -public virtual void AfterUpdate() { } +public virtual void AfterUpdate() { } ### SerieHandler.BeforeUpdate -public virtual void BeforeUpdate() { } +public virtual void BeforeUpdate() { } ### SerieHandler.CheckComponent -public virtual void CheckComponent(StringBuilder sb) { } +public virtual void CheckComponent(StringBuilder sb) { } ### SerieHandler.DrawBase -public virtual void DrawBase(VertexHelper vh) { } +public virtual void DrawBase(VertexHelper vh) { } ### SerieHandler.DrawSerie -public virtual void DrawSerie(VertexHelper vh) { } +public virtual void DrawSerie(VertexHelper vh) { } ### SerieHandler.DrawTop -public virtual void DrawTop(VertexHelper vh) { } +public virtual void DrawTop(VertexHelper vh) { } ### SerieHandler.DrawUpper -public virtual void DrawUpper(VertexHelper vh) { } +public virtual void DrawUpper(VertexHelper vh) { } ### SerieHandler.ForceUpdateSerieContext -public virtual void ForceUpdateSerieContext() { } +public virtual void ForceUpdateSerieContext() { } ### SerieHandler.InitComponent -public virtual void InitComponent() { } +public virtual void InitComponent() { } ### SerieHandler.OnBeginDrag -public virtual void OnBeginDrag(PointerEventData eventData) { } +public virtual void OnBeginDrag(PointerEventData eventData) { } ### SerieHandler.OnDataUpdate -public virtual void OnDataUpdate() { } +public virtual void OnDataUpdate() { } ### SerieHandler.OnDrag -public virtual void OnDrag(PointerEventData eventData) { } +public virtual void OnDrag(PointerEventData eventData) { } ### SerieHandler.OnEndDrag -public virtual void OnEndDrag(PointerEventData eventData) { } +public virtual void OnEndDrag(PointerEventData eventData) { } ### SerieHandler.OnLegendButtonClick -public virtual void OnLegendButtonClick(int index, string legendName, bool show) { } +public virtual void OnLegendButtonClick(int index, string legendName, bool show) { } ### SerieHandler.OnLegendButtonEnter -public virtual void OnLegendButtonEnter(int index, string legendName) { } +public virtual void OnLegendButtonEnter(int index, string legendName) { } ### SerieHandler.OnLegendButtonExit -public virtual void OnLegendButtonExit(int index, string legendName) { } +public virtual void OnLegendButtonExit(int index, string legendName) { } ### SerieHandler.OnPointerClick -public virtual void OnPointerClick(PointerEventData eventData) { } +public virtual void OnPointerClick(PointerEventData eventData) { } ### SerieHandler.OnPointerDown -public virtual void OnPointerDown(PointerEventData eventData) { } +public virtual void OnPointerDown(PointerEventData eventData) { } ### SerieHandler.OnPointerEnter -public virtual void OnPointerEnter(PointerEventData eventData) { } +public virtual void OnPointerEnter(PointerEventData eventData) { } ### SerieHandler.OnPointerExit -public virtual void OnPointerExit(PointerEventData eventData) { } +public virtual void OnPointerExit(PointerEventData eventData) { } ### SerieHandler.OnPointerUp -public virtual void OnPointerUp(PointerEventData eventData) { } +public virtual void OnPointerUp(PointerEventData eventData) { } ### SerieHandler.OnScroll -public virtual void OnScroll(PointerEventData eventData) { } +public virtual void OnScroll(PointerEventData eventData) { } ### SerieHandler.RefreshLabelInternal -public virtual void RefreshLabelInternal() { } +public virtual void RefreshLabelInternal() { } ### SerieHandler.RefreshLabelNextFrame -public virtual void RefreshLabelNextFrame() { } +public virtual void RefreshLabelNextFrame() { } ### SerieHandler.RemoveComponent -public virtual void RemoveComponent() { } +public virtual void RemoveComponent() { } ### SerieHandler.Update -public virtual void Update() { } +public virtual void Update() { } ### SerieHandler.UpdateSerieContext -public virtual void UpdateSerieContext() { } +public virtual void UpdateSerieContext() { } ## SerieHandler where T @@ -7547,95 +7547,95 @@ class in XCharts.Runtime / Inherits from: [SerieHandler where T](#seriehandler w ### SerieHandler<T>.labelObject -public GameObject labelObject +public GameObject labelObject ### SerieHandler<T>.serie -public T serie +public T serie ### SerieHandler<T>.AfterUpdate -public override void AfterUpdate() +public override void AfterUpdate() ### SerieHandler<T>.BeforeUpdate -public override void BeforeUpdate() +public override void BeforeUpdate() ### SerieHandler<T>.DrawLabelLineSymbol -public void DrawLabelLineSymbol(VertexHelper vh, LabelLine labelLine, Vector3 startPos, Vector3 endPos, Color32 defaultColor) +public void DrawLabelLineSymbol(VertexHelper vh, LabelLine labelLine, Vector3 startPos, Vector3 endPos, Color32 defaultColor) ### SerieHandler<T>.ForceUpdateSerieContext -public override void ForceUpdateSerieContext() +public override void ForceUpdateSerieContext() ### SerieHandler<T>.GetPointerItemDataDimension -public override int GetPointerItemDataDimension() +public override int GetPointerItemDataDimension() ### SerieHandler<T>.GetPointerItemDataIndex -public override int GetPointerItemDataIndex() +public override int GetPointerItemDataIndex() ### SerieHandler<T>.GetSerieDataAutoColor -public virtual Color GetSerieDataAutoColor(SerieData serieData) +public virtual Color GetSerieDataAutoColor(SerieData serieData) ### SerieHandler<T>.GetSerieDataLabelOffset -public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label) +public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label) ### SerieHandler<T>.GetSerieDataLabelPosition -public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label) +public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label) ### SerieHandler<T>.GetSerieDataTitlePosition -public virtual Vector3 GetSerieDataTitlePosition(SerieData serieData, TitleStyle titleStyle) +public virtual Vector3 GetSerieDataTitlePosition(SerieData serieData, TitleStyle titleStyle) ### SerieHandler<T>.InitComponent -public override void InitComponent() +public override void InitComponent() ### SerieHandler<T>.OnLegendButtonClick -public override void OnLegendButtonClick(int index, string legendName, bool show) +public override void OnLegendButtonClick(int index, string legendName, bool show) ### SerieHandler<T>.OnLegendButtonEnter -public override void OnLegendButtonEnter(int index, string legendName) +public override void OnLegendButtonEnter(int index, string legendName) ### SerieHandler<T>.OnLegendButtonExit -public override void OnLegendButtonExit(int index, string legendName) +public override void OnLegendButtonExit(int index, string legendName) ### SerieHandler<T>.OnPointerClick -public override void OnPointerClick(PointerEventData eventData) +public override void OnPointerClick(PointerEventData eventData) ### SerieHandler<T>.OnPointerDown -public override void OnPointerDown(PointerEventData eventData) +public override void OnPointerDown(PointerEventData eventData) ### SerieHandler<T>.RefreshEndLabelInternal -public virtual void RefreshEndLabelInternal() +public virtual void RefreshEndLabelInternal() ### SerieHandler<T>.RefreshLabelInternal -public override void RefreshLabelInternal() +public override void RefreshLabelInternal() ### SerieHandler<T>.RefreshLabelNextFrame -public override void RefreshLabelNextFrame() +public override void RefreshLabelNextFrame() ### SerieHandler<T>.RemoveComponent -public override void RemoveComponent() +public override void RemoveComponent() ### SerieHandler<T>.Update -public override void Update() +public override void Update() ## SerieHandlerAttribute @@ -7643,7 +7643,7 @@ class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/S ### SerieHandlerAttribute.SerieHandlerAttribute -public SerieHandlerAttribute(Type handler, bool allowMultiple) +public SerieHandlerAttribute(Type handler, bool allowMultiple) ## SerieHelper @@ -7652,151 +7652,151 @@ class in XCharts.Runtime ### SerieHelper.CloneSerie<T> -public static T CloneSerie<T>(Serie serie) where T : Serie +public static T CloneSerie<T>(Serie serie) where T : Serie ### SerieHelper.CopySerie -public static void CopySerie(Serie oldSerie, Serie newSerie) +public static void CopySerie(Serie oldSerie, Serie newSerie) ### SerieHelper.GetAllMinMaxData -public static void GetAllMinMaxData(Serie serie, double ceilRate = 0, DataZoom dataZoom = null) +public static void GetAllMinMaxData(Serie serie, double ceilRate = 0, DataZoom dataZoom = null) ### SerieHelper.GetAreaStyle -public static AreaStyle GetAreaStyle(Serie serie, SerieData serieData) +public static AreaStyle GetAreaStyle(Serie serie, SerieData serieData) ### SerieHelper.GetAverageData -public static double GetAverageData(Serie serie, int dimension = 1, DataZoom dataZoom = null) +public static double GetAverageData(Serie serie, int dimension = 1, DataZoom dataZoom = null) ### SerieHelper.GetBlurStyle -public static BlurStyle GetBlurStyle(Serie serie, SerieData serieData) +public static BlurStyle GetBlurStyle(Serie serie, SerieData serieData) ### SerieHelper.GetEmphasisStyle -public static EmphasisStyle GetEmphasisStyle(Serie serie, SerieData serieData) +public static EmphasisStyle GetEmphasisStyle(Serie serie, SerieData serieData) ### SerieHelper.GetItemColor -public static Color32 GetItemColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto, bool opacity = true) +public static Color32 GetItemColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto, bool opacity = true) ### SerieHelper.GetItemFormatter -public static string GetItemFormatter(Serie serie, SerieData serieData, string defaultFormatter = null) +public static string GetItemFormatter(Serie serie, SerieData serieData, string defaultFormatter = null) ### SerieHelper.GetItemMarker -public static string GetItemMarker(Serie serie, SerieData serieData, string defaultMarker = null) +public static string GetItemMarker(Serie serie, SerieData serieData, string defaultMarker = null) ### SerieHelper.GetItemStyle -public static ItemStyle GetItemStyle(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) +public static ItemStyle GetItemStyle(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) ### SerieHelper.GetLineColor -public static Color32 GetLineColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto) +public static Color32 GetLineColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto) ### SerieHelper.GetLineStyle -public static LineStyle GetLineStyle(Serie serie, SerieData serieData) +public static LineStyle GetLineStyle(Serie serie, SerieData serieData) ### SerieHelper.GetMaxData -public static double GetMaxData(Serie serie, int dimension = 1, DataZoom dataZoom = null) +public static double GetMaxData(Serie serie, int dimension = 1, DataZoom dataZoom = null) ### SerieHelper.GetMaxSerieData -public static SerieData GetMaxSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null) +public static SerieData GetMaxSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null) ### SerieHelper.GetMedianData -public static double GetMedianData(Serie serie, int dimension = 1, DataZoom dataZoom = null) +public static double GetMedianData(Serie serie, int dimension = 1, DataZoom dataZoom = null) ### SerieHelper.GetMinData -public static double GetMinData(Serie serie, int dimension = 1, DataZoom dataZoom = null) +public static double GetMinData(Serie serie, int dimension = 1, DataZoom dataZoom = null) ### SerieHelper.GetMinMaxData -public static void GetMinMaxData(Serie serie, out double min, out double max, DataZoom dataZoom = null, int dimension = 0) +public static void GetMinMaxData(Serie serie, out double min, out double max, DataZoom dataZoom = null, int dimension = 0) Gets the maximum and minimum values of all data in the serie. ### SerieHelper.GetMinSerieData -public static SerieData GetMinSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null) +public static SerieData GetMinSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null) ### SerieHelper.GetNumericFormatter -public static string GetNumericFormatter(Serie serie, SerieData serieData, string defaultFormatter = null) +public static string GetNumericFormatter(Serie serie, SerieData serieData, string defaultFormatter = null) ### SerieHelper.GetSelectStyle -public static SelectStyle GetSelectStyle(Serie serie, SerieData serieData) +public static SelectStyle GetSelectStyle(Serie serie, SerieData serieData) ### SerieHelper.GetSerieLabel -public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) +public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) ### SerieHelper.GetSerieLabelLine -public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) +public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) ### SerieHelper.GetSerieState -public static SerieState GetSerieState(Serie serie, SerieData serieData, bool defaultSerieState = false) +public static SerieState GetSerieState(Serie serie, SerieData serieData, bool defaultSerieState = false) -public static SerieState GetSerieState(SerieData serieData) +public static SerieState GetSerieState(SerieData serieData) ### SerieHelper.GetSerieSymbol -public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) +public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) ### SerieHelper.GetStateStyle -public static StateStyle GetStateStyle(Serie serie, SerieData serieData, SerieState state) +public static StateStyle GetStateStyle(Serie serie, SerieData serieData, SerieState state) ### SerieHelper.GetSysmbolSize -public static float GetSysmbolSize(Serie serie, SerieData serieData, float defaultSize, SerieState state = SerieState.Auto, bool checkAnimation = false) +public static float GetSysmbolSize(Serie serie, SerieData serieData, float defaultSize, SerieState state = SerieState.Auto, bool checkAnimation = false) ### SerieHelper.GetTitleStyle -public static TitleStyle GetTitleStyle(Serie serie, SerieData serieData) +public static TitleStyle GetTitleStyle(Serie serie, SerieData serieData) ### SerieHelper.IsAllZeroValue -public static bool IsAllZeroValue(Serie serie, int dimension = 1) +public static bool IsAllZeroValue(Serie serie, int dimension = 1) Whether the data for the specified dimension of serie are all 0. ### SerieHelper.IsDownPoint -public static bool IsDownPoint(Serie serie, int index) +public static bool IsDownPoint(Serie serie, int index) ### SerieHelper.UpdateCenter -public static void UpdateCenter(Serie serie, BaseChart chart) +public static void UpdateCenter(Serie serie, BaseChart chart) 更新运行时中心点和半径 ### SerieHelper.UpdateFilterData -public static void UpdateFilterData(Serie serie, DataZoom dataZoom) +public static void UpdateFilterData(Serie serie, DataZoom dataZoom) 根据dataZoom更新数据列表缓存 ### SerieHelper.UpdateMinMaxData -public static void UpdateMinMaxData(Serie serie, int dimension, double ceilRate = 0, DataZoom dataZoom = null) +public static void UpdateMinMaxData(Serie serie, int dimension, double ceilRate = 0, DataZoom dataZoom = null) 获得指定维数的最大最小值 ### SerieHelper.UpdateRect -public static void UpdateRect(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight) +public static void UpdateRect(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight) ### SerieHelper.UpdateSerieRuntimeFilterData -public static void UpdateSerieRuntimeFilterData(Serie serie, bool filterInvisible = true) +public static void UpdateSerieRuntimeFilterData(Serie serie, bool filterInvisible = true) ## SerieLabelHelper @@ -7804,15 +7804,15 @@ class in XCharts.Runtime ### SerieLabelHelper.CanShowLabel -public static bool CanShowLabel(Serie serie, SerieData serieData, LabelStyle label, int dimesion) +public static bool CanShowLabel(Serie serie, SerieData serieData, LabelStyle label, int dimesion) ### SerieLabelHelper.GetLabelColor -public static Color GetLabelColor(Serie serie, ThemeStyle theme, int index) +public static Color GetLabelColor(Serie serie, ThemeStyle theme, int index) ### SerieLabelHelper.SetGaugeLabelText -public static void SetGaugeLabelText(Serie serie) +public static void SetGaugeLabelText(Serie serie) ## SerieLabelPool @@ -7820,15 +7820,15 @@ class in XCharts.Runtime ### SerieLabelPool.ClearAll -public static void ClearAll() +public static void ClearAll() ### SerieLabelPool.Release -public static void Release(GameObject element) +public static void Release(GameObject element) ### SerieLabelPool.ReleaseAll -public static void ReleaseAll(Transform parent) +public static void ReleaseAll(Transform parent) ## SerieParams @@ -7840,63 +7840,63 @@ class in XCharts.Runtime ### SeriesHelper.GetLastStackSerie -public static Serie GetLastStackSerie(List<Serie> series, Serie serie) +public static Serie GetLastStackSerie(List<Serie> series, Serie serie) 获得上一个同堆叠且显示的serie。 ### SeriesHelper.GetLegalSerieNameList -public static List<string> GetLegalSerieNameList(List<Serie> series) +public static List<string> GetLegalSerieNameList(List<Serie> series) ### SeriesHelper.GetMaxSerieDataCount -public static int GetMaxSerieDataCount(List<Serie> series) +public static int GetMaxSerieDataCount(List<Serie> series) ### SeriesHelper.GetMinAnimationDuration -public static float GetMinAnimationDuration(List<Serie> series) +public static float GetMinAnimationDuration(List<Serie> series) ### SeriesHelper.GetNameColor -public static Color GetNameColor(BaseChart chart, int index, string name) +public static Color GetNameColor(BaseChart chart, int index, string name) ### SeriesHelper.GetStackSeries -public static void GetStackSeries(List<Serie> series, ref Dictionary<int, List<Serie>> stackSeries) +public static void GetStackSeries(List<Serie> series, ref Dictionary<int, List<Serie>> stackSeries) 获得堆叠系列列表 ### SeriesHelper.IsAnyClipSerie -public static bool IsAnyClipSerie(List<Serie> series) +public static bool IsAnyClipSerie(List<Serie> series) 是否有需裁剪的serie。 ### SeriesHelper.IsLegalLegendName -public static bool IsLegalLegendName(string name) +public static bool IsLegalLegendName(string name) ### SeriesHelper.IsPercentStack<T> -public static bool IsPercentStack<T>(List<Serie> series, string stackName) where T : Serie +public static bool IsPercentStack<T>(List<Serie> series, string stackName) where T : Serie 是否时百分比堆叠 ### SeriesHelper.IsStack -public static bool IsStack(List<Serie> series) +public static bool IsStack(List<Serie> series) 是否由数据堆叠 ### SeriesHelper.IsStack<T> -public static bool IsStack<T>(List<Serie> series, string stackName) where T : Serie +public static bool IsStack<T>(List<Serie> series, string stackName) where T : Serie 是否堆叠 ### SeriesHelper.UpdateSerieNameList -public static void UpdateSerieNameList(BaseChart chart, ref List<string> serieNameList) +public static void UpdateSerieNameList(BaseChart chart, ref List<string> serieNameList) 获得所有系列名,不包含空名字。 ### SeriesHelper.UpdateStackDataList -public static void UpdateStackDataList(List<Serie> series, Serie currSerie, DataZoom dataZoom, List<List<SerieData>> dataList) +public static void UpdateStackDataList(List<Serie> series, Serie currSerie, DataZoom dataZoom, List<List<SerieData>> dataList) ## SerieState @@ -7920,16 +7920,16 @@ class in XCharts.Runtime / Inherits from: [SymbolStyle](#symbolstyle),[ISerieDat ### SerieSymbol.GetSize -public float GetSize(List<double> data, float themeSize) +public float GetSize(List<double> data, float themeSize) 根据指定的sizeType获得标记的大小 ### SerieSymbol.Reset -public override void Reset() +public override void Reset() ### SerieSymbol.ShowSymbol -public bool ShowSymbol(int dataIndex, int dataCount) +public bool ShowSymbol(int dataIndex, int dataCount) ## SerieTheme @@ -7937,11 +7937,11 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### SerieTheme.Copy -public void Copy(SerieTheme theme) +public void Copy(SerieTheme theme) ### SerieTheme.SerieTheme -public SerieTheme(ThemeType theme) +public SerieTheme(ThemeType theme) ## Settings @@ -7951,15 +7951,15 @@ Global parameter setting component. The default value can be used in general, an ### Settings.show -public bool show +public bool show ### Settings.Copy -public void Copy(Settings settings) +public void Copy(Settings settings) ### Settings.Reset -public override void Reset() +public override void Reset() ## SimplifiedBar @@ -7967,19 +7967,19 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer]( ### SimplifiedBar.containerIndex -public int containerIndex +public int containerIndex ### SimplifiedBar.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### SimplifiedBar.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ### SimplifiedBar.ConvertSerie -public static SimplifiedBar ConvertSerie(Serie serie) +public static SimplifiedBar ConvertSerie(Serie serie) ## SimplifiedBarChart @@ -7993,19 +7993,19 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer]( ### SimplifiedCandlestick.containerIndex -public int containerIndex +public int containerIndex ### SimplifiedCandlestick.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### SimplifiedCandlestick.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ### SimplifiedCandlestick.ConvertSerie -public static SimplifiedCandlestick ConvertSerie(Serie serie) +public static SimplifiedCandlestick ConvertSerie(Serie serie) ## SimplifiedCandlestickChart @@ -8019,19 +8019,19 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie),[INeedSerieContainer]( ### SimplifiedLine.containerIndex -public int containerIndex +public int containerIndex ### SimplifiedLine.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### SimplifiedLine.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ### SimplifiedLine.ConvertSerie -public static SimplifiedLine ConvertSerie(Serie serie) +public static SimplifiedLine ConvertSerie(Serie serie) ## SimplifiedLineChart @@ -8045,7 +8045,7 @@ class in XCharts.Runtime / Inherits from: [Attribute](https://docs.unity3d.com/S ### Since.Since -public Since(string version) +public Since(string version) ## SingleAxis @@ -8055,11 +8055,11 @@ Single axis. ### SingleAxis.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() ### SingleAxis.UpdateRuntimeData -public void UpdateRuntimeData(BaseChart chart) +public void UpdateRuntimeData(BaseChart chart) ## SingleAxisCoord @@ -8071,17 +8071,17 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### StageColor.color -public Color32 color +public Color32 color 颜色。 ### StageColor.percent -public float percent +public float percent 结束位置百分比。 ### StageColor.StageColor -public StageColor(float percent, Color32 color) +public StageColor(float percent, Color32 color) ## StateStyle @@ -8093,15 +8093,15 @@ the state style of serie. ### StateStyle.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### StateStyle.ClearVerticesDirty -public override void ClearVerticesDirty() +public override void ClearVerticesDirty() ### StateStyle.Reset -public void Reset() +public void Reset() ## SubTitleTheme @@ -8109,7 +8109,7 @@ class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) ### SubTitleTheme.SubTitleTheme -public SubTitleTheme(ThemeType theme) : base(theme) +public SubTitleTheme(ThemeType theme) : base(theme) ## SVG @@ -8117,12 +8117,12 @@ class in XUGL ### SVG.DrawPath -public static void DrawPath(VertexHelper vh, SVGPath path) +public static void DrawPath(VertexHelper vh, SVGPath path) ### SVG.Test -public static void Test(VertexHelper vh) +public static void Test(VertexHelper vh) ## SVGPath @@ -8130,15 +8130,15 @@ class in XUGL ### SVGPath.AddSegment -public void AddSegment(SVGPathSeg seg) +public void AddSegment(SVGPathSeg seg) ### SVGPath.Draw -public void Draw(VertexHelper vh) +public void Draw(VertexHelper vh) ### SVGPath.Parse -public static SVGPath Parse(string path) +public static SVGPath Parse(string path) ## SVGPathSeg @@ -8146,27 +8146,27 @@ class in XUGL ### SVGPathSeg.p1 -public Vector2 p1 +public Vector2 p1 ### SVGPathSeg.p2 -public Vector2 p2 +public Vector2 p2 ### SVGPathSeg.p3 -public Vector2 p3 +public Vector2 p3 ### SVGPathSeg.x -public float x +public float x ### SVGPathSeg.y -public float y +public float y ### SVGPathSeg.SVGPathSeg -public SVGPathSeg(SVGPathSegType type) +public SVGPathSeg(SVGPathSegType type) ## SVGPathSegType @@ -8205,20 +8205,20 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Su ### SymbolStyle.animationSize -public List<float> animationSize +public List<float> animationSize the setting for effect scatter. ### SymbolStyle.offset3 -public Vector3 offset3 +public Vector3 offset3 ### SymbolStyle.GetColor -public Color32 GetColor(Color32 defaultColor) +public Color32 GetColor(Color32 defaultColor) ### SymbolStyle.Reset -public virtual void Reset() +public virtual void Reset() ## SymbolType @@ -8251,19 +8251,19 @@ Text character limitation and adaptation component. When the length of the text ### TextLimit.Clone -public TextLimit Clone() +public TextLimit Clone() ### TextLimit.Copy -public void Copy(TextLimit textLimit) +public void Copy(TextLimit textLimit) ### TextLimit.GetLimitContent -public string GetLimitContent(string content) +public string GetLimitContent(string content) ### TextLimit.SetRelatedText -public void SetRelatedText(ChartText txt, float labelWidth) +public void SetRelatedText(ChartText txt, float labelWidth) ## TextPadding @@ -8273,12 +8273,12 @@ Settings related to text. ### TextPadding.TextPadding() -public TextPadding() +public TextPadding() Settings related to text. ### TextPadding.TextPadding -public TextPadding(float top, float right, float bottom, float left) +public TextPadding(float top, float right, float bottom, float left) ## TextStyle @@ -8289,38 +8289,38 @@ Settings related to text. ### TextStyle.TextStyle() -public TextStyle() +public TextStyle() ### TextStyle.Copy -public void Copy(TextStyle textStyle) +public void Copy(TextStyle textStyle) ### TextStyle.GetAlignment -public TextAnchor GetAlignment(TextAnchor defaultAlignment) +public TextAnchor GetAlignment(TextAnchor defaultAlignment) ### TextStyle.GetColor -public Color GetColor(Color defaultColor) +public Color GetColor(Color defaultColor) ### TextStyle.GetFontSize -public int GetFontSize(ComponentTheme defaultTheme) +public int GetFontSize(ComponentTheme defaultTheme) ### TextStyle.TextStyle -public TextStyle(int fontSize) +public TextStyle(int fontSize) -public TextStyle(int fontSize, FontStyle fontStyle) +public TextStyle(int fontSize, FontStyle fontStyle) -public TextStyle(int fontSize, FontStyle fontStyle, Color color) +public TextStyle(int fontSize, FontStyle fontStyle, Color color) -public TextStyle(int fontSize, FontStyle fontStyle, Color color, int rorate) +public TextStyle(int fontSize, FontStyle fontStyle, Color color, int rorate) ### TextStyle.UpdateAlignmentByLocation -public void UpdateAlignmentByLocation(Location location) +public void UpdateAlignmentByLocation(Location location) ## Theme @@ -8330,105 +8330,105 @@ Theme. ### Theme.axis -public AxisTheme axis +public AxisTheme axis ### Theme.colorPalette -public List<Color32> colorPalette +public List<Color32> colorPalette The color list of palette. If no color is set in series, the colors would be adopted sequentially and circularly from this list as the colors of series. ### Theme.common -public ComponentTheme common +public ComponentTheme common ### Theme.dataZoom -public DataZoomTheme dataZoom +public DataZoomTheme dataZoom ### Theme.legend -public LegendTheme legend +public LegendTheme legend ### Theme.serie -public SerieTheme serie +public SerieTheme serie ### Theme.subTitle -public SubTitleTheme subTitle +public SubTitleTheme subTitle ### Theme.title -public TitleTheme title +public TitleTheme title ### Theme.tooltip -public TooltipTheme tooltip +public TooltipTheme tooltip ### Theme.visualMap -public VisualMapTheme visualMap +public VisualMapTheme visualMap ### Theme.CheckWarning -public void CheckWarning(StringBuilder sb) +public void CheckWarning(StringBuilder sb) ### Theme.CloneTheme -public Theme CloneTheme() +public Theme CloneTheme() 克隆主题。 ### Theme.CopyTheme -public void CopyTheme(Theme theme) +public void CopyTheme(Theme theme) copy all configurations from theme. ### Theme.GetColor -public static Color32 GetColor(string hexColorStr) +public static Color32 GetColor(string hexColorStr) Convert the html string to color. ### Theme.GetColorStr -public string GetColorStr(int index) +public string GetColorStr(int index) Gets the hexadecimal color string of the specified index from the palette. ### Theme.GetHashCode -public override int GetHashCode() +public override int GetHashCode() ### Theme.ResetTheme -public bool ResetTheme() +public bool ResetTheme() Clear all custom configurations. ### Theme.ResetToDarkTheme -public static void ResetToDarkTheme(Theme theme) +public static void ResetToDarkTheme(Theme theme) dark theme. ### Theme.ResetToDefaultTheme -public static void ResetToDefaultTheme(Theme theme) +public static void ResetToDefaultTheme(Theme theme) default theme. ### Theme.SetColorPalette -public void SetColorPalette(List<string> hexColorStringList) +public void SetColorPalette(List<string> hexColorStringList) ### Theme.SetDefaultFont -public void SetDefaultFont() +public void SetDefaultFont() ### Theme.SyncFontToSubComponent -public void SyncFontToSubComponent() +public void SyncFontToSubComponent() ### Theme.SyncTMPFontToSubComponent -public void SyncTMPFontToSubComponent() +public void SyncTMPFontToSubComponent() ## ThemeStyle @@ -8438,70 +8438,70 @@ Theme. ### ThemeStyle.axis -public AxisTheme axis +public AxisTheme axis ### ThemeStyle.common -public ComponentTheme common +public ComponentTheme common ### ThemeStyle.customColorPalette -public List<Color32> customColorPalette +public List<Color32> customColorPalette ### ThemeStyle.dataZoom -public DataZoomTheme dataZoom +public DataZoomTheme dataZoom ### ThemeStyle.legend -public LegendTheme legend +public LegendTheme legend ### ThemeStyle.serie -public SerieTheme serie +public SerieTheme serie ### ThemeStyle.show -public bool show +public bool show ### ThemeStyle.subTitle -public SubTitleTheme subTitle +public SubTitleTheme subTitle ### ThemeStyle.title -public TitleTheme title +public TitleTheme title ### ThemeStyle.tooltip -public TooltipTheme tooltip +public TooltipTheme tooltip ### ThemeStyle.visualMap -public VisualMapTheme visualMap +public VisualMapTheme visualMap ### ThemeStyle.CheckWarning -public void CheckWarning(StringBuilder sb) +public void CheckWarning(StringBuilder sb) ### ThemeStyle.GetBackgroundColor -public Color32 GetBackgroundColor(Background background) +public Color32 GetBackgroundColor(Background background) ### ThemeStyle.GetColor -public static Color32 GetColor(string hexColorStr) +public static Color32 GetColor(string hexColorStr) Convert the html string to color. ### ThemeStyle.GetColorStr -public string GetColorStr(int index) +public string GetColorStr(int index) Gets the hexadecimal color string of the specified index from the palette. ### ThemeStyle.SyncSharedThemeColorToCustom -public void SyncSharedThemeColorToCustom() +public void SyncSharedThemeColorToCustom() ## ThemeType @@ -8524,25 +8524,25 @@ Title component, including main title and subtitle. ### Title.show -public bool show +public bool show [default:true] Set this to false to prevent the title from showing. ### Title.text -public string text +public string text The main title text, supporting \n for newlines. ### Title.vertsDirty -public override bool vertsDirty +public override bool vertsDirty ### Title.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### Title.OnChanged -public void OnChanged() +public void OnChanged() ## TitleStyle @@ -8556,7 +8556,7 @@ class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) ### TitleTheme.TitleTheme -public TitleTheme(ThemeType theme) : base(theme) +public TitleTheme(ThemeType theme) : base(theme) ## Tooltip @@ -8566,160 +8566,160 @@ Tooltip component. ### Tooltip.alwayShowContent -public bool alwayShowContent +public bool alwayShowContent Whether to trigger after always display. ### Tooltip.backgroundColor -public Color backgroundColor +public Color backgroundColor The background color of tooltip. ### Tooltip.backgroundImage -public Sprite backgroundImage +public Sprite backgroundImage The background image of tooltip. ### Tooltip.backgroundType -public Image.Type backgroundType +public Image.Type backgroundType The background type of tooltip. ### Tooltip.fixedHeight -public float fixedHeight +public float fixedHeight Fixed height. Higher priority than minHeight. ### Tooltip.fixedWidth -public float fixedWidth +public float fixedWidth Fixed width. Higher priority than minWidth. ### Tooltip.ignoreDataDefaultContent -public string ignoreDataDefaultContent +public string ignoreDataDefaultContent The default display character information for ignored data. ### Tooltip.ignoreDataShow -public bool ignoreDataShow +public bool ignoreDataShow Whether to show ignored data on tooltip. ### Tooltip.itemFormatter -public string itemFormatter +public string itemFormatter a string template formatter for a single Serie or data item content. Support for wrapping lines with \n. 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.
{e} is the name of the data item serieData that is currently indicated or whose index is 0.
{f} is sum of data.
{y} is category value of y axis.
{.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).
{d:0.##} indicates that a formatted string with a value specified separately is 0.## (used for percentage, reserved 2 valid digits while avoiding the situation similar to "100.00%" when using f2 ).
Example: "{a}, {c}", "{a1}, {c1: f1}", "{a1}, {c1:0: f1}", "{a1} : {c1:1-1: f1}"
### Tooltip.marker -public string marker +public string marker the marker of serie. ### Tooltip.minHeight -public float minHeight +public float minHeight Minimum height. If fixedHeight has a value, take priority over fixedHeight. ### Tooltip.minWidth -public float minWidth +public float minWidth Minimum width. If fixedWidth has a value, get fixedWidth first. ### Tooltip.offset -public Vector2 offset +public Vector2 offset The position offset of tooltip relative to the mouse position. ### Tooltip.onClickIndex -public System.Action<int> onClickIndex +public System.Action<int> onClickIndex the callback of tooltip click index. ### Tooltip.paddingLeftRight -public int paddingLeftRight +public int paddingLeftRight the text padding of left and right. defaut:5. ### Tooltip.paddingTopBottom -public int paddingTopBottom +public int paddingTopBottom the text padding of top and bottom. defaut:5. ### Tooltip.runtimeDataIndex -public List<int> runtimeDataIndex +public List<int> runtimeDataIndex The data index currently indicated by Tooltip. ### Tooltip.showContent -public bool showContent +public bool showContent Whether to show the tooltip floating layer, whose default value is true. It should be configurated to be false, if you only need tooltip to trigger the event or show the axisPointer without content. ### Tooltip.titleFormatter -public string titleFormatter +public string titleFormatter String template formatter for tooltip title content. \n line wrapping is supported. The placeholder {i} can be set separately to indicate that title is ignored and not displayed. Template variables are {.}, {a}, {b}, {c}, {d}, {e}, {f}, and {g}.
{.} is the dot of the corresponding color of serie currently indicated or index 0.
{a} is the series name name of serie currently indicated or index 0.
{b} is the name of the serie data item serieData currently indicated or index 0, or the category value (such as the X-axis of a line chart).
{c} is the value of the serie y-dimension (dimesion is 1) currently indicated or index is 0.
{d} is the serie y-dimensional (dimesion 1) percentage value of the currently indicated or index 0, note without the % sign.
{e} is the name of the serie data item serieData currently indicated or whose index is 0.
{h} is the hexadecimal color value of serieData for the serie data item currently indicated or index 0.
{f} is the sum of data.
{g} indicates the total number of data.
{y} is category value of y axis.
{.1} represents a dot of the corresponding color with serie specified as index 1.
The 1 in {a1}, {b1}, {c1} represents serie where index is specified as 1.
{c1:2} represents the third data of the current indicator data item in serie with index 1 (one data item has multiple data, index 2 represents the third data).
{c1:2-2} represents the third data of serie third data item with index 1 (that is, the number of data items must be specified when specifying the number of data items).
{d1:2:f2} indicates that a format string with a single value is f2 (numericFormatter is used if no value is specified).
{d:0.##} indicates that the format string with a value specified alone is 0.## # (for percentages, preserving a 2-digit significant number while avoiding the "100.00%" situation with f2).
example: "{a}, {c}", "{a1}, {c1: f1}", "{a1}, {c1:0: f1}", "{a1}, {c1:1-1: f1}" ### Tooltip.AddSerieDataIndex -public void AddSerieDataIndex(int serieIndex, int dataIndex) +public void AddSerieDataIndex(int serieIndex, int dataIndex) ### Tooltip.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### Tooltip.ClearData -public override void ClearData() +public override void ClearData() ### Tooltip.ClearSerieDataIndex -public void ClearSerieDataIndex() +public void ClearSerieDataIndex() ### Tooltip.GetContentLabelStyle -public LabelStyle GetContentLabelStyle(int index) +public LabelStyle GetContentLabelStyle(int index) ### Tooltip.IsActive -public bool IsActive() +public bool IsActive() 提示框是否显示 ### Tooltip.isAnySerieDataIndex -public bool isAnySerieDataIndex() +public bool isAnySerieDataIndex() ### Tooltip.IsSelected -public bool IsSelected(int index) +public bool IsSelected(int index) 指定索引的数据项是否被提示框选中 ### Tooltip.IsTriggerAxis -public bool IsTriggerAxis() +public bool IsTriggerAxis() ### Tooltip.IsTriggerItem -public bool IsTriggerItem() +public bool IsTriggerItem() ### Tooltip.KeepTop -public void KeepTop() +public void KeepTop() Keep Tooltiop displayed at the top. ### Tooltip.SetActive -public void SetActive(bool flag) +public void SetActive(bool flag) 设置Tooltip组件是否显示 ### Tooltip.SetContentActive -public void SetContentActive(bool flag) +public void SetContentActive(bool flag) 设置文本框是否显示 ### Tooltip.UpdateContentPos -public void UpdateContentPos(Vector2 pos, float width, float height) +public void UpdateContentPos(Vector2 pos, float width, float height) 更新文本框位置 ## Tooltip.Position @@ -8787,19 +8787,19 @@ class in XCharts.Runtime ### TooltipHelper.GetItemNumericFormatter -public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData) +public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData) ### TooltipHelper.GetLineColor -public static Color32 GetLineColor(Tooltip tooltip, Color32 defaultColor) +public static Color32 GetLineColor(Tooltip tooltip, Color32 defaultColor) ### TooltipHelper.IsIgnoreFormatter -public static bool IsIgnoreFormatter(string itemFormatter) +public static bool IsIgnoreFormatter(string itemFormatter) ### TooltipHelper.LimitInRect -public static void LimitInRect(Tooltip tooltip, Rect chartRect) +public static void LimitInRect(Tooltip tooltip, Rect chartRect) ## TooltipTheme @@ -8807,11 +8807,11 @@ class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) ### TooltipTheme.Copy -public void Copy(TooltipTheme theme) +public void Copy(TooltipTheme theme) ### TooltipTheme.TooltipTheme -public TooltipTheme(ThemeType theme) : base(theme) +public TooltipTheme(ThemeType theme) : base(theme) ## TooltipView @@ -8819,31 +8819,31 @@ class in XCharts.Runtime ### TooltipView.CreateView -public static TooltipView CreateView(Tooltip tooltip, ThemeStyle theme, Transform parent) +public static TooltipView CreateView(Tooltip tooltip, ThemeStyle theme, Transform parent) ### TooltipView.GetCurrentPos -public Vector3 GetCurrentPos() +public Vector3 GetCurrentPos() ### TooltipView.GetTargetPos -public Vector3 GetTargetPos() +public Vector3 GetTargetPos() ### TooltipView.Refresh -public void Refresh() +public void Refresh() ### TooltipView.SetActive -public void SetActive(bool flag) +public void SetActive(bool flag) ### TooltipView.Update -public void Update() +public void Update() ### TooltipView.UpdatePosition -public void UpdatePosition(Vector3 pos) +public void UpdatePosition(Vector3 pos) ## TooltipViewItem @@ -8857,72 +8857,72 @@ UGUI Graphics Library. ### UGL.DrawDiamond -public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color, Color32 toColor) +public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color, Color32 toColor) Draw a diamond. 画菱形(钻石形状) -public static void DrawDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, Color32 color, Color32 toColor) +public static void DrawDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, Color32 color, Color32 toColor) ### UGL.DrawEllipse -public static void DrawEllipse(VertexHelper vh, Vector3 center, float w, float h, Color32 color, float smoothness = 1) +public static void DrawEllipse(VertexHelper vh, Vector3 center, float w, float h, Color32 color, float smoothness = 1) ### UGL.DrawEmptyDiamond -public static void DrawEmptyDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, float tickness, Color32 color, Color32 emptyColor) +public static void DrawEmptyDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, float tickness, Color32 color, Color32 emptyColor) ### UGL.DrawEmptyTriangle -public static void DrawEmptyTriangle(VertexHelper vh, Vector3 pos, float size, float tickness, Color32 color, Color32 backgroundColor) +public static void DrawEmptyTriangle(VertexHelper vh, Vector3 pos, float size, float tickness, Color32 color, Color32 backgroundColor) ### UGL.DrawLine -public static void DrawLine(VertexHelper vh, List<Vector3> points, float width, Color32 color, bool smooth, bool closepath = false) +public static void DrawLine(VertexHelper vh, List<Vector3> points, float width, Color32 color, bool smooth, bool closepath = false) -public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color, Color32 toColor) +public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color, Color32 toColor) Draw a line. 画直线 ### UGL.DrawMinus -public static void DrawMinus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color) +public static void DrawMinus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color) Draw minus sign. ### UGL.DrawPlus -public static void DrawPlus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color) +public static void DrawPlus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color) Draw plus sign. ### UGL.DrawPolygon -public static void DrawPolygon(VertexHelper vh, List<Vector3> points, Color32 color) +public static void DrawPolygon(VertexHelper vh, List<Vector3> points, Color32 color) 填充任意多边形(目前只支持凸多边形) ### UGL.DrawRectangle -public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color) +public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color) -public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color, Color32 toColor) +public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color, Color32 toColor) -public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color) +public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color) -public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color, Color32 toColor) +public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color, Color32 toColor) ### UGL.DrawSquare -public static void DrawSquare(VertexHelper vh, Vector3 center, float radius, Color32 color) +public static void DrawSquare(VertexHelper vh, Vector3 center, float radius, Color32 color) Draw a square. 画正方形 ### UGL.DrawSvgPath -public static void DrawSvgPath(VertexHelper vh, string path) +public static void DrawSvgPath(VertexHelper vh, string path) ### UGL.DrawTriangle -public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color, Color32 toColor) +public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color, Color32 toColor) ## UGL.Direction @@ -8947,84 +8947,84 @@ class in XUGL ### UGLHelper.GetAngle360 -public static float GetAngle360(Vector2 from, Vector2 to) +public static float GetAngle360(Vector2 from, Vector2 to) 获得0-360的角度(12点钟方向为0度) ### UGLHelper.GetBezier -public static Vector3 GetBezier(float t, Vector3 sp, Vector3 cp, Vector3 ep) +public static Vector3 GetBezier(float t, Vector3 sp, Vector3 cp, Vector3 ep) ### UGLHelper.GetBezier2 -public static Vector3 GetBezier2(float t, Vector3 sp, Vector3 p1, Vector3 p2, Vector3 ep) +public static Vector3 GetBezier2(float t, Vector3 sp, Vector3 p1, Vector3 p2, Vector3 ep) ### UGLHelper.GetBezierList -public static List<Vector3> GetBezierList(Vector3 sp, Vector3 ep, int segment, Vector3 cp) +public static List<Vector3> GetBezierList(Vector3 sp, Vector3 ep, int segment, Vector3 cp) ### UGLHelper.GetDire -public static Vector3 GetDire(float angle, bool isDegree = false) +public static Vector3 GetDire(float angle, bool isDegree = false) ### UGLHelper.GetIntersection -public static bool GetIntersection(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, ref List<Vector3> intersection) +public static bool GetIntersection(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, ref List<Vector3> intersection) 获得两直线的交点 ### UGLHelper.GetPos -public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false) +public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false) ### UGLHelper.GetVertialDire -public static Vector3 GetVertialDire(Vector3 dire) +public static Vector3 GetVertialDire(Vector3 dire) ### UGLHelper.IsClearColor -public static bool IsClearColor(Color color) +public static bool IsClearColor(Color color) ### UGLHelper.IsPointInPolygon -public static bool IsPointInPolygon(Vector3 p, List<Vector2> polyons) +public static bool IsPointInPolygon(Vector3 p, List<Vector2> polyons) -public static bool IsPointInPolygon(Vector3 p, params Vector3[] polyons) +public static bool IsPointInPolygon(Vector3 p, params Vector3[] polyons) ### UGLHelper.IsPointInTriangle -public static bool IsPointInTriangle(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 check) +public static bool IsPointInTriangle(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 check) ### UGLHelper.IsValueEqualsColor -public static bool IsValueEqualsColor(Color color1, Color color2) +public static bool IsValueEqualsColor(Color color1, Color color2) ### UGLHelper.IsValueEqualsList<T> -public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2) +public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2) ### UGLHelper.IsValueEqualsString -public static bool IsValueEqualsString(string str1, string str2) +public static bool IsValueEqualsString(string str1, string str2) ### UGLHelper.IsValueEqualsVector2 -public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2) +public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2) ### UGLHelper.IsValueEqualsVector3 -public static bool IsValueEqualsVector3(Vector3 v1, Vector2 v2) +public static bool IsValueEqualsVector3(Vector3 v1, Vector2 v2) ### UGLHelper.IsZeroVector -public static bool IsZeroVector(Vector3 pos) +public static bool IsZeroVector(Vector3 pos) ### UGLHelper.RotateRound -public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle) +public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle) ## UIComponent @@ -9034,35 +9034,35 @@ UI组件基类。 ### UIComponent.background -public Background background +public Background background 背景样式。 ### UIComponent.chartHideFlags -public override HideFlags chartHideFlags +public override HideFlags chartHideFlags ### UIComponent.theme -public UIComponentTheme theme +public UIComponentTheme theme ### UIComponent.SetAllDirty -public override void SetAllDirty() +public override void SetAllDirty() ### UIComponent.SetDataDirty -public void SetDataDirty() +public void SetDataDirty() > Since `v3.9.0` ### UIComponent.SetVerticesDirty -public override void SetVerticesDirty() +public override void SetVerticesDirty() ### UIComponent.UpdateTheme -public bool UpdateTheme(ThemeType theme) +public bool UpdateTheme(ThemeType theme) Update chart theme. ## UIComponentTheme @@ -9071,11 +9071,11 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### UIComponentTheme.show -public bool show +public bool show ### UIComponentTheme.GetBackgroundColor -public Color32 GetBackgroundColor(Background background) +public Color32 GetBackgroundColor(Background background) ## UIHelper @@ -9099,80 +9099,80 @@ VisualMap component. Mapping data to visual elements such as colors. ### VisualMap.range -public double[] range +public double[] range Specifies the position of the numeric value corresponding to the handle. Range should be within the range of [min,max]. ### VisualMap.runtimeRangeMaxHeight -public float runtimeRangeMaxHeight +public float runtimeRangeMaxHeight ### VisualMap.runtimeRangeMinHeight -public float runtimeRangeMinHeight +public float runtimeRangeMinHeight ### VisualMap.text -public string[] text +public string[] text Text on both ends. ### VisualMap.textGap -public float[] textGap +public float[] textGap The distance between the two text bodies. ### VisualMap.vertsDirty -public override bool vertsDirty +public override bool vertsDirty ### VisualMap.AddColors -public void AddColors(List<string> colors) +public void AddColors(List<string> colors) ### VisualMap.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### VisualMap.ClearVerticesDirty -public override void ClearVerticesDirty() +public override void ClearVerticesDirty() ### VisualMap.GetColor -public Color32 GetColor(double value) +public Color32 GetColor(double value) ### VisualMap.GetIndex -public int GetIndex(double value) +public int GetIndex(double value) ### VisualMap.GetValue -public double GetValue(Vector3 pos, Rect chartRect) +public double GetValue(Vector3 pos, Rect chartRect) ### VisualMap.IsInRangeMaxRect -public bool IsInRangeMaxRect(Vector3 local, Rect chartRect, float triangleLen) +public bool IsInRangeMaxRect(Vector3 local, Rect chartRect, float triangleLen) ### VisualMap.IsInRangeMinRect -public bool IsInRangeMinRect(Vector3 local, Rect chartRect, float triangleLen) +public bool IsInRangeMinRect(Vector3 local, Rect chartRect, float triangleLen) ### VisualMap.IsInRangeRect -public bool IsInRangeRect(Vector3 local, Rect chartRect) +public bool IsInRangeRect(Vector3 local, Rect chartRect) ### VisualMap.IsInRect -public bool IsInRect(Vector3 local, Rect chartRect, float triangleLen = 20) +public bool IsInRect(Vector3 local, Rect chartRect, float triangleLen = 20) ### VisualMap.IsInSelectedValue -public bool IsInSelectedValue(double value) +public bool IsInSelectedValue(double value) ### VisualMap.IsPiecewise -public bool IsPiecewise() +public bool IsPiecewise() ## VisualMap.SelectedMode @@ -9202,28 +9202,28 @@ class in XCharts.Runtime / Inherits from: [MainComponentContext](#maincomponentc ### VisualMapContext.max -public double max +public double max ### VisualMapContext.maxDrag -public bool maxDrag +public bool maxDrag ### VisualMapContext.min -public double min +public double min ### VisualMapContext.minDrag -public bool minDrag +public bool minDrag ### VisualMapContext.pointerIndex -public int pointerIndex +public int pointerIndex 鼠标悬停选中的index ### VisualMapContext.pointerValue -public double pointerValue +public double pointerValue ## VisualMapHelper @@ -9231,27 +9231,27 @@ class in XCharts.Runtime ### VisualMapHelper.AutoSetLineMinMax -public static void AutoSetLineMinMax(VisualMap visualMap, Serie serie, bool isY, Axis axis, Axis relativedAxis) +public static void AutoSetLineMinMax(VisualMap visualMap, Serie serie, bool isY, Axis axis, Axis relativedAxis) ### VisualMapHelper.GetDimension -public static int GetDimension(VisualMap visualMap, int defaultDimension) +public static int GetDimension(VisualMap visualMap, int defaultDimension) ### VisualMapHelper.IsNeedAreaGradient -public static bool IsNeedAreaGradient(VisualMap visualMap) +public static bool IsNeedAreaGradient(VisualMap visualMap) ### VisualMapHelper.IsNeedGradient -public static bool IsNeedGradient(VisualMap visualMap) +public static bool IsNeedGradient(VisualMap visualMap) ### VisualMapHelper.IsNeedLineGradient -public static bool IsNeedLineGradient(VisualMap visualMap) +public static bool IsNeedLineGradient(VisualMap visualMap) ### VisualMapHelper.SetMinMax -public static void SetMinMax(VisualMap visualMap, double min, double max) +public static void SetMinMax(VisualMap visualMap, double min, double max) ## VisualMapRange @@ -9259,27 +9259,27 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### VisualMapRange.color -public Color32 color +public Color32 color 颜色 ### VisualMapRange.label -public string label +public string label 文字描述 ### VisualMapRange.max -public double max +public double max 范围最大值 ### VisualMapRange.min -public double min +public double min 范围最小值 ### VisualMapRange.Contains -public bool Contains(double value, double minMaxRange) +public bool Contains(double value, double minMaxRange) ## VisualMapTheme @@ -9287,11 +9287,11 @@ class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) ### VisualMapTheme.Copy -public void Copy(VisualMapTheme theme) +public void Copy(VisualMapTheme theme) ### VisualMapTheme.VisualMapTheme -public VisualMapTheme(ThemeType theme) : base(theme) +public VisualMapTheme(ThemeType theme) : base(theme) ## Wrapper<T> @@ -9305,7 +9305,7 @@ The x axis in cartesian(rectangular) coordinate. ### XAxis.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() The x axis in cartesian(rectangular) coordinate. ## XAxis3D @@ -9318,7 +9318,7 @@ The x axis in cartesian(rectangular) coordinate. ### XAxis3D.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() The x axis in cartesian(rectangular) coordinate. ## XChartsMgr @@ -9327,44 +9327,44 @@ class in XCharts.Runtime ### XChartsMgr.fullVersion -public static string fullVersion +public static string fullVersion ### XChartsMgr.AddChart -public static void AddChart(BaseChart chart) +public static void AddChart(BaseChart chart) ### XChartsMgr.ContainsChart -public static bool ContainsChart(BaseChart chart) +public static bool ContainsChart(BaseChart chart) ### XChartsMgr.GetChart -public static BaseChart GetChart(string chartName) +public static BaseChart GetChart(string chartName) ### XChartsMgr.GetCharts -public static List<BaseChart> GetCharts(string chartName) +public static List<BaseChart> GetCharts(string chartName) ### XChartsMgr.GetPackageFullPath -public static string GetPackageFullPath() +public static string GetPackageFullPath() ### XChartsMgr.GetRepeatChartNameInfo -public static string GetRepeatChartNameInfo(BaseChart chart, string chartName) +public static string GetRepeatChartNameInfo(BaseChart chart, string chartName) ### XChartsMgr.IsRepeatChartName -public static bool IsRepeatChartName(BaseChart chart, string chartName = null) +public static bool IsRepeatChartName(BaseChart chart, string chartName = null) ### XChartsMgr.RemoveAllChartObject -public static void RemoveAllChartObject() +public static void RemoveAllChartObject() ### XChartsMgr.RemoveChart -public static void RemoveChart(string chartName) +public static void RemoveChart(string chartName) ## XCResourceImporterWindow @@ -9372,7 +9372,7 @@ class in XCharts.Runtime / Inherits from: [UnityEditor.EditorWindow](https://doc ### XCResourceImporterWindow.ShowPackageImporterWindow -public static void ShowPackageImporterWindow() +public static void ShowPackageImporterWindow() ## XCResourcesImporter @@ -9380,23 +9380,23 @@ class in XCharts.Runtime ### XCResourcesImporter.OnDestroy() -public void OnDestroy() +public void OnDestroy() ### XCResourcesImporter.XCResourcesImporter() -public XCResourcesImporter() +public XCResourcesImporter() ### XCResourcesImporter.OnDestroy -public void OnDestroy() { } +public void OnDestroy() { } ### XCResourcesImporter.OnGUI -public void OnGUI() +public void OnGUI() ### XCResourcesImporter.XCResourcesImporter -public XCResourcesImporter() { } +public XCResourcesImporter() { } ## XCSettings @@ -9404,156 +9404,156 @@ class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3 ### XCSettings.axisLineType -public static LineStyle.Type axisLineType +public static LineStyle.Type axisLineType ### XCSettings.axisLineWidth -public static float axisLineWidth +public static float axisLineWidth ### XCSettings.axisSplitLineType -public static LineStyle.Type axisSplitLineType +public static LineStyle.Type axisSplitLineType ### XCSettings.axisSplitLineWidth -public static float axisSplitLineWidth +public static float axisSplitLineWidth ### XCSettings.axisTickLength -public static float axisTickLength +public static float axisTickLength ### XCSettings.axisTickWidth -public static float axisTickWidth +public static float axisTickWidth ### XCSettings.cicleSmoothness -public static float cicleSmoothness +public static float cicleSmoothness ### XCSettings.customThemes -public static List<Theme> customThemes +public static List<Theme> customThemes ### XCSettings.dataZoomBorderWidth -public static float dataZoomBorderWidth +public static float dataZoomBorderWidth ### XCSettings.dataZoomDataLineWidth -public static float dataZoomDataLineWidth +public static float dataZoomDataLineWidth ### XCSettings.editorShowAllListData -public static bool editorShowAllListData +public static bool editorShowAllListData ### XCSettings.font -public static Font font +public static Font font ### XCSettings.fontSizeLv1 -public static int fontSizeLv1 +public static int fontSizeLv1 一级字体大小。 ### XCSettings.fontSizeLv2 -public static int fontSizeLv2 +public static int fontSizeLv2 ### XCSettings.fontSizeLv3 -public static int fontSizeLv3 +public static int fontSizeLv3 ### XCSettings.fontSizeLv4 -public static int fontSizeLv4 +public static int fontSizeLv4 ### XCSettings.gaugeAxisLineWidth -public static float gaugeAxisLineWidth +public static float gaugeAxisLineWidth ### XCSettings.gaugeAxisSplitLineLength -public static float gaugeAxisSplitLineLength +public static float gaugeAxisSplitLineLength ### XCSettings.gaugeAxisSplitLineWidth -public static float gaugeAxisSplitLineWidth +public static float gaugeAxisSplitLineWidth ### XCSettings.gaugeAxisTickLength -public static float gaugeAxisTickLength +public static float gaugeAxisTickLength ### XCSettings.gaugeAxisTickWidth -public static float gaugeAxisTickWidth +public static float gaugeAxisTickWidth ### XCSettings.lang -public static Lang lang +public static Lang lang ### XCSettings.lineSegmentDistance -public static float lineSegmentDistance +public static float lineSegmentDistance ### XCSettings.lineSmoothness -public static float lineSmoothness +public static float lineSmoothness ### XCSettings.lineSmoothStyle -public static float lineSmoothStyle +public static float lineSmoothStyle ### XCSettings.maxPainter -public static int maxPainter +public static int maxPainter ### XCSettings.serieCandlestickBorderWidth -public static float serieCandlestickBorderWidth +public static float serieCandlestickBorderWidth ### XCSettings.serieLineSymbolSize -public static float serieLineSymbolSize +public static float serieLineSymbolSize ### XCSettings.serieLineWidth -public static float serieLineWidth +public static float serieLineWidth ### XCSettings.serieScatterSymbolSize -public static float serieScatterSymbolSize +public static float serieScatterSymbolSize ### XCSettings.serieSelectedRate -public static float serieSelectedRate +public static float serieSelectedRate ### XCSettings.tmpFont -public static TMP_FontAsset tmpFont +public static TMP_FontAsset tmpFont ### XCSettings.tootipLineWidth -public static float tootipLineWidth +public static float tootipLineWidth ### XCSettings.visualMapBorderWidth -public static float visualMapBorderWidth +public static float visualMapBorderWidth ### XCSettings.visualMapTriangeLen -public static float visualMapTriangeLen +public static float visualMapTriangeLen ### XCSettings.AddCustomTheme -public static bool AddCustomTheme(Theme theme) +public static bool AddCustomTheme(Theme theme) ### XCSettings.ExistAssetFile -public static bool ExistAssetFile() +public static bool ExistAssetFile() ### XCSettings.GetSettingAssetPath -public static string GetSettingAssetPath() +public static string GetSettingAssetPath() ## XCThemeMgr @@ -9561,51 +9561,51 @@ class in XCharts.Runtime ### XCThemeMgr.AddTheme -public static void AddTheme(Theme theme) +public static void AddTheme(Theme theme) ### XCThemeMgr.CheckReloadTheme -public static void CheckReloadTheme() +public static void CheckReloadTheme() ### XCThemeMgr.ContainsTheme -public static bool ContainsTheme(string themeName) +public static bool ContainsTheme(string themeName) ### XCThemeMgr.ExportTheme -public static bool ExportTheme(Theme theme) +public static bool ExportTheme(Theme theme) ### XCThemeMgr.GetAllThemeNames -public static List<string> GetAllThemeNames() +public static List<string> GetAllThemeNames() ### XCThemeMgr.GetTheme -public static Theme GetTheme(string themeName) +public static Theme GetTheme(string themeName) ### XCThemeMgr.GetThemeAssetPath -public static string GetThemeAssetPath(string themeName) +public static string GetThemeAssetPath(string themeName) ### XCThemeMgr.GetThemeList -public static List<Theme> GetThemeList() +public static List<Theme> GetThemeList() ### XCThemeMgr.LoadTheme -public static Theme LoadTheme(string themeName) +public static Theme LoadTheme(string themeName) ### XCThemeMgr.ReloadThemeList -public static void ReloadThemeList() +public static void ReloadThemeList() 重新加载主题列表 ### XCThemeMgr.SwitchTheme -public static void SwitchTheme(BaseChart chart, string themeName) +public static void SwitchTheme(BaseChart chart, string themeName) ## XLog @@ -9615,63 +9615,63 @@ Log system. Used to output logs with date and log type, support output to file, ### XLog.CanLog -public static bool CanLog(int level) +public static bool CanLog(int level) ### XLog.ClearAllLog -public static void ClearAllLog() +public static void ClearAllLog() ### XLog.Debug -public static void Debug(string log) +public static void Debug(string log) ### XLog.EnableLog -public static void EnableLog(int logType) +public static void EnableLog(int logType) ### XLog.Error -public static void Error(string log) +public static void Error(string log) ### XLog.FlushLog -public static void FlushLog() +public static void FlushLog() ### XLog.GetNowTime -public static string GetNowTime(string formatter = null) +public static string GetNowTime(string formatter = null) ### XLog.GetTimestamp -public static ulong GetTimestamp() +public static ulong GetTimestamp() ### XLog.Info -public static void Info(string log) +public static void Info(string log) ### XLog.Log -public static void Log(string log) +public static void Log(string log) ### XLog.LogError -public static void LogError(string log) +public static void LogError(string log) ### XLog.LogWarning -public static void LogWarning(string log) +public static void LogWarning(string log) ### XLog.Proto -public static void Proto(string log) +public static void Proto(string log) ### XLog.Vital -public static void Vital(string log) +public static void Vital(string log) ### XLog.Warning -public static void Warning(string log) +public static void Warning(string log) ## YAxis @@ -9681,7 +9681,7 @@ The x axis in cartesian(rectangular) coordinate. ### YAxis.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() The x axis in cartesian(rectangular) coordinate. ## YAxis3D @@ -9694,7 +9694,7 @@ The x axis in cartesian(rectangular) coordinate. ### YAxis3D.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() The x axis in cartesian(rectangular) coordinate. ## ZAxis3D @@ -9707,6 +9707,6 @@ The x axis in cartesian(rectangular) coordinate. ### ZAxis3D.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() The x axis in cartesian(rectangular) coordinate. diff --git a/Documentation~/en/configuration.md b/Documentation~/en/configuration.md index 07f2d833..888d7fdd 100644 --- a/Documentation~/en/configuration.md +++ b/Documentation~/en/configuration.md @@ -212,7 +212,8 @@ Angle axis of Polar Coordinate. ### AngleAxis.startAngle -`float` `0` +`float` `default: 0` + Starting angle of axis. 0 degrees by default, standing for right position of center. ## AngleAxisTheme @@ -269,22 +270,26 @@ the animation info. ### AnimationInfo.delay -`float` `0` `v3.8.0` +`float` `default: 0` `v3.8.0` + the delay time before animation start. ### AnimationInfo.duration -`float` `1000` `v3.8.0` +`float` `default: 1000` `v3.8.0` + the duration of animation. ### AnimationInfo.enable -`bool` `true` `v3.8.0` +`bool` `default: true` `v3.8.0` + whether enable animation. ### AnimationInfo.reverse -`bool` `false` `v3.8.0` +`bool` `default: false` `v3.8.0` + whether enable reverse animation. ## AnimationInteraction @@ -298,16 +303,19 @@ Interactive animation of charts. ### AnimationInteraction.offset `MLValue` `v3.8.0` + the mlvalue of offset. Such as the offset of the pie chart when the sector is selected. [MLValue](#mlvalue) ### AnimationInteraction.radius `MLValue` `v3.8.0` + the mlvalue of radius. [MLValue](#mlvalue) ### AnimationInteraction.width `MLValue` `v3.8.0` + the mlvalue of width. [MLValue](#mlvalue) ## AnimationStyle @@ -319,11 +327,13 @@ the animation of serie. support animation type: fadeIn, fadeOut, change, additio ### AnimationStyle.addition `AnimationAddition` `v3.8.0` + Add data animation configuration. [AnimationAddition](#animationaddition) ### AnimationStyle.change `AnimationChange` `v3.8.0` + Update data animation configuration. [AnimationChange](#animationchange) ### AnimationStyle.easting @@ -331,43 +341,51 @@ Update data animation configuration. [AnimationChange](#animationchange) `AnimationEasing` + Options: - `Linear`: ### AnimationStyle.enable -`bool` `true` +`bool` `default: true` + Whether to enable animation. ### AnimationStyle.fadeIn `AnimationFadeIn` `v3.8.0` + Fade in animation configuration. [AnimationFadeIn](#animationfadein) ### AnimationStyle.fadeOut `AnimationFadeOut` `v3.8.0` + Fade out animation configuration. [AnimationFadeOut](#animationfadeout) ### AnimationStyle.hiding `AnimationHiding` `v3.8.0` + Data hiding animation configuration. [AnimationHiding](#animationhiding) ### AnimationStyle.interaction `AnimationInteraction` `v3.8.0` + Interaction animation configuration. [AnimationInteraction](#animationinteraction) ### AnimationStyle.threshold -`int` `2000` +`int` `default: 2000` + Whether to set graphic number threshold to animation. Animation will be disabled when graphic number is larger than threshold. ### AnimationStyle.type `AnimationType` + The type of animation. Options: @@ -382,6 +400,7 @@ Options: ### AnimationStyle.unscaledTime `bool` `v3.4.0` + Animation updates independently of Time.timeScale. ## AreaStyle @@ -393,21 +412,25 @@ The style of area. ### AreaStyle.color `Color32` + the color of area,default use serie color. ### AreaStyle.innerFill `bool` `v3.2.0` + Whether to fill only polygonal areas. Currently, only convex polygons are supported. ### AreaStyle.opacity -`float` `0.6f` +`float` `default: 0.6f` + Opacity of the component. Supports value from 0 to 1, and the component will not be drawn when set to 0. ### AreaStyle.origin `AreaStyle.AreaOrigin` + the origin of area. Options: @@ -418,17 +441,20 @@ Options: ### AreaStyle.show -`bool` `true` +`bool` `default: true` + Set this to false to prevent the areafrom showing. ### AreaStyle.toColor `Color32` + Gradient color, start color to toColor. ### AreaStyle.toTop -`bool` `true` `v3.6.0` +`bool` `default: true` `v3.6.0` + Whether to fill the gradient color to the top. The default is true, which means that the gradient color is filled to the top. If it is false, the gradient color is filled to the actual position. ## ArrowStyle @@ -437,27 +463,32 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### ArrowStyle.color -`Color32` `Color.clear` +`Color32` `default: Color.clear` + the color of arrow. ### ArrowStyle.dent -`float` `3` +`float` `default: 3` + The dent of arrow. ### ArrowStyle.height -`float` `15` +`float` `default: 15` + The height of arrow. ### ArrowStyle.offset -`float` `0` +`float` `default: 0` + The offset of arrow. ### ArrowStyle.width -`float` `10` +`float` `default: 10` + The widht of arrow. ## Axis @@ -469,111 +500,133 @@ The axis in rectangular coordinate. ### Axis.animation `AxisAnimation` + animation of axis. [AxisAnimation](#axisanimation) ### Axis.axisLabel `AxisLabel` + axis label. [AxisLabel](#axislabel) ### Axis.axisLine `AxisLine` + axis Line. [AxisLine](#axisline) ### Axis.axisName `AxisName` + axis name. [AxisName](#axisname) ### Axis.axisTick `AxisTick` + axis tick. [AxisTick](#axistick) ### Axis.boundaryGap -`bool` `true` +`bool` `default: true` + The boundary gap on both sides of a coordinate axis, which is valid only for category axis with type: 'Category'. ### Axis.ceilRate -`double` `0` +`double` `default: 0` + The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated. ### Axis.clockwise -`bool` `true` +`bool` `default: true` + Whether the positive position of axis is in clockwise. True for clockwise by default. ### Axis.data `List` + Category data, available in type: 'Category' axis. ### Axis.gridIndex `int` + The index of the grid on which the axis are located, by default, is in the first grid. ### Axis.icons `List` + 类目数据对应的图标。 ### Axis.indicatorLabel `LabelStyle` `v3.4.0` + Style of axis tooltip indicator label. [LabelStyle](#labelstyle) ### Axis.insertDataToHead `bool` + Whether to add new data at the head or at the end of the list. ### Axis.interval -`double` `0` +`double` `default: 0` + Compulsively set segmentation interval for axis.This is unavailable for category axis. ### Axis.inverse -`bool` `false` +`bool` `default: false` + Whether the axis are reversed or not. Invalid in `Category` axis. ### Axis.logBase -`float` `10` +`float` `default: 10` + Base of logarithm, which is valid only for numeric axes with type: 'Log'. ### Axis.logBaseE -`bool` `false` +`bool` `default: false` + On the log axis, if base e is the natural number, and is true, logBase fails. ### Axis.max `double` + The maximum value of axis.Valid when `minMaxType` is `Custom` ### Axis.maxCache -`int` `0` +`int` `default: 0` + The max number of axis data cache. ### Axis.min `double` + The minimun value of axis.Valid when `minMaxType` is `Custom` ### Axis.minCategorySpacing -`float` `0` `v3.11.0` +`float` `default: 0` `v3.11.0` + The minimum spacing between categories. ### Axis.minMaxType `Axis.AxisMinMaxType` + the type of axis minmax. Options: @@ -586,31 +639,37 @@ Options: ### Axis.minorSplitLine `AxisMinorSplitLine` `v3.2.0` + axis minor split line. [AxisMinorSplitLine](#axisminorsplitline) ### Axis.minorTick `AxisMinorTick` `v3.2.0` + axis minor tick. [AxisMinorTick](#axisminortick) ### Axis.offset `float` + the offset of axis from the default position. Useful when the same position has multiple axes. ### Axis.parallelIndex `int` + The index of the parallel on which the axis are located, by default, is in the first parallel. ### Axis.polarIndex `int` + The index of the polar on which the axis are located, by default, is in the first polar. ### Axis.position `Axis.AxisPosition` + the position of axis in grid. Options: @@ -623,27 +682,32 @@ Options: ### Axis.show -`bool` `true` +`bool` `default: true` + Whether to show axis. ### Axis.splitArea `AxisSplitArea` + axis split area. [AxisSplitArea](#axissplitarea) ### Axis.splitLine `AxisSplitLine` + axis split line. [AxisSplitLine](#axissplitline) ### Axis.splitNumber -`int` `0` +`int` `default: 0` + Number of segments that the axis is split into. ### Axis.type `Axis.AxisType` + the type of axis. Options: @@ -664,16 +728,19 @@ animation style of axis. ### AxisAnimation.duration `float` + the duration of animation (ms). When it is set to 0, the animation duration will be automatically calculated according to the serie. ### AxisAnimation.show -`bool` `true` +`bool` `default: true` + whether to enable animation. ### AxisAnimation.unscaledTime `bool` + Animation updates independently of Time.timeScale. ## AxisLabel @@ -684,37 +751,44 @@ Settings related to axis label. ### AxisLabel.inside -`bool` `false` +`bool` `default: false` + Set this to true so the axis labels face the inside direction. ### AxisLabel.interval -`int` `0` +`int` `default: 0` + The display interval of the axis label. ### AxisLabel.onZero -`bool` `false` +`bool` `default: false` + 刻度标签显示在0刻度上。 ### AxisLabel.showAsPositiveNumber -`bool` `false` +`bool` `default: false` + Show negative number as positive number. ### AxisLabel.showEndLabel -`bool` `true` +`bool` `default: true` + Whether to display the last label. ### AxisLabel.showStartLabel -`bool` `true` +`bool` `default: true` + Whether to display the first label. ### AxisLabel.textLimit `TextLimit` + 文本限制。 [TextLimit](#textlimit) ## AxisLine @@ -726,16 +800,19 @@ Settings related to axis line. ### AxisLine.arrow `ArrowStyle` + the arrow of line. [ArrowStyle](#arrowstyle) ### AxisLine.onZero `bool` + When mutiple axes exists, this option can be used to specify which axis can be "onZero" to. ### AxisLine.showArrow `bool` + Whether to show the arrow symbol of axis. ## AxisMinorSplitLine @@ -749,11 +826,13 @@ Minor split line of axis in grid area. ### AxisMinorSplitLine.autoColor `bool` + auto color. ### AxisMinorSplitLine.distance `float` + The distance between the split line and axis line. ## AxisMinorTick @@ -768,9 +847,11 @@ Settings related to axis minor tick. `bool` + ### AxisMinorTick.splitNumber -`int` `5` +`int` `default: 5` + Number of segments that the axis is split into. ## AxisName @@ -782,21 +863,25 @@ the name of axis. ### AxisName.labelStyle `LabelStyle` + The text style of axis name. [LabelStyle](#labelstyle) ### AxisName.name `string` + the name of axis. ### AxisName.onZero `bool` `v3.1.0` + Whether the axis name position are the same with 0 position of YAxis. ### AxisName.show `bool` + Whether to show axis name. ## AxisSplitArea @@ -808,11 +893,13 @@ Split area of axis in grid area, not shown by default. ### AxisSplitArea.color `List` + Color of split area. SplitArea color could also be set in color array, which the split lines would take as their colors in turns. Dark and light colors in turns are used by default. ### AxisSplitArea.show `bool` + Set this to true to show the splitArea. ## AxisSplitLine @@ -824,31 +911,37 @@ Split line of axis in grid area. ### AxisSplitLine.autoColor `bool` + auto color. ### AxisSplitLine.distance `float` + The distance between the split line and axis line. ### AxisSplitLine.interval `int` + Interval of Axis splitLine. ### AxisSplitLine.showEndLine -`bool` `true` `v3.3.0` +`bool` `default: true` `v3.3.0` + Whether to show the last split line. ### AxisSplitLine.showStartLine -`bool` `true` `v3.3.0` +`bool` `default: true` `v3.3.0` + Whether to show the first split line. ### AxisSplitLine.showZLine -`bool` `true` `v3.11.0` +`bool` `default: true` `v3.11.0` + Whether to show the Z axis part of the split line. Generally used for 3D coordinate systems. ## AxisTheme @@ -864,35 +957,42 @@ Settings related to axis tick. ### AxisTick.alignWithLabel `bool` + Align axis tick with label, which is available only when boundaryGap is set to be true in category axis. ### AxisTick.autoColor `bool` + ### AxisTick.distance `float` + The distance between the tick line and axis line. ### AxisTick.inside `bool` + Set this to true so the axis labels face the inside direction. ### AxisTick.showEndTick `bool` + Whether to display the last tick. ### AxisTick.showStartTick `bool` + Whether to display the first tick. ### AxisTick.splitNumber -`int` `0` +`int` `default: 0` + Number of segments that the axis is split into. ## Background @@ -903,42 +1003,50 @@ Background component. ### Background.autoColor -`bool` `true` +`bool` `default: true` + Whether to use theme background color for component color when the background component is on. ### Background.borderStyle `BorderStyle` `v3.10.0` + the border style of background. [BorderStyle](#borderstyle) ### Background.image `Sprite` + the image of background. ### Background.imageColor `Color` + 背景图颜色。 ### Background.imageHeight -`float` `0` `v3.10.0` +`float` `default: 0` `v3.10.0` + the height of background image. ### Background.imageType `Image.Type` + the fill type of background image. ### Background.imageWidth -`float` `0` `v3.10.0` +`float` `default: 0` `v3.10.0` + the width of background image. ### Background.show -`bool` `true` +`bool` `default: true` + Whether to enable the background component. ## Bar @@ -952,16 +1060,19 @@ class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) / Su ### BaseAxisTheme.lineColor `Color32` + the color of line. ### BaseAxisTheme.lineLength -`float` `0f` +`float` `default: 0f` + the length of line. ### BaseAxisTheme.lineType `LineStyle.Type` + the type of line. Options: @@ -975,32 +1086,38 @@ Options: ### BaseAxisTheme.lineWidth -`float` `1f` +`float` `default: 1f` + the width of line. ### BaseAxisTheme.minorSplitLineColor `Color32` + the color of minor split line. ### BaseAxisTheme.splitAreaColors `List` + the colors of split area. ### BaseAxisTheme.splitLineColor `Color32` + the color of split line. ### BaseAxisTheme.splitLineLength -`float` `0f` +`float` `default: 0f` + the length of split line. ### BaseAxisTheme.splitLineType `LineStyle.Type` + the type of split line. Options: @@ -1014,22 +1131,26 @@ Options: ### BaseAxisTheme.splitLineWidth -`float` `1f` +`float` `default: 1f` + the width of split line. ### BaseAxisTheme.tickColor `Color32` + the color of tick. ### BaseAxisTheme.tickLength -`float` `5f` +`float` `default: 5f` + the length of tick. ### BaseAxisTheme.tickWidth -`float` `1f` +`float` `default: 1f` + the width of tick. ## BaseLine @@ -1041,11 +1162,13 @@ Settings related to base line. ### BaseLine.lineStyle `LineStyle` + 线条样式 [LineStyle](#linestyle) ### BaseLine.show `bool` + Set this to false to prevent the axis line from showing. ## BaseScatter @@ -1075,26 +1198,31 @@ The style of border. ### BorderStyle.borderColor `Color32` + the color of border. ### BorderStyle.borderWidth `float` + the width of border. ### BorderStyle.cornerRadius `float[]` + The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)). When is set to (1,1,1,1), all corners are rounded. ### BorderStyle.roundedCorner -`bool` `true` +`bool` `default: true` + whether the border is rounded corner. ### BorderStyle.show -`bool` `false` +`bool` `default: false` + whether the border is visible. ## CalendarCoord @@ -1122,21 +1250,25 @@ comment of chart. ### Comment.items `List` + The items of comment. ### Comment.labelStyle `LabelStyle` + The text style of all comments. [LabelStyle](#labelstyle) ### Comment.markStyle `CommentMarkStyle` + The text style of all comments. [CommentMarkStyle](#commentmarkstyle) ### Comment.show -`bool` `true` +`bool` `default: true` + Set this to false to prevent the comment from showing. ## CommentItem @@ -1148,31 +1280,37 @@ comment of chart. ### CommentItem.content `string` + content of comment. ### CommentItem.labelStyle `LabelStyle` + The text style of all comments. [LabelStyle](#labelstyle) ### CommentItem.location `Location` `v3.5.0` + The location of comment. [Location](#location) ### CommentItem.markRect `Rect` + the mark rect of comment. ### CommentItem.markStyle `CommentMarkStyle` + the mark rect style. [CommentMarkStyle](#commentmarkstyle) ### CommentItem.show -`bool` `true` +`bool` `default: true` + Set this to false to prevent this comment item from showing. ## CommentMarkStyle @@ -1184,11 +1322,13 @@ the comment mark style. ### CommentMarkStyle.lineStyle `LineStyle` + line style of comment mark area. [LineStyle](#linestyle) ### CommentMarkStyle.show -`bool` `true` +`bool` `default: true` + Set this to false to prevent this comment item from showing. ## ComponentTheme @@ -1198,26 +1338,31 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Su ### ComponentTheme.font `Font` + the font of text. ### ComponentTheme.fontSize -`int` `18` +`int` `default: 18` + the font size of text. ### ComponentTheme.textBackgroundColor `Color` + the color of text. ### ComponentTheme.textColor `Color` + the color of text. ### ComponentTheme.tMPFont `TMP_FontAsset` + the font of chart text。 ## CoordSystem @@ -1235,51 +1380,61 @@ DataZoom component is used for zooming a specific area, which enables user to in ### DataZoom.areaStyle `AreaStyle` + 阴影填充样式。 [AreaStyle](#areastyle) ### DataZoom.backgroundColor `Color32` + The background color of the component. ### DataZoom.borderColor `Color32` + the color of dataZoom border. ### DataZoom.borderWidth `float` + 边框宽。 ### DataZoom.bottom `float` + Distance between dataZoom component and the bottom side of the container. bottom value is a instant pixel value like 10 or float value [0-1]. ### DataZoom.enable -`bool` `true` +`bool` `default: true` + Whether to show dataZoom. ### DataZoom.end `float` + The end percentage of the window out of the data extent, in the range of 0 ~ 100. ### DataZoom.endLock `bool` `v3.6.0` + Lock end value. ### DataZoom.fillerColor `Color32` + the color of dataZoom data area. ### DataZoom.filterMode `DataZoom.FilterMode` + The mode of data filter. Options: @@ -1292,31 +1447,37 @@ Options: ### DataZoom.labelStyle `LabelStyle` + label style. [LabelStyle](#labelstyle) ### DataZoom.left `float` + Distance between dataZoom component and the left side of the container. left value is a instant pixel value like 10 or float value [0-1]. ### DataZoom.lineStyle `LineStyle` + 阴影线条样式。 [LineStyle](#linestyle) ### DataZoom.marqueeStyle `MarqueeStyle` `v3.5.0` + 选取框样式。 [MarqueeStyle](#marqueestyle) ### DataZoom.minShowNum -`int` `2` +`int` `default: 2` + Minimum number of display data. Minimum number of data displayed when DataZoom is enlarged to maximum. ### DataZoom.orient `Orient` + Specify whether the layout of dataZoom component is horizontal or vertical. What's more, it indicates whether the horizontal axis or vertical axis is controlled by default in catesian coordinate system. Options: @@ -1327,6 +1488,7 @@ Options: ### DataZoom.rangeMode `DataZoom.RangeMode` + Use absolute value or percent value in DataZoom.start and DataZoom.end. Options: @@ -1337,76 +1499,91 @@ Options: ### DataZoom.right `float` + Distance between dataZoom component and the right side of the container. right value is a instant pixel value like 10 or float value [0-1]. ### DataZoom.scrollSensitivity -`float` `1.1f` +`float` `default: 1.1f` + The sensitivity of dataZoom scroll. The larger the number, the more sensitive it is. ### DataZoom.showDataShadow `bool` + Whether to show data shadow, to indicate the data tendency in brief. ### DataZoom.showDetail `bool` + Whether to show detail, that is, show the detailed data information when dragging. ### DataZoom.start `float` + The start percentage of the window out of the data extent, in the range of 0 ~ 100. ### DataZoom.startLock `bool` `v3.6.0` + Lock start value. ### DataZoom.supportInside `bool` + Whether built-in support is supported. Built into the coordinate system to allow the user to zoom in and out of the coordinate system by mouse dragging, mouse wheel, finger swiping (on the touch screen). ### DataZoom.supportInsideDrag -`bool` `true` +`bool` `default: true` + Whether insde drag is supported. ### DataZoom.supportInsideScroll -`bool` `true` +`bool` `default: true` + Whether inside scrolling is supported. ### DataZoom.supportMarquee `bool` + Supported Box Selected. Provides a marquee for scaling the data area. ### DataZoom.supportSlider `bool` + Whether a slider is supported. There are separate sliders on which the user zooms or roams. ### DataZoom.top `float` + Distance between dataZoom component and the top side of the container. top value is a instant pixel value like 10 or float value [0-1]. ### DataZoom.xAxisIndexs `List` + Specify which xAxis is controlled by the dataZoom. ### DataZoom.yAxisIndexs `List` + Specify which yAxis is controlled by the dataZoom. ### DataZoom.zoomLock `bool` + Specify whether to lock the size of window (selected area). ## DataZoomTheme @@ -1416,36 +1593,43 @@ class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) ### DataZoomTheme.backgroundColor `Color32` + the background color of datazoom. ### DataZoomTheme.borderColor `Color32` + the color of dataZoom border. ### DataZoomTheme.borderWidth `float` + the width of border line. ### DataZoomTheme.dataAreaColor `Color32` + the color of data area line. ### DataZoomTheme.dataLineColor `Color32` + the color of data area line. ### DataZoomTheme.dataLineWidth `float` + the width of data line. ### DataZoomTheme.fillerColor `Color32` + the color of dataZoom data area. ## DebugInfo @@ -1454,27 +1638,32 @@ class in XCharts.Runtime ### DebugInfo.foldSeries -`bool` `false` +`bool` `default: false` + Whether to fold series in inspector view. ### DebugInfo.labelStyle `LabelStyle` + [LabelStyle](#labelstyle) ### DebugInfo.show -`bool` `true` +`bool` `default: true` + Whether show debug component. ### DebugInfo.showAllChartObject -`bool` `false` +`bool` `default: false` + Whether show children components of chart in hierarchy view. ### DebugInfo.showDebugInfo -`bool` `false` +`bool` `default: false` + ## EffectScatter @@ -1491,6 +1680,7 @@ Configurations of emphasis state. ### EmphasisStyle.blurScope `EmphasisStyle.BlurScope` + The range of fade out when focus is enabled. Options: @@ -1502,6 +1692,7 @@ Options: ### EmphasisStyle.focus `EmphasisStyle.FocusType` + When the data is highlighted, whether to fade out of other data to focus the highlighted. Options: @@ -1512,7 +1703,8 @@ Options: ### EmphasisStyle.scale -`float` `1.1f` +`float` `default: 1.1f` + Whether to scale to highlight the data in emphasis state. ## EndLabelStyle @@ -1528,51 +1720,61 @@ Grid component. ### GridCoord.backgroundColor `Color32` + Background color of grid, which is transparent by default. ### GridCoord.borderColor `Color32` + The color of grid border. ### GridCoord.borderWidth -`float` `0f` +`float` `default: 0f` + Border width of grid. ### GridCoord.bottom -`float` `0.14f` +`float` `default: 0.14f` + Distance between grid component and the bottom side of the container. ### GridCoord.layoutIndex -`int` `-1` `v3.8.0` +`int` `default: -1` `v3.8.0` + The index of the grid layout component to which the grid belongs. The default is -1, which means that it does not belong to any grid layout component. When this value is set, the left, right, top, and bottom properties will be invalid. ### GridCoord.left -`float` `0.11f` +`float` `default: 0.11f` + Distance between grid component and the left side of the container. ### GridCoord.right -`float` `0.08f` +`float` `default: 0.08f` + Distance between grid component and the right side of the container. ### GridCoord.show -`bool` `true` +`bool` `default: true` + Whether to show the grid in rectangular coordinate. ### GridCoord.showBorder -`bool` `false` +`bool` `default: false` + Whether to show the grid border. ### GridCoord.top -`float` `0.22f` +`float` `default: 0.22f` + Distance between grid component and the top side of the container. ## GridCoord3D @@ -1585,57 +1787,68 @@ Grid component. ### GridCoord3D.bottom -`float` `0.15f` +`float` `default: 0.15f` + Distance between grid component and the bottom side of the container. ### GridCoord3D.boxDepth -`float` `0.2f` +`float` `default: 0.2f` + The depth of the box in the coordinate system. ### GridCoord3D.boxHeight -`float` `0.4f` +`float` `default: 0.4f` + The height of the box in the coordinate system. ### GridCoord3D.boxWidth -`float` `0.55f` +`float` `default: 0.55f` + The width of the box in the coordinate system. ### GridCoord3D.left -`float` `0.15f` +`float` `default: 0.15f` + Distance between grid component and the left side of the container. ### GridCoord3D.right -`float` `0.2f` +`float` `default: 0.2f` + Distance between grid component and the right side of the container. ### GridCoord3D.show -`bool` `true` +`bool` `default: true` + Whether to show the grid in rectangular coordinate. ### GridCoord3D.showBorder -`bool` `false` +`bool` `default: false` + Whether to show the grid border. ### GridCoord3D.top -`float` `0.3f` +`float` `default: 0.3f` + Distance between grid component and the top side of the container. ### GridCoord3D.viewControl `ViewControl` + View control component in 3D coordinate system. [ViewControl](#viewcontrol) ### GridCoord3D.xYExchanged -`bool` `false` +`bool` `default: false` + ## GridLayout @@ -1647,47 +1860,56 @@ Grid layout component. Used to manage the layout of multiple `GridCoord`, and th ### GridLayout.bottom -`float` `0.12f` +`float` `default: 0.12f` + Distance between grid component and the bottom side of the container. ### GridLayout.column -`int` `2` +`int` `default: 2` + the column count of grid layout. ### GridLayout.inverse -`bool` `false` +`bool` `default: false` + Whether to inverse the grid layout. ### GridLayout.left -`float` `0.1f` +`float` `default: 0.1f` + Distance between grid component and the left side of the container. ### GridLayout.right -`float` `0.08f` +`float` `default: 0.08f` + Distance between grid component and the right side of the container. ### GridLayout.row -`int` `2` +`int` `default: 2` + the row count of grid layout. ### GridLayout.show -`bool` `true` +`bool` `default: true` + Whether to show the grid in rectangular coordinate. ### GridLayout.spacing -`Vector2` `Vector2.zero` +`Vector2` `default: Vector2.zero` + the spacing of grid layout. ### GridLayout.top -`float` `0.22f` +`float` `default: 0.22f` + Distance between grid component and the top side of the container. ## Heatmap @@ -1697,6 +1919,7 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer] ### Heatmap.heatmapType `HeatmapType` `v3.3.0` + The mapping type of heatmap. Options: @@ -1711,6 +1934,7 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### IconStyle.align `Align` + 水平方向对齐方式。 Options: @@ -1721,22 +1945,26 @@ Options: ### IconStyle.autoHideWhenLabelEmpty -`bool` `false` +`bool` `default: false` + 当label内容为空时是否自动隐藏图标 ### IconStyle.color `Color` + 图标颜色。 ### IconStyle.height -`float` `20` +`float` `default: 20` + 图标高。 ### IconStyle.layer `IconStyle.Layer` + 显示在上层还是在下层。 Options: @@ -1747,26 +1975,31 @@ Options: ### IconStyle.offset `Vector3` + 图标偏移。 ### IconStyle.show -`bool` `false` +`bool` `default: false` + Whether the data icon is show. ### IconStyle.sprite `Sprite` + The image of icon. ### IconStyle.type `Image.Type` + How to display the icon. ### IconStyle.width -`float` `20` +`float` `default: 20` + 图标宽。 ## ImageStyle @@ -1776,36 +2009,43 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [IS ### ImageStyle.autoColor `bool` + 是否自动颜色。 ### ImageStyle.color `Color` + 图标颜色。 ### ImageStyle.height -`float` `0` +`float` `default: 0` + 图标高。 ### ImageStyle.show -`bool` `true` +`bool` `default: true` + Whether the data icon is show. ### ImageStyle.sprite `Sprite` + The image of icon. ### ImageStyle.type `Image.Type` + How to display the image. ### ImageStyle.width -`float` `0` +`float` `default: 0` + 图标宽。 ## Indicator @@ -1817,121 +2057,145 @@ Indicator of radar chart, which is used to assign multiple variables(dimensions) ### Indicator.axisLine `AxisLine` + axis line. [AxisLine](#axisline) ### Indicator.axisName `AxisName` + Name options for radar indicators. [AxisName](#axisname) ### Indicator.ceilRate -`double` `0` +`double` `default: 0` + The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated. ### Indicator.center `float[]` + the center of radar chart. ### Indicator.connectCenter -`bool` `false` +`bool` `default: false` + Whether serie data connect to radar center with line. ### Indicator.gridIndex -`int` `-1` `v3.8.0` +`int` `default: -1` `v3.8.0` + Index of layout component that serie uses. Default is -1 means not use layout, otherwise use the first layout component. ### Indicator.indicator -`bool` `true` +`bool` `default: true` + Whether to show indicator. ### Indicator.indicatorGap -`float` `10` +`float` `default: 10` + The gap of indicator and radar. ### Indicator.indicatorList `List` + the indicator list. ### Indicator.isAxisTooltip `bool` + 是否Tooltip显示轴线上的所有数据。 ### Indicator.lineGradient -`bool` `true` +`bool` `default: true` + Whether need gradient for data line. ### Indicator.max `double` + The maximum value of indicator, with default value of 0, but we recommend to set it manually. ### Indicator.min `double` + The minimum value of indicator, with default value of 0. ### Indicator.name `string` + The name of indicator. ### Indicator.outRangeColor -`Color32` `Color.red` +`Color32` `default: Color.red` + The color displayed when data out of range. ### Indicator.positionType `PositionType` + The position type of indicator. ### Indicator.radius -`float` `100` +`float` `default: 100` + the radius of radar. ### Indicator.range `double[]` + Normal range. When the value is outside this range, the display color is automatically changed. ### Indicator.shape `Shape` + Radar render type, in which 'Polygon' and 'Circle' are supported. ### Indicator.show `bool` + [default:true] Set this to false to prevent the radar from showing. ### Indicator.splitArea `AxisSplitArea` + Split area of axis in grid area. [AxisSplitArea](#axissplitarea) ### Indicator.splitLine `AxisSplitLine` + split line. [AxisSplitLine](#axissplitline) ### Indicator.splitNumber -`int` `5` +`int` `default: 5` + Segments of indicator axis. ### Indicator.startAngle `float` `v3.4.0` + 起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。 ## INeedSerieContainer @@ -1973,101 +2237,121 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [IS ### ItemStyle.backgroundColor `Color32` + 数据项背景颜色。 ### ItemStyle.backgroundWidth `float` + 数据项背景宽度。 ### ItemStyle.borderColor `Color32` + 边框的颜色。 ### ItemStyle.borderColor0 `Color32` + 边框的颜色。 ### ItemStyle.borderGap -`float` `0` +`float` `default: 0` + 边框间隙。 ### ItemStyle.borderToColor `Color32` + 边框的渐变色。 ### ItemStyle.borderWidth -`float` `0` +`float` `default: 0` + 边框宽。 ### ItemStyle.centerColor `Color32` + 中心区域颜色。 ### ItemStyle.centerGap `float` + 中心区域间隙。 ### ItemStyle.color `Color32` + 数据项颜色。 ### ItemStyle.color0 `Color32` + 数据项颜色。 ### ItemStyle.cornerRadius `float[]` + The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)). ### ItemStyle.itemFormatter `string` + 提示框单项的字符串模版格式器。具体配置参考`Tooltip`的`formatter` ### ItemStyle.itemMarker `string` + 提示框单项的字符标志。用在Tooltip中。 ### ItemStyle.markColor `Color32` `v3.6.0` + Serie's mark color. It is only used to display Legend and Tooltip, and does not affect the drawing color. The default value is clear. ### ItemStyle.numericFormatter `string` + Standard number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
Date format: Starts with `date`, which is used to format DateTime. Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
Time format: Starts with `time`, which is used to format TimeSpan. Common time formats are: d day, HH hour, mm minute, ss second, fffffff fractional part. Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. For example: time:HH\:mm\:ss
number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
Note: The date and time formats are only supported by 'v3.12.0' or later.
### ItemStyle.opacity -`float` `1` +`float` `default: 1` + 透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 ### ItemStyle.show -`bool` `true` +`bool` `default: true` + 是否启用。 ### ItemStyle.toColor `Color32` + Gradient color1. ### ItemStyle.toColor2 `Color32` + Gradient color2.Only valid in line diagrams. ## IUpdateRuntimeData @@ -2083,41 +2367,49 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [IS ### LabelLine.endSymbol `SymbolStyle` + The symbol of the end point of labelline. [SymbolStyle](#symbolstyle) ### LabelLine.lineAngle -`float` `60` +`float` `default: 60` + the angle of visual guild line. Valid for broken line and curve line. Invalid in Pie. ### LabelLine.lineColor -`Color32` `Color32(0,0,0,0)` +`Color32` `default: Color32(0,0,0,0)` + the color of visual guild line. ### LabelLine.lineEndX -`float` `0f` `v3.8.0` +`float` `default: 0f` `v3.8.0` + The fixed x position of the end point of visual guide line. ### LabelLine.lineGap -`float` `1.0f` +`float` `default: 1.0f` + the gap of container and guild line. ### LabelLine.lineLength1 -`float` `25f` +`float` `default: 25f` + The length of the first segment of visual guide line. ### LabelLine.lineLength2 -`float` `15f` +`float` `default: 15f` + The length of the second segment of visual guide line. ### LabelLine.lineType `LabelLine.LineType` + the type of visual guide line. Options: @@ -2128,17 +2420,20 @@ Options: ### LabelLine.lineWidth -`float` `1.0f` +`float` `default: 1.0f` + the width of visual guild line. ### LabelLine.show -`bool` `true` +`bool` `default: true` + Whether the label line is showed. ### LabelLine.startSymbol `SymbolStyle` + The symbol of the start point of labelline. [SymbolStyle](#symbolstyle) ## LabelStyle @@ -2149,77 +2444,92 @@ Text label of chart, to explain some data information about graphic item like va ### LabelStyle.autoOffset -`bool` `false` +`bool` `default: false` + Whether to automatically offset. When turned on, the Y offset will automatically determine the opening of the curve to determine whether to offset up or down. ### LabelStyle.autoRotate -`bool` `false` `v3.6.0` +`bool` `default: false` `v3.6.0` + auto rotate of label. ### LabelStyle.background `ImageStyle` + the sytle of background. [ImageStyle](#imagestyle) ### LabelStyle.distance `float` + the distance of label to axis line. ### LabelStyle.formatter `string` + 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 of x axis 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.
`{y}` : category value of y axis.
`{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}
### LabelStyle.height -`float` `0` +`float` `default: 0` + the height of label. If set as default value 0, it means than the label height auto set as the text height. ### LabelStyle.icon `IconStyle` + the sytle of icon. [IconStyle](#iconstyle) ### LabelStyle.numericFormatter `string` + Standard number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
Date format: Starts with `date`, which is used to format DateTime. Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
Time format: Starts with `time`, which is used to format TimeSpan. Common time formats are: d day, HH hour, mm minute, ss second, fffffff fractional part. Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. For example: time:HH\:mm\:ss
number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
Note: The date and time formats are only supported by 'v3.12.0' or later.
### LabelStyle.offset `Vector3` + offset to the host graphic element. ### LabelStyle.Position `[SerializeField]` + The position of label. ### LabelStyle.rotate `float` + Rotation of label. ### LabelStyle.show -`bool` `true` +`bool` `default: true` + Whether the label is showed. ### LabelStyle.textPadding `TextPadding` + the text padding of label. [TextPadding](#textpadding) ### LabelStyle.textStyle `TextStyle` + the sytle of text. [TextStyle](#textstyle) ### LabelStyle.width -`float` `0` +`float` `default: 0` + the width of label. If set as default value 0, it means than the label width auto set as the text width. ## Lang @@ -2245,31 +2555,37 @@ Legend component.The legend component shows different sets of tags, colors, and ### Legend.background `ImageStyle` `v3.1.0` + the sytle of background. [ImageStyle](#imagestyle) ### Legend.colors `List` + the colors of legend item. ### Legend.data `List` + Data array of legend. An array item is usually a name representing string. (If it is a pie chart, it could also be the name of a single data in the pie chart) of a series. If data is not specified, it will be auto collected from series. ### Legend.formatter `string` + No longer used, the use of LabelStyle.formatter instead. ### Legend.icons `List` + 自定义的图例标记图形。 ### Legend.iconType `Legend.Type` + Type of legend. Options: @@ -2285,42 +2601,50 @@ Options: ### Legend.itemAutoColor -`bool` `true` +`bool` `default: true` + Whether the legend symbol matches the color automatically. ### Legend.itemGap -`float` `10f` +`float` `default: 10f` + The distance between each legend, horizontal distance in horizontal layout, and vertical distance in vertical layout. ### Legend.itemHeight -`float` `12.0f` +`float` `default: 12.0f` + Image height of legend symbol. ### Legend.itemOpacity -`float` `1` +`float` `default: 1` + the opacity of item color. ### Legend.itemWidth -`float` `25.0f` +`float` `default: 25.0f` + Image width of legend symbol. ### Legend.labelStyle `LabelStyle` + the style of text. [LabelStyle](#labelstyle) ### Legend.location `Location` + The location of legend. [Location](#location) ### Legend.orient `Orient` + Specify whether the layout of legend component is horizontal or vertical. Options: @@ -2331,16 +2655,19 @@ Options: ### Legend.padding `Padding` `v3.1.0` + the paddinng of item and background. [Padding](#padding) ### Legend.positions `List` `v3.6.0` + the custom positions of legend item. ### Legend.selectedMode `Legend.SelectedMode` + Selected mode of legend, which controls whether series can be toggled displaying by clicking legends. Options: @@ -2351,12 +2678,14 @@ Options: ### Legend.show -`bool` `true` +`bool` `default: true` + Whether to show legend component. ### Legend.textLimit `TextLimit` `v3.10.0` + the limit of text. [TextLimit](#textlimit) ## LegendTheme @@ -2366,6 +2695,7 @@ class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) ### LegendTheme.unableColor `Color` + the color of text. ## Level @@ -2374,27 +2704,32 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### Level.depth -`int` `0` `v3.10.0` +`int` `default: 0` `v3.10.0` + the depth of level. ### Level.itemStyle `ItemStyle` + the item style of level. [ItemStyle](#itemstyle) ### Level.label `LabelStyle` + the label style of level. [LabelStyle](#labelstyle) ### Level.lineStyle `LineStyle` `v3.10.0` + the line style of level. [LineStyle](#linestyle) ### Level.upperLabel `LabelStyle` + the upper label style of level. [LabelStyle](#labelstyle) ## LevelStyle @@ -2406,11 +2741,13 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### LevelStyle.levels `List` + 各层节点对应的配置。当enableLevels为true时生效,levels[0]对应的第一层的配置,levels[1]对应第二层,依次类推。当levels中没有对应层时用默认的设置。 ### LevelStyle.show -`bool` `false` +`bool` `default: false` + 是否启用LevelStyle ## Line @@ -2424,11 +2761,13 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [IS ### LineArrow.arrow `ArrowStyle` + the arrow of line. [ArrowStyle](#arrowstyle) ### LineArrow.position `LineArrow.Position` + The position of arrow. Options: @@ -2439,6 +2778,7 @@ Options: ### LineArrow.show `bool` + Whether to show the arrow. ## LineStyle @@ -2450,51 +2790,61 @@ The style of line. ### LineStyle.color `Color32` + the color of line, default use serie color. ### LineStyle.dashLength -`float` `4` `v3.8.1` +`float` `default: 4` `v3.8.1` + the length of dash line. default value is 0, which means the length of dash line is 12 times of line width. Represents a multiple of the number of segments in a line chart. ### LineStyle.dotLength -`float` `2` `v3.8.1` +`float` `default: 2` `v3.8.1` + the length of dot line. default value is 0, which means the length of dot line is 2 times of line width. Represents a multiple of the number of segments in a line chart. ### LineStyle.gapLength -`float` `2` `v3.8.1` +`float` `default: 2` `v3.8.1` + the length of gap line. default value is 0, which means the length of gap line is 3 times of line width. Represents a multiple of the number of segments in a line chart. ### LineStyle.length -`float` `0` +`float` `default: 0` + the length of line. ### LineStyle.opacity -`float` `1` +`float` `default: 1` + Opacity of the line. Supports value from 0 to 1, and the line will not be drawn when set to 0. ### LineStyle.show -`bool` `true` +`bool` `default: true` + Whether show line. ### LineStyle.toColor `Color32` + the middle color of line, default use serie color. ### LineStyle.toColor2 `Color32` + the end color of line, default use serie color. ### LineStyle.type `LineStyle.Type` + the type of line. Options: @@ -2508,7 +2858,8 @@ Options: ### LineStyle.width -`float` `0` +`float` `default: 0` + the width of line. ## Location @@ -2520,6 +2871,7 @@ Location type. Quick to set the general location. ### Location.align `Location.Align` + 对齐方式。 Options: @@ -2537,21 +2889,25 @@ Options: ### Location.bottom `float` + Distance between component and the left side of the container. ### Location.left `float` + Distance between component and the left side of the container. ### Location.right `float` + Distance between component and the left side of the container. ### Location.top `float` + Distance between component and the left side of the container. ## MainComponent @@ -2567,36 +2923,43 @@ Used to mark an area in chart. For example, mark a time interval. ### MarkArea.end `MarkAreaData` + 标域范围的结束数据。 [MarkAreaData](#markareadata) ### MarkArea.itemStyle `ItemStyle` + 标域样式。 [ItemStyle](#itemstyle) ### MarkArea.label `LabelStyle` + 标域文本样式。 [LabelStyle](#labelstyle) ### MarkArea.serieIndex -`int` `0` +`int` `default: 0` + Serie index of markArea. 标域影响的Serie索引。 ### MarkArea.show -`bool` `true` +`bool` `default: true` + 是否显示标域。 ### MarkArea.start `MarkAreaData` + 标域范围的起始数据。 [MarkAreaData](#markareadata) ### MarkArea.text `string` + The text of markArea. 标域显示的文本。 ## MarkAreaData @@ -2607,17 +2970,20 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### MarkAreaData.dimension -`int` `1` +`int` `default: 1` + From which dimension of data to calculate the maximum and minimum value and so on. ### MarkAreaData.name `string` + Name of the marker, which will display as a label. ### MarkAreaData.type `MarkAreaType` + Special markArea types, are used to label maximum value, minimum value and so on. Options: @@ -2631,21 +2997,25 @@ Options: ### MarkAreaData.xPosition `float` + The x coordinate relative to the origin, in pixels. ### MarkAreaData.xValue `double` + The value specified on the X-axis. A value specified when the X-axis is the category axis represents the index of the category axis data, otherwise a specific value. ### MarkAreaData.yPosition `float` + The y coordinate relative to the origin, in pixels. ### MarkAreaData.yValue `double` + That's the value on the Y-axis. The value specified when the Y axis is the category axis represents the index of the category axis data, otherwise the specific value. ## MarkLine @@ -2657,26 +3027,31 @@ Use a line in the chart to illustrate. ### MarkLine.animation `AnimationStyle` + The animation of markline. [AnimationStyle](#animationstyle) ### MarkLine.data `List` + A list of marked data. When the group of data item is 0, each data item represents a line; When the group is not 0, two data items of the same group represent the starting point and the ending point of the line respectively to form a line. In this case, the relevant style parameters of the line are the parameters of the starting point. ### MarkLine.onTop -`bool` `true` `v3.9.0` +`bool` `default: true` `v3.9.0` + whether the markline is on top. ### MarkLine.serieIndex -`int` `0` +`int` `default: 0` + The serie index of markLine. ### MarkLine.show -`bool` `true` +`bool` `default: true` + Whether to display the marking line. ## MarkLineData @@ -2689,42 +3064,50 @@ Data of marking line. ### MarkLineData.dimension -`int` `1` +`int` `default: 1` + From which dimension of data to calculate the maximum and minimum value and so on. ### MarkLineData.endSymbol `SymbolStyle` + The symbol of the end point of markline. [SymbolStyle](#symbolstyle) ### MarkLineData.group -`int` `0` +`int` `default: 0` + Grouping. When the group is not 0, it means that this data is the starting point or end point of the marking line. Data consistent with the group form a marking line. ### MarkLineData.label `LabelStyle` + Text styles of label. You can set position to Start, Middle, and End to display text in different locations. [LabelStyle](#labelstyle) ### MarkLineData.lineStyle `LineStyle` + The line style of markline. [LineStyle](#linestyle) ### MarkLineData.name `string` + Name of the marker, which will display as a label. ### MarkLineData.startSymbol `SymbolStyle` + The symbol of the start point of markline. [SymbolStyle](#symbolstyle) ### MarkLineData.type `MarkLineType` + Special label types, are used to label maximum value, minimum value and so on. Options: @@ -2738,26 +3121,31 @@ Options: ### MarkLineData.xPosition `float` + The x coordinate relative to the origin, in pixels. ### MarkLineData.xValue `double` + The value specified on the X-axis. A value specified when the X-axis is the category axis represents the index of the category axis data, otherwise a specific value. ### MarkLineData.yPosition `float` + The y coordinate relative to the origin, in pixels. ### MarkLineData.yValue `double` + That's the value on the Y-axis. The value specified when the Y axis is the category axis represents the index of the category axis data, otherwise the specific value. ### MarkLineData.zeroPosition -`bool` `false` +`bool` `default: false` + Is the origin of the coordinate system. ## MarqueeStyle @@ -2770,22 +3158,26 @@ Marquee style. It can be used for the DataZoom component. 选取框样式。可 ### MarqueeStyle.apply -`bool` `false` `v3.5.0` +`bool` `default: false` `v3.5.0` + Check whether the scope is applied to the DataZoom. If this parameter is set to true, the range after the selection is complete is the DataZoom selection range. ### MarqueeStyle.areaStyle `AreaStyle` `v3.5.0` + The area style of marquee. [AreaStyle](#areastyle) ### MarqueeStyle.lineStyle `LineStyle` `v3.5.0` + The line style of marquee border. [LineStyle](#linestyle) ### MarqueeStyle.realRect -`bool` `false` `v3.5.0` +`bool` `default: false` `v3.5.0` + Whether to select the actual box selection area. When true, the actual range between the mouse's actual point and the end point is used as the box selection area. ## MLValue @@ -2801,6 +3193,7 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) `MLValue.Type` + Options: - `Percent`: Percent value form. @@ -2811,6 +3204,7 @@ Options: `float` + ## Padding class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [TextPadding](#textpadding) @@ -2819,27 +3213,32 @@ padding setting of item or text. ### Padding.bottom -`float` `0` +`float` `default: 0` + padding of bottom. ### Padding.left -`float` `2f` +`float` `default: 2f` + padding of left. ### Padding.right -`float` `2f` +`float` `default: 2f` + padding of right. ### Padding.show -`bool` `true` +`bool` `default: true` + show padding. 是否显示。 ### Padding.top -`float` `0` +`float` `default: 0` + padding of top. ## Parallel @@ -2859,21 +3258,25 @@ Grid component. ### ParallelCoord.backgroundColor `Color` + Background color of grid, which is transparent by default. ### ParallelCoord.bottom -`float` `0.12f` +`float` `default: 0.12f` + Distance between grid component and the bottom side of the container. ### ParallelCoord.left -`float` `0.1f` +`float` `default: 0.1f` + Distance between grid component and the left side of the container. ### ParallelCoord.orient `Orient` + Orientation of the axis. By default, it's 'Vertical'. You can set it to be 'Horizonal' to make a vertical axis. Options: @@ -2883,17 +3286,20 @@ Options: ### ParallelCoord.right -`float` `0.08f` +`float` `default: 0.08f` + Distance between grid component and the right side of the container. ### ParallelCoord.show -`bool` `true` +`bool` `default: true` + Whether to show the grid in rectangular coordinate. ### ParallelCoord.top -`float` `0.22f` +`float` `default: 0.22f` + Distance between grid component and the top side of the container. ## Pie @@ -2902,7 +3308,8 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie) ### Pie.radiusGradient -`bool` `false` `v3.8.1` +`bool` `default: false` `v3.8.1` + Whether to use gradient color in pie chart. ## PolarAxisTheme @@ -2918,26 +3325,31 @@ Polar coordinate can be used in scatter and line chart. Every polar coordinate h ### PolarCoord.backgroundColor `Color` + Background color of polar, which is transparent by default. ### PolarCoord.center `float[]` + The center of ploar. The center[0] is the x-coordinate, and the center[1] is the y-coordinate. When value between 0 and 1 represents a percentage relative to the chart. ### PolarCoord.indicatorLabelOffset -`float` `30f` `v3.8.0` +`float` `default: 30f` `v3.8.0` + The offset of indicator label. ### PolarCoord.radius `float[]` + the radius of polar. ### PolarCoord.show -`bool` `true` +`bool` `default: true` + Whether to show the polor component. ## Radar @@ -2946,7 +3358,8 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer] ### Radar.smooth -`bool` `false` `v3.2.0` +`bool` `default: false` `v3.2.0` + Whether use smooth curve. ## RadarAxisTheme @@ -2975,7 +3388,8 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie) ### Ring.radiusGradient -`bool` `false` `v3.12.0` +`bool` `default: false` `v3.12.0` + Whether to use gradient color in pie chart. ## Scatter @@ -2999,6 +3413,7 @@ class in XCharts.Runtime / Inherits from: [BaseSerie](#baseserie), [IComparable] ### Serie.align `Align` + 组件水平方向对齐方式。 Options: @@ -3010,31 +3425,37 @@ Options: ### Serie.animation `AnimationStyle` + The start animation. [AnimationStyle](#animationstyle) ### Serie.avoidLabelOverlap -`bool` `false` +`bool` `default: false` + If the pie chart and labels are displayed externally, whether to enable the label overlap prevention policy is disabled by default. If labels are crowded and overlapped, the positions of labels are moved to prevent label overlap. ### Serie.barGap -`float` `0.1f` +`float` `default: 0.1f` + The gap between bars between different series, is a percent value like '0.3f' , which means 30% of the bar width, can be set as a fixed value. Set barGap as '-1' can overlap bars that belong to different series, which is useful when making a series of bar be background. In a single coodinate system, this attribute is shared by multiple 'bar' series. This attribute should be set on the last 'bar' series in the coodinate system, then it will be adopted by all 'bar' series in the coordinate system. ### Serie.barMaxWidth -`float` `0` `v3.5.0` +`float` `default: 0` `v3.5.0` + The max width of the bar. Adaptive when default 0. ### Serie.barPercentStack -`bool` `false` +`bool` `default: false` + 柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true,则就显示成百分比堆叠柱状图。 ### Serie.barType `BarType` + 柱形图类型。 Options: @@ -3045,47 +3466,56 @@ Options: ### Serie.barWidth -`float` `0` +`float` `default: 0` + The width of the bar. Adaptive when default 0. ### Serie.barZebraGap -`float` `2f` +`float` `default: 2f` + 斑马线的间距。 ### Serie.barZebraWidth -`float` `4f` +`float` `default: 4f` + 斑马线的粗细。 ### Serie.bottom `float` + Distance between component and the bottom side of the container. ### Serie.center `float[]` + the center of chart. ### Serie.clickOffset -`bool` `true` +`bool` `default: true` + Whether offset when mouse click pie chart item. ### Serie.clip -`bool` `false` +`bool` `default: false` + If clip the overflow on the coordinate system. ### Serie.clockwise -`bool` `true` +`bool` `default: true` + 是否顺时针。 ### Serie.colorBy `SerieColorBy` `v3.2.0` + The policy to take color from theme. Options: @@ -3097,16 +3527,19 @@ Options: ### Serie.coordSystem `string` + the chart coord system of serie. ### Serie.data `List` + 系列中的数据内容数组。SerieData可以设置1到n维数据。 ### Serie.dataSortType `SerieDataSortType` + 组件的数据排序。 Options: @@ -3118,71 +3551,85 @@ Options: ### Serie.endAngle `float` + 结束角度。和时钟一样,12点钟位置是0度,顺时针到360度。 ### Serie.gap `float` + gap of item. ### Serie.gridIndex -`int` `-1` `v3.8.0` +`int` `default: -1` `v3.8.0` + Index of layout component that serie uses. Default is -1 means not use layout, otherwise use the first layout component. ### Serie.ignore -`bool` `false` +`bool` `default: false` + 是否开启忽略数据。当为 true 时,数据值为 ignoreValue 时不进行绘制。 ### Serie.ignoreLineBreak -`bool` `false` +`bool` `default: false` + 忽略数据时折线是断开还是连接。默认false为连接。 ### Serie.ignoreValue -`double` `0` +`double` `default: 0` + 忽略数据的默认值。当ignore为true才有效。 ### Serie.index `int` + The index of serie. ### Serie.insertDataToHead `bool` + Whether to add new data at the head or at the end of the list. ### Serie.itemStyle `ItemStyle` + The style of data item. [ItemStyle](#itemstyle) ### Serie.large -`bool` `true` +`bool` `default: true` + 是否开启大数据量优化,在数据图形特别多而出现卡顿时候可以开启。 开启后配合 largeThreshold 在数据量大于指定阈值的时候对绘制进行优化。 缺点:优化后不能自定义设置单个数据项的样式,不能显示Label。 ### Serie.largeThreshold -`int` `200` +`int` `default: 200` + Turn on the threshold for mass optimization. Enter performance mode only when large is enabled and the amount of data is greater than the threshold. ### Serie.left `float` + Distance between component and the left side of the container. ### Serie.lineStyle `LineStyle` + The style of line. [LineStyle](#linestyle) ### Serie.lineType `LineType` + The type of line chart. Options: @@ -3196,66 +3643,79 @@ Options: ### Serie.links `List` + 数据节点的边。 ### Serie.max `float` + 最大值。 ### Serie.maxCache `int` + The max number of serie data cache. The first data will be remove when the size of serie data is larger then maxCache. ### Serie.maxShow `int` + The max number of data to show in chart. ### Serie.maxSize -`float` `1f` +`float` `default: 1f` + 数据最大值 max 映射的宽度。 ### Serie.min `float` + 最小值。 ### Serie.minAngle `float` + The minimum angle of sector(0-360). It prevents some sector from being too small when value is small. ### Serie.minRadius -`float` `0f` `v3.8.0` +`float` `default: 0f` `v3.8.0` + the min radius of chart. It can be used to limit the minimum radius of the rose chart. ### Serie.minShow `int` + The min number of data to show in chart. ### Serie.minShowLabel -`bool` `false` `v3.10.0` +`bool` `default: false` `v3.10.0` + Whether the label is not displayed when the enabled value is less than the specified value. ### Serie.minShowLabelValue -`double` `0` `v3.10.0` +`double` `default: 0` `v3.10.0` + When 'minShowLabel' is enabled, labels are not displayed if the value is less than this value. ### Serie.minSize -`float` `0f` +`float` `default: 0f` + 数据最小值 min 映射的宽度。 ### Serie.orient `Orient` + 组件的朝向。 Options: @@ -3265,27 +3725,32 @@ Options: ### Serie.parallelIndex -`int` `0` +`int` `default: 0` + Index of parallel coord component that serie uses. ### Serie.placeHolder -`bool` `false` +`bool` `default: false` + 占位模式。占位模式时,数据有效但不参与渲染和显示。 ### Serie.polarIndex -`int` `0` +`int` `default: 0` + Index of polar component that serie uses. ### Serie.radarIndex -`int` `0` +`int` `default: 0` + Index of radar component that radar chart uses. ### Serie.radarType `RadarType` + 雷达图类型。 Options: @@ -3296,16 +3761,19 @@ Options: ### Serie.radius `float[]` + the radius of chart. ### Serie.right `float` + Distance between component and the right side of the container. ### Serie.roseType `RoseType` + Whether to show as Nightingale chart. Options: @@ -3317,21 +3785,25 @@ Options: ### Serie.roundCap `bool` + 是否开启圆弧效果。 ### Serie.sampleAverage -`float` `0` +`float` `default: 0` + 设定的采样平均值。当sampleType 为 Peak 时,用于和过滤数据的平均值做对比是取最大值还是最小值。默认为0时会实时计算所有数据的平均值。 ### Serie.sampleDist -`float` `0` +`float` `default: 0` + the min pixel dist of sample. ### Serie.sampleType `SampleType` + the type of sample. Options: @@ -3345,61 +3817,73 @@ Options: ### Serie.serieName `string` + Series name used for displaying in tooltip and filtering with legend. ### Serie.serieType `string` + the type of serie. ### Serie.show -`bool` `true` +`bool` `default: true` + Whether to show serie in chart. ### Serie.showAsPositiveNumber -`bool` `false` +`bool` `default: false` + Show negative number as positive number. ### Serie.showDataDimension `int` + 数据项里的数据维数。 ### Serie.showDataName `bool` + 在Editor的inpsector上是否显示name参数 ### Serie.singleAxisIndex -`int` `0` +`int` `default: 0` + Index of single axis component that serie uses. ### Serie.smoothLimit -`bool` `false` `v3.4.0` +`bool` `default: false` `v3.4.0` + Whether to restrict the curve. When true, the curve between two continuous data of the same value is restricted to not exceed the data point, and is flat to the data point. ### Serie.splitNumber `int` + 刻度分割段数。最大可设置36。 ### Serie.stack `string` + If stack the value. On the same category axis, the series with the same stack name would be put on top of each other. ### Serie.startAngle `float` + 起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。 ### Serie.state `SerieState` `v3.2.0` + The default state of a serie. Options: @@ -3413,26 +3897,31 @@ Options: ### Serie.symbol `SerieSymbol` + the symbol of serie data item. [SerieSymbol](#seriesymbol) ### Serie.top `float` + Distance between component and the top side of the container. ### Serie.vesselIndex -`int` `0` +`int` `default: 0` + Index of vesel component that liquid chart uses. ### Serie.xAxisIndex -`int` `0` +`int` `default: 0` + the index of XAxis. ### Serie.yAxisIndex -`int` `0` +`int` `default: 0` + the index of YAxis. ## SerieData @@ -3444,46 +3933,55 @@ A data item of serie. ### SerieData.data `List` + An arbitrary dimension data list of data item. ### SerieData.id `string` + the id of data. ### SerieData.ignore `bool` + 是否忽略数据。当为 true 时,数据不进行绘制。 ### SerieData.index `int` + the index of SerieData. ### SerieData.name `string` + the name of data item. ### SerieData.parentId `string` + the id of parent SerieData. ### SerieData.radius `float` + 自定义半径。可用在饼图中自定义某个数据项的半径。 ### SerieData.selected `bool` + Whether the data item is selected. ### SerieData.state `SerieState` `v3.2.0` + the state of serie data. Options: @@ -3505,16 +4003,19 @@ the link of serie data. Used for sankey chart. Sankey chart only supports direct ### SerieDataLink.source `string` + the source node name. ### SerieDataLink.target `string` + the target node name. ### SerieDataLink.value `double` + the value of link. decide the width of link. ## SerieSymbol @@ -3525,47 +4026,56 @@ class in XCharts.Runtime / Inherits from: [SymbolStyle](#symbolstyle), [ISerieDa ### SerieSymbol.dataIndex -`int` `1` +`int` `default: 1` + whitch data index is when the sizeType assined as FromData. ### SerieSymbol.dataScale -`float` `1` +`float` `default: 1` + the scale of data when sizeType assined as FromData. ### SerieSymbol.forceShowLast -`bool` `false` +`bool` `default: false` + whether to show the last symbol. ### SerieSymbol.interval `int` + the interval of show symbol. ### SerieSymbol.maxSize -`float` `0f` `v3.3.0` +`float` `default: 0f` `v3.3.0` + Maximum symbol size. ### SerieSymbol.minSize -`float` `0f` `v3.3.0` +`float` `default: 0f` `v3.3.0` + Minimum symbol size. ### SerieSymbol.repeat -`bool` `false` +`bool` `default: false` + 图形是否重复。 ### SerieSymbol.sizeFunction `SymbolSizeFunction` + the function of size when sizeType assined as Function. ### SerieSymbol.sizeType `SymbolSizeType` + the type of symbol size. Options: @@ -3577,6 +4087,7 @@ Options: ### SerieSymbol.startIndex `int` + the index start to show symbol. ## SerieTheme @@ -3585,42 +4096,50 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### SerieTheme.candlestickBorderColor -`Color32` `Color32(235, 84, 84, 255)` +`Color32` `default: Color32(235, 84, 84, 255)` + K线图阳线(跌)边框色 ### SerieTheme.candlestickBorderColor0 -`Color32` `Color32(71, 178, 98, 255)` +`Color32` `default: Color32(71, 178, 98, 255)` + K线图阴线(跌)边框色 ### SerieTheme.candlestickBorderWidth -`float` `1` +`float` `default: 1` + K线图边框宽度 ### SerieTheme.candlestickColor -`Color32` `Color32(235, 84, 84, 255)` +`Color32` `default: Color32(235, 84, 84, 255)` + K线图阳线(涨)填充色 ### SerieTheme.candlestickColor0 -`Color32` `Color32(71, 178, 98, 255)` +`Color32` `default: Color32(71, 178, 98, 255)` + K线图阴线(跌)填充色 ### SerieTheme.lineSymbolSize `float` + the symbol size of line serie. ### SerieTheme.lineWidth `float` + the color of text. ### SerieTheme.scatterSymbolSize `float` + the symbol size of scatter serie. ## Settings @@ -3631,71 +4150,85 @@ Global parameter setting component. The default value can be used in general, an ### Settings.axisMaxSplitNumber -`float` `50` `v3.1.0` +`float` `default: 50` `v3.1.0` + the max splitnumber of axis. ### Settings.basePainterMaterial `Material` + Base Pointer 材质球,设置后会影响Axis等。 ### Settings.cicleSmoothness -`float` `2f` +`float` `default: 2f` + the smoothess of cricle. ### Settings.legendIconCornerRadius `float[]` + The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)). ### Settings.legendIconLineWidth -`float` `2` +`float` `default: 2` + the width of line serie legend. ### Settings.lineSegmentDistance -`float` `3f` +`float` `default: 3f` + The partition distance of a line segment. A line in a normal line chart is made up of many segments, the number of which is determined by the change in value. The smaller the number of segments, the higher the number of vertices. When the area with gradient is filled, the larger the value, the worse the transition effect. ### Settings.lineSmoothness -`float` `2f` +`float` `default: 2f` + Smoothness of curve. The smaller the value, the smoother the curve, but the number of vertices will increase. ### Settings.lineSmoothStyle -`float` `2.5f` +`float` `default: 2.5f` + Curve smoothing factor. By adjusting the smoothing coefficient, the curvature of the curve can be changed, and different curves with slightly different appearance can be obtained. ### Settings.maxPainter -`int` `10` +`int` `default: 10` + max painter. ### Settings.reversePainter -`bool` `false` +`bool` `default: false` + Painter是否逆序。逆序时index大的serie最先绘制。 ### Settings.seriePainterMaterial `Material` + Serie Pointer 材质球,设置后会影响所有Serie。 ### Settings.show -`bool` `true` +`bool` `default: true` + ### Settings.topPainterMaterial `Material` + Top Pointer 材质球。 ### Settings.upperPainterMaterial `Material` + Upper Pointer 材质球。 ## SimplifiedBar @@ -3718,22 +4251,26 @@ Single axis. ### SingleAxis.bottom -`float` `0.2f` +`float` `default: 0.2f` + Distance between component and the bottom side of the container. ### SingleAxis.height -`float` `50` +`float` `default: 50` + height of axis. ### SingleAxis.left -`float` `0.1f` +`float` `default: 0.1f` + Distance between component and the left side of the container. ### SingleAxis.orient `Orient` + Orientation of the axis. By default, it's 'Horizontal'. You can set it to be 'Vertical' to make a vertical axis. Options: @@ -3743,17 +4280,20 @@ Options: ### SingleAxis.right -`float` `0.1f` +`float` `default: 0.1f` + Distance between component and the right side of the container. ### SingleAxis.top -`float` `0f` +`float` `default: 0f` + Distance between component and the top side of the container. ### SingleAxis.width -`float` `0` +`float` `default: 0` + width of axis. ## SingleAxisCoord @@ -3767,11 +4307,13 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### StageColor.color `Color32` + 颜色。 ### StageColor.percent `float` + 结束位置百分比。 ## StateStyle @@ -3785,36 +4327,43 @@ the state style of serie. ### StateStyle.areaStyle `AreaStyle` + 区域样式。 [AreaStyle](#areastyle) ### StateStyle.itemStyle `ItemStyle` + 图形样式。 [ItemStyle](#itemstyle) ### StateStyle.label `LabelStyle` + 图形文本标签。 [LabelStyle](#labelstyle) ### StateStyle.labelLine `LabelLine` + 图形文本引导线样式。 [LabelLine](#labelline) ### StateStyle.lineStyle `LineStyle` + 折线样式。 [LineStyle](#linestyle) ### StateStyle.show -`bool` `true` +`bool` `default: true` + 是否启用高亮样式。 ### StateStyle.symbol `SerieSymbol` + 标记样式。 [SerieSymbol](#seriesymbol) ## SubTitleTheme @@ -3830,46 +4379,55 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Su ### SymbolStyle.color `Color32` + 图形的颜色。 ### SymbolStyle.gap -`float` `0` +`float` `default: 0` + the gap of symbol and line segment. ### SymbolStyle.height -`float` `0f` +`float` `default: 0f` + 图形的高。 ### SymbolStyle.image `Sprite` + 自定义的标记图形。 ### SymbolStyle.imageType `Image.Type` + the fill type of image. ### SymbolStyle.offset -`Vector2` `Vector2.zero` +`Vector2` `default: Vector2.zero` + 图形的偏移。 ### SymbolStyle.show -`bool` `true` +`bool` `default: true` + Whether the symbol is showed. ### SymbolStyle.size -`float` `0f` +`float` `default: 0f` + the size of symbol. ### SymbolStyle.type `SymbolType` + the type of symbol. Options: @@ -3891,7 +4449,8 @@ Options: ### SymbolStyle.width -`float` `0f` +`float` `default: 0f` + 图形的宽。 ## TextLimit @@ -3902,22 +4461,26 @@ Text character limitation and adaptation component. When the length of the text ### TextLimit.enable -`bool` `false` +`bool` `default: false` + Whether to enable text limit. ### TextLimit.gap -`float` `1` +`float` `default: 1` + White pixel distance at both ends. ### TextLimit.maxWidth -`float` `0` +`float` `default: 0` + Set the maximum width. A default of 0 indicates automatic fetch; otherwise, custom. ### TextLimit.suffix `string` + Suffixes when the length exceeds. ## TextPadding @@ -3935,75 +4498,90 @@ Settings related to text. ### TextStyle.alignment `TextAnchor` + 对齐方式。 ### TextStyle.autoAlign -`bool` `true` +`bool` `default: true` + 文本是否让系统自动选对齐方式。为false时才会用alignment。 ### TextStyle.autoColor -`bool` `false` +`bool` `default: false` + 是否开启自动颜色。当开启时,会自动设置颜色。 ### TextStyle.autoWrap -`bool` `false` +`bool` `default: false` + 是否自动换行。 ### TextStyle.color `Color` + the color of text. ### TextStyle.font `Font` + the font of text. When `null`, the theme's font is used by default. ### TextStyle.fontSize -`int` `0` +`int` `default: 0` + font size. ### TextStyle.fontStyle `FontStyle` + font style. ### TextStyle.lineSpacing -`float` `1f` +`float` `default: 1f` + text line spacing. ### TextStyle.rotate -`float` `0` +`float` `default: 0` + Rotation of text. ### TextStyle.show -`bool` `true` +`bool` `default: true` + Settings related to text. ### TextStyle.tMPAlignment `TextAlignmentOptions` + ### TextStyle.tMPFont `TMP_FontAsset` + the font of textmeshpro. ### TextStyle.tMPFontStyle `FontStyles` + ### TextStyle.tMPSpriteAsset `TMP_SpriteAsset` `v3.1.0` + ## Theme class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject) @@ -4013,61 +4591,73 @@ Theme. ### Theme.axis `AxisTheme` + [AxisTheme](#axistheme) ### Theme.backgroundColor `Color32` + the background color of chart. ### Theme.colorPalette `List` + The color list of palette. If no color is set in series, the colors would be adopted sequentially and circularly from this list as the colors of series. ### Theme.common `ComponentTheme` + [ComponentTheme](#componenttheme) ### Theme.contrastColor `Color32` + the contrast color of chart. ### Theme.dataZoom `DataZoomTheme` + [DataZoomTheme](#datazoomtheme) ### Theme.font `Font` + the font of chart text。 ### Theme.legend `LegendTheme` + [LegendTheme](#legendtheme) ### Theme.serie `SerieTheme` + [SerieTheme](#serietheme) ### Theme.subTitle `SubTitleTheme` + [SubTitleTheme](#subtitletheme) ### Theme.themeName `string` + the name of theme. ### Theme.themeType `ThemeType` + the theme of chart. Options: @@ -4080,21 +4670,25 @@ Options: ### Theme.title `TitleTheme` + [TitleTheme](#titletheme) ### Theme.tMPFont `TMP_FontAsset` + the font of chart text。 ### Theme.tooltip `TooltipTheme` + [TooltipTheme](#tooltiptheme) ### Theme.visualMap `VisualMapTheme` + [VisualMapTheme](#visualmaptheme) ## ThemeStyle @@ -4106,33 +4700,40 @@ Theme. ### ThemeStyle.customBackgroundColor `Color32` + the custom background color of chart. ### ThemeStyle.customColorPalette `List` + ### ThemeStyle.customFont `Font` + ### ThemeStyle.enableCustomTheme -`bool` `false` +`bool` `default: false` + Whether to customize theme colors. When set to true, you can use 'sync color to custom' to synchronize the theme color to the custom color. It can also be set manually. ### ThemeStyle.sharedTheme `Theme` + the asset of theme. [Theme](#theme) ### ThemeStyle.show -`bool` `true` +`bool` `default: true` + ### ThemeStyle.transparentBackground -`bool` `false` +`bool` `default: false` + Whether the background color is transparent. When true, the background color is not drawn. ## Title @@ -4143,37 +4744,44 @@ Title component, including main title and subtitle. ### Title.itemGap -`float` `0` +`float` `default: 0` + [default:8] The gap between the main title and subtitle. ### Title.labelStyle `LabelStyle` + The text style of main title. [LabelStyle](#labelstyle) ### Title.location `Location` + The location of title component. [Location](#location) ### Title.show -`bool` `true` +`bool` `default: true` + [default:true] Set this to false to prevent the title from showing. ### Title.subLabelStyle `LabelStyle` + The text style of sub title. [LabelStyle](#labelstyle) ### Title.subText `string` + Subtitle text, supporting for \n for newlines. ### Title.text `string` + The main title text, supporting \n for newlines. ## TitleStyle @@ -4194,122 +4802,146 @@ Tooltip component. ### Tooltip.alwayShowContent -`bool` `false` +`bool` `default: false` + Whether to trigger after always display. ### Tooltip.backgroundColor `Color` + The background color of tooltip. ### Tooltip.backgroundImage `Sprite` + The background image of tooltip. ### Tooltip.backgroundType `Image.Type` + The background type of tooltip. ### Tooltip.borderColor -`Color32` `Color32(230, 230, 230, 255)` +`Color32` `default: Color32(230, 230, 230, 255)` + the color of tooltip border. ### Tooltip.borderWidth -`float` `2f` +`float` `default: 2f` + the width of tooltip border. ### Tooltip.contentLabelStyles `List` + the textstyle list of content. ### Tooltip.fixedHeight -`float` `0` +`float` `default: 0` + Fixed height. Higher priority than minHeight. ### Tooltip.fixedWidth -`float` `0` +`float` `default: 0` + Fixed width. Higher priority than minWidth. ### Tooltip.fixedX -`float` `0f` +`float` `default: 0f` + the x positionn of fixedX. ### Tooltip.fixedY -`float` `0.7f` +`float` `default: 0.7f` + the y position of fixedY. ### Tooltip.ignoreDataDefaultContent `string` + The default display character information for ignored data. ### Tooltip.ignoreDataShow -`bool` `false` +`bool` `default: false` + Whether to show ignored data on tooltip. ### Tooltip.itemFormatter `string` + a string template formatter for a single Serie or data item content. Support for wrapping lines with \n. 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.
{e} is the name of the data item serieData that is currently indicated or whose index is 0.
{f} is sum of data.
{y} is category value of y axis.
{.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).
{d:0.##} indicates that a formatted string with a value specified separately is 0.## (used for percentage, reserved 2 valid digits while avoiding the situation similar to "100.00%" when using f2 ).
Example: "{a}, {c}", "{a1}, {c1: f1}", "{a1}, {c1:0: f1}", "{a1} : {c1:1-1: f1}"
### Tooltip.itemHeight -`float` `25f` +`float` `default: 25f` + height of content text. ### Tooltip.lineStyle `LineStyle` + the line style of indicator line. [LineStyle](#linestyle) ### Tooltip.marker `string` + the marker of serie. ### Tooltip.minHeight -`float` `0` +`float` `default: 0` + Minimum height. If fixedHeight has a value, take priority over fixedHeight. ### Tooltip.minWidth -`float` `0` +`float` `default: 0` + Minimum width. If fixedWidth has a value, get fixedWidth first. ### Tooltip.numericFormatter `string` + Standard number and date format string. Used to format a Double value or a DateTime date as a string. numericFormatter is used as an argument to either `Double.ToString ()` or `DateTime.ToString()`.
The number format uses 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 digit, P percentage, R round trip, and X hexadecimal. xx is precision specification, from 0-99. E.g. F1, E2
Date format: Starts with `date`, which is used to format DateTime. Common date formats are: yyyy year, MM month, dd day, HH hour, mm minute, ss second, fff millisecond. For example: date:yyyy-MM-dd HH:mm:ss
Time format: Starts with `time`, which is used to format TimeSpan. Common time formats are: d day, HH hour, mm minute, ss second, fffffff fractional part. Only the version of Unity2018 or later can support formatting, and the characters inside should be escaped. For example: time:HH\:mm\:ss
number format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
date format reference: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
Note: The date and time formats are only supported by 'v3.12.0' or later.
### Tooltip.offset -`Vector2` `Vector2(18f, -25f)` +`Vector2` `default: Vector2(18f, -25f)` + The position offset of tooltip relative to the mouse position. ### Tooltip.paddingLeftRight -`int` `10` +`int` `default: 10` + the text padding of left and right. defaut:5. ### Tooltip.paddingTopBottom -`int` `10` +`int` `default: 10` + the text padding of top and bottom. defaut:5. ### Tooltip.position `Tooltip.Position` `v3.3.0` + Type of position. Options: @@ -4321,32 +4953,38 @@ Options: ### Tooltip.show -`bool` `true` +`bool` `default: true` + Whether to show the tooltip component. ### Tooltip.showContent -`bool` `true` +`bool` `default: true` + Whether to show the tooltip floating layer, whose default value is true. It should be configurated to be false, if you only need tooltip to trigger the event or show the axisPointer without content. ### Tooltip.titleFormatter `string` + String template formatter for tooltip title content. \n line wrapping is supported. The placeholder {i} can be set separately to indicate that title is ignored and not displayed. Template variables are {.}, {a}, {b}, {c}, {d}, {e}, {f}, and {g}.
{.} is the dot of the corresponding color of serie currently indicated or index 0.
{a} is the series name name of serie currently indicated or index 0.
{b} is the name of the serie data item serieData currently indicated or index 0, or the category value (such as the X-axis of a line chart).
{c} is the value of the serie y-dimension (dimesion is 1) currently indicated or index is 0.
{d} is the serie y-dimensional (dimesion 1) percentage value of the currently indicated or index 0, note without the % sign.
{e} is the name of the serie data item serieData currently indicated or whose index is 0.
{h} is the hexadecimal color value of serieData for the serie data item currently indicated or index 0.
{f} is the sum of data.
{g} indicates the total number of data.
{y} is category value of y axis.
{.1} represents a dot of the corresponding color with serie specified as index 1.
The 1 in {a1}, {b1}, {c1} represents serie where index is specified as 1.
{c1:2} represents the third data of the current indicator data item in serie with index 1 (one data item has multiple data, index 2 represents the third data).
{c1:2-2} represents the third data of serie third data item with index 1 (that is, the number of data items must be specified when specifying the number of data items).
{d1:2:f2} indicates that a format string with a single value is f2 (numericFormatter is used if no value is specified).
{d:0.##} indicates that the format string with a value specified alone is 0.## # (for percentages, preserving a 2-digit significant number while avoiding the "100.00%" situation with f2).
example: "{a}, {c}", "{a1}, {c1: f1}", "{a1}, {c1:0: f1}", "{a1}, {c1:1-1: f1}" ### Tooltip.titleHeight -`float` `25f` +`float` `default: 25f` + height of title text. ### Tooltip.titleLabelStyle `LabelStyle` + the textstyle of title. [LabelStyle](#labelstyle) ### Tooltip.trigger `Tooltip.Trigger` + Type of triggering. Options: @@ -4359,6 +4997,7 @@ Options: ### Tooltip.triggerOn `Tooltip.TriggerOn` `v3.11.0` + Condition of trigger tooltip. Options: @@ -4369,6 +5008,7 @@ Options: ### Tooltip.type `Tooltip.Type` + Indicator type. Options: @@ -4386,26 +5026,31 @@ class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) ### TooltipTheme.areaColor `Color32` + the color of line. ### TooltipTheme.labelBackgroundColor `Color32` + the background color of tooltip cross indicator's axis label. ### TooltipTheme.labelTextColor `Color32` + the text color of tooltip cross indicator's axis label. ### TooltipTheme.lineColor `Color32` + the color of line. ### TooltipTheme.lineType `LineStyle.Type` + the type of line. Options: @@ -4419,7 +5064,8 @@ Options: ### TooltipTheme.lineWidth -`float` `1f` +`float` `default: 1f` + the width of line. ## UIComponentTheme @@ -4429,15 +5075,18 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### UIComponentTheme.sharedTheme `Theme` + the asset of theme. [Theme](#theme) ### UIComponentTheme.show -`bool` `true` +`bool` `default: true` + ### UIComponentTheme.transparentBackground -`bool` `false` +`bool` `default: false` + ## ViewControl @@ -4449,12 +5098,14 @@ View control component in 3D coordinate system. ### ViewControl.alpha -`float` `90f` +`float` `default: 90f` + The angle of the view in the x-z plane. ### ViewControl.beta -`float` `55f` +`float` `default: 55f` + The angle of the view in the y-z plane. ## VisualMap @@ -4465,67 +5116,80 @@ VisualMap component. Mapping data to visual elements such as colors. ### VisualMap.autoMinMax -`bool` `true` +`bool` `default: true` + Automatically set min, Max value 自动设置min,max的值 ### VisualMap.borderWidth -`float` `0` +`float` `default: 0` + Border line width. ### VisualMap.calculable -`bool` `false` +`bool` `default: false` + Whether the handle used for dragging is displayed (the handle can be dragged to adjust the selected range). ### VisualMap.dimension -`int` `-1` +`int` `default: -1` + Specifies "which dimension" of the data to map to the visual element. "Data" is series.data. ### VisualMap.hoverLink -`bool` `true` +`bool` `default: true` + When the hoverLink function is turned on, when the mouse hovers over the visualMap component, the corresponding value of the mouse position is highlighted in the corresponding graphic element in the diagram. ### VisualMap.inRange `List` + 分段式每一段的相关配置。 ### VisualMap.itemGap -`float` `10f` +`float` `default: 10f` + 每个图元之间的间隔距离。 ### VisualMap.itemHeight -`float` `140f` +`float` `default: 140f` + The height of the figure, that is, the height of the color bar. ### VisualMap.itemWidth -`float` `20f` +`float` `default: 20f` + The width of the figure, that is, the width of the color bar. ### VisualMap.location `Location` + The location of component. [Location](#location) ### VisualMap.max -`double` `0` +`double` `default: 0` + 范围最大值 ### VisualMap.min -`double` `0` +`double` `default: 0` + 范围最小值 ### VisualMap.orient `Orient` + Specify whether the layout of component is horizontal or vertical. Options: @@ -4536,21 +5200,25 @@ Options: ### VisualMap.outOfRange `List` + Defines a visual color outside of the selected range. ### VisualMap.range `double[]` + Specifies the position of the numeric value corresponding to the handle. Range should be within the range of [min,max]. ### VisualMap.realtime -`bool` `true` +`bool` `default: true` + Whether to update in real time while dragging. ### VisualMap.selectedMode `VisualMap.SelectedMode` + the selected mode for Piecewise visualMap. Options: @@ -4560,37 +5228,44 @@ Options: ### VisualMap.serieIndex -`int` `0` +`int` `default: 0` + the serie index of visualMap. ### VisualMap.show -`bool` `true` +`bool` `default: true` + Whether to enable components. ### VisualMap.showUI -`bool` `false` +`bool` `default: false` + Whether to display components. If set to false, it will not show up, but the data mapping function still exists. ### VisualMap.splitNumber -`int` `5` +`int` `default: 5` + For continuous data, it is automatically evenly divided into several segments and automatically matches the size of inRange color list when the default is 0. ### VisualMap.text `string[]` + Text on both ends. ### VisualMap.textGap `float[]` + The distance between the two text bodies. ### VisualMap.type `VisualMap.Type` + the type of visualmap component. Options: @@ -4600,12 +5275,14 @@ Options: ### VisualMap.workOnArea -`bool` `false` +`bool` `default: false` + Whether the visualmap is work on areaStyle of linechart. ### VisualMap.workOnLine -`bool` `true` +`bool` `default: true` + Whether the visualmap is work on linestyle of linechart. ## VisualMapRange @@ -4615,21 +5292,25 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### VisualMapRange.color `Color32` + 颜色 ### VisualMapRange.label `string` + 文字描述 ### VisualMapRange.max `double` + 范围最大值 ### VisualMapRange.min `double` + 范围最小值 ## VisualMapTheme @@ -4639,21 +5320,25 @@ class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme) ### VisualMapTheme.backgroundColor `Color32` + the background color of visualmap. ### VisualMapTheme.borderColor `Color32` + the color of dataZoom border. ### VisualMapTheme.borderWidth `float` + the width of border. ### VisualMapTheme.triangeLen -`float` `20f` +`float` `default: 20f` + 可视化组件的调节三角形边长。 ## Wrapper<T> @@ -4687,6 +5372,7 @@ class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3 `LineStyle.Type` + Options: - `Solid`: 实线 @@ -4698,13 +5384,15 @@ Options: ### XCSettings.axisLineWidth -`float` `0.8f` +`float` `default: 0.8f` + ### XCSettings.axisSplitLineType `LineStyle.Type` + Options: - `Solid`: 实线 @@ -4716,133 +5404,165 @@ Options: ### XCSettings.axisSplitLineWidth -`float` `0.8f` +`float` `default: 0.8f` + ### XCSettings.axisTickLength -`float` `5f` +`float` `default: 5f` + ### XCSettings.axisTickWidth -`float` `0.8f` +`float` `default: 0.8f` + ### XCSettings.cicleSmoothness -`float` `2f` +`float` `default: 2f` + ### XCSettings.customThemes `List` + ### XCSettings.dataZoomBorderWidth -`float` `0.5f` +`float` `default: 0.5f` + ### XCSettings.dataZoomDataLineWidth -`float` `0.5f` +`float` `default: 0.5f` + ### XCSettings.editorShowAllListData -`bool` `false` +`bool` `default: false` + ### XCSettings.font `Font` + ### XCSettings.fontSizeLv1 -`int` `28` +`int` `default: 28` + 一级字体大小。 ### XCSettings.fontSizeLv2 -`int` `24` +`int` `default: 24` + ### XCSettings.fontSizeLv3 -`int` `20` +`int` `default: 20` + ### XCSettings.fontSizeLv4 -`int` `18` +`int` `default: 18` + ### XCSettings.gaugeAxisLineWidth -`float` `15f` +`float` `default: 15f` + ### XCSettings.gaugeAxisSplitLineLength -`float` `15f` +`float` `default: 15f` + ### XCSettings.gaugeAxisSplitLineWidth -`float` `0.8f` +`float` `default: 0.8f` + ### XCSettings.gaugeAxisTickLength -`float` `5f` +`float` `default: 5f` + ### XCSettings.gaugeAxisTickWidth -`float` `0.8f` +`float` `default: 0.8f` + ### XCSettings.lang `Lang` + [Lang](#lang) ### XCSettings.lineSegmentDistance -`float` `3f` +`float` `default: 3f` + ### XCSettings.lineSmoothness -`float` `2f` +`float` `default: 2f` + ### XCSettings.lineSmoothStyle -`float` `3f` +`float` `default: 3f` + ### XCSettings.maxPainter -`int` `10` +`int` `default: 10` + ### XCSettings.serieCandlestickBorderWidth -`float` `1f` +`float` `default: 1f` + ### XCSettings.serieLineSymbolSize -`float` `5f` +`float` `default: 5f` + ### XCSettings.serieLineWidth -`float` `1.8f` +`float` `default: 1.8f` + ### XCSettings.serieScatterSymbolSize -`float` `20f` +`float` `default: 20f` + ### XCSettings.serieSelectedRate -`float` `1.3f` +`float` `default: 1.3f` + ### XCSettings.tMPFont `TMP_FontAsset` + ### XCSettings.tootipLineWidth -`float` `0.8f` +`float` `default: 0.8f` + ### XCSettings.visualMapBorderWidth -`float` `0f` +`float` `default: 0f` + ### XCSettings.visualMapTriangeLen -`float` `20f` +`float` `default: 20f` + ## YAxis diff --git a/Documentation~/zh/api.md b/Documentation~/zh/api.md index d3cddd5e..12876bd3 100644 --- a/Documentation~/zh/api.md +++ b/Documentation~/zh/api.md @@ -317,12 +317,12 @@ class in XCharts.Runtime / 继承自: [Axis](#axis) ### AngleAxis.GetValueAngle -public float GetValueAngle(double value) +public float GetValueAngle(double value) ### AngleAxis.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() ## AngleAxisTheme @@ -330,11 +330,11 @@ class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) ### AngleAxisTheme.base(theme) -public AngleAxisTheme(ThemeType theme) : base(theme) +public AngleAxisTheme(ThemeType theme) : base(theme) ### AngleAxisTheme.AngleAxisTheme -public AngleAxisTheme(ThemeType theme) : base(theme) { } +public AngleAxisTheme(ThemeType theme) : base(theme) { } ## AnimationAddition @@ -394,92 +394,92 @@ class in XCharts.Runtime / 子类: [AnimationFadeIn](#animationfadein),[Animatio ### AnimationInfo.delay -public float delay +public float delay 动画开始前的延迟时间。 ### AnimationInfo.delayFunction -public AnimationDelayFunction delayFunction +public AnimationDelayFunction delayFunction 动画延迟的委托函数。 ### AnimationInfo.duration -public float duration +public float duration 动画的时长。 ### AnimationInfo.durationFunction -public AnimationDurationFunction durationFunction +public AnimationDurationFunction durationFunction 动画时长的委托函数。 ### AnimationInfo.enable -public bool enable +public bool enable 是否开启动画效果。 ### AnimationInfo.OnAnimationEnd -public Action OnAnimationEnd +public Action OnAnimationEnd 动画结束的回调。 ### AnimationInfo.OnAnimationStart -public Action OnAnimationStart +public Action OnAnimationStart 动画开始的回调。 ### AnimationInfo.reverse -public bool reverse +public bool reverse 是否开启反向动画效果。 ### AnimationInfo.End -public void End() +public void End() 结束动画。 ### AnimationInfo.GetIndexDelay -public float GetIndexDelay(int dataIndex) +public float GetIndexDelay(int dataIndex) 获取动画延迟。 ### AnimationInfo.Init -public bool Init(float curr, float dest, int totalPointIndex) +public bool Init(float curr, float dest, int totalPointIndex) 初始化动画。 ### AnimationInfo.IsFinish -public bool IsFinish() +public bool IsFinish() 动画是否结束。 ### AnimationInfo.IsInDelay -public bool IsInDelay() +public bool IsInDelay() 动画是否在延迟中。 ### AnimationInfo.IsInIndexDelay -public bool IsInIndexDelay(int dataIndex) +public bool IsInIndexDelay(int dataIndex) 动画是否在索引延迟中。 ### AnimationInfo.Pause -public void Pause() +public void Pause() 暂停动画。 ### AnimationInfo.Reset -public void Reset() +public void Reset() 重置动画。 ### AnimationInfo.Resume -public void Resume() +public void Resume() 恢复动画。 ### AnimationInfo.Start -public void Start(bool reset = true) +public void Start(bool reset = true) 开始动画。 ## AnimationInfoContext @@ -496,31 +496,31 @@ class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) ### AnimationInteraction.offset -public MLValue offset +public MLValue offset 交互的多样式数值。如饼图的扇形选中时的偏移。 ### AnimationInteraction.radius -public MLValue radius +public MLValue radius 半径的多样式数值。 ### AnimationInteraction.width -public MLValue width +public MLValue width 宽度的多样式数值。 ### AnimationInteraction.GetOffset -public float GetOffset() +public float GetOffset() ### AnimationInteraction.GetRadius -public float GetRadius(float radius) +public float GetRadius(float radius) ### AnimationInteraction.GetWidth -public float GetWidth(float width) +public float GetWidth(float width) ## AnimationStyle @@ -530,180 +530,180 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### AnimationStyle.addition -public AnimationAddition addition +public AnimationAddition addition 数据新增动画配置。 ### AnimationStyle.change -public AnimationChange change +public AnimationChange change 数据变更动画配置。 ### AnimationStyle.enable -public bool enable +public bool enable 是否开启动画效果。 ### AnimationStyle.fadeIn -public AnimationFadeIn fadeIn +public AnimationFadeIn fadeIn 渐入动画配置。 ### AnimationStyle.fadeInFinishCallback -public Action fadeInFinishCallback +public Action fadeInFinishCallback ### AnimationStyle.fadeOut -public AnimationFadeOut fadeOut +public AnimationFadeOut fadeOut 渐出动画配置。 ### AnimationStyle.fadeOutFinishCallback -public Action fadeOutFinishCallback +public Action fadeOutFinishCallback ### AnimationStyle.hiding -public AnimationHiding hiding +public AnimationHiding hiding 数据隐藏动画配置。 ### AnimationStyle.interaction -public AnimationInteraction interaction +public AnimationInteraction interaction 交互动画配置。 ### AnimationStyle.threshold -public int threshold +public int threshold 是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。 ### AnimationStyle.unscaledTime -public bool unscaledTime +public bool unscaledTime 动画是否受TimeScaled的影响。默认为 false 受TimeScaled的影响。 ### AnimationStyle.Addition -public void Addition() +public void Addition() 开始数据新增动画。 ### AnimationStyle.CanCheckInteract -public bool CanCheckInteract() +public bool CanCheckInteract() ### AnimationStyle.CheckDetailBreak -public bool CheckDetailBreak(Vector3 pos, bool isYAxis) +public bool CheckDetailBreak(Vector3 pos, bool isYAxis) ### AnimationStyle.CheckProgress -public void CheckProgress(double total) +public void CheckProgress(double total) ### AnimationStyle.CheckSymbol -public void CheckSymbol(float dest) +public void CheckSymbol(float dest) ### AnimationStyle.FadeIn -public void FadeIn() +public void FadeIn() 开始渐入动画。 ### AnimationStyle.FadeOut -public void FadeOut() +public void FadeOut() 开始渐出动画。 ### AnimationStyle.GetAdditionDuration -public float GetAdditionDuration() +public float GetAdditionDuration() ### AnimationStyle.GetChangeDuration -public float GetChangeDuration() +public float GetChangeDuration() ### AnimationStyle.GetCurrDetail -public float GetCurrDetail() +public float GetCurrDetail() ### AnimationStyle.GetCurrIndex -public int GetCurrIndex() +public int GetCurrIndex() ### AnimationStyle.GetCurrRate -public float GetCurrRate() +public float GetCurrRate() ### AnimationStyle.GetInteractionDuration -public float GetInteractionDuration() +public float GetInteractionDuration() ### AnimationStyle.GetInteractionRadius -public float GetInteractionRadius(float radius) +public float GetInteractionRadius(float radius) ### AnimationStyle.GetSysmbolSize -public float GetSysmbolSize(float dest) +public float GetSysmbolSize(float dest) ### AnimationStyle.HasFadeOut -public bool HasFadeOut() +public bool HasFadeOut() ### AnimationStyle.InitProgress -public void InitProgress(List<Vector3> paths, bool isY) +public void InitProgress(List<Vector3> paths, bool isY) 初始化动画配置。 ### AnimationStyle.IsDataAnimation -public bool IsDataAnimation() +public bool IsDataAnimation() 是否为数据动画。BottomToTop和InsideOut类型的为数据动画。 ### AnimationStyle.IsEnd -public bool IsEnd() +public bool IsEnd() ### AnimationStyle.IsFadeIn -public bool IsFadeIn() +public bool IsFadeIn() ### AnimationStyle.IsFadeOut -public bool IsFadeOut() +public bool IsFadeOut() ### AnimationStyle.IsFinish -public bool IsFinish() +public bool IsFinish() ### AnimationStyle.IsInDelay -public bool IsInDelay() +public bool IsInDelay() ### AnimationStyle.IsSerieAnimation -public bool IsSerieAnimation() +public bool IsSerieAnimation() 是否为系列动画。LeftToRight、AlongPath和Clockwise类型的为系列动画。 ### AnimationStyle.Pause -public void Pause() +public void Pause() 暂停所有动画。 ### AnimationStyle.Reset -public void Reset() +public void Reset() Reset all animations. ### AnimationStyle.Restart -public void Restart() +public void Restart() 重启当前激活的动画。 ### AnimationStyle.Resume -public void Resume() +public void Resume() 恢复所有动画。 ## AnimationStyleHelper @@ -712,19 +712,19 @@ class in XCharts.Runtime ### AnimationStyleHelper.CheckDataAnimation -public static float CheckDataAnimation(BaseChart chart, Serie serie, int dataIndex, float destProgress, float startPorgress = 0) +public static float CheckDataAnimation(BaseChart chart, Serie serie, int dataIndex, float destProgress, float startPorgress = 0) ### AnimationStyleHelper.GetAnimationPosition -public static bool GetAnimationPosition(AnimationStyle animation, bool isY, Vector3 lp, Vector3 cp, float progress, ref Vector3 ip, ref float rate) +public static bool GetAnimationPosition(AnimationStyle animation, bool isY, Vector3 lp, Vector3 cp, float progress, ref Vector3 ip, ref float rate) ### AnimationStyleHelper.UpdateAnimationType -public static void UpdateAnimationType(AnimationStyle animation, AnimationType defaultType, bool enableSerieDataAnimation) +public static void UpdateAnimationType(AnimationStyle animation, AnimationType defaultType, bool enableSerieDataAnimation) ### AnimationStyleHelper.UpdateSerieAnimation -public static void UpdateSerieAnimation(Serie serie) +public static void UpdateSerieAnimation(Serie serie) ## AnimationType @@ -747,7 +747,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieC ### AreaStyle.GetColor -public Color32 GetColor(Color32 themeColor) +public Color32 GetColor(Color32 themeColor) ## AreaStyle.AreaOrigin @@ -768,15 +768,15 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### ArrowStyle.Clone -public ArrowStyle Clone() +public ArrowStyle Clone() ### ArrowStyle.Copy -public void Copy(ArrowStyle arrow) +public void Copy(ArrowStyle arrow) ### ArrowStyle.GetColor -public Color32 GetColor(Color32 defaultColor) +public Color32 GetColor(Color32 defaultColor) ## Axis @@ -786,153 +786,153 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) / 子类: ### Axis.AddData -public void AddData(string category) +public void AddData(string category) 添加一个类目到类目数据列表 ### Axis.AddIcon -public void AddIcon(Sprite icon) +public void AddIcon(Sprite icon) 添加图标 ### Axis.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### Axis.ClearData -public override void ClearData() +public override void ClearData() 清空类目数据 ### Axis.ClearVerticesDirty -public override void ClearVerticesDirty() +public override void ClearVerticesDirty() ### Axis.Clone -public Axis Clone() +public Axis Clone() ### Axis.Copy -public void Copy(Axis axis) +public void Copy(Axis axis) ### Axis.GetAddedDataCount -public int GetAddedDataCount() +public int GetAddedDataCount() 获得添加过的历史数据总数 ### Axis.GetCategoryPosition -public Vector3 GetCategoryPosition(int categoryIndex, int dataCount = 0) +public Vector3 GetCategoryPosition(int categoryIndex, int dataCount = 0) ### Axis.GetData -public string GetData(int index, DataZoom dataZoom) +public string GetData(int index, DataZoom dataZoom) 获得在dataZoom范围内指定索引的类目数据 ### Axis.GetDistance -public float GetDistance(double value, float axisLength = 0) +public float GetDistance(double value, float axisLength = 0) 获得值在坐标轴上的距离 ### Axis.GetIcon -public Sprite GetIcon(int index) +public Sprite GetIcon(int index) ### Axis.GetLabelValue -public double GetLabelValue(int index) +public double GetLabelValue(int index) ### Axis.GetLastLabelValue -public double GetLastLabelValue() +public double GetLastLabelValue() ### Axis.GetLogMaxIndex -public double GetLogMaxIndex() +public double GetLogMaxIndex() ### Axis.GetLogMinIndex -public double GetLogMinIndex() +public double GetLogMinIndex() ### Axis.GetLogValue -public float GetLogValue(double value) +public float GetLogValue(double value) ### Axis.GetValueLength -public float GetValueLength(double value, float axisLength) +public float GetValueLength(double value, float axisLength) ### Axis.IsBottom -public bool IsBottom() +public bool IsBottom() ### Axis.IsCategory -public bool IsCategory() +public bool IsCategory() 是否为类目轴。 ### Axis.IsLeft -public bool IsLeft() +public bool IsLeft() ### Axis.IsLog -public bool IsLog() +public bool IsLog() 是否为对数轴。 ### Axis.IsNeedShowLabel -public bool IsNeedShowLabel(int index, int total = 0) +public bool IsNeedShowLabel(int index, int total = 0) ### Axis.IsRight -public bool IsRight() +public bool IsRight() ### Axis.IsTime -public bool IsTime() +public bool IsTime() 是否为时间轴。 ### Axis.IsTop -public bool IsTop() +public bool IsTop() ### Axis.IsValue -public bool IsValue() +public bool IsValue() 是否为数值轴。 ### Axis.RemoveData -public void RemoveData(int dataIndex) +public void RemoveData(int dataIndex) ### Axis.ResetStatus -public override void ResetStatus() +public override void ResetStatus() 重置状态。 ### Axis.SetComponentDirty -public override void SetComponentDirty() +public override void SetComponentDirty() ### Axis.SetNeedUpdateFilterData -public void SetNeedUpdateFilterData() +public void SetNeedUpdateFilterData() ### Axis.UpdateData -public void UpdateData(int index, string category) +public void UpdateData(int index, string category) 更新类目数据 ### Axis.UpdateIcon -public void UpdateIcon(int index, Sprite icon) +public void UpdateIcon(int index, Sprite icon) 更新图标 ### Axis.UpdateZeroOffset -public void UpdateZeroOffset(float axisLength) +public void UpdateZeroOffset(float axisLength) ## Axis.AxisMinMaxType @@ -980,12 +980,12 @@ class in XCharts.Runtime ### Axis3DHelper.Get3DGridPosition -public static Vector3 Get3DGridPosition(GridCoord3D grid, XAxis3D xAxis, YAxis3D yAxis, double xValue, double yValue) +public static Vector3 Get3DGridPosition(GridCoord3D grid, XAxis3D xAxis, YAxis3D yAxis, double xValue, double yValue) ### Axis3DHelper.GetLabelPosition -public static Vector3 GetLabelPosition(int i, Axis axis, Axis relativedAxis, AxisTheme theme, float scaleWid) +public static Vector3 GetLabelPosition(int i, Axis axis, Axis relativedAxis, AxisTheme theme, float scaleWid) ## AxisAnimation @@ -997,11 +997,11 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### AxisAnimation.Clone -public AxisAnimation Clone() +public AxisAnimation Clone() ### AxisAnimation.Copy -public void Copy(AxisAnimation animation) +public void Copy(AxisAnimation animation) ## AxisContext @@ -1009,37 +1009,37 @@ class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentconte ### AxisContext.destMaxValue -public double destMaxValue +public double destMaxValue ### AxisContext.destMinValue -public double destMinValue +public double destMinValue ### AxisContext.labelObjectList -public List<ChartLabel> labelObjectList +public List<ChartLabel> labelObjectList ### AxisContext.labelValueList -public List<double> labelValueList +public List<double> labelValueList ### AxisContext.lastMaxValue -public double lastMaxValue +public double lastMaxValue 当前最大值。 ### AxisContext.lastMinValue -public double lastMinValue +public double lastMinValue 当前最小值。 ### AxisContext.needAnimation -public bool needAnimation +public bool needAnimation ### AxisContext.runtimeData -public List<string> runtimeData +public List<string> runtimeData 数值轴时每个tick的数值。 ## AxisHandler<T> @@ -1048,7 +1048,7 @@ class in XCharts / 继承自: [MainComponentHandler](#maincomponenthandler) ### AxisHandler<T>.component -public T component +public T component ## AxisHelper @@ -1056,95 +1056,95 @@ class in XCharts.Runtime ### AxisHelper.AdjustCircleLabelPos -public static void AdjustCircleLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset) +public static void AdjustCircleLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset) ### AxisHelper.AdjustMinMaxValue -public static void AdjustMinMaxValue(Axis axis, ref double minValue, ref double maxValue, bool needFormat, double ceilRate = 0) +public static void AdjustMinMaxValue(Axis axis, ref double minValue, ref double maxValue, bool needFormat, double ceilRate = 0) 调整最大最小值 ### AxisHelper.AdjustRadiusAxisLabelPos -public static void AdjustRadiusAxisLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset) +public static void AdjustRadiusAxisLabelPos(ChartLabel txt, Vector3 pos, Vector3 cenPos, float txtHig, Vector3 offset) ### AxisHelper.GetAxisLineArrowOffset -public static float GetAxisLineArrowOffset(Axis axis) +public static float GetAxisLineArrowOffset(Axis axis) 包含箭头偏移的轴线长度 ### AxisHelper.GetAxisPosition -public static float GetAxisPosition(GridCoord grid, Axis axis, double value, int dataCount = 0, DataZoom dataZoom = null) +public static float GetAxisPosition(GridCoord grid, Axis axis, double value, int dataCount = 0, DataZoom dataZoom = null) ### AxisHelper.GetAxisPositionValue -public static double GetAxisPositionValue(float xy, float axisLength, double axisRange, float axisStart, float axisOffset) +public static double GetAxisPositionValue(float xy, float axisLength, double axisRange, float axisStart, float axisOffset) ### AxisHelper.GetAxisValueDistance -public static float GetAxisValueDistance(GridCoord grid, Axis axis, float scaleWidth, double value) +public static float GetAxisValueDistance(GridCoord grid, Axis axis, float scaleWidth, double value) 获得数值value在坐标轴上相对起点的距离 ### AxisHelper.GetAxisValueLength -public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value) +public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value) 获得数值value在坐标轴上对应的长度 ### AxisHelper.GetAxisValuePosition -public static float GetAxisValuePosition(GridCoord grid, Axis axis, float scaleWidth, double value) +public static float GetAxisValuePosition(GridCoord grid, Axis axis, float scaleWidth, double value) 获得数值value在坐标轴上的坐标位置 ### AxisHelper.GetAxisValueSplitIndex -public static int GetAxisValueSplitIndex(Axis axis, double value, bool checkMaxCache, int totalSplitNumber = -1) +public static int GetAxisValueSplitIndex(Axis axis, double value, bool checkMaxCache, int totalSplitNumber = -1) 获得数值value在坐标轴上对应的split索引 ### AxisHelper.GetAxisXOrY -public static float GetAxisXOrY(GridCoord grid, Axis axis, Axis relativedAxis) +public static float GetAxisXOrY(GridCoord grid, Axis axis, Axis relativedAxis) ### AxisHelper.GetDataWidth -public static float GetDataWidth(Axis axis, float coordinateWidth, int dataCount, DataZoom dataZoom) +public static float GetDataWidth(Axis axis, float coordinateWidth, int dataCount, DataZoom dataZoom) 获得一个类目数据在坐标系中代表的宽度 ### AxisHelper.GetEachWidth -public static float GetEachWidth(Axis axis, float coordinateWidth, DataZoom dataZoom = null) +public static float GetEachWidth(Axis axis, float coordinateWidth, DataZoom dataZoom = null) ### AxisHelper.GetScaleNumber -public static int GetScaleNumber(Axis axis, float coordinateWidth, DataZoom dataZoom = null) +public static int GetScaleNumber(Axis axis, float coordinateWidth, DataZoom dataZoom = null) 获得分割线条数 ### AxisHelper.GetScaleWidth -public static float GetScaleWidth(Axis axis, float coordinateWidth, int index, DataZoom dataZoom = null) +public static float GetScaleWidth(Axis axis, float coordinateWidth, int index, DataZoom dataZoom = null) 获得分割段宽度 ### AxisHelper.GetSplitNumber -public static int GetSplitNumber(Axis axis, float coordinateWid, DataZoom dataZoom) +public static int GetSplitNumber(Axis axis, float coordinateWid, DataZoom dataZoom) 获得分割段数 ### AxisHelper.GetTotalSplitGridNum -public static int GetTotalSplitGridNum(Axis axis) +public static int GetTotalSplitGridNum(Axis axis) 获得分割网格个数,包含次刻度 ### AxisHelper.GetXAxisXOrY -public static float GetXAxisXOrY(GridCoord grid, Axis xAxis, Axis relativedAxis) +public static float GetXAxisXOrY(GridCoord grid, Axis xAxis, Axis relativedAxis) ### AxisHelper.GetYAxisXOrY -public static float GetYAxisXOrY(GridCoord grid, Axis yAxis, Axis relativedAxis) +public static float GetYAxisXOrY(GridCoord grid, Axis yAxis, Axis relativedAxis) ### AxisHelper.NeedShowSplit -public static bool NeedShowSplit(Axis axis) +public static bool NeedShowSplit(Axis axis) ## AxisLabel @@ -1154,32 +1154,32 @@ class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle) ### AxisLabel.componentDirty -public override bool componentDirty +public override bool componentDirty ### AxisLabel.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### AxisLabel.Clone -public new AxisLabel Clone() +public new AxisLabel Clone() ### AxisLabel.Copy -public void Copy(AxisLabel axisLabel) +public void Copy(AxisLabel axisLabel) ### AxisLabel.GetFormatterContent -public override string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false) +public override string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false) ### AxisLabel.IsNeedShowLabel -public bool IsNeedShowLabel(int index, int total) +public bool IsNeedShowLabel(int index, int total) ### AxisLabel.SetRelatedText -public void SetRelatedText(ChartText txt, float labelWidth) +public void SetRelatedText(ChartText txt, float labelWidth) ## AxisLine @@ -1189,11 +1189,11 @@ class in XCharts.Runtime / 继承自: [BaseLine](#baseline) ### AxisLine.Clone -public AxisLine Clone() +public AxisLine Clone() ### AxisLine.Copy -public void Copy(AxisLine axisLine) +public void Copy(AxisLine axisLine) ## AxisMinorSplitLine @@ -1205,29 +1205,29 @@ class in XCharts.Runtime / 继承自: [BaseLine](#baseline) ### AxisMinorSplitLine.autoColor -public bool autoColor +public bool autoColor 自动设置颜色。 ### AxisMinorSplitLine.distance -public float distance +public float distance 刻度线与轴线的距离。 ### AxisMinorSplitLine.vertsDirty -public override bool vertsDirty +public override bool vertsDirty ### AxisMinorSplitLine.ClearVerticesDirty -public override void ClearVerticesDirty() +public override void ClearVerticesDirty() ### AxisMinorSplitLine.Clone -public AxisMinorSplitLine Clone() +public AxisMinorSplitLine Clone() ### AxisMinorSplitLine.Copy -public void Copy(AxisMinorSplitLine splitLine) +public void Copy(AxisMinorSplitLine splitLine) ## AxisMinorTick @@ -1239,23 +1239,23 @@ class in XCharts.Runtime / 继承自: [BaseLine](#baseline) ### AxisMinorTick.autoColor -public bool autoColor +public bool autoColor ### AxisMinorTick.vertsDirty -public override bool vertsDirty +public override bool vertsDirty ### AxisMinorTick.ClearVerticesDirty -public override void ClearVerticesDirty() +public override void ClearVerticesDirty() ### AxisMinorTick.Clone -public AxisMinorTick Clone() +public AxisMinorTick Clone() ### AxisMinorTick.Copy -public void Copy(AxisMinorTick axisTick) +public void Copy(AxisMinorTick axisTick) ## AxisName @@ -1265,11 +1265,11 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### AxisName.Clone -public AxisName Clone() +public AxisName Clone() ### AxisName.Copy -public void Copy(AxisName axisName) +public void Copy(AxisName axisName) ## AxisSplitArea @@ -1279,15 +1279,15 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### AxisSplitArea.Clone -public AxisSplitArea Clone() +public AxisSplitArea Clone() ### AxisSplitArea.Copy -public void Copy(AxisSplitArea splitArea) +public void Copy(AxisSplitArea splitArea) ### AxisSplitArea.GetColor -public Color32 GetColor(int index, BaseAxisTheme theme) +public Color32 GetColor(int index, BaseAxisTheme theme) ## AxisSplitLine @@ -1297,29 +1297,29 @@ class in XCharts.Runtime / 继承自: [BaseLine](#baseline) ### AxisSplitLine.autoColor -public bool autoColor +public bool autoColor 自动设置颜色。 ### AxisSplitLine.distance -public float distance +public float distance 刻度线与轴线的距离。 ### AxisSplitLine.vertsDirty -public override bool vertsDirty +public override bool vertsDirty ### AxisSplitLine.ClearVerticesDirty -public override void ClearVerticesDirty() +public override void ClearVerticesDirty() ### AxisSplitLine.Clone -public AxisSplitLine Clone() +public AxisSplitLine Clone() ### AxisSplitLine.Copy -public void Copy(AxisSplitLine splitLine) +public void Copy(AxisSplitLine splitLine) ## AxisTheme @@ -1327,11 +1327,11 @@ class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) ### AxisTheme.base(theme) -public AxisTheme(ThemeType theme) : base(theme) +public AxisTheme(ThemeType theme) : base(theme) ### AxisTheme.AxisTheme -public AxisTheme(ThemeType theme) : base(theme) { } +public AxisTheme(ThemeType theme) : base(theme) { } ## AxisTick @@ -1341,20 +1341,20 @@ class in XCharts.Runtime / 继承自: [BaseLine](#baseline) ### AxisTick.autoColor -public bool autoColor +public bool autoColor ### AxisTick.distance -public float distance +public float distance 刻度线与轴线的距离。 ### AxisTick.Clone -public AxisTick Clone() +public AxisTick Clone() ### AxisTick.Copy -public void Copy(AxisTick axisTick) +public void Copy(AxisTick axisTick) ## Background @@ -1364,7 +1364,7 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### Background.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() ## Bar @@ -1372,19 +1372,19 @@ class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ine ### Bar.containerIndex -public int containerIndex +public int containerIndex ### Bar.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### Bar.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ### Bar.ConvertSerie -public static Bar ConvertSerie(Serie serie) +public static Bar ConvertSerie(Serie serie) ## BarChart @@ -1394,57 +1394,57 @@ class in XCharts.Runtime / 继承自: [BaseChart](#basechart) ### BarChart.DefaultBarChart -public void DefaultBarChart() +public void DefaultBarChart() 默认条形图。 ### BarChart.DefaultCapsuleBarChart -public void DefaultCapsuleBarChart() +public void DefaultCapsuleBarChart() 默认胶囊条形图。 ### BarChart.DefaultCapsuleColumnChart -public void DefaultCapsuleColumnChart() +public void DefaultCapsuleColumnChart() 胶囊柱状图。 ### BarChart.DefaultGroupedBarChart -public void DefaultGroupedBarChart() +public void DefaultGroupedBarChart() 默认分组条形图。 ### BarChart.DefaultGroupedColumnChart -public void DefaultGroupedColumnChart() +public void DefaultGroupedColumnChart() 默认分组柱状图。 ### BarChart.DefaultPercentBarChart -public void DefaultPercentBarChart() +public void DefaultPercentBarChart() 默认百分比条形图。 ### BarChart.DefaultPercentColumnChart -public void DefaultPercentColumnChart() +public void DefaultPercentColumnChart() 默认百分比柱状图。 ### BarChart.DefaultStackedBarChart -public void DefaultStackedBarChart() +public void DefaultStackedBarChart() 默认堆叠条形图。 ### BarChart.DefaultStackedColumnChart -public void DefaultStackedColumnChart() +public void DefaultStackedColumnChart() 默认堆叠分组柱状图。 ### BarChart.DefaultZebraBarChart -public void DefaultZebraBarChart() +public void DefaultZebraBarChart() 默认斑马条形图。 ### BarChart.DefaultZebraColumnChart -public void DefaultZebraColumnChart() +public void DefaultZebraColumnChart() 斑马柱状图。 ## BarType @@ -1465,11 +1465,11 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) / 子类 ### BaseAxisTheme.BaseAxisTheme -public BaseAxisTheme(ThemeType theme) : base(theme) +public BaseAxisTheme(ThemeType theme) : base(theme) ### BaseAxisTheme.Copy -public void Copy(BaseAxisTheme theme) +public void Copy(BaseAxisTheme theme) ## BaseChart @@ -1477,138 +1477,138 @@ class in XCharts.Runtime / 继承自: [BaseGraph](#basegraph),[ISerializationCal ### BaseChart.axis) -public virtual void InitAxisRuntimeData(Axis axis) +public virtual void InitAxisRuntimeData(Axis axis) ### BaseChart.chartHeight -public float chartHeight +public float chartHeight 图表的高 ### BaseChart.chartHideFlags -public override HideFlags chartHideFlags +public override HideFlags chartHideFlags ### BaseChart.chartMaxAnchor -public Vector2 chartMaxAnchor +public Vector2 chartMaxAnchor ### BaseChart.chartMinAnchor -public Vector2 chartMinAnchor +public Vector2 chartMinAnchor ### BaseChart.chartPivot -public Vector2 chartPivot +public Vector2 chartPivot ### BaseChart.chartPosition -public Vector3 chartPosition +public Vector3 chartPosition 图表的左下角起始坐标。 ### BaseChart.chartRect -public Rect chartRect +public Rect chartRect ### BaseChart.chartSizeDelta -public Vector2 chartSizeDelta +public Vector2 chartSizeDelta ### BaseChart.chartWidth -public float chartWidth +public float chartWidth 图表的宽 ### BaseChart.chartX -public float chartX +public float chartX 图表的X ### BaseChart.chartY -public float chartY +public float chartY 图表的Y ### BaseChart.components -public List<MainComponent> components +public List<MainComponent> components ### BaseChart.customDrawGaugePointerFunction -public CustomDrawGaugePointerFunction customDrawGaugePointerFunction +public CustomDrawGaugePointerFunction customDrawGaugePointerFunction 自定义仪表盘指针绘制委托。 ### BaseChart.debug -public DebugInfo debug +public DebugInfo debug ### BaseChart.onAxisPointerValueChanged -public Action<Axis, double> onAxisPointerValueChanged +public Action<Axis, double> onAxisPointerValueChanged 坐标轴变更数据索引时回调。参数:axis, dataIndex/dataValue ### BaseChart.onDraw -public Action<VertexHelper> onDraw +public Action<VertexHelper> onDraw 自定义绘制回调。在绘制Serie前调用。 ### BaseChart.onDrawAfterSerie -public Action<VertexHelper, Serie> onDrawAfterSerie +public Action<VertexHelper, Serie> onDrawAfterSerie 自定义Serie绘制回调。在每个Serie绘制完后调用。 ### BaseChart.onDrawBeforeSerie -public Action<VertexHelper, Serie> onDrawBeforeSerie +public Action<VertexHelper, Serie> onDrawBeforeSerie 自定义Serie绘制回调。在每个Serie绘制完前调用。 ### BaseChart.onDrawTop -public Action<VertexHelper> onDrawTop +public Action<VertexHelper> onDrawTop 自定义Top层绘制回调。在绘制Tooltip前调用。 ### BaseChart.onDrawUpper -public Action<VertexHelper> onDrawUpper +public Action<VertexHelper> onDrawUpper 自定义Upper层绘制回调。在绘制Tooltip前调用。 ### BaseChart.onInit -public Action onInit +public Action onInit 图表的初始化完成回调。 ### BaseChart.onLegendClick -public Action<Legend, int, string, bool> onLegendClick +public Action<Legend, int, string, bool> onLegendClick 点击图例按钮回调。参数:legendIndex, legendName, show ### BaseChart.onLegendEnter -public Action<Legend, int, string> onLegendEnter +public Action<Legend, int, string> onLegendEnter 鼠标进入图例回调。参数:legendIndex, legendName ### BaseChart.onLegendExit -public Action<Legend, int, string> onLegendExit +public Action<Legend, int, string> onLegendExit 鼠标退出图例回调。参数:legendIndex, legendName ### BaseChart.onPointerClickBar -public Action<PointerEventData, int> onPointerClickBar +public Action<PointerEventData, int> onPointerClickBar 点击柱形图柱条回调。参数:eventData, dataIndex ### BaseChart.onPointerClickPie -public Action<PointerEventData, int, int> onPointerClickPie +public Action<PointerEventData, int, int> onPointerClickPie 点击饼图区域回调。参数:PointerEventData,SerieIndex,SerieDataIndex ### BaseChart.onPointerEnterPie -public Action<int, int> onPointerEnterPie +public Action<int, int> onPointerEnterPie 鼠标进入和离开饼图区域回调,SerieDataIndex为-1时表示离开。参数:PointerEventData,SerieIndex,SerieDataIndex ### BaseChart.onSerieClick -public Action<SerieEventData> onSerieClick +public Action<SerieEventData> onSerieClick > 从 `v3.6.0` 开始支持 @@ -1616,7 +1616,7 @@ public Action<SerieEventData> onSerieClick ### BaseChart.onSerieDown -public Action<SerieEventData> onSerieDown +public Action<SerieEventData> onSerieDown > 从 `v3.6.0` 开始支持 @@ -1624,7 +1624,7 @@ public Action<SerieEventData> onSerieDown ### BaseChart.onSerieEnter -public Action<SerieEventData> onSerieEnter +public Action<SerieEventData> onSerieEnter > 从 `v3.6.0` 开始支持 @@ -1632,7 +1632,7 @@ public Action<SerieEventData> onSerieEnter ### BaseChart.onSerieExit -public Action<SerieEventData> onSerieExit +public Action<SerieEventData> onSerieExit > 从 `v3.6.0` 开始支持 @@ -1640,150 +1640,150 @@ public Action<SerieEventData> onSerieExit ### BaseChart.onUpdate -public Action onUpdate +public Action onUpdate 图表的Update回调。 ### BaseChart.series -public List<Serie> series +public List<Serie> series ### BaseChart.settings -public Settings settings +public Settings settings 全局设置组件。 ### BaseChart.theme -public ThemeStyle theme +public ThemeStyle theme ### BaseChart.typeListForComponent -public Dictionary<Type, FieldInfo> typeListForComponent +public Dictionary<Type, FieldInfo> typeListForComponent ### BaseChart.typeListForSerie -public Dictionary<Type, FieldInfo> typeListForSerie +public Dictionary<Type, FieldInfo> typeListForSerie ### BaseChart.AddChartComponent -public MainComponent AddChartComponent(Type type) +public MainComponent AddChartComponent(Type type) ### BaseChart.AddChartComponent<T> -public T AddChartComponent<T>() where T : MainComponent +public T AddChartComponent<T>() where T : MainComponent ### BaseChart.AddChartComponentWhenNoExist<T> -public T AddChartComponentWhenNoExist<T>() where T : MainComponent +public T AddChartComponentWhenNoExist<T>() where T : MainComponent ### BaseChart.AddData -public SerieData AddData(int serieIndex, DateTime time, double yValue, string dataName = null, string dataId = null) +public SerieData AddData(int serieIndex, DateTime time, double yValue, string dataName = null, string dataId = null) 添加(time,y)数据到指定的系列中。 -public SerieData AddData(int serieIndex, double data, string dataName = null, string dataId = null) +public SerieData AddData(int serieIndex, double data, string dataName = null, string dataId = null) 添加一个数据到指定的系列中。 -public SerieData AddData(int serieIndex, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null) +public SerieData AddData(int serieIndex, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null) -public SerieData AddData(int serieIndex, double xValue, double yValue, string dataName = null, string dataId = null) +public SerieData AddData(int serieIndex, double xValue, double yValue, string dataName = null, string dataId = null) 添加(x,y)数据到指定系列中。 -public SerieData AddData(int serieIndex, List<double> multidimensionalData, string dataName = null, string dataId = null) +public SerieData AddData(int serieIndex, List<double> multidimensionalData, string dataName = null, string dataId = null) 添加多维数据(x,y,z...)到指定的系列中。 -public SerieData AddData(int serieIndex, params double[] multidimensionalData) +public SerieData AddData(int serieIndex, params double[] multidimensionalData) 添加多维数据(x,y,z...)到指定的系列中。 -public SerieData AddData(string serieName, DateTime time, double yValue, string dataName = null, string dataId = null) +public SerieData AddData(string serieName, DateTime time, double yValue, string dataName = null, string dataId = null) 添加(time,y)数据到指定的系列中。 -public SerieData AddData(string serieName, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null) +public SerieData AddData(string serieName, double indexOrTimestamp, double open, double close, double lowest, double heighest, string dataName = null, string dataId = null) -public SerieData AddData(string serieName, double xValue, double yValue, string dataName = null, string dataId = null) +public SerieData AddData(string serieName, double xValue, double yValue, string dataName = null, string dataId = null) 添加(x,y)数据到指定系列中。 -public SerieData AddData(string serieName, List<double> multidimensionalData, string dataName = null, string dataId = null) +public SerieData AddData(string serieName, List<double> multidimensionalData, string dataName = null, string dataId = null) 添加多维数据(x,y,z...)到指定的系列中。 -public SerieData AddData(string serieName, params double[] multidimensionalData) +public SerieData AddData(string serieName, params double[] multidimensionalData) 添加多维数据(x,y,z...)到指定的系列中。 ### BaseChart.AddLink -public SerieDataLink AddLink(int serieIndex, string sourceId, string targetId, double value = 0) +public SerieDataLink AddLink(int serieIndex, string sourceId, string targetId, double value = 0) 添加一个关系图的关系数据。 ### BaseChart.AddSerie<T> -public T AddSerie<T>(string serieName = null, bool show = true, bool addToHead = false) where T : Serie +public T AddSerie<T>(string serieName = null, bool show = true, bool addToHead = false) where T : Serie ### BaseChart.AddXAxisData -public void AddXAxisData(string category, int xAxisIndex = 0) +public void AddXAxisData(string category, int xAxisIndex = 0) 添加一个类目数据到指定的x轴。 ### BaseChart.AddXAxisIcon -public void AddXAxisIcon(Sprite icon, int xAxisIndex = 0) +public void AddXAxisIcon(Sprite icon, int xAxisIndex = 0) 添加一个图标到指定的x轴。 ### BaseChart.AddYAxisData -public void AddYAxisData(string category, int yAxisIndex = 0) +public void AddYAxisData(string category, int yAxisIndex = 0) 添加一个类目数据到指定的y轴。 ### BaseChart.AddYAxisIcon -public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0) +public void AddYAxisIcon(Sprite icon, int yAxisIndex = 0) 添加一个图标到指定的y轴。 ### BaseChart.AnimationEnable -public void AnimationEnable(bool flag) +public void AnimationEnable(bool flag) 是否启用Serie动画。 ### BaseChart.AnimationFadeIn -public void AnimationFadeIn(bool reset = true) +public void AnimationFadeIn(bool reset = true) 开始所有Serie的渐入动画。 ### BaseChart.AnimationFadeOut -public void AnimationFadeOut() +public void AnimationFadeOut() 开始所有Serie的渐出动画。 ### BaseChart.AnimationPause -public void AnimationPause() +public void AnimationPause() 暂停所有Serie的动画。 ### BaseChart.AnimationReset -public void AnimationReset() +public void AnimationReset() 重置所有Serie的动画。 ### BaseChart.AnimationResume -public void AnimationResume() +public void AnimationResume() 继续所有Serie的动画。 ### BaseChart.CanAddChartComponent -public bool CanAddChartComponent(Type type) +public bool CanAddChartComponent(Type type) ### BaseChart.CanAddSerie -public bool CanAddSerie(Type type) +public bool CanAddSerie(Type type) ### BaseChart.CanAddSerie<T> -public bool CanAddSerie<T>() where T : Serie +public bool CanAddSerie<T>() where T : Serie ### BaseChart.CancelTooltip -public void CancelTooltip() +public void CancelTooltip() > 从 `v3.7.0` 开始支持 @@ -1791,19 +1791,19 @@ public void CancelTooltip() ### BaseChart.CanMultipleComponent -public bool CanMultipleComponent(Type type) +public bool CanMultipleComponent(Type type) ### BaseChart.ClampInChart -public void ClampInChart(ref Vector3 pos) +public void ClampInChart(ref Vector3 pos) ### BaseChart.ClampInGrid -public Vector3 ClampInGrid(GridCoord grid, Vector3 pos) +public Vector3 ClampInGrid(GridCoord grid, Vector3 pos) ### BaseChart.ClearComponentData -public virtual void ClearComponentData() +public virtual void ClearComponentData() > 从 `v3.4.0` 开始支持 @@ -1811,12 +1811,12 @@ public virtual void ClearComponentData() ### BaseChart.ClearData -public virtual void ClearData() +public virtual void ClearData() 清空所有组件和Serie的数据。注意:Serie只是清空数据,不会移除Serie。 ### BaseChart.ClearSerieData -public virtual void ClearSerieData() +public virtual void ClearSerieData() > 从 `v3.4.0` 开始支持 @@ -1824,7 +1824,7 @@ public virtual void ClearSerieData() ### BaseChart.ClearSerieLinks -public virtual void ClearSerieLinks() +public virtual void ClearSerieLinks() > 从 `v3.10.0` 开始支持 @@ -1832,25 +1832,25 @@ public virtual void ClearSerieLinks() ### BaseChart.ClickLegendButton -public void ClickLegendButton(int legendIndex, string legendName, bool show) +public void ClickLegendButton(int legendIndex, string legendName, bool show) 点击图例按钮 ### BaseChart.ConvertSerie -public bool ConvertSerie(Serie serie, Type type) +public bool ConvertSerie(Serie serie, Type type) ### BaseChart.ConvertSerie<T> -public bool ConvertSerie<T>(Serie serie) where T : Serie +public bool ConvertSerie<T>(Serie serie) where T : Serie ### BaseChart.ConvertXYAxis -public void ConvertXYAxis(int index) +public void ConvertXYAxis(int index) 转换X轴和Y轴的配置 ### BaseChart.EnsureChartComponent<T> -public T EnsureChartComponent<T>() where T : MainComponent +public T EnsureChartComponent<T>() where T : MainComponent > 从 `v3.6.0` 开始支持 @@ -1858,71 +1858,71 @@ public T EnsureChartComponent<T>() where T : MainComponent ### BaseChart.GenerateDefaultSerieName -public string GenerateDefaultSerieName() +public string GenerateDefaultSerieName() ### BaseChart.GetAllSerieDataCount -public int GetAllSerieDataCount() +public int GetAllSerieDataCount() ### BaseChart.GetChartBackgroundColor -public Color32 GetChartBackgroundColor() +public Color32 GetChartBackgroundColor() ### BaseChart.GetChartComponent<T> -public T GetChartComponent<T>(int index = 0) where T : MainComponent +public T GetChartComponent<T>(int index = 0) where T : MainComponent ### BaseChart.GetChartComponentNum -public int GetChartComponentNum(Type type) +public int GetChartComponentNum(Type type) ### BaseChart.GetChartComponentNum<T> -public int GetChartComponentNum<T>() where T : MainComponent +public int GetChartComponentNum<T>() where T : MainComponent ### BaseChart.GetChartComponents<T> -public List<MainComponent> GetChartComponents<T>() where T : MainComponent +public List<MainComponent> GetChartComponents<T>() where T : MainComponent ### BaseChart.GetData -public double GetData(int serieIndex, int dataIndex, int dimension = 1) +public double GetData(int serieIndex, int dataIndex, int dimension = 1) ### BaseChart.GetDataZoomOfAxis -public DataZoom GetDataZoomOfAxis(Axis axis) +public DataZoom GetDataZoomOfAxis(Axis axis) ### BaseChart.GetDataZoomOfSerie -public void GetDataZoomOfSerie(Serie serie, out DataZoom xDataZoom, out DataZoom yDataZoom) +public void GetDataZoomOfSerie(Serie serie, out DataZoom xDataZoom, out DataZoom yDataZoom) ### BaseChart.GetGrid -public GridCoord GetGrid(Vector2 local) +public GridCoord GetGrid(Vector2 local) ### BaseChart.GetGridOfDataZoom -public GridCoord GetGridOfDataZoom(DataZoom dataZoom) +public GridCoord GetGridOfDataZoom(DataZoom dataZoom) ### BaseChart.GetItemColor -public Color32 GetItemColor(Serie serie) +public Color32 GetItemColor(Serie serie) -public Color32 GetItemColor(Serie serie, SerieData serieData, int colorIndex) +public Color32 GetItemColor(Serie serie, SerieData serieData, int colorIndex) ### BaseChart.GetLegendRealShowNameColor -public Color32 GetLegendRealShowNameColor(string name) +public Color32 GetLegendRealShowNameColor(string name) ### BaseChart.GetLegendRealShowNameIndex -public int GetLegendRealShowNameIndex(string name) +public int GetLegendRealShowNameIndex(string name) ### BaseChart.GetMarkColor -public Color32 GetMarkColor(Serie serie, SerieData serieData) +public Color32 GetMarkColor(Serie serie, SerieData serieData) > 从 `v3.4.0` 开始支持 @@ -1930,244 +1930,244 @@ public Color32 GetMarkColor(Serie serie, SerieData serieData) ### BaseChart.GetOrAddChartComponent<T> -public T GetOrAddChartComponent<T>() where T : MainComponent +public T GetOrAddChartComponent<T>() where T : MainComponent ### BaseChart.GetPainter -public Painter GetPainter(int index) +public Painter GetPainter(int index) ### BaseChart.GetSerie -public Serie GetSerie(int serieIndex) +public Serie GetSerie(int serieIndex) ### BaseChart.GetSerie<T> -public T GetSerie<T>(int serieIndex) where T : Serie +public T GetSerie<T>(int serieIndex) where T : Serie ### BaseChart.GetSerieBarGap<T> -public float GetSerieBarGap<T>() where T : Serie +public float GetSerieBarGap<T>() where T : Serie ### BaseChart.GetSerieBarRealCount<T> -public int GetSerieBarRealCount<T>() where T : Serie +public int GetSerieBarRealCount<T>() where T : Serie ### BaseChart.GetSerieIndexIfStack<T> -public int GetSerieIndexIfStack<T>(Serie currSerie) where T : Serie +public int GetSerieIndexIfStack<T>(Serie currSerie) where T : Serie ### BaseChart.GetSerieSameStackTotalValue<T> -public double GetSerieSameStackTotalValue<T>(string stack, int dataIndex) where T : Serie +public double GetSerieSameStackTotalValue<T>(string stack, int dataIndex) where T : Serie ### BaseChart.GetSeriesMinMaxValue -public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue) +public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue) ### BaseChart.GetSerieTotalGap<T> -public float GetSerieTotalGap<T>(float categoryWidth, float gap, int index) where T : Serie +public float GetSerieTotalGap<T>(float categoryWidth, float gap, int index) where T : Serie ### BaseChart.GetSerieTotalWidth<T> -public float GetSerieTotalWidth<T>(float categoryWidth, float gap, int realBarCount) where T : Serie +public float GetSerieTotalWidth<T>(float categoryWidth, float gap, int realBarCount) where T : Serie ### BaseChart.GetTitlePosition -public Vector3 GetTitlePosition(Title title) +public Vector3 GetTitlePosition(Title title) ### BaseChart.GetVisualMapOfSerie -public VisualMap GetVisualMapOfSerie(Serie serie) +public VisualMap GetVisualMapOfSerie(Serie serie) ### BaseChart.GetXDataZoomOfSerie -public DataZoom GetXDataZoomOfSerie(Serie serie) +public DataZoom GetXDataZoomOfSerie(Serie serie) ### BaseChart.GetXLerpColor -public Color32 GetXLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid) +public Color32 GetXLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid) ### BaseChart.GetYLerpColor -public Color32 GetYLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid) +public Color32 GetYLerpColor(Color32 areaColor, Color32 areaToColor, Vector3 pos, GridCoord grid) ### BaseChart.HasChartComponent -public bool HasChartComponent(Type type) +public bool HasChartComponent(Type type) ### BaseChart.HasChartComponent<T> -public bool HasChartComponent<T>() +public bool HasChartComponent<T>() ### BaseChart.HasSerie -public bool HasSerie(Type type) +public bool HasSerie(Type type) ### BaseChart.HasSerie<T> -public bool HasSerie<T>() where T : Serie +public bool HasSerie<T>() where T : Serie ### BaseChart.Init -public void Init(bool defaultChart = true) +public void Init(bool defaultChart = true) ### BaseChart.InitAxisRuntimeData -public virtual void InitAxisRuntimeData(Axis axis) { } +public virtual void InitAxisRuntimeData(Axis axis) { } ### BaseChart.InsertSerie -public void InsertSerie(Serie serie, int index = -1, bool addToHead = false) +public void InsertSerie(Serie serie, int index = -1, bool addToHead = false) ### BaseChart.InsertSerie<T> -public T InsertSerie<T>(int index, string serieName = null, bool show = true) where T : Serie +public T InsertSerie<T>(int index, string serieName = null, bool show = true) where T : Serie ### BaseChart.Internal_CheckAnimation -public void Internal_CheckAnimation() +public void Internal_CheckAnimation() ### BaseChart.IsActiveByLegend -public virtual bool IsActiveByLegend(string legendName) +public virtual bool IsActiveByLegend(string legendName) 获得指定图例名字的系列是否显示。 ### BaseChart.IsAllAxisCategory -public bool IsAllAxisCategory() +public bool IsAllAxisCategory() 纯类目轴。 ### BaseChart.IsAllAxisValue -public bool IsAllAxisValue() +public bool IsAllAxisValue() 纯数值坐标轴(数值轴或对数轴)。 ### BaseChart.IsInAnyGrid -public bool IsInAnyGrid(Vector2 local) +public bool IsInAnyGrid(Vector2 local) ### BaseChart.IsInChart -public bool IsInChart(float x, float y) +public bool IsInChart(float x, float y) ### BaseChart.IsSerieName -public bool IsSerieName(string name) +public bool IsSerieName(string name) ### BaseChart.MoveDownSerie -public bool MoveDownSerie(int serieIndex) +public bool MoveDownSerie(int serieIndex) ### BaseChart.MoveUpSerie -public bool MoveUpSerie(int serieIndex) +public bool MoveUpSerie(int serieIndex) ### BaseChart.OnAfterDeserialize -public void OnAfterDeserialize() +public void OnAfterDeserialize() ### BaseChart.OnBeforeSerialize -public void OnBeforeSerialize() +public void OnBeforeSerialize() ### BaseChart.OnBeginDrag -public override void OnBeginDrag(PointerEventData eventData) +public override void OnBeginDrag(PointerEventData eventData) ### BaseChart.OnDataZoomRangeChanged -public virtual void OnDataZoomRangeChanged(DataZoom dataZoom) +public virtual void OnDataZoomRangeChanged(DataZoom dataZoom) ### BaseChart.OnDrag -public override void OnDrag(PointerEventData eventData) +public override void OnDrag(PointerEventData eventData) ### BaseChart.OnEndDrag -public override void OnEndDrag(PointerEventData eventData) +public override void OnEndDrag(PointerEventData eventData) ### BaseChart.OnLegendButtonClick -public virtual void OnLegendButtonClick(int index, string legendName, bool show) +public virtual void OnLegendButtonClick(int index, string legendName, bool show) ### BaseChart.OnLegendButtonEnter -public virtual void OnLegendButtonEnter(int index, string legendName) +public virtual void OnLegendButtonEnter(int index, string legendName) ### BaseChart.OnLegendButtonExit -public virtual void OnLegendButtonExit(int index, string legendName) +public virtual void OnLegendButtonExit(int index, string legendName) ### BaseChart.OnPointerClick -public override void OnPointerClick(PointerEventData eventData) +public override void OnPointerClick(PointerEventData eventData) ### BaseChart.OnPointerDown -public override void OnPointerDown(PointerEventData eventData) +public override void OnPointerDown(PointerEventData eventData) ### BaseChart.OnPointerEnter -public override void OnPointerEnter(PointerEventData eventData) +public override void OnPointerEnter(PointerEventData eventData) ### BaseChart.OnPointerExit -public override void OnPointerExit(PointerEventData eventData) +public override void OnPointerExit(PointerEventData eventData) ### BaseChart.OnPointerUp -public override void OnPointerUp(PointerEventData eventData) +public override void OnPointerUp(PointerEventData eventData) ### BaseChart.OnScroll -public override void OnScroll(PointerEventData eventData) +public override void OnScroll(PointerEventData eventData) ### BaseChart.RefreshBasePainter -public void RefreshBasePainter() +public void RefreshBasePainter() ### BaseChart.RefreshChart -public void RefreshChart(int serieIndex) +public void RefreshChart(int serieIndex) 在下一帧刷新图表的指定serie。 -public void RefreshChart(Serie serie) +public void RefreshChart(Serie serie) 在下一帧刷新图表的指定serie。 ### BaseChart.RefreshDataZoom -public void RefreshDataZoom() +public void RefreshDataZoom() 在下一帧刷新DataZoom ### BaseChart.RefreshGraph -public override void RefreshGraph() +public override void RefreshGraph() ### BaseChart.RefreshPainter -public void RefreshPainter(Serie serie) +public void RefreshPainter(Serie serie) ### BaseChart.RefreshTopPainter -public void RefreshTopPainter() +public void RefreshTopPainter() ### BaseChart.RefreshUpperPainter -public void RefreshUpperPainter() +public void RefreshUpperPainter() ### BaseChart.RemoveAllChartComponent -public void RemoveAllChartComponent() +public void RemoveAllChartComponent() ### BaseChart.RemoveAllSerie -public virtual void RemoveAllSerie() +public virtual void RemoveAllSerie() > 从 `v3.2.0` 开始支持 @@ -2175,45 +2175,45 @@ public virtual void RemoveAllSerie() ### BaseChart.RemoveChartComponent -public bool RemoveChartComponent(MainComponent component) +public bool RemoveChartComponent(MainComponent component) ### BaseChart.RemoveChartComponent<T> -public bool RemoveChartComponent<T>(int index = 0) +public bool RemoveChartComponent<T>(int index = 0) ### BaseChart.RemoveChartComponents -public int RemoveChartComponents(Type type) +public int RemoveChartComponents(Type type) ### BaseChart.RemoveChartComponents<T> -public int RemoveChartComponents<T>() +public int RemoveChartComponents<T>() ### BaseChart.RemoveData -public virtual void RemoveData(string serieName) +public virtual void RemoveData(string serieName) 清除指定系列名称的数据。 ### BaseChart.RemoveSerie -public void RemoveSerie(int serieIndex) +public void RemoveSerie(int serieIndex) -public void RemoveSerie(Serie serie) +public void RemoveSerie(Serie serie) ### BaseChart.RemoveSerie<T> -public void RemoveSerie<T>() where T : Serie +public void RemoveSerie<T>() where T : Serie ### BaseChart.ReplaceSerie -public bool ReplaceSerie(Serie oldSerie, Serie newSerie) +public bool ReplaceSerie(Serie oldSerie, Serie newSerie) ### BaseChart.ResetChartStatus -public void ResetChartStatus() +public void ResetChartStatus() > 从 `v3.10.0` 开始支持 @@ -2221,17 +2221,17 @@ public void ResetChartStatus() ### BaseChart.ResetDataIndex -public bool ResetDataIndex(int serieIndex) +public bool ResetDataIndex(int serieIndex) 重置serie的数据项索引。避免数据项索引异常。 ### BaseChart.SetBasePainterMaterial -public void SetBasePainterMaterial(Material material) +public void SetBasePainterMaterial(Material material) 设置Base Painter的材质球 ### BaseChart.SetInsertDataToHead -public void SetInsertDataToHead(bool insertDataToHead) +public void SetInsertDataToHead(bool insertDataToHead) > 从 `v3.11.0` 开始支持 @@ -2239,39 +2239,39 @@ public void SetInsertDataToHead(bool insertDataToHead) ### BaseChart.SetMaxCache -public void SetMaxCache(int maxCache) +public void SetMaxCache(int maxCache) 设置可缓存的最大数据量。当数据量超过该值时,会自动删除第一个值再加入最新值。 ### BaseChart.SetPainterActive -public void SetPainterActive(int index, bool flag) +public void SetPainterActive(int index, bool flag) ### BaseChart.SetSerieActive -public void SetSerieActive(int serieIndex, bool active) +public void SetSerieActive(int serieIndex, bool active) 设置指定系列是否显示。 -public void SetSerieActive(Serie serie, bool active) +public void SetSerieActive(Serie serie, bool active) ### BaseChart.SetSeriePainterMaterial -public void SetSeriePainterMaterial(Material material) +public void SetSeriePainterMaterial(Material material) 设置Serie Painter的材质球 ### BaseChart.SetTopPainterMaterial -public void SetTopPainterMaterial(Material material) +public void SetTopPainterMaterial(Material material) 设置Top Painter的材质球 ### BaseChart.SetUpperPainterMaterial -public void SetUpperPainterMaterial(Material material) +public void SetUpperPainterMaterial(Material material) 设置Upper Painter的材质球 ### BaseChart.TriggerTooltip -public bool TriggerTooltip(Vector3 localPosition) +public bool TriggerTooltip(Vector3 localPosition) > 从 `v3.7.0` 开始支持 @@ -2280,69 +2280,69 @@ public bool TriggerTooltip(Vector3 localPosition) ### BaseChart.TryAddChartComponent -public bool TryAddChartComponent(Type type) +public bool TryAddChartComponent(Type type) ### BaseChart.TryAddChartComponent<T> -public bool TryAddChartComponent<T>(out T component) where T : MainComponent +public bool TryAddChartComponent<T>(out T component) where T : MainComponent ### BaseChart.TryGetChartComponent<T> -public bool TryGetChartComponent<T>(out T component, int index = 0) +public bool TryGetChartComponent<T>(out T component, int index = 0) ### BaseChart.UpdateData -public bool UpdateData(int serieIndex, int dataIndex, double value) +public bool UpdateData(int serieIndex, int dataIndex, double value) 更新指定系列中的指定索引数据。 -public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value) +public bool UpdateData(int serieIndex, int dataIndex, int dimension, double value) 更新指定系列指定索引指定维数的数据。维数从0开始。 -public bool UpdateData(int serieIndex, int dataIndex, List<double> multidimensionalData) +public bool UpdateData(int serieIndex, int dataIndex, List<double> multidimensionalData) 更新指定系列指定索引的数据项的多维数据。 -public bool UpdateData(string serieName, int dataIndex, int dimension, double value) +public bool UpdateData(string serieName, int dataIndex, int dimension, double value) 更新指定系列指定索引指定维数的数据。维数从0开始。 -public bool UpdateData(string serieName, int dataIndex, List<double> multidimensionalData) +public bool UpdateData(string serieName, int dataIndex, List<double> multidimensionalData) 更新指定系列指定索引的数据项的多维数据。 ### BaseChart.UpdateDataName -public bool UpdateDataName(int serieIndex, int dataIndex, string dataName) +public bool UpdateDataName(int serieIndex, int dataIndex, string dataName) 更新指定系列中的指定索引数据名称。 ### BaseChart.UpdateLegendColor -public virtual void UpdateLegendColor(string legendName, bool active) +public virtual void UpdateLegendColor(string legendName, bool active) ### BaseChart.UpdateTheme -public void UpdateTheme(Theme theme) +public void UpdateTheme(Theme theme) 切换图表主题。 ### BaseChart.UpdateXAxisData -public void UpdateXAxisData(int index, string category, int xAxisIndex = 0) +public void UpdateXAxisData(int index, string category, int xAxisIndex = 0) 更新X轴类目数据。 ### BaseChart.UpdateXAxisIcon -public void UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0) +public void UpdateXAxisIcon(int index, Sprite icon, int xAxisIndex = 0) 更新X轴图标。 ### BaseChart.UpdateYAxisData -public void UpdateYAxisData(int index, string category, int yAxisIndex = 0) +public void UpdateYAxisData(int index, string category, int yAxisIndex = 0) 更新Y轴类目数据。 ### BaseChart.UpdateYAxisIcon -public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0) +public void UpdateYAxisIcon(int index, Sprite icon, int yAxisIndex = 0) 更新Y轴图标。 ## BaseGraph @@ -2351,143 +2351,143 @@ class in XCharts.Runtime / 继承自: [MaskableGraphic](https://docs.unity3d.com ### BaseGraph.chartHideFlags -public virtual HideFlags chartHideFlags +public virtual HideFlags chartHideFlags ### BaseGraph.clickPos -public Vector2 clickPos +public Vector2 clickPos ### BaseGraph.forceOpenRaycastTarget -public bool forceOpenRaycastTarget +public bool forceOpenRaycastTarget 强制开启鼠标事件检测。 ### BaseGraph.graphAnchoredPosition -public Vector2 graphAnchoredPosition +public Vector2 graphAnchoredPosition ### BaseGraph.graphHeight -public float graphHeight +public float graphHeight 图形的高 ### BaseGraph.graphMaxAnchor -public Vector2 graphMaxAnchor +public Vector2 graphMaxAnchor ### BaseGraph.graphMinAnchor -public Vector2 graphMinAnchor +public Vector2 graphMinAnchor ### BaseGraph.graphPivot -public Vector2 graphPivot +public Vector2 graphPivot ### BaseGraph.graphPosition -public Vector3 graphPosition +public Vector3 graphPosition 图形的左下角起始坐标。 ### BaseGraph.graphRect -public Rect graphRect +public Rect graphRect ### BaseGraph.graphSizeDelta -public Vector2 graphSizeDelta +public Vector2 graphSizeDelta ### BaseGraph.graphWidth -public float graphWidth +public float graphWidth 图形的宽 ### BaseGraph.graphX -public float graphX +public float graphX 图形的X ### BaseGraph.graphY -public float graphY +public float graphY 图形的Y ### BaseGraph.isPointerClick -public bool isPointerClick +public bool isPointerClick 鼠标是否点击了图表。 ### BaseGraph.isPointerInChart -public bool isPointerInChart +public bool isPointerInChart 鼠标是否在图表内。 ### BaseGraph.onBeginDrag -public Action<PointerEventData, BaseGraph> onBeginDrag +public Action<PointerEventData, BaseGraph> onBeginDrag 鼠标开始拖拽回调。 ### BaseGraph.onDrag -public Action<PointerEventData, BaseGraph> onDrag +public Action<PointerEventData, BaseGraph> onDrag 鼠标拖拽回调。 ### BaseGraph.onEndDrag -public Action<PointerEventData, BaseGraph> onEndDrag +public Action<PointerEventData, BaseGraph> onEndDrag 鼠标结束拖拽回调。 ### BaseGraph.onPointerClick -public Action<PointerEventData, BaseGraph> onPointerClick +public Action<PointerEventData, BaseGraph> onPointerClick 鼠标点击回调。 ### BaseGraph.onPointerDown -public Action<PointerEventData, BaseGraph> onPointerDown +public Action<PointerEventData, BaseGraph> onPointerDown 鼠标按下回调。 ### BaseGraph.onPointerEnter -public Action<PointerEventData, BaseGraph> onPointerEnter +public Action<PointerEventData, BaseGraph> onPointerEnter 鼠标进入回调。 ### BaseGraph.onPointerExit -public Action<PointerEventData, BaseGraph> onPointerExit +public Action<PointerEventData, BaseGraph> onPointerExit 鼠标退出回调。 ### BaseGraph.onPointerUp -public Action<PointerEventData, BaseGraph> onPointerUp +public Action<PointerEventData, BaseGraph> onPointerUp 鼠标弹起回调。 ### BaseGraph.onScroll -public Action<PointerEventData, BaseGraph> onScroll +public Action<PointerEventData, BaseGraph> onScroll 鼠标滚动回调。 ### BaseGraph.painter -public Painter painter +public Painter painter ### BaseGraph.pointerPos -public Vector2 pointerPos +public Vector2 pointerPos 鼠标位置。 ### BaseGraph.warningInfo -public string warningInfo +public string warningInfo 警告信息。 ### BaseGraph.CheckWarning -public string CheckWarning() +public string CheckWarning() 检测警告信息。 ### BaseGraph.LocalPointToScreenPoint -public Vector2 LocalPointToScreenPoint(Vector2 localPoint) +public Vector2 LocalPointToScreenPoint(Vector2 localPoint) > 从 `v3.7.0` 开始支持 @@ -2495,7 +2495,7 @@ public Vector2 LocalPointToScreenPoint(Vector2 localPoint) ### BaseGraph.LocalPointToWorldPoint -public Vector2 LocalPointToWorldPoint(Vector2 localPoint) +public Vector2 LocalPointToWorldPoint(Vector2 localPoint) > 从 `v3.7.0` 开始支持 @@ -2503,71 +2503,71 @@ public Vector2 LocalPointToWorldPoint(Vector2 localPoint) ### BaseGraph.OnBeginDrag -public virtual void OnBeginDrag(PointerEventData eventData) +public virtual void OnBeginDrag(PointerEventData eventData) ### BaseGraph.OnDrag -public virtual void OnDrag(PointerEventData eventData) +public virtual void OnDrag(PointerEventData eventData) ### BaseGraph.OnEndDrag -public virtual void OnEndDrag(PointerEventData eventData) +public virtual void OnEndDrag(PointerEventData eventData) ### BaseGraph.OnPointerClick -public virtual void OnPointerClick(PointerEventData eventData) +public virtual void OnPointerClick(PointerEventData eventData) ### BaseGraph.OnPointerDown -public virtual void OnPointerDown(PointerEventData eventData) +public virtual void OnPointerDown(PointerEventData eventData) ### BaseGraph.OnPointerEnter -public virtual void OnPointerEnter(PointerEventData eventData) +public virtual void OnPointerEnter(PointerEventData eventData) ### BaseGraph.OnPointerExit -public virtual void OnPointerExit(PointerEventData eventData) +public virtual void OnPointerExit(PointerEventData eventData) ### BaseGraph.OnPointerUp -public virtual void OnPointerUp(PointerEventData eventData) +public virtual void OnPointerUp(PointerEventData eventData) ### BaseGraph.OnScroll -public virtual void OnScroll(PointerEventData eventData) +public virtual void OnScroll(PointerEventData eventData) ### BaseGraph.RebuildChartObject -public void RebuildChartObject() +public void RebuildChartObject() 移除并重新创建所有图表的Object。 ### BaseGraph.RefreshAllComponent -public void RefreshAllComponent() +public void RefreshAllComponent() ### BaseGraph.RefreshGraph -public virtual void RefreshGraph() +public virtual void RefreshGraph() 在下一帧刷新图形。 ### BaseGraph.SaveAsImage -public void SaveAsImage(string imageType = "png", string savePath = "") +public void SaveAsImage(string imageType = "png", string savePath = "") 保存图表为图片。 ### BaseGraph.ScreenPointToChartPoint -public bool ScreenPointToChartPoint(Vector2 screenPoint, out Vector2 chartPoint) +public bool ScreenPointToChartPoint(Vector2 screenPoint, out Vector2 chartPoint) ### BaseGraph.SetPainterDirty -public void SetPainterDirty() +public void SetPainterDirty() 重新初始化Painter ### BaseGraph.SetSize -public virtual void SetSize(float width, float height) +public virtual void SetSize(float width, float height) 设置图形的宽高(在非stretch pivot下才有效,其他情况需要自己调整RectTransform) ## BaseLine @@ -2578,28 +2578,28 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类 ### BaseLine.BaseLine -public BaseLine(bool show) : base() +public BaseLine(bool show) : base() ### BaseLine.Copy -public void Copy(BaseLine axisLine) +public void Copy(BaseLine axisLine) ### BaseLine.GetColor -public Color32 GetColor(Color32 themeColor) +public Color32 GetColor(Color32 themeColor) ### BaseLine.GetLength -public float GetLength(float themeLength) +public float GetLength(float themeLength) ### BaseLine.GetType -public LineStyle.Type GetType(LineStyle.Type themeType) +public LineStyle.Type GetType(LineStyle.Type themeType) ### BaseLine.GetWidth -public float GetWidth(float themeWidth) +public float GetWidth(float themeWidth) ## BaseScatter @@ -2607,11 +2607,11 @@ class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ine ### BaseScatter.containerIndex -public int containerIndex +public int containerIndex ### BaseScatter.containterInstanceId -public int containterInstanceId +public int containterInstanceId ## BaseSerie @@ -2619,117 +2619,117 @@ class in XCharts.Runtime / 子类: [Serie](#serie) ### BaseSerie.anyDirty -public bool anyDirty +public bool anyDirty ### BaseSerie.ClearData() -public virtual void ClearData() +public virtual void ClearData() ### BaseSerie.componentDirty -public virtual bool componentDirty +public virtual bool componentDirty ### BaseSerie.defaultColorBy -public virtual SerieColorBy defaultColorBy +public virtual SerieColorBy defaultColorBy ### BaseSerie.gameObject -public GameObject gameObject +public GameObject gameObject ### BaseSerie.handler -public SerieHandler handler +public SerieHandler handler ### BaseSerie.multiDimensionLabel -public virtual bool multiDimensionLabel +public virtual bool multiDimensionLabel ### BaseSerie.OnBeforeSerialize() -public virtual void OnBeforeSerialize() +public virtual void OnBeforeSerialize() ### BaseSerie.OnDataUpdate() -public virtual void OnDataUpdate() +public virtual void OnDataUpdate() ### BaseSerie.painter -public Painter painter +public Painter painter ### BaseSerie.refreshComponent -public Action refreshComponent +public Action refreshComponent ### BaseSerie.titleJustForSerie -public virtual bool titleJustForSerie +public virtual bool titleJustForSerie ### BaseSerie.useSortData -public virtual bool useSortData +public virtual bool useSortData ### BaseSerie.vertsDirty -public virtual bool vertsDirty +public virtual bool vertsDirty ### BaseSerie.ClearComponentDirty -public virtual void ClearComponentDirty() +public virtual void ClearComponentDirty() ### BaseSerie.ClearData -public virtual void ClearData() { } +public virtual void ClearData() { } ### BaseSerie.ClearDirty -public virtual void ClearDirty() +public virtual void ClearDirty() ### BaseSerie.ClearVerticesDirty -public virtual void ClearVerticesDirty() +public virtual void ClearVerticesDirty() ### BaseSerie.IsComponentDirty -public static bool IsComponentDirty(ChildComponent component) +public static bool IsComponentDirty(ChildComponent component) ### BaseSerie.IsVertsDirty -public static bool IsVertsDirty(ChildComponent component) +public static bool IsVertsDirty(ChildComponent component) ### BaseSerie.OnAfterDeserialize -public virtual void OnAfterDeserialize() +public virtual void OnAfterDeserialize() ### BaseSerie.OnBeforeSerialize -public virtual void OnBeforeSerialize() { } +public virtual void OnBeforeSerialize() { } ### BaseSerie.OnDataUpdate -public virtual void OnDataUpdate() { } +public virtual void OnDataUpdate() { } ### BaseSerie.OnRemove -public virtual void OnRemove() +public virtual void OnRemove() ### BaseSerie.RefreshLabel -public void RefreshLabel() +public void RefreshLabel() ### BaseSerie.SetAllDirty -public virtual void SetAllDirty() +public virtual void SetAllDirty() ### BaseSerie.SetComponentDirty -public virtual void SetComponentDirty() +public virtual void SetComponentDirty() ### BaseSerie.SetVerticesDirty -public virtual void SetVerticesDirty() +public virtual void SetVerticesDirty() ## BlurStyle @@ -2749,15 +2749,15 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### BorderStyle.GetRuntimeBorderColor -public Color32 GetRuntimeBorderColor() +public Color32 GetRuntimeBorderColor() ### BorderStyle.GetRuntimeBorderWidth -public float GetRuntimeBorderWidth() +public float GetRuntimeBorderWidth() ### BorderStyle.GetRuntimeCornerRadius -public float[] GetRuntimeCornerRadius() +public float[] GetRuntimeCornerRadius() ## CalendarCoord @@ -2765,11 +2765,11 @@ class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[IUpdateRuntim ### CalendarCoord.IsPointerEnter -public bool IsPointerEnter() +public bool IsPointerEnter() ### CalendarCoord.UpdateRuntimeData -public void UpdateRuntimeData(BaseChart chart) +public void UpdateRuntimeData(BaseChart chart) ## Candlestick @@ -2777,15 +2777,15 @@ class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ine ### Candlestick.containerIndex -public int containerIndex +public int containerIndex ### Candlestick.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### Candlestick.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## CandlestickChart @@ -2799,47 +2799,47 @@ class in XCharts.Runtime ### ChartCached.ColorToDotStr -public static string ColorToDotStr(Color color) +public static string ColorToDotStr(Color color) ### ChartCached.ColorToStr -public static string ColorToStr(Color color) +public static string ColorToStr(Color color) ### ChartCached.FloatToStr -public static string FloatToStr(double value, string numericFormatter = "F", int precision = 0) +public static string FloatToStr(double value, string numericFormatter = "F", int precision = 0) ### ChartCached.GetSerieLabelName -public static string GetSerieLabelName(string prefix, int i, int j) +public static string GetSerieLabelName(string prefix, int i, int j) ### ChartCached.GetString -public static string GetString(string prefix, int suffix) +public static string GetString(string prefix, int suffix) ### ChartCached.IntToStr -public static string IntToStr(int value, string numericFormatter = "") +public static string IntToStr(int value, string numericFormatter = "") ### ChartCached.NumberToDateStr -public static string NumberToDateStr(double timestamp, string formatter) +public static string NumberToDateStr(double timestamp, string formatter) ### ChartCached.NumberToDateTime -public static DateTime NumberToDateTime(double timestamp) +public static DateTime NumberToDateTime(double timestamp) ### ChartCached.NumberToStr -public static string NumberToStr(double value, string formatter) +public static string NumberToStr(double value, string formatter) ### ChartCached.NumberToTimeSpan -public static TimeSpan NumberToTimeSpan(double timestamp) +public static TimeSpan NumberToTimeSpan(double timestamp) ### ChartCached.NumberToTimeStr -public static string NumberToTimeStr(double timestamp, string formatter) +public static string NumberToTimeStr(double timestamp, string formatter) ## ChartConst @@ -2855,239 +2855,239 @@ class in XCharts.Runtime ### ChartHelper.ignoreVector3 -public static Vector3 ignoreVector3 +public static Vector3 ignoreVector3 ### ChartHelper.sb -public static StringBuilder sb +public static StringBuilder sb ### ChartHelper.ActiveAllObject -public static void ActiveAllObject(Transform parent, bool active, string match = null) +public static void ActiveAllObject(Transform parent, bool active, string match = null) ### ChartHelper.AddIcon -public static Image AddIcon(string name, Transform parent, IconStyle iconStyle) +public static Image AddIcon(string name, Transform parent, IconStyle iconStyle) ### ChartHelper.Cancat -public static string Cancat(string str1, int i) +public static string Cancat(string str1, int i) ### ChartHelper.ClearEventListener -public static void ClearEventListener(GameObject obj) +public static void ClearEventListener(GameObject obj) ### ChartHelper.CopyArray<T> -public static bool CopyArray<T>(T[] toList, T[] fromList) +public static bool CopyArray<T>(T[] toList, T[] fromList) ### ChartHelper.CopyList<T> -public static bool CopyList<T>(List<T> toList, List<T> fromList) +public static bool CopyList<T>(List<T> toList, List<T> fromList) ### ChartHelper.DestoryGameObject -public static void DestoryGameObject(GameObject go) +public static void DestoryGameObject(GameObject go) ### ChartHelper.DestoryGameObjectByMatch -public static void DestoryGameObjectByMatch(Transform parent, string containString) +public static void DestoryGameObjectByMatch(Transform parent, string containString) ### ChartHelper.DestroyAllChildren -public static void DestroyAllChildren(Transform parent) +public static void DestroyAllChildren(Transform parent) ### ChartHelper.EnsureComponent<T> -public static T EnsureComponent<T>(GameObject gameObject) where T : Component +public static T EnsureComponent<T>(GameObject gameObject) where T : Component 确保对象有指定的组件,如果没有则添加。 ### ChartHelper.GetActualValue -public static float GetActualValue(float valueOrRate, float total, float maxRate = 1.5f) +public static float GetActualValue(float valueOrRate, float total, float maxRate = 1.5f) ### ChartHelper.GetAngle360 -public static float GetAngle360(Vector2 from, Vector2 to) +public static float GetAngle360(Vector2 from, Vector2 to) 获得0-360的角度(12点钟方向为0度) ### ChartHelper.GetBlurColor -public static Color32 GetBlurColor(Color32 color, float a = 0.3f) +public static Color32 GetBlurColor(Color32 color, float a = 0.3f) ### ChartHelper.GetColor -public static Color32 GetColor(string hexColorStr) +public static Color32 GetColor(string hexColorStr) ### ChartHelper.GetDire -public static Vector3 GetDire(float angle, bool isDegree = false) +public static Vector3 GetDire(float angle, bool isDegree = false) ### ChartHelper.GetFullName -public static string GetFullName(Transform transform) +public static string GetFullName(Transform transform) ### ChartHelper.GetHighlightColor -public static Color32 GetHighlightColor(Color32 color, float rate = 0.8f) +public static Color32 GetHighlightColor(Color32 color, float rate = 0.8f) ### ChartHelper.GetLastValue -public static Vector3 GetLastValue(List<Vector3> list) +public static Vector3 GetLastValue(List<Vector3> list) ### ChartHelper.GetMaxCeilRate -public static double GetMaxCeilRate(double value, double ceilRate) +public static double GetMaxCeilRate(double value, double ceilRate) ### ChartHelper.GetMaxDivisibleValue -public static double GetMaxDivisibleValue(double max, double ceilRate) +public static double GetMaxDivisibleValue(double max, double ceilRate) ### ChartHelper.GetMaxLogValue -public static double GetMaxLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber) +public static double GetMaxLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber) ### ChartHelper.GetMinCeilRate -public static double GetMinCeilRate(double value, double ceilRate) +public static double GetMinCeilRate(double value, double ceilRate) ### ChartHelper.GetMinDivisibleValue -public static double GetMinDivisibleValue(double min, double ceilRate) +public static double GetMinDivisibleValue(double min, double ceilRate) ### ChartHelper.GetMinLogValue -public static double GetMinLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber) +public static double GetMinLogValue(double value, float logBase, bool isLogBaseE, out int splitNumber) ### ChartHelper.GetOrAddComponent<T> -public static T GetOrAddComponent<T>(GameObject gameObject) where T : Component +public static T GetOrAddComponent<T>(GameObject gameObject) where T : Component ### ChartHelper.GetPointList -public static void GetPointList(ref List<Vector3> posList, Vector3 sp, Vector3 ep, float k = 30f) +public static void GetPointList(ref List<Vector3> posList, Vector3 sp, Vector3 ep, float k = 30f) ### ChartHelper.GetPos -public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false) +public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false) ### ChartHelper.GetPosition -public static Vector3 GetPosition(Vector3 center, float angle, float radius) +public static Vector3 GetPosition(Vector3 center, float angle, float radius) ### ChartHelper.GetSelectColor -public static Color32 GetSelectColor(Color32 color, float rate = 0.8f) +public static Color32 GetSelectColor(Color32 color, float rate = 0.8f) ### ChartHelper.GetVertialDire -public static Vector3 GetVertialDire(Vector3 dire) +public static Vector3 GetVertialDire(Vector3 dire) ### ChartHelper.HideAllObject -public static void HideAllObject(Transform parent, string match = null) +public static void HideAllObject(Transform parent, string match = null) ### ChartHelper.IsActiveByScale -public static bool IsActiveByScale(Image image) +public static bool IsActiveByScale(Image image) -public static bool IsActiveByScale(Transform transform) +public static bool IsActiveByScale(Transform transform) ### ChartHelper.IsClearColor -public static bool IsClearColor(Color color) +public static bool IsClearColor(Color color) ### ChartHelper.IsColorAlphaZero -public static bool IsColorAlphaZero(Color color) +public static bool IsColorAlphaZero(Color color) ### ChartHelper.IsEquals -public static bool IsEquals(float d1, float d2) +public static bool IsEquals(float d1, float d2) ### ChartHelper.IsIngore -public static bool IsIngore(Vector3 pos) +public static bool IsIngore(Vector3 pos) ### ChartHelper.IsInRect -public static bool IsInRect(Vector3 pos, float xMin, float xMax, float yMin, float yMax) +public static bool IsInRect(Vector3 pos, float xMin, float xMax, float yMin, float yMax) ### ChartHelper.IsPointInQuadrilateral -public static bool IsPointInQuadrilateral(Vector3 P, Vector3 A, Vector3 B, Vector3 C, Vector3 D) +public static bool IsPointInQuadrilateral(Vector3 P, Vector3 A, Vector3 B, Vector3 C, Vector3 D) ### ChartHelper.IsValueEqualsColor -public static bool IsValueEqualsColor(Color color1, Color color2) +public static bool IsValueEqualsColor(Color color1, Color color2) ### ChartHelper.IsValueEqualsList<T> -public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2) +public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2) ### ChartHelper.IsValueEqualsString -public static bool IsValueEqualsString(string str1, string str2) +public static bool IsValueEqualsString(string str1, string str2) ### ChartHelper.IsValueEqualsVector2 -public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2) +public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2) ### ChartHelper.IsValueEqualsVector3 -public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2) +public static bool IsValueEqualsVector3(Vector3 v1, Vector3 v2) ### ChartHelper.IsZeroVector -public static bool IsZeroVector(Vector3 pos) +public static bool IsZeroVector(Vector3 pos) ### ChartHelper.ParseFloatFromString -public static List<float> ParseFloatFromString(string jsonData) +public static List<float> ParseFloatFromString(string jsonData) ### ChartHelper.ParseStringFromString -public static List<string> ParseStringFromString(string jsonData) +public static List<string> ParseStringFromString(string jsonData) ### ChartHelper.RemoveComponent<T> -public static void RemoveComponent<T>(GameObject gameObject) +public static void RemoveComponent<T>(GameObject gameObject) ### ChartHelper.RotateRound -public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle) +public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle) ### ChartHelper.SaveAsImage -public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "") +public static Texture2D SaveAsImage(RectTransform rectTransform, Canvas canvas, string imageType = "png", string path = "") ### ChartHelper.SetActive -public static bool SetActive(Image image, bool active) +public static bool SetActive(Image image, bool active) -public static bool SetActive(Text text, bool active) +public static bool SetActive(Text text, bool active) -public static bool SetActive(Transform transform, bool active) +public static bool SetActive(Transform transform, bool active) 通过设置scale实现是否显示,优化性能,减少GC ### ChartHelper.SetBackground -public static void SetBackground(Image background, Background imageStyle) +public static void SetBackground(Image background, Background imageStyle) ### ChartHelper.SetColorOpacity -public static void SetColorOpacity(ref Color32 color, float opacity) +public static void SetColorOpacity(ref Color32 color, float opacity) ## ChartLabel @@ -3095,107 +3095,107 @@ class in XCharts.Runtime / 继承自: [Image](https://docs.unity3d.com/ScriptRef ### ChartLabel.hideIconIfTextEmpty -public bool hideIconIfTextEmpty +public bool hideIconIfTextEmpty ### ChartLabel.isAnimationEnd -public bool isAnimationEnd +public bool isAnimationEnd ### ChartLabel.isIconActive -public bool isIconActive +public bool isIconActive ### ChartLabel.rect -public Rect rect +public Rect rect ### ChartLabel.GetHeight -public float GetHeight() +public float GetHeight() ### ChartLabel.GetPosition -public Vector3 GetPosition() +public Vector3 GetPosition() ### ChartLabel.GetTextHeight -public float GetTextHeight() +public float GetTextHeight() ### ChartLabel.GetTextWidth -public float GetTextWidth() +public float GetTextWidth() ### ChartLabel.GetWidth -public float GetWidth() +public float GetWidth() ### ChartLabel.IsActiveByScale -public bool IsActiveByScale() +public bool IsActiveByScale() ### ChartLabel.SetActive -public void SetActive(bool flag, bool force = false) +public void SetActive(bool flag, bool force = false) ### ChartLabel.SetIcon -public void SetIcon(Image image) +public void SetIcon(Image image) ### ChartLabel.SetIconActive -public void SetIconActive(bool flag) +public void SetIconActive(bool flag) ### ChartLabel.SetIconSize -public void SetIconSize(float width, float height) +public void SetIconSize(float width, float height) ### ChartLabel.SetIconSprite -public void SetIconSprite(Sprite sprite) +public void SetIconSprite(Sprite sprite) ### ChartLabel.SetPadding -public void SetPadding(float[] padding) +public void SetPadding(float[] padding) ### ChartLabel.SetPosition -public void SetPosition(Vector3 position) +public void SetPosition(Vector3 position) ### ChartLabel.SetRectPosition -public void SetRectPosition(Vector3 position) +public void SetRectPosition(Vector3 position) ### ChartLabel.SetRotate -public void SetRotate(float rotate) +public void SetRotate(float rotate) ### ChartLabel.SetSize -public void SetSize(float width, float height) +public void SetSize(float width, float height) ### ChartLabel.SetText -public bool SetText(string text) +public bool SetText(string text) ### ChartLabel.SetTextActive -public void SetTextActive(bool flag) +public void SetTextActive(bool flag) ### ChartLabel.SetTextColor -public void SetTextColor(Color color) +public void SetTextColor(Color color) ### ChartLabel.SetTextPadding -public void SetTextPadding(TextPadding padding) +public void SetTextPadding(TextPadding padding) ### ChartLabel.SetTextRotate -public void SetTextRotate(float rotate) +public void SetTextRotate(float rotate) ### ChartLabel.UpdateIcon -public void UpdateIcon(IconStyle iconStyle, Sprite sprite = null, Color color = default(Color)) +public void UpdateIcon(IconStyle iconStyle, Sprite sprite = null, Color color = default(Color)) ## ChartObject @@ -3203,7 +3203,7 @@ class in XCharts.Runtime ### ChartObject.Destroy -public virtual void Destroy() +public virtual void Destroy() ## ChartText @@ -3211,86 +3211,86 @@ class in XCharts.Runtime ### ChartText.tmpText -public TextMeshProUGUI tmpText +public TextMeshProUGUI tmpText ### ChartText.ChartText -public ChartText(GameObject textParent) +public ChartText(GameObject textParent) ### ChartText.GetColor -public Color GetColor() +public Color GetColor() ### ChartText.GetPreferredHeight -public float GetPreferredHeight() +public float GetPreferredHeight() ### ChartText.GetPreferredText -public string GetPreferredText(string content, string suffix, float maxWidth) +public string GetPreferredText(string content, string suffix, float maxWidth) ### ChartText.GetPreferredWidth -public float GetPreferredWidth() +public float GetPreferredWidth() ### ChartText.GetText -public string GetText() +public string GetText() ### ChartText.SetActive -public void SetActive(bool flag) +public void SetActive(bool flag) ### ChartText.SetAlignment -public void SetAlignment(TextAnchor alignment) +public void SetAlignment(TextAnchor alignment) ### ChartText.SetColor -public void SetColor(Color color) +public void SetColor(Color color) ### ChartText.SetFont -public void SetFont(TMP_FontAsset font) +public void SetFont(TMP_FontAsset font) ### ChartText.SetFontAndSizeAndStyle -public void SetFontAndSizeAndStyle(TextStyle textStyle, ComponentTheme theme) +public void SetFontAndSizeAndStyle(TextStyle textStyle, ComponentTheme theme) ### ChartText.SetFontSize -public void SetFontSize(float fontSize) +public void SetFontSize(float fontSize) ### ChartText.SetFontStyle -public void SetFontStyle(FontStyle fontStyle) +public void SetFontStyle(FontStyle fontStyle) ### ChartText.SetLineSpacing -public void SetLineSpacing(float lineSpacing) +public void SetLineSpacing(float lineSpacing) ### ChartText.SetLocalEulerAngles -public void SetLocalEulerAngles(Vector3 position) +public void SetLocalEulerAngles(Vector3 position) ### ChartText.SetLocalPosition -public void SetLocalPosition(Vector3 position) +public void SetLocalPosition(Vector3 position) ### ChartText.SetRectPosition -public void SetRectPosition(Vector3 position) +public void SetRectPosition(Vector3 position) ### ChartText.SetSizeDelta -public void SetSizeDelta(Vector2 sizeDelta) +public void SetSizeDelta(Vector2 sizeDelta) ### ChartText.SetText -public void SetText(string text) +public void SetText(string text) ## CheckHelper @@ -3298,7 +3298,7 @@ class in XCharts.Runtime ### CheckHelper.CheckChart -public static string CheckChart(BaseChart chart) +public static string CheckChart(BaseChart chart) ## ChildComponent @@ -3307,68 +3307,68 @@ class in XCharts.Runtime / 子类: [AnimationStyle](#animationstyle),[AxisAnimat ### ChildComponent.anyDirty -public bool anyDirty +public bool anyDirty 需要重绘图表或重新初始化组件。 ### ChildComponent.componentDirty -public virtual bool componentDirty +public virtual bool componentDirty 组件重新初始化标记。 ### ChildComponent.gameObject -public GameObject gameObject +public GameObject gameObject ### ChildComponent.index -public virtual int index +public virtual int index ### ChildComponent.painter -public Painter painter +public Painter painter ### ChildComponent.refreshComponent -public Action refreshComponent +public Action refreshComponent ### ChildComponent.vertsDirty -public virtual bool vertsDirty +public virtual bool vertsDirty 图表重绘标记。 ### ChildComponent.ClearComponentDirty -public virtual void ClearComponentDirty() +public virtual void ClearComponentDirty() ### ChildComponent.ClearDirty -public virtual void ClearDirty() +public virtual void ClearDirty() ### ChildComponent.ClearVerticesDirty -public virtual void ClearVerticesDirty() +public virtual void ClearVerticesDirty() ### ChildComponent.IsComponentDirty -public static bool IsComponentDirty(ChildComponent component) +public static bool IsComponentDirty(ChildComponent component) ### ChildComponent.IsVertsDirty -public static bool IsVertsDirty(ChildComponent component) +public static bool IsVertsDirty(ChildComponent component) ### ChildComponent.SetAllDirty -public virtual void SetAllDirty() +public virtual void SetAllDirty() ### ChildComponent.SetComponentDirty -public virtual void SetComponentDirty() +public virtual void SetComponentDirty() ### ChildComponent.SetVerticesDirty -public virtual void SetVerticesDirty() +public virtual void SetVerticesDirty() ## ColorUtil @@ -3376,7 +3376,7 @@ class in XCharts.Runtime ### ColorUtil.GetColor -public static Color32 GetColor(string hexColorStr) +public static Color32 GetColor(string hexColorStr) 将字符串颜色值转成Color。 ## Comment @@ -3387,25 +3387,25 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IProperty ### Comment.items -public List<CommentItem> items +public List<CommentItem> items 注解项。每个注解组件可以设置多个注解项。 ### Comment.show -public bool show +public bool show 是否显示注解组件。 ### Comment.GetLabelStyle -public LabelStyle GetLabelStyle(int index) +public LabelStyle GetLabelStyle(int index) ### Comment.GetMarkStyle -public CommentMarkStyle GetMarkStyle(int index) +public CommentMarkStyle GetMarkStyle(int index) ### Comment.OnChanged -public void OnChanged() +public void OnChanged() 参数变更时的回调处理。 ## CommentItem @@ -3416,22 +3416,22 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### CommentItem.content -public string content +public string content 注解的文本内容。支持模板参数,可以参考Tooltip的itemFormatter。 ### CommentItem.markRect -public Rect markRect +public Rect markRect 注解区域。 ### CommentItem.markStyle -public CommentMarkStyle markStyle +public CommentMarkStyle markStyle 注解标记区域样式。 ### CommentItem.show -public bool show +public bool show 是否显示当前注解项。 ## CommentMarkStyle @@ -3442,12 +3442,12 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### CommentMarkStyle.lineStyle -public LineStyle lineStyle +public LineStyle lineStyle 线条样式。 ### CommentMarkStyle.show -public bool show +public bool show 是否显示当前注解项。 ## ComponentHandlerAttribute @@ -3456,7 +3456,7 @@ class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/Scrip ### ComponentHandlerAttribute.ComponentHandlerAttribute -public ComponentHandlerAttribute(Type handler, bool allowMultiple, int order = 3) +public ComponentHandlerAttribute(Type handler, bool allowMultiple, int order = 3) ## ComponentHelper @@ -3465,23 +3465,23 @@ class in XCharts.Runtime ### ComponentHelper.GetAngleAxis -public static AngleAxis GetAngleAxis(List<MainComponent> components, int polarIndex) +public static AngleAxis GetAngleAxis(List<MainComponent> components, int polarIndex) ### ComponentHelper.GetRadiusAxis -public static RadiusAxis GetRadiusAxis(List<MainComponent> components, int polarIndex) +public static RadiusAxis GetRadiusAxis(List<MainComponent> components, int polarIndex) ### ComponentHelper.GetXAxisOnZeroOffset -public static float GetXAxisOnZeroOffset(List<MainComponent> components, XAxis axis) +public static float GetXAxisOnZeroOffset(List<MainComponent> components, XAxis axis) ### ComponentHelper.GetYAxisOnZeroOffset -public static float GetYAxisOnZeroOffset(List<MainComponent> components, YAxis axis) +public static float GetYAxisOnZeroOffset(List<MainComponent> components, YAxis axis) ### ComponentHelper.IsAnyCategoryOfYAxis -public static bool IsAnyCategoryOfYAxis(List<MainComponent> components) +public static bool IsAnyCategoryOfYAxis(List<MainComponent> components) ## ComponentTheme @@ -3489,15 +3489,15 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类 ### ComponentTheme.ComponentTheme -public ComponentTheme(ThemeType theme) +public ComponentTheme(ThemeType theme) ### ComponentTheme.Copy -public virtual void Copy(ComponentTheme theme) +public virtual void Copy(ComponentTheme theme) ### ComponentTheme.Reset -public virtual void Reset(ComponentTheme defaultTheme) +public virtual void Reset(ComponentTheme defaultTheme) ## CoordOptionsAttribute @@ -3505,15 +3505,15 @@ class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/Scrip ### CoordOptionsAttribute.Contains<T> -public bool Contains<T>() where T : CoordSystem +public bool Contains<T>() where T : CoordSystem ### CoordOptionsAttribute.CoordOptionsAttribute -public CoordOptionsAttribute(Type coord, Type coord2) +public CoordOptionsAttribute(Type coord, Type coord2) -public CoordOptionsAttribute(Type coord, Type coord2, Type coord3) +public CoordOptionsAttribute(Type coord, Type coord2, Type coord3) -public CoordOptionsAttribute(Type coord, Type coord2, Type coord3, Type coord4) +public CoordOptionsAttribute(Type coord, Type coord2, Type coord3, Type coord4) ## CoordSystem @@ -3534,70 +3534,70 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 ### DataZoom.realtime -public bool realtime +public bool realtime 拖动时,是否实时更新系列的视图。如果设置为 false,则只在拖拽结束的时候更新。默认为true,暂不支持修改。 ### DataZoom.startEndFunction -public CustomDataZoomStartEndFunction startEndFunction +public CustomDataZoomStartEndFunction startEndFunction start和end变更委托。 ### DataZoom.GetBackgroundColor -public Color32 GetBackgroundColor(Color32 themeColor) +public Color32 GetBackgroundColor(Color32 themeColor) ### DataZoom.GetBorderColor -public Color32 GetBorderColor(Color32 themeColor) +public Color32 GetBorderColor(Color32 themeColor) ### DataZoom.GetFillerColor -public Color32 GetFillerColor(Color32 themeColor) +public Color32 GetFillerColor(Color32 themeColor) ### DataZoom.IsContainsAxis -public bool IsContainsAxis(Axis axis) +public bool IsContainsAxis(Axis axis) ### DataZoom.IsContainsXAxis -public bool IsContainsXAxis(int index) +public bool IsContainsXAxis(int index) ### DataZoom.IsContainsYAxis -public bool IsContainsYAxis(int index) +public bool IsContainsYAxis(int index) ### DataZoom.IsInEndZoom -public bool IsInEndZoom(Vector2 pos) +public bool IsInEndZoom(Vector2 pos) 给定的坐标是否在结束活动条触发区域内 ### DataZoom.IsInMarqueeArea -public bool IsInMarqueeArea(Vector2 pos) +public bool IsInMarqueeArea(Vector2 pos) ### DataZoom.IsInSelectedZoom -public bool IsInSelectedZoom(int totalIndex, int index, bool invert) +public bool IsInSelectedZoom(int totalIndex, int index, bool invert) ### DataZoom.IsInStartZoom -public bool IsInStartZoom(Vector2 pos) +public bool IsInStartZoom(Vector2 pos) 给定的坐标是否在开始活动条触发区域内 ### DataZoom.IsInZoom -public bool IsInZoom(Vector2 pos) +public bool IsInZoom(Vector2 pos) 给定的坐标是否在缩放区域内 ### DataZoom.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() ### DataZoom.UpdateRuntimeData -public void UpdateRuntimeData(BaseChart chart) +public void UpdateRuntimeData(BaseChart chart) ## DataZoom.FilterMode @@ -3629,65 +3629,65 @@ class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentconte ### DataZoomContext.endValue -public double endValue +public double endValue 运行时实际范围的结束值 ### DataZoomContext.height -public float height +public float height ### DataZoomContext.invert -public bool invert +public bool invert ### DataZoomContext.isCoordinateDrag -public bool isCoordinateDrag +public bool isCoordinateDrag ### DataZoomContext.isDrag -public bool isDrag +public bool isDrag ### DataZoomContext.isEndDrag -public bool isEndDrag +public bool isEndDrag ### DataZoomContext.isMarqueeDrag -public bool isMarqueeDrag +public bool isMarqueeDrag ### DataZoomContext.isStartDrag -public bool isStartDrag +public bool isStartDrag ### DataZoomContext.marqueeEndPos -public Vector3 marqueeEndPos +public Vector3 marqueeEndPos ### DataZoomContext.marqueeRect -public Rect marqueeRect +public Rect marqueeRect ### DataZoomContext.marqueeStartPos -public Vector3 marqueeStartPos +public Vector3 marqueeStartPos ### DataZoomContext.startValue -public double startValue +public double startValue 运行时实际范围的开始值 ### DataZoomContext.width -public float width +public float width ### DataZoomContext.x -public float x +public float x ### DataZoomContext.y -public float y +public float y ## DataZoomHelper @@ -3695,11 +3695,11 @@ class in XCharts.Runtime ### DataZoomHelper.UpdateDataZoomRuntimeStartEndValue -public static void UpdateDataZoomRuntimeStartEndValue(DataZoom dataZoom, Serie serie) +public static void UpdateDataZoomRuntimeStartEndValue(DataZoom dataZoom, Serie serie) ### DataZoomHelper.UpdateDataZoomRuntimeStartEndValue<T> -public static void UpdateDataZoomRuntimeStartEndValue<T>(BaseChart chart) where T : Serie +public static void UpdateDataZoomRuntimeStartEndValue<T>(BaseChart chart) where T : Serie ## DataZoomTheme @@ -3707,11 +3707,11 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) ### DataZoomTheme.Copy -public void Copy(DataZoomTheme theme) +public void Copy(DataZoomTheme theme) ### DataZoomTheme.DataZoomTheme -public DataZoomTheme(ThemeType theme) : base(theme) +public DataZoomTheme(ThemeType theme) : base(theme) ## DateTimeUtil @@ -3719,22 +3719,22 @@ class in XCharts.Runtime ### DateTimeUtil.GetDateTime -public static DateTime GetDateTime(double timestamp, bool local = true) +public static DateTime GetDateTime(double timestamp, bool local = true) ### DateTimeUtil.GetDefaultDateTimeString -public static string GetDefaultDateTimeString(int timestamp, double range = 0) +public static string GetDefaultDateTimeString(int timestamp, double range = 0) ### DateTimeUtil.GetTimestamp -public static int GetTimestamp(DateTime time, bool local = false) +public static int GetTimestamp(DateTime time, bool local = false) -public static int GetTimestamp(string dateTime, bool local = false) +public static int GetTimestamp(string dateTime, bool local = false) ### DateTimeUtil.IsDateOrTimeRegex -public static bool IsDateOrTimeRegex(string regex, ref bool date, ref string formatter) +public static bool IsDateOrTimeRegex(string regex, ref bool date, ref string formatter) ## DebugInfo @@ -3743,41 +3743,41 @@ class in XCharts.Runtime ### DebugInfo.avgFps -public float avgFps +public float avgFps 平均帧率。 ### DebugInfo.foldSeries -public bool foldSeries +public bool foldSeries 是否在Inspector上折叠Serie。 ### DebugInfo.fps -public float fps +public float fps 当前帧率。 ### DebugInfo.refreshCount -public int refreshCount +public int refreshCount 图表每秒刷新次数。 ### DebugInfo.show -public bool show +public bool show 是否显示Debug组件。 ### DebugInfo.showAllChartObject -public bool showAllChartObject +public bool showAllChartObject 是否在Hierarchy试图显示所有chart下的节点。 ### DebugInfo.Init -public void Init(BaseChart chart) +public void Init(BaseChart chart) ### DebugInfo.Update -public void Update() +public void Update() ## DefaultAnimationAttribute @@ -3785,7 +3785,7 @@ class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/Scrip ### DefaultAnimationAttribute.DefaultAnimationAttribute -public DefaultAnimationAttribute(AnimationType handler, bool enableSerieDataAddedAnimation) +public DefaultAnimationAttribute(AnimationType handler, bool enableSerieDataAddedAnimation) ## DefaultTooltipAttribute @@ -3794,7 +3794,7 @@ class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/Scrip ### DefaultTooltipAttribute.DefaultTooltipAttribute -public DefaultTooltipAttribute(Tooltip.Type type, Tooltip.Trigger trigger) +public DefaultTooltipAttribute(Tooltip.Type type, Tooltip.Trigger trigger) ## DefineSymbolsUtil @@ -3802,11 +3802,11 @@ class in XCharts.Runtime ### DefineSymbolsUtil.AddGlobalDefine -public static void AddGlobalDefine(string symbol) +public static void AddGlobalDefine(string symbol) ### DefineSymbolsUtil.RemoveGlobalDefine -public static void RemoveGlobalDefine(string symbol) +public static void RemoveGlobalDefine(string symbol) ## EffectScatter @@ -3814,7 +3814,7 @@ class in XCharts.Runtime / 继承自: [BaseScatter](#basescatter) ### EffectScatter.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## EmphasisStyle @@ -3854,7 +3854,7 @@ class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle) ### EndLabelStyle.EndLabelStyle -public EndLabelStyle() +public EndLabelStyle() ## FormatterHelper @@ -3862,16 +3862,16 @@ class in XCharts.Runtime ### FormatterHelper.NeedFormat -public static bool NeedFormat(string content) +public static bool NeedFormat(string content) ### FormatterHelper.ReplaceAxisLabelContent -public static void ReplaceAxisLabelContent(ref string content, string value) +public static void ReplaceAxisLabelContent(ref string content, string value) ### FormatterHelper.TrimAndReplaceLine -public static string TrimAndReplaceLine(string content) +public static string TrimAndReplaceLine(string content) ## GraphData @@ -3882,82 +3882,82 @@ class in XCharts.Runtime ### GraphData.AddEdge -public GraphEdge AddEdge(string nodeId1, string nodeId2, double value) +public GraphEdge AddEdge(string nodeId1, string nodeId2, double value) ### GraphData.AddNode -public GraphNode AddNode(string nodeId, string nodeName, int dataIndex, double value) +public GraphNode AddNode(string nodeId, string nodeName, int dataIndex, double value) ### GraphData.BreadthFirstTraverse -public void BreadthFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse) +public void BreadthFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse) ### GraphData.Clear -public void Clear() +public void Clear() ### GraphData.DeepFirstTraverse -public void DeepFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse) +public void DeepFirstTraverse(GraphNode startNode, System.Action<GraphNode> onTraverse) ### GraphData.EachNode -public void EachNode(System.Action<GraphNode> onEach) +public void EachNode(System.Action<GraphNode> onEach) ### GraphData.ExpandAllNodes -public void ExpandAllNodes(bool flag, int level = -1) +public void ExpandAllNodes(bool flag, int level = -1) ### GraphData.ExpandNode -public void ExpandNode(string nodeId, bool flag) +public void ExpandNode(string nodeId, bool flag) ### GraphData.GetDepthNodes -public List<List<GraphNode>> GetDepthNodes() +public List<List<GraphNode>> GetDepthNodes() ### GraphData.GetEdge -public GraphEdge GetEdge(string nodeId1, string nodeId2) +public GraphEdge GetEdge(string nodeId1, string nodeId2) ### GraphData.GetExpandedNodesCount -public static int GetExpandedNodesCount(List<GraphNode> nodes) +public static int GetExpandedNodesCount(List<GraphNode> nodes) ### GraphData.GetMaxDepth -public int GetMaxDepth() +public int GetMaxDepth() ### GraphData.GetNode -public GraphNode GetNode(string nodeId) +public GraphNode GetNode(string nodeId) ### GraphData.GetNodeDepth -// public void GetNodeDepth(GraphNode node, ref int depth, int recursiveCount = 0) +// public void GetNodeDepth(GraphNode node, ref int depth, int recursiveCount = 0) -public int GetNodeDepth(GraphNode node, int recursiveCount = 0) +public int GetNodeDepth(GraphNode node, int recursiveCount = 0) ### GraphData.GetNodesTotalValue -public static double GetNodesTotalValue(List<GraphNode> nodes) +public static double GetNodesTotalValue(List<GraphNode> nodes) ### GraphData.GetRootNodes -public List<GraphNode> GetRootNodes() +public List<GraphNode> GetRootNodes() ### GraphData.GraphData -public GraphData(bool directed) +public GraphData(bool directed) ### GraphData.IsAllNodeInZeroPosition -public bool IsAllNodeInZeroPosition() +public bool IsAllNodeInZeroPosition() ### GraphData.Refresh -public void Refresh() +public void Refresh() ## GraphEdge @@ -3967,11 +3967,11 @@ class in XCharts.Runtime ### GraphEdge.GraphEdge -public GraphEdge(GraphNode node1, GraphNode node2, double value) +public GraphEdge(GraphNode node1, GraphNode node2, double value) ### GraphEdge.IsPointInEdge -public bool IsPointInEdge(Vector2 point) +public bool IsPointInEdge(Vector2 point) ## GraphNode @@ -3981,35 +3981,35 @@ class in XCharts.Runtime ### GraphNode.degree -public int degree +public int degree ### GraphNode.inDegree -public int inDegree +public int inDegree ### GraphNode.outDegree -public int outDegree +public int outDegree ### GraphNode.Expand -public void Expand(bool flag) +public void Expand(bool flag) ### GraphNode.GraphNode -public GraphNode(string id, string name, int dataIndex) +public GraphNode(string id, string name, int dataIndex) ### GraphNode.IsAllInEdgesCollapsed -public bool IsAllInEdgesCollapsed() +public bool IsAllInEdgesCollapsed() ### GraphNode.IsAnyInEdgesExpanded -public bool IsAnyInEdgesExpanded() +public bool IsAnyInEdgesExpanded() ### GraphNode.ToString -public override string ToString() +public override string ToString() ## GridCoord @@ -4019,13 +4019,13 @@ Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart ### GridCoord.BoundaryPoint -public bool BoundaryPoint(Vector3 sp, Vector3 ep, ref List<Vector3> point) +public bool BoundaryPoint(Vector3 sp, Vector3 ep, ref List<Vector3> point) 给定的线段和Grid边界的交点 ### GridCoord.Clamp -public void Clamp(ref Vector3 pos) +public void Clamp(ref Vector3 pos) > 从 `v3.7.0` 开始支持 @@ -4033,7 +4033,7 @@ public void Clamp(ref Vector3 pos) ### GridCoord.ClampX -public void ClampX(ref Vector3 pos) +public void ClampX(ref Vector3 pos) > 从 `v3.7.0` 开始支持 @@ -4041,7 +4041,7 @@ public void ClampX(ref Vector3 pos) ### GridCoord.ClampY -public void ClampY(ref Vector3 pos) +public void ClampY(ref Vector3 pos) > 从 `v3.7.0` 开始支持 @@ -4049,10 +4049,10 @@ public void ClampY(ref Vector3 pos) ### GridCoord.Contains -public bool Contains(float x, float y) +public bool Contains(float x, float y) 给定的位置是否在网格内。 -public bool Contains(Vector3 pos, bool isYAxis) +public bool Contains(Vector3 pos, bool isYAxis) > 从 `v3.7.0` 开始支持 @@ -4061,7 +4061,7 @@ public bool Contains(Vector3 pos, bool isYAxis) ### GridCoord.ContainsX -public bool ContainsX(float x) +public bool ContainsX(float x) > 从 `v3.7.0` 开始支持 @@ -4069,7 +4069,7 @@ public bool ContainsX(float x) ### GridCoord.ContainsY -public bool ContainsY(float y) +public bool ContainsY(float y) > 从 `v3.7.0` 开始支持 @@ -4077,12 +4077,12 @@ public bool ContainsY(float y) ### GridCoord.IsPointerEnter -public bool IsPointerEnter() +public bool IsPointerEnter() 指针是否在网格内。 ### GridCoord.NotAnyIntersect -public bool NotAnyIntersect(Vector3 sp, Vector3 ep) +public bool NotAnyIntersect(Vector3 sp, Vector3 ep) > 从 `v3.10.0` 开始支持 @@ -4090,7 +4090,7 @@ public bool NotAnyIntersect(Vector3 sp, Vector3 ep) ### GridCoord.UpdateRuntimeData -public void UpdateRuntimeData(BaseChart chart) +public void UpdateRuntimeData(BaseChart chart) ## GridCoord3D @@ -4102,32 +4102,32 @@ Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart ### GridCoord3D.Clamp -public void Clamp(ref Vector3 pos) +public void Clamp(ref Vector3 pos) 将位置限制在网格内。 ### GridCoord3D.Contains -public bool Contains(Vector3 pos) +public bool Contains(Vector3 pos) 给定的位置是否在网格内。 ### GridCoord3D.IsLeft -public bool IsLeft() +public bool IsLeft() The opening of the coordinate system faces to the left. 坐标系开口朝向左边。 ### GridCoord3D.IsPointerEnter -public bool IsPointerEnter() +public bool IsPointerEnter() 指针是否在网格内。 ### GridCoord3D.NotAnyIntersect -public bool NotAnyIntersect(Vector3 sp, Vector3 ep) +public bool NotAnyIntersect(Vector3 sp, Vector3 ep) 判断给定的线段是否与Grid边界是否完全不会相交。 ### GridCoord3D.UpdateRuntimeData -public void UpdateRuntimeData(BaseChart chart) +public void UpdateRuntimeData(BaseChart chart) ## GridCoord3DContext @@ -4147,7 +4147,7 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IUpdateRu ### GridLayout.UpdateRuntimeData -public void UpdateRuntimeData(BaseChart chart) +public void UpdateRuntimeData(BaseChart chart) ## GridLayoutContext @@ -4159,15 +4159,15 @@ class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ine ### Heatmap.containerIndex -public int containerIndex +public int containerIndex ### Heatmap.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### Heatmap.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## HeatmapChart @@ -4177,7 +4177,7 @@ class in XCharts.Runtime / 继承自: [BaseChart](#basechart) ### HeatmapChart.DefaultCountHeatmapChart -public void DefaultCountHeatmapChart() +public void DefaultCountHeatmapChart() 默认计数热力图。 ## HeatmapType @@ -4197,65 +4197,65 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### IconStyle.align -public Align align +public Align align 水平方向对齐方式。 ### IconStyle.autoHideWhenLabelEmpty -public bool autoHideWhenLabelEmpty +public bool autoHideWhenLabelEmpty 当label内容为空时是否自动隐藏图标 ### IconStyle.color -public Color color +public Color color 图标颜色。 ### IconStyle.height -public float height +public float height 图标高。 ### IconStyle.layer -public Layer layer +public Layer layer 显示在上层还是在下层。 ### IconStyle.offset -public Vector3 offset +public Vector3 offset 图标偏移。 ### IconStyle.show -public bool show +public bool show 是否显示图标。 ### IconStyle.sprite -public Sprite sprite +public Sprite sprite 图标的图片。 ### IconStyle.type -public Image.Type type +public Image.Type type 图片的显示类型。 ### IconStyle.width -public float width +public float width 图标宽。 ### IconStyle.Clone -public IconStyle Clone() +public IconStyle Clone() ### IconStyle.Copy -public void Copy(IconStyle iconStyle) +public void Copy(IconStyle iconStyle) ### IconStyle.Reset -public void Reset() +public void Reset() ## IconStyle.Layer @@ -4272,7 +4272,7 @@ class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/Scrip ### IgnoreDoc.IgnoreDoc -public IgnoreDoc() +public IgnoreDoc() ## ImageStyle @@ -4280,50 +4280,50 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieC ### ImageStyle.autoColor -public bool autoColor +public bool autoColor 是否自动颜色。 ### ImageStyle.color -public Color color +public Color color 图标颜色。 ### ImageStyle.height -public float height +public float height 图标高。 ### ImageStyle.show -public bool show +public bool show 是否显示图标。 ### ImageStyle.sprite -public Sprite sprite +public Sprite sprite 图标的图片。 ### ImageStyle.type -public Image.Type type +public Image.Type type 图片的显示类型。 ### ImageStyle.width -public float width +public float width 图标宽。 ### ImageStyle.Clone -public ImageStyle Clone() +public ImageStyle Clone() ### ImageStyle.Copy -public void Copy(ImageStyle imageStyle) +public void Copy(ImageStyle imageStyle) ### ImageStyle.Reset -public void Reset() +public void Reset() ## Indicator @@ -4333,94 +4333,94 @@ class in XCharts.Runtime ### Indicator.indicatorList -public List<Indicator> indicatorList +public List<Indicator> indicatorList 指示器列表。 ### Indicator.max -public double max +public double max 指示器的最大值,默认为 0 无限制。 ### Indicator.min -public double min +public double min 指示器的最小值,默认为 0 无限制。 ### Indicator.name -public string name +public string name 指示器名称。 ### Indicator.show -public bool show +public bool show 是否显示雷达坐标系组件。 ### Indicator.text -public Text text +public Text text 指示器的文本组件。 ### Indicator.AddIndicator -public RadarCoord.Indicator AddIndicator(string name, double min, double max) +public RadarCoord.Indicator AddIndicator(string name, double min, double max) ### Indicator.AddIndicatorList -public void AddIndicatorList(List<string> nameList, double min = 0, double max = 0) +public void AddIndicatorList(List<string> nameList, double min = 0, double max = 0) > 从 `v3.3.0` 开始支持 ### Indicator.ClearData -public override void ClearData() +public override void ClearData() ### Indicator.GetFormatterIndicatorContent -public string GetFormatterIndicatorContent(string indicatorName) +public string GetFormatterIndicatorContent(string indicatorName) ### Indicator.GetIndicator -public RadarCoord.Indicator GetIndicator(int indicatorIndex) +public RadarCoord.Indicator GetIndicator(int indicatorIndex) ### Indicator.GetIndicatorMax -public double GetIndicatorMax(int index) +public double GetIndicatorMax(int index) ### Indicator.GetIndicatorMin -public double GetIndicatorMin(int index) +public double GetIndicatorMin(int index) ### Indicator.GetIndicatorName -public string GetIndicatorName(int indicatorIndex) +public string GetIndicatorName(int indicatorIndex) ### Indicator.GetIndicatorPosition -public Vector3 GetIndicatorPosition(int index) +public Vector3 GetIndicatorPosition(int index) ### Indicator.IsInIndicatorRange -public bool IsInIndicatorRange(int index, double value) +public bool IsInIndicatorRange(int index, double value) ### Indicator.IsInRange -public bool IsInRange(double value) +public bool IsInRange(double value) ### Indicator.IsPointerEnter -public bool IsPointerEnter() +public bool IsPointerEnter() ### Indicator.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() ### Indicator.UpdateIndicator -public bool UpdateIndicator(int indicatorIndex, string name, double min, double max) +public bool UpdateIndicator(int indicatorIndex, string name, double min, double max) ## INeedSerieContainer @@ -4432,11 +4432,11 @@ class in XCharts.Runtime ### InputHelper.GetKeyDown -public static bool GetKeyDown(KeyCode keyCode) +public static bool GetKeyDown(KeyCode keyCode) ### InputHelper.GetTouch -public static Touch GetTouch(int v) +public static Touch GetTouch(int v) ## InteractData @@ -4444,49 +4444,49 @@ class in XCharts.Runtime ### InteractData.Reset -public void Reset() +public void Reset() ### InteractData.SetColor -public void SetColor(ref bool needInteract, Color32 color, Color32 toColor) +public void SetColor(ref bool needInteract, Color32 color, Color32 toColor) ### InteractData.SetPosition -public void SetPosition(ref bool needInteract, Vector3 pos) +public void SetPosition(ref bool needInteract, Vector3 pos) ### InteractData.SetValue -public void SetValue(ref bool needInteract, float value, bool previousValueZero = false) +public void SetValue(ref bool needInteract, float value, bool previousValueZero = false) ### InteractData.SetValueAndColor -public void SetValueAndColor(ref bool needInteract, float value, Color32 color, Color32 toColor) +public void SetValueAndColor(ref bool needInteract, float value, Color32 color, Color32 toColor) ### InteractData.ToString -public override string ToString() +public override string ToString() ### InteractData.TryGetColor -public bool TryGetColor(ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250) +public bool TryGetColor(ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250) ### InteractData.TryGetPosition -public bool TryGetPosition(ref Vector3 pos, ref bool interacting, float animationDuration = 250) +public bool TryGetPosition(ref Vector3 pos, ref bool interacting, float animationDuration = 250) ### InteractData.TryGetValue -public bool TryGetValue(ref float value, ref bool interacting, float animationDuration = 250) +public bool TryGetValue(ref float value, ref bool interacting, float animationDuration = 250) ### InteractData.TryGetValueAndColor -public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref bool interacting, float animationDuration = 250) +public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref bool interacting, float animationDuration = 250) -public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250) +public bool TryGetValueAndColor(ref float value, ref Vector3 pos, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250) ## IPropertyChanged @@ -4523,41 +4523,41 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieD ### ItemStyle.GetBorderColor -public Color32 GetBorderColor(Color32 defaultColor) +public Color32 GetBorderColor(Color32 defaultColor) ### ItemStyle.GetBorderColor0 -public Color32 GetBorderColor0(Color32 defaultColor) +public Color32 GetBorderColor0(Color32 defaultColor) ### ItemStyle.GetColor -public Color32 GetColor(Color32 defaultColor) +public Color32 GetColor(Color32 defaultColor) ### ItemStyle.GetColor0 -public Color32 GetColor0(Color32 defaultColor) +public Color32 GetColor0(Color32 defaultColor) ### ItemStyle.GetGradientColor -public Color32 GetGradientColor(float value, Color32 defaultColor) +public Color32 GetGradientColor(float value, Color32 defaultColor) ### ItemStyle.GetToColor -public Color32 GetToColor() +public Color32 GetToColor() ### ItemStyle.IsNeedCorner -public bool IsNeedCorner() +public bool IsNeedCorner() ### ItemStyle.IsNeedGradient -public bool IsNeedGradient() +public bool IsNeedGradient() ### ItemStyle.Reset -public void Reset() +public void Reset() ## IUpdateRuntimeData @@ -4569,15 +4569,15 @@ class in XCharts.Runtime ### JsonUtil.GetJsonArray<T> -public static T[] GetJsonArray<T>(string json) +public static T[] GetJsonArray<T>(string json) ### JsonUtil.GetJsonObject<T> -public static T GetJsonObject<T>(string json) +public static T GetJsonObject<T>(string json) ### JsonUtil.GetWebJson<T> -public static IEnumerator GetWebJson<T>(string url, Action<T> callback) +public static IEnumerator GetWebJson<T>(string url, Action<T> callback) ## LabelLine @@ -4588,15 +4588,15 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieC ### LabelLine.GetEndSymbolOffset -public Vector3 GetEndSymbolOffset() +public Vector3 GetEndSymbolOffset() ### LabelLine.GetStartSymbolOffset -public Vector3 GetStartSymbolOffset() +public Vector3 GetStartSymbolOffset() ### LabelLine.Reset -public void Reset() +public void Reset() ## LabelLine.LineType @@ -4618,45 +4618,45 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieC ### LabelStyle.Clone -public virtual LabelStyle Clone() +public virtual LabelStyle Clone() ### LabelStyle.Copy -public virtual void Copy(LabelStyle label) +public virtual void Copy(LabelStyle label) ### LabelStyle.GetColor -public Color GetColor(Color defaultColor) +public Color GetColor(Color defaultColor) ### LabelStyle.GetFormatterContent -public virtual string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false) +public virtual string GetFormatterContent(int labelIndex, double value, double minValue, double maxValue, bool isLog = false) ### LabelStyle.GetFormatterDateTime -public string GetFormatterDateTime(int labelIndex, double value, double minValue, double maxValue) +public string GetFormatterDateTime(int labelIndex, double value, double minValue, double maxValue) ### LabelStyle.GetOffset -public Vector3 GetOffset(float radius) +public Vector3 GetOffset(float radius) ### LabelStyle.IsAutoSize -public bool IsAutoSize() +public bool IsAutoSize() ### LabelStyle.IsDefaultPosition -public bool IsDefaultPosition(Position position) +public bool IsDefaultPosition(Position position) ### LabelStyle.IsInside -public bool IsInside() +public bool IsInside() 是否在内部。 ### LabelStyle.Reset -public void Reset() +public void Reset() ## LabelStyle.Position @@ -4686,15 +4686,15 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co ### Lang.GetCandlestickDimensionName -public string GetCandlestickDimensionName(int i) +public string GetCandlestickDimensionName(int i) ### Lang.GetDay -public string GetDay(int day) +public string GetDay(int day) ### Lang.GetMonthAbbr -public string GetMonthAbbr(int month) +public string GetMonthAbbr(int month) ## LangCandlestick @@ -4702,7 +4702,7 @@ class in XCharts.Runtime ### LangCandlestick.List<string>() -public List<string> dimensionNames = new List<string>() +public List<string> dimensionNames = new List<string>() ## LangTime @@ -4710,13 +4710,13 @@ class in XCharts.Runtime ### LangTime.List<string> -public List<string> dayOfMonth = new List<string>() +public List<string> dayOfMonth = new List<string>() -public List<string> dayOfWeek = new List<string>() +public List<string> dayOfWeek = new List<string>() -public List<string> dayOfWeekAbbr = new List<string>() +public List<string> dayOfWeekAbbr = new List<string>() -public List<string> monthAbbr = new List<string>() +public List<string> monthAbbr = new List<string>() ## LayerHelper @@ -4725,11 +4725,11 @@ class in XCharts.Runtime ### LayerHelper.IsFixedWidthHeight -public static bool IsFixedWidthHeight(RectTransform rt) +public static bool IsFixedWidthHeight(RectTransform rt) ### LayerHelper.IsStretchPivot -public static bool IsStretchPivot(RectTransform rt) +public static bool IsStretchPivot(RectTransform rt) ## Legend @@ -4739,79 +4739,79 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IProperty ### Legend.vertsDirty -public override bool vertsDirty +public override bool vertsDirty 图表是否需要刷新(图例组件不需要刷新图表) ### Legend.AddData -public void AddData(string name) +public void AddData(string name) 添加图例。 ### Legend.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### Legend.ClearData -public override void ClearData() +public override void ClearData() 清空。 ### Legend.ContainsData -public bool ContainsData(string name) +public bool ContainsData(string name) 是否包括由指定名字的图例 ### Legend.GetColor -public Color GetColor(int index) +public Color GetColor(int index) ### Legend.GetData -public string GetData(int index) +public string GetData(int index) 获得指定索引的图例。 ### Legend.GetIcon -public Sprite GetIcon(int index) +public Sprite GetIcon(int index) 获得指定索引的图例按钮。 ### Legend.GetIndex -public int GetIndex(string legendName) +public int GetIndex(string legendName) 获得指定图例的索引。 ### Legend.GetPosition -public Vector3 GetPosition(int index, Vector3 defaultPos) +public Vector3 GetPosition(int index, Vector3 defaultPos) ### Legend.OnChanged -public void OnChanged() +public void OnChanged() 参数变更时的回调处理。 ### Legend.RemoveButton -public void RemoveButton() +public void RemoveButton() 移除所有图例按钮。 ### Legend.RemoveData -public void RemoveData(string name) +public void RemoveData(string name) 移除指定名字的图例。 ### Legend.SetButton -public void SetButton(string name, LegendItem item, int total) +public void SetButton(string name, LegendItem item, int total) 给图例绑定按钮。 ### Legend.UpdateButtonColor -public void UpdateButtonColor(string name, Color color) +public void UpdateButtonColor(string name, Color color) 更新图例按钮颜色。 ### Legend.UpdateContentColor -public void UpdateContentColor(string name, Color color) +public void UpdateContentColor(string name, Color color) 更新图例文字颜色。 ## Legend.SelectedMode @@ -4849,20 +4849,20 @@ class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentconte ### LegendContext.background -public Image background +public Image background ### LegendContext.center -public Vector2 center +public Vector2 center ### LegendContext.height -public float height +public float height 运行时图例的总高度 ### LegendContext.width -public float width +public float width 运行时图例的总宽度 ## LegendHelper @@ -4871,27 +4871,27 @@ class in XCharts.Runtime ### LegendHelper.CheckDataHighlighted -public static int CheckDataHighlighted(Serie serie, string legendName, bool heighlight) +public static int CheckDataHighlighted(Serie serie, string legendName, bool heighlight) ### LegendHelper.CheckDataShow -public static bool CheckDataShow(Serie serie, string legendName, bool show) +public static bool CheckDataShow(Serie serie, string legendName, bool show) ### LegendHelper.GetContentColor -public static Color GetContentColor(BaseChart chart, int legendIndex, string legendName, Legend legend, ThemeStyle theme, bool active) +public static Color GetContentColor(BaseChart chart, int legendIndex, string legendName, Legend legend, ThemeStyle theme, bool active) ### LegendHelper.GetIconColor -public static Color GetIconColor(BaseChart chart, Legend legend, int readIndex, string legendName, bool active) +public static Color GetIconColor(BaseChart chart, Legend legend, int readIndex, string legendName, bool active) ### LegendHelper.ResetItemPosition -public static void ResetItemPosition(Legend legend, Vector3 chartPos, float chartWidth, float chartHeight) +public static void ResetItemPosition(Legend legend, Vector3 chartPos, float chartWidth, float chartHeight) ### LegendHelper.SetLegendBackground -public static void SetLegendBackground(Legend legend, ImageStyle style) +public static void SetLegendBackground(Legend legend, ImageStyle style) ## LegendItem @@ -4899,99 +4899,99 @@ class in XCharts.Runtime ### LegendItem.button -public Button button +public Button button ### LegendItem.gameObject -public GameObject gameObject +public GameObject gameObject ### LegendItem.index -public int index +public int index ### LegendItem.legendName -public string legendName +public string legendName ### LegendItem.name -public string name +public string name ### LegendItem.text -public ChartText text +public ChartText text ### LegendItem.GetIconColor -public Color GetIconColor() +public Color GetIconColor() ### LegendItem.GetIconRect -public Rect GetIconRect() +public Rect GetIconRect() ### LegendItem.SetActive -public void SetActive(bool active) +public void SetActive(bool active) ### LegendItem.SetBackground -public void SetBackground(ImageStyle imageStyle) +public void SetBackground(ImageStyle imageStyle) ### LegendItem.SetButton -public void SetButton(Button button) +public void SetButton(Button button) ### LegendItem.SetContent -public bool SetContent(string content) +public bool SetContent(string content) ### LegendItem.SetContentBackgroundColor -public void SetContentBackgroundColor(Color color) +public void SetContentBackgroundColor(Color color) ### LegendItem.SetContentColor -public void SetContentColor(Color color) +public void SetContentColor(Color color) ### LegendItem.SetContentPosition -public void SetContentPosition(Vector3 offset) +public void SetContentPosition(Vector3 offset) ### LegendItem.SetIcon -public void SetIcon(Image icon) +public void SetIcon(Image icon) ### LegendItem.SetIconActive -public void SetIconActive(bool active) +public void SetIconActive(bool active) ### LegendItem.SetIconColor -public void SetIconColor(Color color) +public void SetIconColor(Color color) ### LegendItem.SetIconImage -public void SetIconImage(Sprite image) +public void SetIconImage(Sprite image) ### LegendItem.SetIconSize -public void SetIconSize(float width, float height) +public void SetIconSize(float width, float height) ### LegendItem.SetObject -public void SetObject(GameObject obj) +public void SetObject(GameObject obj) ### LegendItem.SetPosition -public void SetPosition(Vector3 position) +public void SetPosition(Vector3 position) ### LegendItem.SetText -public void SetText(ChartText text) +public void SetText(ChartText text) ### LegendItem.SetTextBackground -public void SetTextBackground(Image image) +public void SetTextBackground(Image image) ## LegendTheme @@ -4999,11 +4999,11 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) ### LegendTheme.Copy -public void Copy(LegendTheme theme) +public void Copy(LegendTheme theme) ### LegendTheme.LegendTheme -public LegendTheme(ThemeType theme) : base(theme) +public LegendTheme(ThemeType theme) : base(theme) ## Level @@ -5011,27 +5011,27 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### Level.depth -public int depth +public int depth 层级深度。 ### Level.itemStyle -public ItemStyle itemStyle +public ItemStyle itemStyle 数据项样式。 ### Level.label -public LabelStyle label +public LabelStyle label 文本标签样式。 ### Level.lineStyle -public LineStyle lineStyle +public LineStyle lineStyle 线条样式。 ### Level.upperLabel -public LabelStyle upperLabel +public LabelStyle upperLabel 上方的文本标签样式。 ## LevelStyle @@ -5042,12 +5042,12 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### LevelStyle.levels -public List<Level> levels +public List<Level> levels 各层节点对应的配置。当enableLevels为true时生效,levels[0]对应的第一层的配置,levels[1]对应第二层,依次类推。当levels中没有对应层时用默认的设置。 ### LevelStyle.show -public bool show +public bool show 是否启用LevelStyle ## Line @@ -5056,19 +5056,19 @@ class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ine ### Line.containerIndex -public int containerIndex +public int containerIndex ### Line.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### Line.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ### Line.ConvertSerie -public static Line ConvertSerie(Serie serie) +public static Line ConvertSerie(Serie serie) ## LineArrow @@ -5091,47 +5091,47 @@ class in XCharts.Runtime / 继承自: [BaseChart](#basechart) ### LineChart.DefaultAreaLineChart -public void DefaultAreaLineChart() +public void DefaultAreaLineChart() 默认面积折线图。 ### LineChart.DefaultDashLineChart -public void DefaultDashLineChart() +public void DefaultDashLineChart() 默认虚线折线图。 ### LineChart.DefaultLogLineChart -public void DefaultLogLineChart() +public void DefaultLogLineChart() 默认对数轴折线图。 ### LineChart.DefaultSmoothAreaLineChart -public void DefaultSmoothAreaLineChart() +public void DefaultSmoothAreaLineChart() 默认平滑面积折线图。 ### LineChart.DefaultSmoothLineChart -public void DefaultSmoothLineChart() +public void DefaultSmoothLineChart() 默认平滑折线图。 ### LineChart.DefaultStackAreaLineChart -public void DefaultStackAreaLineChart() +public void DefaultStackAreaLineChart() 默认堆叠面积折线图。 ### LineChart.DefaultStackLineChart -public void DefaultStackLineChart() +public void DefaultStackLineChart() 默认堆叠折线图。 ### LineChart.DefaultStepLineChart -public void DefaultStepLineChart() +public void DefaultStepLineChart() 默认阶梯折线图。 ### LineChart.DefaultTimeLineChart -public void DefaultTimeLineChart() +public void DefaultTimeLineChart() 默认时间折线图。 ## LineHelper @@ -5140,11 +5140,11 @@ class in XCharts.Runtime ### LineHelper.GetDataAverageRate -public static int GetDataAverageRate(Serie serie, float axisLength, int maxCount, bool isYAxis) +public static int GetDataAverageRate(Serie serie, float axisLength, int maxCount, bool isYAxis) ### LineHelper.GetLineWidth -public static float GetLineWidth(ref bool interacting, Serie serie, float defaultWidth) +public static float GetLineWidth(ref bool interacting, Serie serie, float defaultWidth) ## LineStyle @@ -5154,48 +5154,48 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[ISerieD ### LineStyle.Clone -public LineStyle Clone() +public LineStyle Clone() ### LineStyle.Copy -public void Copy(LineStyle lineStyle) +public void Copy(LineStyle lineStyle) ### LineStyle.GetColor -public Color32 GetColor(Color32 themeColor) +public Color32 GetColor(Color32 themeColor) ### LineStyle.GetGradientColor -public Color32 GetGradientColor(float value, Color32 defaultColor) +public Color32 GetGradientColor(float value, Color32 defaultColor) ### LineStyle.GetLength -public float GetLength(float themeLength) +public float GetLength(float themeLength) ### LineStyle.GetType -public Type GetType(Type themeType) +public Type GetType(Type themeType) ### LineStyle.GetWidth -public float GetWidth(float themeWidth) +public float GetWidth(float themeWidth) ### LineStyle.IsNeedGradient -public bool IsNeedGradient() +public bool IsNeedGradient() ### LineStyle.IsNotSolidLine -public bool IsNotSolidLine() +public bool IsNotSolidLine() ### LineStyle.LineStyle -public LineStyle(float width) +public LineStyle(float width) -public LineStyle(LineStyle.Type type) +public LineStyle(LineStyle.Type type) -public LineStyle(LineStyle.Type type, float width) +public LineStyle(LineStyle.Type type, float width) ## LineStyle.Type @@ -5233,7 +5233,7 @@ class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/Scrip ### ListFor.ListFor -public ListFor(Type type) +public ListFor(Type type) ## ListForComponent @@ -5241,7 +5241,7 @@ class in XCharts.Runtime / 继承自: [ListFor](#listfor) ### ListForComponent.ListForComponent -public ListForComponent(Type type) : base(type) +public ListForComponent(Type type) : base(type) ## ListForSerie @@ -5249,7 +5249,7 @@ class in XCharts.Runtime / 继承自: [ListFor](#listfor) ### ListForSerie.ListForSerie -public ListForSerie(Type type) : base(type) +public ListForSerie(Type type) : base(type) ## ListPool<T> @@ -5257,15 +5257,15 @@ class in XCharts.Runtime ### ListPool<T>.ClearAll -public static void ClearAll() +public static void ClearAll() ### ListPool<T>.Get -public static List<T> Get() +public static List<T> Get() ### ListPool<T>.Release -public static void Release(List<T> toRelease) +public static void Release(List<T> toRelease) ## Location @@ -5275,68 +5275,68 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent),[IProper ### Location.runtimeAnchorMax -public Vector2 runtimeAnchorMax +public Vector2 runtimeAnchorMax ### Location.runtimeAnchorMin -public Vector2 runtimeAnchorMin +public Vector2 runtimeAnchorMin Location对应的anchorMin。 ### Location.runtimeBottom -public float runtimeBottom +public float runtimeBottom ### Location.runtimeLeft -public float runtimeLeft +public float runtimeLeft ### Location.runtimePivot -public Vector2 runtimePivot +public Vector2 runtimePivot Loation对应的中心点。 ### Location.runtimeRight -public float runtimeRight +public float runtimeRight ### Location.runtimeTextAlignment -public TextAnchor runtimeTextAlignment +public TextAnchor runtimeTextAlignment Location对应的Anchor锚点 ### Location.runtimeTMPTextAlignment -public TextAlignmentOptions runtimeTMPTextAlignment +public TextAlignmentOptions runtimeTMPTextAlignment ### Location.runtimeTop -public float runtimeTop +public float runtimeTop ### Location.GetPosition -public Vector3 GetPosition(float chartWidth, float chartHeight) +public Vector3 GetPosition(float chartWidth, float chartHeight) 返回在坐标系中的具体位置 ### Location.IsBottom -public bool IsBottom() +public bool IsBottom() ### Location.IsCenter -public bool IsCenter() +public bool IsCenter() ### Location.IsTop -public bool IsTop() +public bool IsTop() ### Location.OnChanged -public void OnChanged() +public void OnChanged() 属性变更时更新textAnchor,minAnchor,maxAnchor,pivot ### Location.UpdateRuntimeData -public void UpdateRuntimeData(float chartWidth, float chartHeight) +public void UpdateRuntimeData(float chartWidth, float chartHeight) ## Location.Align @@ -5362,102 +5362,102 @@ class in XCharts.Runtime / 继承自: [IComparable](https://docs.unity3d.com/Scr ### MainComponent.anyDirty -public bool anyDirty +public bool anyDirty 需要重绘图表或重新初始化组件。 ### MainComponent.ClearData() -public virtual void ClearData() +public virtual void ClearData() ### MainComponent.componentDirty -public virtual bool componentDirty +public virtual bool componentDirty 组件重新初始化标记。 ### MainComponent.gameObject -public GameObject gameObject +public GameObject gameObject ### MainComponent.index -public int index +public int index ### MainComponent.instanceId -public int instanceId +public int instanceId ### MainComponent.painter -public Painter painter +public Painter painter ### MainComponent.refreshComponent -public Action refreshComponent +public Action refreshComponent ### MainComponent.Reset() -public virtual void Reset() +public virtual void Reset() ### MainComponent.ResetStatus() -public virtual void ResetStatus() +public virtual void ResetStatus() ### MainComponent.SetDefaultValue() -public virtual void SetDefaultValue() +public virtual void SetDefaultValue() ### MainComponent.vertsDirty -public virtual bool vertsDirty +public virtual bool vertsDirty 图表重绘标记。 ### MainComponent.ClearComponentDirty -public virtual void ClearComponentDirty() +public virtual void ClearComponentDirty() ### MainComponent.ClearData -public virtual void ClearData() { } +public virtual void ClearData() { } ### MainComponent.ClearDirty -public virtual void ClearDirty() +public virtual void ClearDirty() ### MainComponent.ClearVerticesDirty -public virtual void ClearVerticesDirty() +public virtual void ClearVerticesDirty() ### MainComponent.CompareTo -public int CompareTo(object obj) +public int CompareTo(object obj) ### MainComponent.OnRemove -public virtual void OnRemove() +public virtual void OnRemove() ### MainComponent.Reset -public virtual void Reset() { } +public virtual void Reset() { } ### MainComponent.ResetStatus -public virtual void ResetStatus() { } +public virtual void ResetStatus() { } ### MainComponent.SetAllDirty -public virtual void SetAllDirty() +public virtual void SetAllDirty() ### MainComponent.SetComponentDirty -public virtual void SetComponentDirty() +public virtual void SetComponentDirty() ### MainComponent.SetDefaultValue -public virtual void SetDefaultValue() { } +public virtual void SetDefaultValue() { } ### MainComponent.SetVerticesDirty -public virtual void SetVerticesDirty() +public virtual void SetVerticesDirty() ## MainComponentContext @@ -5469,163 +5469,163 @@ class in XCharts.Runtime / 子类: [AxisHandler<T>](#axishandlert),[MainCo ### MainComponentHandler.attribute -public ComponentHandlerAttribute attribute +public ComponentHandlerAttribute attribute ### MainComponentHandler.BeforceSerieUpdate() -public virtual void BeforceSerieUpdate() +public virtual void BeforceSerieUpdate() ### MainComponentHandler.chart -public BaseChart chart +public BaseChart chart ### MainComponentHandler.eventData) -public virtual void OnBeginDrag(PointerEventData eventData) +public virtual void OnBeginDrag(PointerEventData eventData) ### MainComponentHandler.eventData) -public virtual void OnDrag(PointerEventData eventData) +public virtual void OnDrag(PointerEventData eventData) ### MainComponentHandler.eventData) -public virtual void OnEndDrag(PointerEventData eventData) +public virtual void OnEndDrag(PointerEventData eventData) ### MainComponentHandler.eventData) -public virtual void OnPointerClick(PointerEventData eventData) +public virtual void OnPointerClick(PointerEventData eventData) ### MainComponentHandler.eventData) -public virtual void OnPointerDown(PointerEventData eventData) +public virtual void OnPointerDown(PointerEventData eventData) ### MainComponentHandler.eventData) -public virtual void OnPointerEnter(PointerEventData eventData) +public virtual void OnPointerEnter(PointerEventData eventData) ### MainComponentHandler.eventData) -public virtual void OnPointerExit(PointerEventData eventData) +public virtual void OnPointerExit(PointerEventData eventData) ### MainComponentHandler.eventData) -public virtual void OnPointerUp(PointerEventData eventData) +public virtual void OnPointerUp(PointerEventData eventData) ### MainComponentHandler.eventData) -public virtual void OnScroll(PointerEventData eventData) +public virtual void OnScroll(PointerEventData eventData) ### MainComponentHandler.InitComponent() -public virtual void InitComponent() +public virtual void InitComponent() ### MainComponentHandler.inited -public bool inited +public bool inited ### MainComponentHandler.order -public int order +public int order ### MainComponentHandler.RemoveComponent() -public virtual void RemoveComponent() +public virtual void RemoveComponent() ### MainComponentHandler.sb) -public virtual void CheckComponent(StringBuilder sb) +public virtual void CheckComponent(StringBuilder sb) ### MainComponentHandler.serieIndex) -public virtual void OnSerieDataUpdate(int serieIndex) +public virtual void OnSerieDataUpdate(int serieIndex) ### MainComponentHandler.Update() -public virtual void Update() +public virtual void Update() ### MainComponentHandler.vh) -public virtual void DrawBase(VertexHelper vh) +public virtual void DrawBase(VertexHelper vh) ### MainComponentHandler.vh) -public virtual void DrawTop(VertexHelper vh) +public virtual void DrawTop(VertexHelper vh) ### MainComponentHandler.vh) -public virtual void DrawUpper(VertexHelper vh) +public virtual void DrawUpper(VertexHelper vh) ### MainComponentHandler.BeforceSerieUpdate -public virtual void BeforceSerieUpdate() { } +public virtual void BeforceSerieUpdate() { } ### MainComponentHandler.CheckComponent -public virtual void CheckComponent(StringBuilder sb) { } +public virtual void CheckComponent(StringBuilder sb) { } ### MainComponentHandler.DrawBase -public virtual void DrawBase(VertexHelper vh) { } +public virtual void DrawBase(VertexHelper vh) { } ### MainComponentHandler.DrawTop -public virtual void DrawTop(VertexHelper vh) { } +public virtual void DrawTop(VertexHelper vh) { } ### MainComponentHandler.DrawUpper -public virtual void DrawUpper(VertexHelper vh) { } +public virtual void DrawUpper(VertexHelper vh) { } ### MainComponentHandler.InitComponent -public virtual void InitComponent() { } +public virtual void InitComponent() { } ### MainComponentHandler.OnBeginDrag -public virtual void OnBeginDrag(PointerEventData eventData) { } +public virtual void OnBeginDrag(PointerEventData eventData) { } ### MainComponentHandler.OnDrag -public virtual void OnDrag(PointerEventData eventData) { } +public virtual void OnDrag(PointerEventData eventData) { } ### MainComponentHandler.OnEndDrag -public virtual void OnEndDrag(PointerEventData eventData) { } +public virtual void OnEndDrag(PointerEventData eventData) { } ### MainComponentHandler.OnPointerClick -public virtual void OnPointerClick(PointerEventData eventData) { } +public virtual void OnPointerClick(PointerEventData eventData) { } ### MainComponentHandler.OnPointerDown -public virtual void OnPointerDown(PointerEventData eventData) { } +public virtual void OnPointerDown(PointerEventData eventData) { } ### MainComponentHandler.OnPointerEnter -public virtual void OnPointerEnter(PointerEventData eventData) { } +public virtual void OnPointerEnter(PointerEventData eventData) { } ### MainComponentHandler.OnPointerExit -public virtual void OnPointerExit(PointerEventData eventData) { } +public virtual void OnPointerExit(PointerEventData eventData) { } ### MainComponentHandler.OnPointerUp -public virtual void OnPointerUp(PointerEventData eventData) { } +public virtual void OnPointerUp(PointerEventData eventData) { } ### MainComponentHandler.OnScroll -public virtual void OnScroll(PointerEventData eventData) { } +public virtual void OnScroll(PointerEventData eventData) { } ### MainComponentHandler.OnSerieDataUpdate -public virtual void OnSerieDataUpdate(int serieIndex) { } +public virtual void OnSerieDataUpdate(int serieIndex) { } ### MainComponentHandler.RemoveComponent -public virtual void RemoveComponent() { } +public virtual void RemoveComponent() { } ### MainComponentHandler.Update -public virtual void Update() { } +public virtual void Update() { } ## MainComponentHandler<T> @@ -5633,7 +5633,7 @@ class in XCharts.Runtime / 继承自: [MainComponentHandler](#maincomponenthandl ### MainComponentHandler<T>.component -public T component +public T component ## MarkArea @@ -5643,20 +5643,20 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### MarkArea.runtimeLabel -public ChartLabel runtimeLabel +public ChartLabel runtimeLabel 图表标域,常用于标记图表中某个范围的数据。 ### MarkArea.runtimeLabelPosition -public Vector3 runtimeLabelPosition +public Vector3 runtimeLabelPosition ### MarkArea.runtimeRect -public Rect runtimeRect +public Rect runtimeRect ### MarkArea.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() ## MarkAreaData @@ -5666,7 +5666,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### MarkAreaData.runtimeValue -public double runtimeValue +public double runtimeValue 标域的数据。 ## MarkAreaType @@ -5691,7 +5691,7 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### MarkLine.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() ## MarkLineData @@ -5703,27 +5703,27 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### MarkLineData.runtimeCurrentEndPosition -public Vector3 runtimeCurrentEndPosition +public Vector3 runtimeCurrentEndPosition ### MarkLineData.runtimeEndPosition -public Vector3 runtimeEndPosition +public Vector3 runtimeEndPosition ### MarkLineData.runtimeInGrid -public bool runtimeInGrid +public bool runtimeInGrid ### MarkLineData.runtimeLabel -public ChartLabel runtimeLabel +public ChartLabel runtimeLabel ### MarkLineData.runtimeStartPosition -public Vector3 runtimeStartPosition +public Vector3 runtimeStartPosition ### MarkLineData.runtimeValue -public double runtimeValue +public double runtimeValue ## MarkLineType @@ -5749,37 +5749,37 @@ Marquee style. It can be used for the DataZoom component. 选取框样式。可 ### MarqueeStyle.apply -public bool apply +public bool apply 选取框范围是否应用到DataZoom上。当为true时,框选结束后的范围即为DataZoom的选择范围。 ### MarqueeStyle.areaStyle -public AreaStyle areaStyle +public AreaStyle areaStyle 选取框区域填充样式。 ### MarqueeStyle.lineStyle -public LineStyle lineStyle +public LineStyle lineStyle 选取框区域边框样式。 ### MarqueeStyle.onEnd -public Action<DataZoom> onEnd +public Action<DataZoom> onEnd 自定义选取框结束选取时的回调。 ### MarqueeStyle.onGoing -public Action<DataZoom> onGoing +public Action<DataZoom> onGoing 自定义选取框选取进行时的回调。 ### MarqueeStyle.onStart -public Action<DataZoom> onStart +public Action<DataZoom> onStart 自定义选取框开始选取时的回调。 ### MarqueeStyle.realRect -public bool realRect +public bool realRect 是否选取实际框选区域。当为true时,以鼠标的其实点和结束点间的实际范围作为框选区域。 ## MathUtil @@ -5788,31 +5788,31 @@ class in XCharts.Runtime ### MathUtil.Abs -public static double Abs(double d) +public static double Abs(double d) ### MathUtil.Approximately -public static bool Approximately(double a, double b) +public static bool Approximately(double a, double b) ### MathUtil.Clamp -public static double Clamp(double d, double min, double max) +public static double Clamp(double d, double min, double max) ### MathUtil.Clamp01 -public static double Clamp01(double value) +public static double Clamp01(double value) ### MathUtil.GetPrecision -public static int GetPrecision(double value) +public static int GetPrecision(double value) ### MathUtil.IsInteger -public static bool IsInteger(double value) +public static bool IsInteger(double value) ### MathUtil.Lerp -public static double Lerp(double a, double b, double t) +public static double Lerp(double a, double b, double t) ## MLValue @@ -5824,20 +5824,20 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### MLValue.type -public Type type +public Type type ### MLValue.value -public float value +public float value ### MLValue.GetValue -public float GetValue(float total) +public float GetValue(float total) 根据类型获取值。 ### MLValue.MLValue -public MLValue(Type type, float value) +public MLValue(Type type, float value) ## MLValue.Type @@ -5862,35 +5862,35 @@ class in XCharts.Runtime / 继承自: [new()](#new()) ### ObjectPool<T> where T.countActive -public int countActive +public int countActive ### ObjectPool<T> where T.countAll -public int countAll +public int countAll ### ObjectPool<T> where T.countInactive -public int countInactive +public int countInactive ### ObjectPool<T> where T.ClearAll -public void ClearAll() +public void ClearAll() ### ObjectPool<T> where T.Get -public T Get() +public T Get() ### ObjectPool<T> where T.new -public class ObjectPool<T> where T : new() +public class ObjectPool<T> where T : new() ### ObjectPool<T> where T.ObjectPool -public ObjectPool(UnityAction<T> actionOnGet, UnityAction<T> actionOnRelease, bool newIfEmpty = true) +public ObjectPool(UnityAction<T> actionOnGet, UnityAction<T> actionOnRelease, bool newIfEmpty = true) ### ObjectPool<T> where T.Release -public void Release(T element) +public void Release(T element) ## Orient @@ -5911,16 +5911,16 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类 ### Padding.Padding() -public Padding() +public Padding() ### Padding.Padding -public Padding(float top, float right, float bottom, float left) +public Padding(float top, float right, float bottom, float left) ### Padding.SetPadding -public void SetPadding(float top, float right, float bottom, float left) +public void SetPadding(float top, float right, float bottom, float left) ## Painter @@ -5928,31 +5928,31 @@ class in XCharts.Runtime / 继承自: [MaskableGraphic](https://docs.unity3d.com ### Painter.index -public int index +public int index ### Painter.onPopulateMesh -public Action<VertexHelper, Painter> onPopulateMesh +public Action<VertexHelper, Painter> onPopulateMesh ### Painter.type -public Type type +public Type type ### Painter.CheckRefresh -public void CheckRefresh() +public void CheckRefresh() ### Painter.Init -public void Init() +public void Init() ### Painter.Refresh -public void Refresh() +public void Refresh() ### Painter.SetActive -public void SetActive(bool flag, bool isDebugMode = false) +public void SetActive(bool flag, bool isDebugMode = false) ## Painter.Type @@ -5970,15 +5970,15 @@ class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ine ### Parallel.containerIndex -public int containerIndex +public int containerIndex ### Parallel.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### Parallel.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## ParallelAxis @@ -5986,7 +5986,7 @@ class in XCharts.Runtime / 继承自: [Axis](#axis) ### ParallelAxis.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() ## ParallelChart @@ -6002,16 +6002,16 @@ Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart ### ParallelCoord.Contains -public bool Contains(float x, float y) +public bool Contains(float x, float y) ### ParallelCoord.IsPointerEnter -public bool IsPointerEnter() +public bool IsPointerEnter() ### ParallelCoord.UpdateRuntimeData -public void UpdateRuntimeData(BaseChart chart) +public void UpdateRuntimeData(BaseChart chart) ## ParallelCoordContext @@ -6023,19 +6023,19 @@ class in XCharts.Runtime / 继承自: [Serie](#serie) ### Pie.defaultColorBy -public override SerieColorBy defaultColorBy +public override SerieColorBy defaultColorBy ### Pie.titleJustForSerie -public override bool titleJustForSerie +public override bool titleJustForSerie ### Pie.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ### Pie.ConvertSerie -public static Pie ConvertSerie(Serie serie) +public static Pie ConvertSerie(Serie serie) ## PieChart @@ -6045,27 +6045,27 @@ class in XCharts.Runtime / 继承自: [BaseChart](#basechart) ### PieChart.DefaultAreaRosePieChart -public void DefaultAreaRosePieChart() +public void DefaultAreaRosePieChart() 默认面积玫瑰饼图。 ### PieChart.DefaultDonutPieChart -public void DefaultDonutPieChart() +public void DefaultDonutPieChart() 默认甜甜圈饼图。 ### PieChart.DefaultLabelDonutPieChart -public void DefaultLabelDonutPieChart() +public void DefaultLabelDonutPieChart() 默认带标签甜甜圈饼图。 ### PieChart.DefaultLabelPieChart -public void DefaultLabelPieChart() +public void DefaultLabelPieChart() 默认带标签饼图。 ### PieChart.DefaultRadiusRosePieChart -public void DefaultRadiusRosePieChart() +public void DefaultRadiusRosePieChart() 默认玫瑰饼图。 ## PolarAxisTheme @@ -6074,11 +6074,11 @@ class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) ### PolarAxisTheme.base(theme) -public PolarAxisTheme(ThemeType theme) : base(theme) +public PolarAxisTheme(ThemeType theme) : base(theme) ### PolarAxisTheme.PolarAxisTheme -public PolarAxisTheme(ThemeType theme) : base(theme) { } +public PolarAxisTheme(ThemeType theme) : base(theme) { } ## PolarChart @@ -6088,17 +6088,17 @@ class in XCharts.Runtime / 继承自: [BaseChart](#basechart) ### PolarChart.DefaultHeatmapPolarChart -public void DefaultHeatmapPolarChart() +public void DefaultHeatmapPolarChart() 默认极坐标色块图。 ### PolarChart.DefaultRadialBarPolarChart -public void DefaultRadialBarPolarChart() +public void DefaultRadialBarPolarChart() 默认径向柱状极坐标图。 ### PolarChart.DefaultTangentialBarPolarChart -public void DefaultTangentialBarPolarChart() +public void DefaultTangentialBarPolarChart() 默认切向柱状极坐标图。 ## PolarCoord @@ -6109,11 +6109,11 @@ class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem),[ISerieContain ### PolarCoord.Contains -public bool Contains(Vector3 pos) +public bool Contains(Vector3 pos) ### PolarCoord.IsPointerEnter -public bool IsPointerEnter() +public bool IsPointerEnter() ## PolarCoordContext @@ -6125,16 +6125,16 @@ class in XCharts.Runtime ### PropertyUtil.SetClass<T> -public static bool SetClass<T>(ref T currentValue, T newValue, bool notNull = false) where T : class +public static bool SetClass<T>(ref T currentValue, T newValue, bool notNull = false) where T : class ### PropertyUtil.SetColor -public static bool SetColor(ref Color32 currentValue, Color32 newValue) +public static bool SetColor(ref Color32 currentValue, Color32 newValue) ### PropertyUtil.SetStruct<T> -public static bool SetStruct<T>(ref T currentValue, T newValue) where T : struct +public static bool SetStruct<T>(ref T currentValue, T newValue) where T : struct ## Radar @@ -6142,23 +6142,23 @@ class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ine ### Radar.containerIndex -public int containerIndex +public int containerIndex ### Radar.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### Radar.defaultColorBy -public override SerieColorBy defaultColorBy +public override SerieColorBy defaultColorBy ### Radar.multiDimensionLabel -public override bool multiDimensionLabel +public override bool multiDimensionLabel ### Radar.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## RadarAxisTheme @@ -6166,7 +6166,7 @@ class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) ### RadarAxisTheme.RadarAxisTheme -public RadarAxisTheme(ThemeType theme) : base(theme) +public RadarAxisTheme(ThemeType theme) : base(theme) ## RadarChart @@ -6176,7 +6176,7 @@ class in XCharts.Runtime / 继承自: [BaseChart](#basechart) ### RadarChart.DefaultCircleRadarChart -public void DefaultCircleRadarChart() +public void DefaultCircleRadarChart() 默认圆形雷达图。 ## RadarCoord @@ -6213,20 +6213,20 @@ class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentconte ### RadarCoordContext.center -public Vector3 center +public Vector3 center 雷达图在容器中的具体中心点。 ### RadarCoordContext.dataRadius -public float dataRadius +public float dataRadius ### RadarCoordContext.isPointerEnter -public bool isPointerEnter +public bool isPointerEnter ### RadarCoordContext.radius -public float radius +public float radius 雷达图的运行时实际半径。 ## RadarType @@ -6248,7 +6248,7 @@ class in XCharts.Runtime / 继承自: [Axis](#axis) ### RadiusAxis.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() 极坐标系的径向轴。 ## RadiusAxisTheme @@ -6257,11 +6257,11 @@ class in XCharts.Runtime / 继承自: [BaseAxisTheme](#baseaxistheme) ### RadiusAxisTheme.base(theme) -public RadiusAxisTheme(ThemeType theme) : base(theme) +public RadiusAxisTheme(ThemeType theme) : base(theme) ### RadiusAxisTheme.RadiusAxisTheme -public RadiusAxisTheme(ThemeType theme) : base(theme) { } +public RadiusAxisTheme(ThemeType theme) : base(theme) { } ## ReflectionUtil @@ -6269,27 +6269,27 @@ class in XCharts.Runtime ### ReflectionUtil.DeepCloneSerializeField -public static object DeepCloneSerializeField(object obj) +public static object DeepCloneSerializeField(object obj) ### ReflectionUtil.InvokeListAdd -public static void InvokeListAdd(object obj, FieldInfo field, object item) +public static void InvokeListAdd(object obj, FieldInfo field, object item) ### ReflectionUtil.InvokeListAddTo<T> -public static void InvokeListAddTo<T>(object obj, FieldInfo field, Action<T> callback) +public static void InvokeListAddTo<T>(object obj, FieldInfo field, Action<T> callback) ### ReflectionUtil.InvokeListClear -public static void InvokeListClear(object obj, FieldInfo field) +public static void InvokeListClear(object obj, FieldInfo field) ### ReflectionUtil.InvokeListCount -public static int InvokeListCount(object obj, FieldInfo field) +public static int InvokeListCount(object obj, FieldInfo field) ### ReflectionUtil.InvokeListGet<T> -public static T InvokeListGet<T>(object obj, FieldInfo field, int i) +public static T InvokeListGet<T>(object obj, FieldInfo field, int i) ## RequireChartComponentAttribute @@ -6297,9 +6297,9 @@ class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/Scrip ### RequireChartComponentAttribute.RequireChartComponentAttribute -public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2) +public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2) -public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2, Type requiredComponent3) +public RequireChartComponentAttribute(Type requiredComponent, Type requiredComponent2, Type requiredComponent3) ## Ring @@ -6308,15 +6308,15 @@ class in XCharts.Runtime / 继承自: [Serie](#serie) ### Ring.defaultColorBy -public override SerieColorBy defaultColorBy +public override SerieColorBy defaultColorBy ### Ring.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ### Ring.GetDataTotal -public override double GetDataTotal(int dimension, SerieData serieData = null) +public override double GetDataTotal(int dimension, SerieData serieData = null) ## RingChart @@ -6326,7 +6326,7 @@ class in XCharts.Runtime / 继承自: [BaseChart](#basechart) ### RingChart.DefaultMultipleRingChart -public void DefaultMultipleRingChart() +public void DefaultMultipleRingChart() 默认多圆环图。 ## RoseType @@ -6347,24 +6347,24 @@ class in XCharts.Runtime ### RuntimeUtil.GetAllAssemblyTypes -public static IEnumerable<Type> GetAllAssemblyTypes() +public static IEnumerable<Type> GetAllAssemblyTypes() ### RuntimeUtil.GetAllTypesDerivedFrom -public static IEnumerable<Type> GetAllTypesDerivedFrom(Type type) +public static IEnumerable<Type> GetAllTypesDerivedFrom(Type type) ### RuntimeUtil.GetAllTypesDerivedFrom<T> -public static IEnumerable<Type> GetAllTypesDerivedFrom<T>() +public static IEnumerable<Type> GetAllTypesDerivedFrom<T>() ### RuntimeUtil.GetAttribute<T> -public static T GetAttribute<T>(this MemberInfo type, bool check = true) where T : Attribute +public static T GetAttribute<T>(this MemberInfo type, bool check = true) where T : Attribute ### RuntimeUtil.HasSubclass -public static bool HasSubclass(Type type) +public static bool HasSubclass(Type type) ## SampleType @@ -6386,7 +6386,7 @@ class in XCharts.Runtime / 继承自: [BaseScatter](#basescatter) ### Scatter.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ## ScatterChart @@ -6396,7 +6396,7 @@ class in XCharts.Runtime / 继承自: [BaseChart](#basechart) ### ScatterChart.DefaultBubbleChart -public void DefaultBubbleChart() +public void DefaultBubbleChart() 默认气泡图。 ## SelectStyle @@ -6415,424 +6415,424 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie),[IComparable](http ### Serie.areaStyle -public AreaStyle areaStyle +public AreaStyle areaStyle 区域填充样式。 ### Serie.blurStyle -public BlurStyle blurStyle +public BlurStyle blurStyle 淡出状态的样式。 ### Serie.colorByData -public bool colorByData +public bool colorByData 取色策略是否为按数据项分配。 ### Serie.data -public List<SerieData> data +public List<SerieData> data 系列中的数据内容数组。SerieData可以设置1到n维数据。 ### Serie.dataCount -public int dataCount +public int dataCount 数据项个数。 ### Serie.dataDirty -public bool dataDirty +public bool dataDirty ### Serie.emphasisStyle -public EmphasisStyle emphasisStyle +public EmphasisStyle emphasisStyle 高亮状态的样式。 ### Serie.endLabel -public LabelStyle endLabel +public LabelStyle endLabel ### Serie.highlight -public bool highlight +public bool highlight 该系列是否高亮,一般由图例悬停触发。 ### Serie.index -public int index +public int index 系列索引。 ### Serie.interactDirty -public bool interactDirty +public bool interactDirty ### Serie.label -public LabelStyle label +public LabelStyle label 图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。 ### Serie.labelDirty -public bool labelDirty +public bool labelDirty ### Serie.labelLine -public LabelLine labelLine +public LabelLine labelLine 标签上的视觉引导线。 ### Serie.legendName -public string legendName +public string legendName 图例名称。当系列名称不为空时,图例名称即为系列名称;反之则为索引index。 ### Serie.lineArrow -public LineArrow lineArrow +public LineArrow lineArrow 折线图的箭头。 ### Serie.links -public List<SerieDataLink> links +public List<SerieDataLink> links 数据节点的边。 ### Serie.nameDirty -public bool nameDirty +public bool nameDirty ### Serie.onClick -public Action<SerieEventData> onClick +public Action<SerieEventData> onClick 点击系列时的回调。 ### Serie.onDown -public Action<SerieEventData> onDown +public Action<SerieEventData> onDown 鼠标按下时的回调。 ### Serie.onEnter -public Action<SerieEventData> onEnter +public Action<SerieEventData> onEnter 鼠标进入时的回调。 ### Serie.onExit -public Action<SerieEventData> onExit +public Action<SerieEventData> onExit 鼠标离开时的回调。 ### Serie.selectStyle -public SelectStyle selectStyle +public SelectStyle selectStyle 选中状态的样式。 ### Serie.showDataDimension -public int showDataDimension +public int showDataDimension 数据项里的数据维数。 ### Serie.showDataName -public bool showDataName +public bool showDataName 在Editor的inpsector上是否显示name参数 ### Serie.titleDirty -public bool titleDirty +public bool titleDirty ### Serie.titleStyle -public TitleStyle titleStyle +public TitleStyle titleStyle 数据项标题样式。 ### Serie.AddChildData -public SerieData AddChildData(SerieData parent, List<double> value, string name, string id) +public SerieData AddChildData(SerieData parent, List<double> value, string name, string id) -public void AddChildData(SerieData parent, SerieData serieData) +public void AddChildData(SerieData parent, SerieData serieData) ### Serie.AddData -public SerieData AddData(List<double> valueList, string dataName = null, string dataId = null) +public SerieData AddData(List<double> valueList, string dataName = null, string dataId = null) 将一组数据添加到系列中。 如果数据只有一个,默认添加到维度Y中。 -public SerieData AddData(params double[] values) +public SerieData AddData(params double[] values) 添加任意维数据到系列中。 ### Serie.AddExtraComponent<T> -public T AddExtraComponent<T>() where T : ChildComponent, ISerieComponent +public T AddExtraComponent<T>() where T : ChildComponent, ISerieComponent ### Serie.AddLink -public virtual SerieDataLink AddLink(string sourceId, string targetId, double value = 0) +public virtual SerieDataLink AddLink(string sourceId, string targetId, double value = 0) 添加一个关系图的关系数据。 ### Serie.AddSerieData -public virtual void AddSerieData(SerieData serieData) +public virtual void AddSerieData(SerieData serieData) ### Serie.AddXYData -public SerieData AddXYData(double xValue, double yValue, string dataName = null, string dataId = null) +public SerieData AddXYData(double xValue, double yValue, string dataName = null, string dataId = null) 添加(x,y)数据到维度X和维度Y ### Serie.AddYData -public SerieData AddYData(double value, string dataName = null, string dataId = null) +public SerieData AddYData(double value, string dataName = null, string dataId = null) 添加一个数据到维度Y(此时维度X对应的数据是索引) ### Serie.AnimationEnable -public void AnimationEnable(bool flag) +public void AnimationEnable(bool flag) 启用或取消初始动画 ### Serie.AnimationFadeIn -public void AnimationFadeIn() +public void AnimationFadeIn() 渐入动画 ### Serie.AnimationFadeOut -public void AnimationFadeOut() +public void AnimationFadeOut() 渐出动画 ### Serie.AnimationPause -public void AnimationPause() +public void AnimationPause() 暂停动画 ### Serie.AnimationReset -public void AnimationReset() +public void AnimationReset() 重置动画 ### Serie.AnimationRestart -public void AnimationRestart() +public void AnimationRestart() 重置动画 ### Serie.AnimationResume -public void AnimationResume() +public void AnimationResume() 继续动画 ### Serie.CanAddComponent -public bool CanAddComponent(Type type) +public bool CanAddComponent(Type type) ### Serie.CanAddComponent<T> -public bool CanAddComponent<T>() where T : ChildComponent, ISerieComponent +public bool CanAddComponent<T>() where T : ChildComponent, ISerieComponent ### Serie.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### Serie.ClearData -public override void ClearData() +public override void ClearData() 清空所有数据 ### Serie.ClearDirty -public override void ClearDirty() +public override void ClearDirty() ### Serie.ClearHighlight -public void ClearHighlight() +public void ClearHighlight() 清除所有数据的高亮标志 ### Serie.ClearLinks -public void ClearLinks() +public void ClearLinks() 清空所有Link数据 ### Serie.ClearSerieNameDirty -public void ClearSerieNameDirty() +public void ClearSerieNameDirty() ### Serie.ClearVerticesDirty -public override void ClearVerticesDirty() +public override void ClearVerticesDirty() ### Serie.Clone -public Serie Clone() +public Serie Clone() ### Serie.Clone<T> -public T Clone<T>() where T : Serie +public T Clone<T>() where T : Serie ### Serie.CompareTo -public int CompareTo(object obj) +public int CompareTo(object obj) ### Serie.EnsureComponent -public ISerieComponent EnsureComponent(Type type) +public ISerieComponent EnsureComponent(Type type) ### Serie.EnsureComponent<T> -public T EnsureComponent<T>() where T : ChildComponent, ISerieComponent +public T EnsureComponent<T>() where T : ChildComponent, ISerieComponent 确保系列有该组件。如果没有,则添加。 ### Serie.GetBarWidth -public float GetBarWidth(float categoryWidth, int barCount = 0, float defaultRate = 0.6f) +public float GetBarWidth(float categoryWidth, int barCount = 0, float defaultRate = 0.6f) ### Serie.GetComponent -public ISerieComponent GetComponent(Type type) +public ISerieComponent GetComponent(Type type) ### Serie.GetComponent<T> -public T GetComponent<T>() where T : ChildComponent, ISerieComponent +public T GetComponent<T>() where T : ChildComponent, ISerieComponent ### Serie.GetData -public double GetData(int index, int dimension, DataZoom dataZoom = null) +public double GetData(int index, int dimension, DataZoom dataZoom = null) 获得指定index指定维数的数据 ### Serie.GetDataList -public List<SerieData> GetDataList(DataZoom dataZoom = null) +public List<SerieData> GetDataList(DataZoom dataZoom = null) 获得系列的数据列表 ### Serie.GetDataTotal -public virtual double GetDataTotal(int dimension, SerieData serieData = null) +public virtual double GetDataTotal(int dimension, SerieData serieData = null) ### Serie.GetSerieData -public SerieData GetSerieData(SerieData parent, string id) +public SerieData GetSerieData(SerieData parent, string id) -public SerieData GetSerieData(string id, DataZoom dataZoom = null) +public SerieData GetSerieData(string id, DataZoom dataZoom = null) ### Serie.GetXYData -public void GetXYData(int index, DataZoom dataZoom, out double xValue, out double yVlaue) +public void GetXYData(int index, DataZoom dataZoom, out double xValue, out double yVlaue) 获得指定索引的维度X和维度Y的数据 ### Serie.GetYCurrData -public double GetYCurrData(int index, DataZoom dataZoom = null) +public double GetYCurrData(int index, DataZoom dataZoom = null) ### Serie.GetYData -public void GetYData(int index, out double yData, out string dataName, DataZoom dataZoom = null) +public void GetYData(int index, out double yData, out string dataName, DataZoom dataZoom = null) 获得维度Y索引对应的数据和数据名 ### Serie.IsIgnoreIndex -public bool IsIgnoreIndex(int index, int dimension = 1) +public bool IsIgnoreIndex(int index, int dimension = 1) ### Serie.IsIgnorePoint -public bool IsIgnorePoint(int index) +public bool IsIgnorePoint(int index) ### Serie.IsIgnoreValue -public bool IsIgnoreValue(double value) +public bool IsIgnoreValue(double value) -public bool IsIgnoreValue(SerieData serieData, double value) +public bool IsIgnoreValue(SerieData serieData, double value) ### Serie.IsLegendName -public bool IsLegendName(string legendName) +public bool IsLegendName(string legendName) ### Serie.IsMinShowLabelValue -public bool IsMinShowLabelValue(double value) +public bool IsMinShowLabelValue(double value) -public bool IsMinShowLabelValue(SerieData serieData, int dimension = 1) +public bool IsMinShowLabelValue(SerieData serieData, int dimension = 1) ### Serie.IsPerformanceMode -public bool IsPerformanceMode() +public bool IsPerformanceMode() 是否为性能模式。性能模式下不绘制Symbol,不刷新Label,不单独设置数据项配置。 ### Serie.IsSerie<T> -public bool IsSerie<T>() where T : Serie +public bool IsSerie<T>() where T : Serie ### Serie.IsSerieDataLegendName -public bool IsSerieDataLegendName(string legendName) +public bool IsSerieDataLegendName(string legendName) ### Serie.IsSerieLegendName -public bool IsSerieLegendName(string legendName) +public bool IsSerieLegendName(string legendName) ### Serie.IsUseCoord<T> -public bool IsUseCoord<T>() where T : CoordSystem +public bool IsUseCoord<T>() where T : CoordSystem ### Serie.RemoveAllComponents -public void RemoveAllComponents() +public void RemoveAllComponents() 移除所有额外组件。 ### Serie.RemoveComponent -public void RemoveComponent(Type type) +public void RemoveComponent(Type type) ### Serie.RemoveComponent<T> -public void RemoveComponent<T>() where T : ISerieComponent +public void RemoveComponent<T>() where T : ISerieComponent ### Serie.RemoveData -public void RemoveData(int index) +public void RemoveData(int index) 移除指定索引的数据 ### Serie.ResetDataIndex -public bool ResetDataIndex() +public bool ResetDataIndex() 重置数据项索引。避免部分数据项的索引异常。 ### Serie.ResetInteract -public void ResetInteract() +public void ResetInteract() ### Serie.SetAllDirty -public override void SetAllDirty() +public override void SetAllDirty() ### Serie.SetCoord<T> -public bool SetCoord<T>() where T : CoordSystem +public bool SetCoord<T>() where T : CoordSystem ### Serie.SetHighlight -public void SetHighlight(int index, bool flag) +public void SetHighlight(int index, bool flag) 设置指定索引的数据为高亮状态 ### Serie.SetVerticesDirty -public override void SetVerticesDirty() +public override void SetVerticesDirty() ### Serie.UpdateData -public bool UpdateData(int index, List<double> values) +public bool UpdateData(int index, List<double> values) 更新指定索引的数据项数据列表 ### Serie.UpdateDataName -public bool UpdateDataName(int index, string name) +public bool UpdateDataName(int index, string name) ### Serie.UpdateXYData -public bool UpdateXYData(int index, double xValue, double yValue) +public bool UpdateXYData(int index, double xValue, double yValue) 更新指定索引的维度X和维度Y的数据 ### Serie.UpdateYData -public bool UpdateYData(int index, double value) +public bool UpdateYData(int index, double value) 更新指定索引的维度Y数据 ## SerieColorBy @@ -6855,27 +6855,27 @@ class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/Scrip ### SerieComponentAttribute.Contains -public bool Contains(Type type) +public bool Contains(Type type) ### SerieComponentAttribute.Contains<T> -public bool Contains<T>() where T : ISerieComponent +public bool Contains<T>() where T : ISerieComponent ### SerieComponentAttribute.SerieComponentAttribute -public SerieComponentAttribute(Type type1) +public SerieComponentAttribute(Type type1) -public SerieComponentAttribute(Type type1, Type type2) +public SerieComponentAttribute(Type type1, Type type2) -public SerieComponentAttribute(Type type1, Type type2, Type type3) +public SerieComponentAttribute(Type type1, Type type2, Type type3) -public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4) +public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4) -public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5) +public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5) -public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6) +public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6) -public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7) +public SerieComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7) ## SerieContext @@ -6884,7 +6884,7 @@ class in XCharts.Runtime ### SerieContext.titleObject -public ChartLabel titleObject +public ChartLabel titleObject 绘制点 ## SerieConvertAttribute @@ -6895,19 +6895,19 @@ class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/Scrip ### SerieConvertAttribute.Contains -public bool Contains(Type type) +public bool Contains(Type type) ### SerieConvertAttribute.Contains<T> -public bool Contains<T>() where T : Serie +public bool Contains<T>() where T : Serie ### SerieConvertAttribute.SerieConvertAttribute -public SerieConvertAttribute(Type serie, Type serie2) +public SerieConvertAttribute(Type serie, Type serie2) -public SerieConvertAttribute(Type serie, Type serie2, Type serie3) +public SerieConvertAttribute(Type serie, Type serie2, Type serie3) -public SerieConvertAttribute(Type serie, Type serie2, Type serie3, Type serie4) +public SerieConvertAttribute(Type serie, Type serie2, Type serie3, Type serie4) ## SerieData @@ -6918,119 +6918,119 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### SerieData.areaStyle -public AreaStyle areaStyle +public AreaStyle areaStyle ### SerieData.blurStyle -public BlurStyle blurStyle +public BlurStyle blurStyle 淡出状态的样式。 ### SerieData.data -public List<double> data +public List<double> data 可指定任意维数的数值列表。 ### SerieData.emphasisStyle -public EmphasisStyle emphasisStyle +public EmphasisStyle emphasisStyle 高亮状态的样式 ### SerieData.id -public string id +public string id 数据项的唯一id。唯一id不是必须设置的。 ### SerieData.index -public override int index +public override int index 数据项索引。 ### SerieData.itemStyle -public ItemStyle itemStyle +public ItemStyle itemStyle 单个数据项的样式设置。 ### SerieData.labelLine -public LabelLine labelLine +public LabelLine labelLine ### SerieData.labelObject -public ChartLabel labelObject +public ChartLabel labelObject ### SerieData.labelStyle -public LabelStyle labelStyle +public LabelStyle labelStyle 单个数据项的标签设置。 ### SerieData.legendName -public string legendName +public string legendName 数据项图例名称。当数据项名称不为空时,图例名称即为系列名称;反之则为索引index。 ### SerieData.lineStyle -public LineStyle lineStyle +public LineStyle lineStyle ### SerieData.name -public string name +public string name 数据项名称。 ### SerieData.parentId -public string parentId +public string parentId 父节点id。父节点id不是必须设置的。 ### SerieData.radius -public float radius +public float radius 自定义半径。可用在饼图中自定义某个数据项的半径。 ### SerieData.selected -public bool selected +public bool selected 该数据项是否被选中。 ### SerieData.selectStyle -public SelectStyle selectStyle +public SelectStyle selectStyle 选中状态的样式。 ### SerieData.show -public bool show +public bool show 该数据项是否要显示。 ### SerieData.state -public SerieState state +public SerieState state 数据项的默认状态。 ### SerieData.symbol -public SerieSymbol symbol +public SerieSymbol symbol 单个数据项的标记设置。 ### SerieData.titleObject -public ChartLabel titleObject +public ChartLabel titleObject ### SerieData.titleStyle -public TitleStyle titleStyle +public TitleStyle titleStyle ### SerieData.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### SerieData.ClearVerticesDirty -public override void ClearVerticesDirty() +public override void ClearVerticesDirty() ### SerieData.EnsureComponent -public ISerieDataComponent EnsureComponent(Type type) +public ISerieDataComponent EnsureComponent(Type type) > 从 `v3.6.0` 开始支持 @@ -7038,7 +7038,7 @@ public ISerieDataComponent EnsureComponent(Type type) ### SerieData.EnsureComponent<T> -public T EnsureComponent<T>() where T : ChildComponent, ISerieDataComponent +public T EnsureComponent<T>() where T : ChildComponent, ISerieDataComponent > 从 `v3.6.0` 开始支持 @@ -7046,120 +7046,120 @@ public T EnsureComponent<T>() where T : ChildComponent, ISerieDataComponen ### SerieData.GetAddAnimationData -public double GetAddAnimationData(double min, double max, float animationDuration = 500f, bool unscaledTime = false) +public double GetAddAnimationData(double min, double max, float animationDuration = 500f, bool unscaledTime = false) ### SerieData.GetComponent<T> -public T GetComponent<T>() where T : ChildComponent, ISerieDataComponent +public T GetComponent<T>() where T : ChildComponent, ISerieDataComponent 获取数据项的指定类型的组件,如果不存在则返回null。 ### SerieData.GetCurrData -public double GetCurrData(int index, AnimationStyle animation, bool inverse, double min, double max, bool loop = false) +public double GetCurrData(int index, AnimationStyle animation, bool inverse, double min, double max, bool loop = false) -public double GetCurrData(int index, float dataAddDuration = 500f, float animationDuration = 500f, bool unscaledTime = false, bool inverse = false) +public double GetCurrData(int index, float dataAddDuration = 500f, float animationDuration = 500f, bool unscaledTime = false, bool inverse = false) -public double GetCurrData(int index, float dataAddDuration, float animationDuration, bool inverse, double min, double max, bool unscaledTime, bool loop = false) +public double GetCurrData(int index, float dataAddDuration, float animationDuration, bool inverse, double min, double max, bool unscaledTime, bool loop = false) ### SerieData.GetData -public double GetData(int index, double min, double max) +public double GetData(int index, double min, double max) ### SerieData.GetFirstData -public double GetFirstData(bool unscaledTime, float animationDuration = 500f) +public double GetFirstData(bool unscaledTime, float animationDuration = 500f) ### SerieData.GetLabelHeight -public float GetLabelHeight() +public float GetLabelHeight() ### SerieData.GetLabelWidth -public float GetLabelWidth() +public float GetLabelWidth() ### SerieData.GetLastData -public double GetLastData() +public double GetLastData() ### SerieData.GetMaxData -public double GetMaxData(bool inverse = false) +public double GetMaxData(bool inverse = false) 最大值。 ### SerieData.GetMinData -public double GetMinData(bool inverse = false) +public double GetMinData(bool inverse = false) 最小值。 ### SerieData.GetMinMaxData -public void GetMinMaxData(int startDimensionIndex, bool inverse, out double min, out double max) +public void GetMinMaxData(int startDimensionIndex, bool inverse, out double min, out double max) ### SerieData.GetOrAddComponent<T> -public T GetOrAddComponent<T>() where T : ChildComponent, ISerieDataComponent +public T GetOrAddComponent<T>() where T : ChildComponent, ISerieDataComponent ### SerieData.GetPreviousData -public double GetPreviousData(int index, bool inverse = false) +public double GetPreviousData(int index, bool inverse = false) ### SerieData.GetTotalData -public double GetTotalData() +public double GetTotalData() ### SerieData.IsDataChanged -public bool IsDataChanged() +public bool IsDataChanged() ### SerieData.IsInPolygon -public bool IsInPolygon(Vector2 p) +public bool IsInPolygon(Vector2 p) ### SerieData.List<string> -public static List<string> extraFieldList = new List<string>() +public static List<string> extraFieldList = new List<string>() 系列中的一个数据项。可存储数据名和1-n维个数据。 ### SerieData.OnAdd -public void OnAdd(AnimationStyle animation, double startValue = 0) +public void OnAdd(AnimationStyle animation, double startValue = 0) ### SerieData.RemoveAllComponent -public void RemoveAllComponent() +public void RemoveAllComponent() ### SerieData.RemoveComponent -public void RemoveComponent(Type type) +public void RemoveComponent(Type type) ### SerieData.RemoveComponent<T> -public void RemoveComponent<T>() where T : ISerieDataComponent +public void RemoveComponent<T>() where T : ISerieDataComponent ### SerieData.Reset -public void Reset() +public void Reset() ### SerieData.SetIconActive -public void SetIconActive(bool flag) +public void SetIconActive(bool flag) ### SerieData.SetLabelActive -public void SetLabelActive(bool flag) +public void SetLabelActive(bool flag) ### SerieData.SetPolygon -public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) +public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) -public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p5) +public void SetPolygon(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p5) ### SerieData.UpdateData -public bool UpdateData(int dimension, double value) +public bool UpdateData(int dimension, double value) ## SerieDataComponentAttribute @@ -7170,27 +7170,27 @@ class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/Scrip ### SerieDataComponentAttribute.Contains -public bool Contains(Type type) +public bool Contains(Type type) ### SerieDataComponentAttribute.Contains<T> -public bool Contains<T>() where T : ISerieComponent +public bool Contains<T>() where T : ISerieComponent ### SerieDataComponentAttribute.SerieDataComponentAttribute -public SerieDataComponentAttribute(Type type1) +public SerieDataComponentAttribute(Type type1) -public SerieDataComponentAttribute(Type type1, Type type2) +public SerieDataComponentAttribute(Type type1, Type type2) -public SerieDataComponentAttribute(Type type1, Type type2, Type type3) +public SerieDataComponentAttribute(Type type1, Type type2, Type type3) -public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4) +public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4) -public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5) +public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5) -public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6) +public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6) -public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7) +public SerieDataComponentAttribute(Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7) ## SerieDataContext @@ -7199,7 +7199,7 @@ class in XCharts.Runtime ### SerieDataContext.Reset -public void Reset() +public void Reset() ## SerieDataExtraFieldAttribute @@ -7207,23 +7207,23 @@ class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/Scrip ### SerieDataExtraFieldAttribute.Contains -public bool Contains(string field) +public bool Contains(string field) ### SerieDataExtraFieldAttribute.SerieDataExtraFieldAttribute -public SerieDataExtraFieldAttribute(string field1) +public SerieDataExtraFieldAttribute(string field1) -public SerieDataExtraFieldAttribute(string field1, string field2) +public SerieDataExtraFieldAttribute(string field1, string field2) -public SerieDataExtraFieldAttribute(string field1, string field2, string field3) +public SerieDataExtraFieldAttribute(string field1, string field2, string field3) -public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4) +public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4) -public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5) +public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5) -public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6) +public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6) -public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6, string field7) +public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6, string field7) ## SerieDataLink @@ -7254,32 +7254,32 @@ serie事件的数据。 ### SerieEventData.dataIndex -public int dataIndex +public int dataIndex 在serie.data中的索引。 ### SerieEventData.dimension -public int dimension +public int dimension 数据的维度。 ### SerieEventData.pointerPos -public Vector3 pointerPos +public Vector3 pointerPos 鼠标在chart中的位置。 ### SerieEventData.serieIndex -public int serieIndex +public int serieIndex 在chart.series中的索引。 ### SerieEventData.value -public double value +public double value 数据的值。 ### SerieEventData.Reset -public void Reset() +public void Reset() ## SerieEventDataPool @@ -7287,11 +7287,11 @@ class in XCharts.Runtime ### SerieEventDataPool.Get -public static SerieEventData Get(Vector3 pos, int serieIndex, int dataIndex, int dimension, double value) +public static SerieEventData Get(Vector3 pos, int serieIndex, int dataIndex, int dimension, double value) ### SerieEventDataPool.Release -public static void Release(SerieEventData toRelease) +public static void Release(SerieEventData toRelease) ## SerieHandler @@ -7299,243 +7299,243 @@ class in XCharts.Runtime ### SerieHandler.AfterUpdate() -public virtual void AfterUpdate() +public virtual void AfterUpdate() ### SerieHandler.attribute -public SerieHandlerAttribute attribute +public SerieHandlerAttribute attribute ### SerieHandler.BeforeUpdate() -public virtual void BeforeUpdate() +public virtual void BeforeUpdate() ### SerieHandler.chart -public BaseChart chart +public BaseChart chart ### SerieHandler.defaultDimension -public virtual int defaultDimension +public virtual int defaultDimension ### SerieHandler.eventData) -public virtual void OnBeginDrag(PointerEventData eventData) +public virtual void OnBeginDrag(PointerEventData eventData) ### SerieHandler.eventData) -public virtual void OnDrag(PointerEventData eventData) +public virtual void OnDrag(PointerEventData eventData) ### SerieHandler.eventData) -public virtual void OnEndDrag(PointerEventData eventData) +public virtual void OnEndDrag(PointerEventData eventData) ### SerieHandler.eventData) -public virtual void OnPointerClick(PointerEventData eventData) +public virtual void OnPointerClick(PointerEventData eventData) ### SerieHandler.eventData) -public virtual void OnPointerDown(PointerEventData eventData) +public virtual void OnPointerDown(PointerEventData eventData) ### SerieHandler.eventData) -public virtual void OnPointerEnter(PointerEventData eventData) +public virtual void OnPointerEnter(PointerEventData eventData) ### SerieHandler.eventData) -public virtual void OnPointerExit(PointerEventData eventData) +public virtual void OnPointerExit(PointerEventData eventData) ### SerieHandler.eventData) -public virtual void OnPointerUp(PointerEventData eventData) +public virtual void OnPointerUp(PointerEventData eventData) ### SerieHandler.eventData) -public virtual void OnScroll(PointerEventData eventData) +public virtual void OnScroll(PointerEventData eventData) ### SerieHandler.ForceUpdateSerieContext() -public virtual void ForceUpdateSerieContext() +public virtual void ForceUpdateSerieContext() ### SerieHandler.GetPointerItemDataDimension() -public virtual int GetPointerItemDataDimension() +public virtual int GetPointerItemDataDimension() ### SerieHandler.GetPointerItemDataIndex() -public virtual int GetPointerItemDataIndex() +public virtual int GetPointerItemDataIndex() ### SerieHandler.InitComponent() -public virtual void InitComponent() +public virtual void InitComponent() ### SerieHandler.inited -public bool inited +public bool inited ### SerieHandler.legendName) -public virtual void OnLegendButtonEnter(int index, string legendName) +public virtual void OnLegendButtonEnter(int index, string legendName) ### SerieHandler.legendName) -public virtual void OnLegendButtonExit(int index, string legendName) +public virtual void OnLegendButtonExit(int index, string legendName) ### SerieHandler.OnDataUpdate() -public virtual void OnDataUpdate() +public virtual void OnDataUpdate() ### SerieHandler.RefreshLabelInternal() -public virtual void RefreshLabelInternal() +public virtual void RefreshLabelInternal() ### SerieHandler.RefreshLabelNextFrame() -public virtual void RefreshLabelNextFrame() +public virtual void RefreshLabelNextFrame() ### SerieHandler.RemoveComponent() -public virtual void RemoveComponent() +public virtual void RemoveComponent() ### SerieHandler.sb) -public virtual void CheckComponent(StringBuilder sb) +public virtual void CheckComponent(StringBuilder sb) ### SerieHandler.show) -public virtual void OnLegendButtonClick(int index, string legendName, bool show) +public virtual void OnLegendButtonClick(int index, string legendName, bool show) ### SerieHandler.Update() -public virtual void Update() +public virtual void Update() ### SerieHandler.UpdateSerieContext() -public virtual void UpdateSerieContext() +public virtual void UpdateSerieContext() ### SerieHandler.vh) -public virtual void DrawBase(VertexHelper vh) +public virtual void DrawBase(VertexHelper vh) ### SerieHandler.vh) -public virtual void DrawSerie(VertexHelper vh) +public virtual void DrawSerie(VertexHelper vh) ### SerieHandler.vh) -public virtual void DrawTop(VertexHelper vh) +public virtual void DrawTop(VertexHelper vh) ### SerieHandler.vh) -public virtual void DrawUpper(VertexHelper vh) +public virtual void DrawUpper(VertexHelper vh) ### SerieHandler.AfterUpdate -public virtual void AfterUpdate() { } +public virtual void AfterUpdate() { } ### SerieHandler.BeforeUpdate -public virtual void BeforeUpdate() { } +public virtual void BeforeUpdate() { } ### SerieHandler.CheckComponent -public virtual void CheckComponent(StringBuilder sb) { } +public virtual void CheckComponent(StringBuilder sb) { } ### SerieHandler.DrawBase -public virtual void DrawBase(VertexHelper vh) { } +public virtual void DrawBase(VertexHelper vh) { } ### SerieHandler.DrawSerie -public virtual void DrawSerie(VertexHelper vh) { } +public virtual void DrawSerie(VertexHelper vh) { } ### SerieHandler.DrawTop -public virtual void DrawTop(VertexHelper vh) { } +public virtual void DrawTop(VertexHelper vh) { } ### SerieHandler.DrawUpper -public virtual void DrawUpper(VertexHelper vh) { } +public virtual void DrawUpper(VertexHelper vh) { } ### SerieHandler.ForceUpdateSerieContext -public virtual void ForceUpdateSerieContext() { } +public virtual void ForceUpdateSerieContext() { } ### SerieHandler.InitComponent -public virtual void InitComponent() { } +public virtual void InitComponent() { } ### SerieHandler.OnBeginDrag -public virtual void OnBeginDrag(PointerEventData eventData) { } +public virtual void OnBeginDrag(PointerEventData eventData) { } ### SerieHandler.OnDataUpdate -public virtual void OnDataUpdate() { } +public virtual void OnDataUpdate() { } ### SerieHandler.OnDrag -public virtual void OnDrag(PointerEventData eventData) { } +public virtual void OnDrag(PointerEventData eventData) { } ### SerieHandler.OnEndDrag -public virtual void OnEndDrag(PointerEventData eventData) { } +public virtual void OnEndDrag(PointerEventData eventData) { } ### SerieHandler.OnLegendButtonClick -public virtual void OnLegendButtonClick(int index, string legendName, bool show) { } +public virtual void OnLegendButtonClick(int index, string legendName, bool show) { } ### SerieHandler.OnLegendButtonEnter -public virtual void OnLegendButtonEnter(int index, string legendName) { } +public virtual void OnLegendButtonEnter(int index, string legendName) { } ### SerieHandler.OnLegendButtonExit -public virtual void OnLegendButtonExit(int index, string legendName) { } +public virtual void OnLegendButtonExit(int index, string legendName) { } ### SerieHandler.OnPointerClick -public virtual void OnPointerClick(PointerEventData eventData) { } +public virtual void OnPointerClick(PointerEventData eventData) { } ### SerieHandler.OnPointerDown -public virtual void OnPointerDown(PointerEventData eventData) { } +public virtual void OnPointerDown(PointerEventData eventData) { } ### SerieHandler.OnPointerEnter -public virtual void OnPointerEnter(PointerEventData eventData) { } +public virtual void OnPointerEnter(PointerEventData eventData) { } ### SerieHandler.OnPointerExit -public virtual void OnPointerExit(PointerEventData eventData) { } +public virtual void OnPointerExit(PointerEventData eventData) { } ### SerieHandler.OnPointerUp -public virtual void OnPointerUp(PointerEventData eventData) { } +public virtual void OnPointerUp(PointerEventData eventData) { } ### SerieHandler.OnScroll -public virtual void OnScroll(PointerEventData eventData) { } +public virtual void OnScroll(PointerEventData eventData) { } ### SerieHandler.RefreshLabelInternal -public virtual void RefreshLabelInternal() { } +public virtual void RefreshLabelInternal() { } ### SerieHandler.RefreshLabelNextFrame -public virtual void RefreshLabelNextFrame() { } +public virtual void RefreshLabelNextFrame() { } ### SerieHandler.RemoveComponent -public virtual void RemoveComponent() { } +public virtual void RemoveComponent() { } ### SerieHandler.Update -public virtual void Update() { } +public virtual void Update() { } ### SerieHandler.UpdateSerieContext -public virtual void UpdateSerieContext() { } +public virtual void UpdateSerieContext() { } ## SerieHandler where T @@ -7547,95 +7547,95 @@ class in XCharts.Runtime / 继承自: [SerieHandler where T](#seriehandler where ### SerieHandler<T>.labelObject -public GameObject labelObject +public GameObject labelObject ### SerieHandler<T>.serie -public T serie +public T serie ### SerieHandler<T>.AfterUpdate -public override void AfterUpdate() +public override void AfterUpdate() ### SerieHandler<T>.BeforeUpdate -public override void BeforeUpdate() +public override void BeforeUpdate() ### SerieHandler<T>.DrawLabelLineSymbol -public void DrawLabelLineSymbol(VertexHelper vh, LabelLine labelLine, Vector3 startPos, Vector3 endPos, Color32 defaultColor) +public void DrawLabelLineSymbol(VertexHelper vh, LabelLine labelLine, Vector3 startPos, Vector3 endPos, Color32 defaultColor) ### SerieHandler<T>.ForceUpdateSerieContext -public override void ForceUpdateSerieContext() +public override void ForceUpdateSerieContext() ### SerieHandler<T>.GetPointerItemDataDimension -public override int GetPointerItemDataDimension() +public override int GetPointerItemDataDimension() ### SerieHandler<T>.GetPointerItemDataIndex -public override int GetPointerItemDataIndex() +public override int GetPointerItemDataIndex() ### SerieHandler<T>.GetSerieDataAutoColor -public virtual Color GetSerieDataAutoColor(SerieData serieData) +public virtual Color GetSerieDataAutoColor(SerieData serieData) ### SerieHandler<T>.GetSerieDataLabelOffset -public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label) +public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label) ### SerieHandler<T>.GetSerieDataLabelPosition -public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label) +public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label) ### SerieHandler<T>.GetSerieDataTitlePosition -public virtual Vector3 GetSerieDataTitlePosition(SerieData serieData, TitleStyle titleStyle) +public virtual Vector3 GetSerieDataTitlePosition(SerieData serieData, TitleStyle titleStyle) ### SerieHandler<T>.InitComponent -public override void InitComponent() +public override void InitComponent() ### SerieHandler<T>.OnLegendButtonClick -public override void OnLegendButtonClick(int index, string legendName, bool show) +public override void OnLegendButtonClick(int index, string legendName, bool show) ### SerieHandler<T>.OnLegendButtonEnter -public override void OnLegendButtonEnter(int index, string legendName) +public override void OnLegendButtonEnter(int index, string legendName) ### SerieHandler<T>.OnLegendButtonExit -public override void OnLegendButtonExit(int index, string legendName) +public override void OnLegendButtonExit(int index, string legendName) ### SerieHandler<T>.OnPointerClick -public override void OnPointerClick(PointerEventData eventData) +public override void OnPointerClick(PointerEventData eventData) ### SerieHandler<T>.OnPointerDown -public override void OnPointerDown(PointerEventData eventData) +public override void OnPointerDown(PointerEventData eventData) ### SerieHandler<T>.RefreshEndLabelInternal -public virtual void RefreshEndLabelInternal() +public virtual void RefreshEndLabelInternal() ### SerieHandler<T>.RefreshLabelInternal -public override void RefreshLabelInternal() +public override void RefreshLabelInternal() ### SerieHandler<T>.RefreshLabelNextFrame -public override void RefreshLabelNextFrame() +public override void RefreshLabelNextFrame() ### SerieHandler<T>.RemoveComponent -public override void RemoveComponent() +public override void RemoveComponent() ### SerieHandler<T>.Update -public override void Update() +public override void Update() ## SerieHandlerAttribute @@ -7643,7 +7643,7 @@ class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/Scrip ### SerieHandlerAttribute.SerieHandlerAttribute -public SerieHandlerAttribute(Type handler, bool allowMultiple) +public SerieHandlerAttribute(Type handler, bool allowMultiple) ## SerieHelper @@ -7652,151 +7652,151 @@ class in XCharts.Runtime ### SerieHelper.CloneSerie<T> -public static T CloneSerie<T>(Serie serie) where T : Serie +public static T CloneSerie<T>(Serie serie) where T : Serie ### SerieHelper.CopySerie -public static void CopySerie(Serie oldSerie, Serie newSerie) +public static void CopySerie(Serie oldSerie, Serie newSerie) ### SerieHelper.GetAllMinMaxData -public static void GetAllMinMaxData(Serie serie, double ceilRate = 0, DataZoom dataZoom = null) +public static void GetAllMinMaxData(Serie serie, double ceilRate = 0, DataZoom dataZoom = null) ### SerieHelper.GetAreaStyle -public static AreaStyle GetAreaStyle(Serie serie, SerieData serieData) +public static AreaStyle GetAreaStyle(Serie serie, SerieData serieData) ### SerieHelper.GetAverageData -public static double GetAverageData(Serie serie, int dimension = 1, DataZoom dataZoom = null) +public static double GetAverageData(Serie serie, int dimension = 1, DataZoom dataZoom = null) ### SerieHelper.GetBlurStyle -public static BlurStyle GetBlurStyle(Serie serie, SerieData serieData) +public static BlurStyle GetBlurStyle(Serie serie, SerieData serieData) ### SerieHelper.GetEmphasisStyle -public static EmphasisStyle GetEmphasisStyle(Serie serie, SerieData serieData) +public static EmphasisStyle GetEmphasisStyle(Serie serie, SerieData serieData) ### SerieHelper.GetItemColor -public static Color32 GetItemColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto, bool opacity = true) +public static Color32 GetItemColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto, bool opacity = true) ### SerieHelper.GetItemFormatter -public static string GetItemFormatter(Serie serie, SerieData serieData, string defaultFormatter = null) +public static string GetItemFormatter(Serie serie, SerieData serieData, string defaultFormatter = null) ### SerieHelper.GetItemMarker -public static string GetItemMarker(Serie serie, SerieData serieData, string defaultMarker = null) +public static string GetItemMarker(Serie serie, SerieData serieData, string defaultMarker = null) ### SerieHelper.GetItemStyle -public static ItemStyle GetItemStyle(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) +public static ItemStyle GetItemStyle(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) ### SerieHelper.GetLineColor -public static Color32 GetLineColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto) +public static Color32 GetLineColor(Serie serie, SerieData serieData, ThemeStyle theme, int index, SerieState state = SerieState.Auto) ### SerieHelper.GetLineStyle -public static LineStyle GetLineStyle(Serie serie, SerieData serieData) +public static LineStyle GetLineStyle(Serie serie, SerieData serieData) ### SerieHelper.GetMaxData -public static double GetMaxData(Serie serie, int dimension = 1, DataZoom dataZoom = null) +public static double GetMaxData(Serie serie, int dimension = 1, DataZoom dataZoom = null) ### SerieHelper.GetMaxSerieData -public static SerieData GetMaxSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null) +public static SerieData GetMaxSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null) ### SerieHelper.GetMedianData -public static double GetMedianData(Serie serie, int dimension = 1, DataZoom dataZoom = null) +public static double GetMedianData(Serie serie, int dimension = 1, DataZoom dataZoom = null) ### SerieHelper.GetMinData -public static double GetMinData(Serie serie, int dimension = 1, DataZoom dataZoom = null) +public static double GetMinData(Serie serie, int dimension = 1, DataZoom dataZoom = null) ### SerieHelper.GetMinMaxData -public static void GetMinMaxData(Serie serie, out double min, out double max, DataZoom dataZoom = null, int dimension = 0) +public static void GetMinMaxData(Serie serie, out double min, out double max, DataZoom dataZoom = null, int dimension = 0) 获得系列所有数据的最大最小值。 ### SerieHelper.GetMinSerieData -public static SerieData GetMinSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null) +public static SerieData GetMinSerieData(Serie serie, int dimension = 1, DataZoom dataZoom = null) ### SerieHelper.GetNumericFormatter -public static string GetNumericFormatter(Serie serie, SerieData serieData, string defaultFormatter = null) +public static string GetNumericFormatter(Serie serie, SerieData serieData, string defaultFormatter = null) ### SerieHelper.GetSelectStyle -public static SelectStyle GetSelectStyle(Serie serie, SerieData serieData) +public static SelectStyle GetSelectStyle(Serie serie, SerieData serieData) ### SerieHelper.GetSerieLabel -public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) +public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) ### SerieHelper.GetSerieLabelLine -public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) +public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) ### SerieHelper.GetSerieState -public static SerieState GetSerieState(Serie serie, SerieData serieData, bool defaultSerieState = false) +public static SerieState GetSerieState(Serie serie, SerieData serieData, bool defaultSerieState = false) -public static SerieState GetSerieState(SerieData serieData) +public static SerieState GetSerieState(SerieData serieData) ### SerieHelper.GetSerieSymbol -public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) +public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData, SerieState state = SerieState.Auto) ### SerieHelper.GetStateStyle -public static StateStyle GetStateStyle(Serie serie, SerieData serieData, SerieState state) +public static StateStyle GetStateStyle(Serie serie, SerieData serieData, SerieState state) ### SerieHelper.GetSysmbolSize -public static float GetSysmbolSize(Serie serie, SerieData serieData, float defaultSize, SerieState state = SerieState.Auto, bool checkAnimation = false) +public static float GetSysmbolSize(Serie serie, SerieData serieData, float defaultSize, SerieState state = SerieState.Auto, bool checkAnimation = false) ### SerieHelper.GetTitleStyle -public static TitleStyle GetTitleStyle(Serie serie, SerieData serieData) +public static TitleStyle GetTitleStyle(Serie serie, SerieData serieData) ### SerieHelper.IsAllZeroValue -public static bool IsAllZeroValue(Serie serie, int dimension = 1) +public static bool IsAllZeroValue(Serie serie, int dimension = 1) 系列指定维数的数据是否全部为0。 ### SerieHelper.IsDownPoint -public static bool IsDownPoint(Serie serie, int index) +public static bool IsDownPoint(Serie serie, int index) ### SerieHelper.UpdateCenter -public static void UpdateCenter(Serie serie, BaseChart chart) +public static void UpdateCenter(Serie serie, BaseChart chart) 更新运行时中心点和半径 ### SerieHelper.UpdateFilterData -public static void UpdateFilterData(Serie serie, DataZoom dataZoom) +public static void UpdateFilterData(Serie serie, DataZoom dataZoom) 根据dataZoom更新数据列表缓存 ### SerieHelper.UpdateMinMaxData -public static void UpdateMinMaxData(Serie serie, int dimension, double ceilRate = 0, DataZoom dataZoom = null) +public static void UpdateMinMaxData(Serie serie, int dimension, double ceilRate = 0, DataZoom dataZoom = null) 获得指定维数的最大最小值 ### SerieHelper.UpdateRect -public static void UpdateRect(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight) +public static void UpdateRect(Serie serie, Vector3 chartPosition, float chartWidth, float chartHeight) ### SerieHelper.UpdateSerieRuntimeFilterData -public static void UpdateSerieRuntimeFilterData(Serie serie, bool filterInvisible = true) +public static void UpdateSerieRuntimeFilterData(Serie serie, bool filterInvisible = true) ## SerieLabelHelper @@ -7804,15 +7804,15 @@ class in XCharts.Runtime ### SerieLabelHelper.CanShowLabel -public static bool CanShowLabel(Serie serie, SerieData serieData, LabelStyle label, int dimesion) +public static bool CanShowLabel(Serie serie, SerieData serieData, LabelStyle label, int dimesion) ### SerieLabelHelper.GetLabelColor -public static Color GetLabelColor(Serie serie, ThemeStyle theme, int index) +public static Color GetLabelColor(Serie serie, ThemeStyle theme, int index) ### SerieLabelHelper.SetGaugeLabelText -public static void SetGaugeLabelText(Serie serie) +public static void SetGaugeLabelText(Serie serie) ## SerieLabelPool @@ -7820,15 +7820,15 @@ class in XCharts.Runtime ### SerieLabelPool.ClearAll -public static void ClearAll() +public static void ClearAll() ### SerieLabelPool.Release -public static void Release(GameObject element) +public static void Release(GameObject element) ### SerieLabelPool.ReleaseAll -public static void ReleaseAll(Transform parent) +public static void ReleaseAll(Transform parent) ## SerieParams @@ -7840,63 +7840,63 @@ class in XCharts.Runtime ### SeriesHelper.GetLastStackSerie -public static Serie GetLastStackSerie(List<Serie> series, Serie serie) +public static Serie GetLastStackSerie(List<Serie> series, Serie serie) 获得上一个同堆叠且显示的serie。 ### SeriesHelper.GetLegalSerieNameList -public static List<string> GetLegalSerieNameList(List<Serie> series) +public static List<string> GetLegalSerieNameList(List<Serie> series) ### SeriesHelper.GetMaxSerieDataCount -public static int GetMaxSerieDataCount(List<Serie> series) +public static int GetMaxSerieDataCount(List<Serie> series) ### SeriesHelper.GetMinAnimationDuration -public static float GetMinAnimationDuration(List<Serie> series) +public static float GetMinAnimationDuration(List<Serie> series) ### SeriesHelper.GetNameColor -public static Color GetNameColor(BaseChart chart, int index, string name) +public static Color GetNameColor(BaseChart chart, int index, string name) ### SeriesHelper.GetStackSeries -public static void GetStackSeries(List<Serie> series, ref Dictionary<int, List<Serie>> stackSeries) +public static void GetStackSeries(List<Serie> series, ref Dictionary<int, List<Serie>> stackSeries) 获得堆叠系列列表 ### SeriesHelper.IsAnyClipSerie -public static bool IsAnyClipSerie(List<Serie> series) +public static bool IsAnyClipSerie(List<Serie> series) 是否有需裁剪的serie。 ### SeriesHelper.IsLegalLegendName -public static bool IsLegalLegendName(string name) +public static bool IsLegalLegendName(string name) ### SeriesHelper.IsPercentStack<T> -public static bool IsPercentStack<T>(List<Serie> series, string stackName) where T : Serie +public static bool IsPercentStack<T>(List<Serie> series, string stackName) where T : Serie 是否时百分比堆叠 ### SeriesHelper.IsStack -public static bool IsStack(List<Serie> series) +public static bool IsStack(List<Serie> series) 是否由数据堆叠 ### SeriesHelper.IsStack<T> -public static bool IsStack<T>(List<Serie> series, string stackName) where T : Serie +public static bool IsStack<T>(List<Serie> series, string stackName) where T : Serie 是否堆叠 ### SeriesHelper.UpdateSerieNameList -public static void UpdateSerieNameList(BaseChart chart, ref List<string> serieNameList) +public static void UpdateSerieNameList(BaseChart chart, ref List<string> serieNameList) 获得所有系列名,不包含空名字。 ### SeriesHelper.UpdateStackDataList -public static void UpdateStackDataList(List<Serie> series, Serie currSerie, DataZoom dataZoom, List<List<SerieData>> dataList) +public static void UpdateStackDataList(List<Serie> series, Serie currSerie, DataZoom dataZoom, List<List<SerieData>> dataList) ## SerieState @@ -7920,16 +7920,16 @@ class in XCharts.Runtime / 继承自: [SymbolStyle](#symbolstyle),[ISerieDataCom ### SerieSymbol.GetSize -public float GetSize(List<double> data, float themeSize) +public float GetSize(List<double> data, float themeSize) 根据指定的sizeType获得标记的大小 ### SerieSymbol.Reset -public override void Reset() +public override void Reset() ### SerieSymbol.ShowSymbol -public bool ShowSymbol(int dataIndex, int dataCount) +public bool ShowSymbol(int dataIndex, int dataCount) ## SerieTheme @@ -7937,11 +7937,11 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### SerieTheme.Copy -public void Copy(SerieTheme theme) +public void Copy(SerieTheme theme) ### SerieTheme.SerieTheme -public SerieTheme(ThemeType theme) +public SerieTheme(ThemeType theme) ## Settings @@ -7951,15 +7951,15 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### Settings.show -public bool show +public bool show ### Settings.Copy -public void Copy(Settings settings) +public void Copy(Settings settings) ### Settings.Reset -public override void Reset() +public override void Reset() ## SimplifiedBar @@ -7967,19 +7967,19 @@ class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ine ### SimplifiedBar.containerIndex -public int containerIndex +public int containerIndex ### SimplifiedBar.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### SimplifiedBar.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ### SimplifiedBar.ConvertSerie -public static SimplifiedBar ConvertSerie(Serie serie) +public static SimplifiedBar ConvertSerie(Serie serie) ## SimplifiedBarChart @@ -7993,19 +7993,19 @@ class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ine ### SimplifiedCandlestick.containerIndex -public int containerIndex +public int containerIndex ### SimplifiedCandlestick.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### SimplifiedCandlestick.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ### SimplifiedCandlestick.ConvertSerie -public static SimplifiedCandlestick ConvertSerie(Serie serie) +public static SimplifiedCandlestick ConvertSerie(Serie serie) ## SimplifiedCandlestickChart @@ -8019,19 +8019,19 @@ class in XCharts.Runtime / 继承自: [Serie](#serie),[INeedSerieContainer](#ine ### SimplifiedLine.containerIndex -public int containerIndex +public int containerIndex ### SimplifiedLine.containterInstanceId -public int containterInstanceId +public int containterInstanceId ### SimplifiedLine.AddDefaultSerie -public static Serie AddDefaultSerie(BaseChart chart, string serieName) +public static Serie AddDefaultSerie(BaseChart chart, string serieName) ### SimplifiedLine.ConvertSerie -public static SimplifiedLine ConvertSerie(Serie serie) +public static SimplifiedLine ConvertSerie(Serie serie) ## SimplifiedLineChart @@ -8045,7 +8045,7 @@ class in XCharts.Runtime / 继承自: [Attribute](https://docs.unity3d.com/Scrip ### Since.Since -public Since(string version) +public Since(string version) ## SingleAxis @@ -8055,11 +8055,11 @@ class in XCharts.Runtime / 继承自: [Axis](#axis),[IUpdateRuntimeData](#iupdat ### SingleAxis.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() ### SingleAxis.UpdateRuntimeData -public void UpdateRuntimeData(BaseChart chart) +public void UpdateRuntimeData(BaseChart chart) ## SingleAxisCoord @@ -8071,17 +8071,17 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### StageColor.color -public Color32 color +public Color32 color 颜色。 ### StageColor.percent -public float percent +public float percent 结束位置百分比。 ### StageColor.StageColor -public StageColor(float percent, Color32 color) +public StageColor(float percent, Color32 color) ## StateStyle @@ -8093,15 +8093,15 @@ Serie的状态样式。Serie的状态有正常,高亮,淡出,选中四种 ### StateStyle.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### StateStyle.ClearVerticesDirty -public override void ClearVerticesDirty() +public override void ClearVerticesDirty() ### StateStyle.Reset -public void Reset() +public void Reset() ## SubTitleTheme @@ -8109,7 +8109,7 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) ### SubTitleTheme.SubTitleTheme -public SubTitleTheme(ThemeType theme) : base(theme) +public SubTitleTheme(ThemeType theme) : base(theme) ## SVG @@ -8117,12 +8117,12 @@ class in XUGL ### SVG.DrawPath -public static void DrawPath(VertexHelper vh, SVGPath path) +public static void DrawPath(VertexHelper vh, SVGPath path) ### SVG.Test -public static void Test(VertexHelper vh) +public static void Test(VertexHelper vh) ## SVGPath @@ -8130,15 +8130,15 @@ class in XUGL ### SVGPath.AddSegment -public void AddSegment(SVGPathSeg seg) +public void AddSegment(SVGPathSeg seg) ### SVGPath.Draw -public void Draw(VertexHelper vh) +public void Draw(VertexHelper vh) ### SVGPath.Parse -public static SVGPath Parse(string path) +public static SVGPath Parse(string path) ## SVGPathSeg @@ -8146,27 +8146,27 @@ class in XUGL ### SVGPathSeg.p1 -public Vector2 p1 +public Vector2 p1 ### SVGPathSeg.p2 -public Vector2 p2 +public Vector2 p2 ### SVGPathSeg.p3 -public Vector2 p3 +public Vector2 p3 ### SVGPathSeg.x -public float x +public float x ### SVGPathSeg.y -public float y +public float y ### SVGPathSeg.SVGPathSeg -public SVGPathSeg(SVGPathSegType type) +public SVGPathSeg(SVGPathSegType type) ## SVGPathSegType @@ -8205,20 +8205,20 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类 ### SymbolStyle.animationSize -public List<float> animationSize +public List<float> animationSize 带有涟漪特效动画的散点图的动画参数。 ### SymbolStyle.offset3 -public Vector3 offset3 +public Vector3 offset3 ### SymbolStyle.GetColor -public Color32 GetColor(Color32 defaultColor) +public Color32 GetColor(Color32 defaultColor) ### SymbolStyle.Reset -public virtual void Reset() +public virtual void Reset() ## SymbolType @@ -8251,19 +8251,19 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### TextLimit.Clone -public TextLimit Clone() +public TextLimit Clone() ### TextLimit.Copy -public void Copy(TextLimit textLimit) +public void Copy(TextLimit textLimit) ### TextLimit.GetLimitContent -public string GetLimitContent(string content) +public string GetLimitContent(string content) ### TextLimit.SetRelatedText -public void SetRelatedText(ChartText txt, float labelWidth) +public void SetRelatedText(ChartText txt, float labelWidth) ## TextPadding @@ -8273,12 +8273,12 @@ class in XCharts.Runtime / 继承自: [Padding](#padding) ### TextPadding.TextPadding() -public TextPadding() +public TextPadding() 文本的内边距设置。 ### TextPadding.TextPadding -public TextPadding(float top, float right, float bottom, float left) +public TextPadding(float top, float right, float bottom, float left) ## TextStyle @@ -8289,38 +8289,38 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### TextStyle.TextStyle() -public TextStyle() +public TextStyle() ### TextStyle.Copy -public void Copy(TextStyle textStyle) +public void Copy(TextStyle textStyle) ### TextStyle.GetAlignment -public TextAnchor GetAlignment(TextAnchor defaultAlignment) +public TextAnchor GetAlignment(TextAnchor defaultAlignment) ### TextStyle.GetColor -public Color GetColor(Color defaultColor) +public Color GetColor(Color defaultColor) ### TextStyle.GetFontSize -public int GetFontSize(ComponentTheme defaultTheme) +public int GetFontSize(ComponentTheme defaultTheme) ### TextStyle.TextStyle -public TextStyle(int fontSize) +public TextStyle(int fontSize) -public TextStyle(int fontSize, FontStyle fontStyle) +public TextStyle(int fontSize, FontStyle fontStyle) -public TextStyle(int fontSize, FontStyle fontStyle, Color color) +public TextStyle(int fontSize, FontStyle fontStyle, Color color) -public TextStyle(int fontSize, FontStyle fontStyle, Color color, int rorate) +public TextStyle(int fontSize, FontStyle fontStyle, Color color, int rorate) ### TextStyle.UpdateAlignmentByLocation -public void UpdateAlignmentByLocation(Location location) +public void UpdateAlignmentByLocation(Location location) ## Theme @@ -8330,105 +8330,105 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co ### Theme.axis -public AxisTheme axis +public AxisTheme axis ### Theme.colorPalette -public List<Color32> colorPalette +public List<Color32> colorPalette 调色盘颜色列表。如果系列没有设置颜色,则会依次循环从该列表中取颜色作为系列颜色。 ### Theme.common -public ComponentTheme common +public ComponentTheme common ### Theme.dataZoom -public DataZoomTheme dataZoom +public DataZoomTheme dataZoom ### Theme.legend -public LegendTheme legend +public LegendTheme legend ### Theme.serie -public SerieTheme serie +public SerieTheme serie ### Theme.subTitle -public SubTitleTheme subTitle +public SubTitleTheme subTitle ### Theme.title -public TitleTheme title +public TitleTheme title ### Theme.tooltip -public TooltipTheme tooltip +public TooltipTheme tooltip ### Theme.visualMap -public VisualMapTheme visualMap +public VisualMapTheme visualMap ### Theme.CheckWarning -public void CheckWarning(StringBuilder sb) +public void CheckWarning(StringBuilder sb) ### Theme.CloneTheme -public Theme CloneTheme() +public Theme CloneTheme() 克隆主题。 ### Theme.CopyTheme -public void CopyTheme(Theme theme) +public void CopyTheme(Theme theme) 复制主题的所有配置。 ### Theme.GetColor -public static Color32 GetColor(string hexColorStr) +public static Color32 GetColor(string hexColorStr) 将字符串颜色值转成Color。 ### Theme.GetColorStr -public string GetColorStr(int index) +public string GetColorStr(int index) 获得指定索引的十六进制颜色值字符串。 ### Theme.GetHashCode -public override int GetHashCode() +public override int GetHashCode() ### Theme.ResetTheme -public bool ResetTheme() +public bool ResetTheme() 重置,清除所有自定义配置。 ### Theme.ResetToDarkTheme -public static void ResetToDarkTheme(Theme theme) +public static void ResetToDarkTheme(Theme theme) 暗主题。 ### Theme.ResetToDefaultTheme -public static void ResetToDefaultTheme(Theme theme) +public static void ResetToDefaultTheme(Theme theme) 默认主题。 ### Theme.SetColorPalette -public void SetColorPalette(List<string> hexColorStringList) +public void SetColorPalette(List<string> hexColorStringList) ### Theme.SetDefaultFont -public void SetDefaultFont() +public void SetDefaultFont() ### Theme.SyncFontToSubComponent -public void SyncFontToSubComponent() +public void SyncFontToSubComponent() ### Theme.SyncTMPFontToSubComponent -public void SyncTMPFontToSubComponent() +public void SyncTMPFontToSubComponent() ## ThemeStyle @@ -8438,70 +8438,70 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### ThemeStyle.axis -public AxisTheme axis +public AxisTheme axis ### ThemeStyle.common -public ComponentTheme common +public ComponentTheme common ### ThemeStyle.customColorPalette -public List<Color32> customColorPalette +public List<Color32> customColorPalette ### ThemeStyle.dataZoom -public DataZoomTheme dataZoom +public DataZoomTheme dataZoom ### ThemeStyle.legend -public LegendTheme legend +public LegendTheme legend ### ThemeStyle.serie -public SerieTheme serie +public SerieTheme serie ### ThemeStyle.show -public bool show +public bool show ### ThemeStyle.subTitle -public SubTitleTheme subTitle +public SubTitleTheme subTitle ### ThemeStyle.title -public TitleTheme title +public TitleTheme title ### ThemeStyle.tooltip -public TooltipTheme tooltip +public TooltipTheme tooltip ### ThemeStyle.visualMap -public VisualMapTheme visualMap +public VisualMapTheme visualMap ### ThemeStyle.CheckWarning -public void CheckWarning(StringBuilder sb) +public void CheckWarning(StringBuilder sb) ### ThemeStyle.GetBackgroundColor -public Color32 GetBackgroundColor(Background background) +public Color32 GetBackgroundColor(Background background) ### ThemeStyle.GetColor -public static Color32 GetColor(string hexColorStr) +public static Color32 GetColor(string hexColorStr) 将字符串颜色值转成Color。 ### ThemeStyle.GetColorStr -public string GetColorStr(int index) +public string GetColorStr(int index) 获得指定索引的十六进制颜色值字符串。 ### ThemeStyle.SyncSharedThemeColorToCustom -public void SyncSharedThemeColorToCustom() +public void SyncSharedThemeColorToCustom() ## ThemeType @@ -8524,25 +8524,25 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent),[IProperty ### Title.show -public bool show +public bool show 是否显示标题组件。 ### Title.text -public string text +public string text 主标题文本,支持使用 \n 换行。 ### Title.vertsDirty -public override bool vertsDirty +public override bool vertsDirty ### Title.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### Title.OnChanged -public void OnChanged() +public void OnChanged() ## TitleStyle @@ -8556,7 +8556,7 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) ### TitleTheme.TitleTheme -public TitleTheme(ThemeType theme) : base(theme) +public TitleTheme(ThemeType theme) : base(theme) ## Tooltip @@ -8566,160 +8566,160 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### Tooltip.alwayShowContent -public bool alwayShowContent +public bool alwayShowContent 是否触发后一直显示提示框浮层。 ### Tooltip.backgroundColor -public Color backgroundColor +public Color backgroundColor 提示框的背景颜色。 ### Tooltip.backgroundImage -public Sprite backgroundImage +public Sprite backgroundImage 提示框的背景图片。 ### Tooltip.backgroundType -public Image.Type backgroundType +public Image.Type backgroundType 提示框的背景图片显示类型。 ### Tooltip.fixedHeight -public float fixedHeight +public float fixedHeight 固定高度。比 minHeight 优先。 ### Tooltip.fixedWidth -public float fixedWidth +public float fixedWidth 固定宽度。比 minWidth 优先。 ### Tooltip.ignoreDataDefaultContent -public string ignoreDataDefaultContent +public string ignoreDataDefaultContent 被忽略数据的默认显示字符信息。如果设置为空,则表示完全不显示忽略数据。 ### Tooltip.ignoreDataShow -public bool ignoreDataShow +public bool ignoreDataShow 是否显示忽略数据在tooltip上。 ### Tooltip.itemFormatter -public string itemFormatter +public string itemFormatter 提示框单个serie或数据项内容的字符串模版格式器。支持用 \n 换行。用|来表示多个列的分隔。 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。
{i}或-表示忽略当前项。 {.}为当前所指示的serie或数据项的对应颜色的圆点。
{a}为当前所指示的serie或数据项的系列名name。
{b}为当前所指示的serie或数据项的数据项serieData的name,或者类目值(如折线图的X轴)。
{c}为当前所指示的serie或数据项的y维(dimesion为1)的数值。
{d}为当前所指示的serie或数据项的y维(dimesion为1)百分比值,注意不带%号。
{e}为当前所指示的serie或数据项的数据项serieData的name。
{f}为当前所指示的serie的默认维度的数据总和。
{g}为当前所指示的serie的数据总个数。
{h}为当前所指示的serie的十六进制颜色值。
{y}为当前所指示的serie的y轴的类目值。
{c0}表示当前数据项维度为0的数据。
{c1}表示当前数据项维度为1的数据。
{d3}表示维度3的数据的百分比。它的分母是默认维度(一般是1维度)数据。
|表示多个列的分隔。
示例:"{i}", "{.}|{a}|{c}", "{.}|{b}|{c2:f2}", "{.}|{b}|{y}" ### Tooltip.marker -public string marker +public string marker serie的符号标志。 ### Tooltip.minHeight -public float minHeight +public float minHeight 最小高度。如若 fixedHeight 设有值,优先取 fixedHeight。 ### Tooltip.minWidth -public float minWidth +public float minWidth 最小宽度。如若 fixedWidth 设有值,优先取 fixedWidth。 ### Tooltip.offset -public Vector2 offset +public Vector2 offset 提示框相对于鼠标位置的偏移。 ### Tooltip.onClickIndex -public System.Action<int> onClickIndex +public System.Action<int> onClickIndex Tooltip为Click触发时,点击的X轴索引的回调。 ### Tooltip.paddingLeftRight -public int paddingLeftRight +public int paddingLeftRight 左右边距。 ### Tooltip.paddingTopBottom -public int paddingTopBottom +public int paddingTopBottom 上下边距。 ### Tooltip.runtimeDataIndex -public List<int> runtimeDataIndex +public List<int> runtimeDataIndex 当前提示框所指示的数据项索引。 ### Tooltip.showContent -public bool showContent +public bool showContent 是否显示提示框浮层,默认显示。只需tooltip触发事件或显示axisPointer而不需要显示内容时可配置该项为false。 ### Tooltip.titleFormatter -public string titleFormatter +public string titleFormatter 提示框标题内容的字符串模版格式器。支持用 \n 换行。可以单独设置占位符{i}表示忽略不显示title。 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。
{.}为当前所指示或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)百分比值,注意不带%号。
{e}为当前所指示或index为0的serie的数据项serieData的name。
{h}为当前所指示或index为0的serie的数据项serieData的十六进制颜色值。
{f}为数据总和。
{g}为数据总个数。
{y}为value所对应的y轴的类目值。
{.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)。
{d:0.##} 表示单独指定了数值的格式化字符串为 0.## (用于百分比,保留2位有效数同时又能避免使用 f2 而出现的类似于"100.00%"的情况 )。
示例:"{a}:{c}"、"{a1}:{c1:f1}"、"{a1}:{c1:0:f1}"、"{a1}:{c1:1-1:f1}" ### Tooltip.AddSerieDataIndex -public void AddSerieDataIndex(int serieIndex, int dataIndex) +public void AddSerieDataIndex(int serieIndex, int dataIndex) ### Tooltip.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### Tooltip.ClearData -public override void ClearData() +public override void ClearData() ### Tooltip.ClearSerieDataIndex -public void ClearSerieDataIndex() +public void ClearSerieDataIndex() ### Tooltip.GetContentLabelStyle -public LabelStyle GetContentLabelStyle(int index) +public LabelStyle GetContentLabelStyle(int index) ### Tooltip.IsActive -public bool IsActive() +public bool IsActive() 提示框是否显示 ### Tooltip.isAnySerieDataIndex -public bool isAnySerieDataIndex() +public bool isAnySerieDataIndex() ### Tooltip.IsSelected -public bool IsSelected(int index) +public bool IsSelected(int index) 指定索引的数据项是否被提示框选中 ### Tooltip.IsTriggerAxis -public bool IsTriggerAxis() +public bool IsTriggerAxis() ### Tooltip.IsTriggerItem -public bool IsTriggerItem() +public bool IsTriggerItem() ### Tooltip.KeepTop -public void KeepTop() +public void KeepTop() 保持Tooltiop显示在最顶上 ### Tooltip.SetActive -public void SetActive(bool flag) +public void SetActive(bool flag) 设置Tooltip组件是否显示 ### Tooltip.SetContentActive -public void SetContentActive(bool flag) +public void SetContentActive(bool flag) 设置文本框是否显示 ### Tooltip.UpdateContentPos -public void UpdateContentPos(Vector2 pos, float width, float height) +public void UpdateContentPos(Vector2 pos, float width, float height) 更新文本框位置 ## Tooltip.Position @@ -8787,19 +8787,19 @@ class in XCharts.Runtime ### TooltipHelper.GetItemNumericFormatter -public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData) +public static string GetItemNumericFormatter(Tooltip tooltip, Serie serie, SerieData serieData) ### TooltipHelper.GetLineColor -public static Color32 GetLineColor(Tooltip tooltip, Color32 defaultColor) +public static Color32 GetLineColor(Tooltip tooltip, Color32 defaultColor) ### TooltipHelper.IsIgnoreFormatter -public static bool IsIgnoreFormatter(string itemFormatter) +public static bool IsIgnoreFormatter(string itemFormatter) ### TooltipHelper.LimitInRect -public static void LimitInRect(Tooltip tooltip, Rect chartRect) +public static void LimitInRect(Tooltip tooltip, Rect chartRect) ## TooltipTheme @@ -8807,11 +8807,11 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) ### TooltipTheme.Copy -public void Copy(TooltipTheme theme) +public void Copy(TooltipTheme theme) ### TooltipTheme.TooltipTheme -public TooltipTheme(ThemeType theme) : base(theme) +public TooltipTheme(ThemeType theme) : base(theme) ## TooltipView @@ -8819,31 +8819,31 @@ class in XCharts.Runtime ### TooltipView.CreateView -public static TooltipView CreateView(Tooltip tooltip, ThemeStyle theme, Transform parent) +public static TooltipView CreateView(Tooltip tooltip, ThemeStyle theme, Transform parent) ### TooltipView.GetCurrentPos -public Vector3 GetCurrentPos() +public Vector3 GetCurrentPos() ### TooltipView.GetTargetPos -public Vector3 GetTargetPos() +public Vector3 GetTargetPos() ### TooltipView.Refresh -public void Refresh() +public void Refresh() ### TooltipView.SetActive -public void SetActive(bool flag) +public void SetActive(bool flag) ### TooltipView.Update -public void Update() +public void Update() ### TooltipView.UpdatePosition -public void UpdatePosition(Vector3 pos) +public void UpdatePosition(Vector3 pos) ## TooltipViewItem @@ -8857,72 +8857,72 @@ UGUI 图形库 ### UGL.DrawDiamond -public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color, Color32 toColor) +public static void DrawDiamond(VertexHelper vh, Vector3 center, float size, Color32 color, Color32 toColor) Draw a diamond. 画菱形(钻石形状) -public static void DrawDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, Color32 color, Color32 toColor) +public static void DrawDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, Color32 color, Color32 toColor) ### UGL.DrawEllipse -public static void DrawEllipse(VertexHelper vh, Vector3 center, float w, float h, Color32 color, float smoothness = 1) +public static void DrawEllipse(VertexHelper vh, Vector3 center, float w, float h, Color32 color, float smoothness = 1) ### UGL.DrawEmptyDiamond -public static void DrawEmptyDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, float tickness, Color32 color, Color32 emptyColor) +public static void DrawEmptyDiamond(VertexHelper vh, Vector3 center, float xRadius, float yRadius, float tickness, Color32 color, Color32 emptyColor) ### UGL.DrawEmptyTriangle -public static void DrawEmptyTriangle(VertexHelper vh, Vector3 pos, float size, float tickness, Color32 color, Color32 backgroundColor) +public static void DrawEmptyTriangle(VertexHelper vh, Vector3 pos, float size, float tickness, Color32 color, Color32 backgroundColor) ### UGL.DrawLine -public static void DrawLine(VertexHelper vh, List<Vector3> points, float width, Color32 color, bool smooth, bool closepath = false) +public static void DrawLine(VertexHelper vh, List<Vector3> points, float width, Color32 color, bool smooth, bool closepath = false) -public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color, Color32 toColor) +public static void DrawLine(VertexHelper vh, Vector3 startPoint, Vector3 endPoint, float width, Color32 color, Color32 toColor) Draw a line. 画直线 ### UGL.DrawMinus -public static void DrawMinus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color) +public static void DrawMinus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color) 绘制减号 ### UGL.DrawPlus -public static void DrawPlus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color) +public static void DrawPlus(VertexHelper vh, Vector3 center, float radius, float tickness, Color32 color) 绘制加号 ### UGL.DrawPolygon -public static void DrawPolygon(VertexHelper vh, List<Vector3> points, Color32 color) +public static void DrawPolygon(VertexHelper vh, List<Vector3> points, Color32 color) 填充任意多边形(目前只支持凸多边形) ### UGL.DrawRectangle -public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color) +public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color) -public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color, Color32 toColor) +public static void DrawRectangle(VertexHelper vh, Rect rect, Color32 color, Color32 toColor) -public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color) +public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color) -public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color, Color32 toColor) +public static void DrawRectangle(VertexHelper vh, Rect rect, float border, Color32 color, Color32 toColor) ### UGL.DrawSquare -public static void DrawSquare(VertexHelper vh, Vector3 center, float radius, Color32 color) +public static void DrawSquare(VertexHelper vh, Vector3 center, float radius, Color32 color) Draw a square. 画正方形 ### UGL.DrawSvgPath -public static void DrawSvgPath(VertexHelper vh, string path) +public static void DrawSvgPath(VertexHelper vh, string path) ### UGL.DrawTriangle -public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color, Color32 toColor) +public static void DrawTriangle(VertexHelper vh, Vector3 pos, float size, Color32 color, Color32 toColor) ## UGL.Direction @@ -8947,84 +8947,84 @@ class in XUGL ### UGLHelper.GetAngle360 -public static float GetAngle360(Vector2 from, Vector2 to) +public static float GetAngle360(Vector2 from, Vector2 to) 获得0-360的角度(12点钟方向为0度) ### UGLHelper.GetBezier -public static Vector3 GetBezier(float t, Vector3 sp, Vector3 cp, Vector3 ep) +public static Vector3 GetBezier(float t, Vector3 sp, Vector3 cp, Vector3 ep) ### UGLHelper.GetBezier2 -public static Vector3 GetBezier2(float t, Vector3 sp, Vector3 p1, Vector3 p2, Vector3 ep) +public static Vector3 GetBezier2(float t, Vector3 sp, Vector3 p1, Vector3 p2, Vector3 ep) ### UGLHelper.GetBezierList -public static List<Vector3> GetBezierList(Vector3 sp, Vector3 ep, int segment, Vector3 cp) +public static List<Vector3> GetBezierList(Vector3 sp, Vector3 ep, int segment, Vector3 cp) ### UGLHelper.GetDire -public static Vector3 GetDire(float angle, bool isDegree = false) +public static Vector3 GetDire(float angle, bool isDegree = false) ### UGLHelper.GetIntersection -public static bool GetIntersection(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, ref List<Vector3> intersection) +public static bool GetIntersection(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, ref List<Vector3> intersection) 获得两直线的交点 ### UGLHelper.GetPos -public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false) +public static Vector3 GetPos(Vector3 center, float radius, float angle, bool isDegree = false) ### UGLHelper.GetVertialDire -public static Vector3 GetVertialDire(Vector3 dire) +public static Vector3 GetVertialDire(Vector3 dire) ### UGLHelper.IsClearColor -public static bool IsClearColor(Color color) +public static bool IsClearColor(Color color) ### UGLHelper.IsPointInPolygon -public static bool IsPointInPolygon(Vector3 p, List<Vector2> polyons) +public static bool IsPointInPolygon(Vector3 p, List<Vector2> polyons) -public static bool IsPointInPolygon(Vector3 p, params Vector3[] polyons) +public static bool IsPointInPolygon(Vector3 p, params Vector3[] polyons) ### UGLHelper.IsPointInTriangle -public static bool IsPointInTriangle(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 check) +public static bool IsPointInTriangle(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 check) ### UGLHelper.IsValueEqualsColor -public static bool IsValueEqualsColor(Color color1, Color color2) +public static bool IsValueEqualsColor(Color color1, Color color2) ### UGLHelper.IsValueEqualsList<T> -public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2) +public static bool IsValueEqualsList<T>(List<T> list1, List<T> list2) ### UGLHelper.IsValueEqualsString -public static bool IsValueEqualsString(string str1, string str2) +public static bool IsValueEqualsString(string str1, string str2) ### UGLHelper.IsValueEqualsVector2 -public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2) +public static bool IsValueEqualsVector2(Vector2 v1, Vector2 v2) ### UGLHelper.IsValueEqualsVector3 -public static bool IsValueEqualsVector3(Vector3 v1, Vector2 v2) +public static bool IsValueEqualsVector3(Vector3 v1, Vector2 v2) ### UGLHelper.IsZeroVector -public static bool IsZeroVector(Vector3 pos) +public static bool IsZeroVector(Vector3 pos) ### UGLHelper.RotateRound -public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle) +public static Vector3 RotateRound(Vector3 position, Vector3 center, Vector3 axis, float angle) ## UIComponent @@ -9034,35 +9034,35 @@ UI组件基类。 ### UIComponent.background -public Background background +public Background background 背景样式。 ### UIComponent.chartHideFlags -public override HideFlags chartHideFlags +public override HideFlags chartHideFlags ### UIComponent.theme -public UIComponentTheme theme +public UIComponentTheme theme ### UIComponent.SetAllDirty -public override void SetAllDirty() +public override void SetAllDirty() ### UIComponent.SetDataDirty -public void SetDataDirty() +public void SetDataDirty() > 从 `v3.9.0` 开始支持 ### UIComponent.SetVerticesDirty -public override void SetVerticesDirty() +public override void SetVerticesDirty() ### UIComponent.UpdateTheme -public bool UpdateTheme(ThemeType theme) +public bool UpdateTheme(ThemeType theme) 切换内置主题。 ## UIComponentTheme @@ -9071,11 +9071,11 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### UIComponentTheme.show -public bool show +public bool show ### UIComponentTheme.GetBackgroundColor -public Color32 GetBackgroundColor(Background background) +public Color32 GetBackgroundColor(Background background) ## UIHelper @@ -9099,80 +9099,80 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### VisualMap.range -public double[] range +public double[] range 指定手柄对应数值的位置。range 应在[min,max]范围内。 ### VisualMap.runtimeRangeMaxHeight -public float runtimeRangeMaxHeight +public float runtimeRangeMaxHeight ### VisualMap.runtimeRangeMinHeight -public float runtimeRangeMinHeight +public float runtimeRangeMinHeight ### VisualMap.text -public string[] text +public string[] text 两端的文本,如 ['High', 'Low']。 ### VisualMap.textGap -public float[] textGap +public float[] textGap 两端文字主体之间的距离,单位为px。 ### VisualMap.vertsDirty -public override bool vertsDirty +public override bool vertsDirty ### VisualMap.AddColors -public void AddColors(List<string> colors) +public void AddColors(List<string> colors) ### VisualMap.ClearComponentDirty -public override void ClearComponentDirty() +public override void ClearComponentDirty() ### VisualMap.ClearVerticesDirty -public override void ClearVerticesDirty() +public override void ClearVerticesDirty() ### VisualMap.GetColor -public Color32 GetColor(double value) +public Color32 GetColor(double value) ### VisualMap.GetIndex -public int GetIndex(double value) +public int GetIndex(double value) ### VisualMap.GetValue -public double GetValue(Vector3 pos, Rect chartRect) +public double GetValue(Vector3 pos, Rect chartRect) ### VisualMap.IsInRangeMaxRect -public bool IsInRangeMaxRect(Vector3 local, Rect chartRect, float triangleLen) +public bool IsInRangeMaxRect(Vector3 local, Rect chartRect, float triangleLen) ### VisualMap.IsInRangeMinRect -public bool IsInRangeMinRect(Vector3 local, Rect chartRect, float triangleLen) +public bool IsInRangeMinRect(Vector3 local, Rect chartRect, float triangleLen) ### VisualMap.IsInRangeRect -public bool IsInRangeRect(Vector3 local, Rect chartRect) +public bool IsInRangeRect(Vector3 local, Rect chartRect) ### VisualMap.IsInRect -public bool IsInRect(Vector3 local, Rect chartRect, float triangleLen = 20) +public bool IsInRect(Vector3 local, Rect chartRect, float triangleLen = 20) ### VisualMap.IsInSelectedValue -public bool IsInSelectedValue(double value) +public bool IsInSelectedValue(double value) ### VisualMap.IsPiecewise -public bool IsPiecewise() +public bool IsPiecewise() ## VisualMap.SelectedMode @@ -9202,28 +9202,28 @@ class in XCharts.Runtime / 继承自: [MainComponentContext](#maincomponentconte ### VisualMapContext.max -public double max +public double max ### VisualMapContext.maxDrag -public bool maxDrag +public bool maxDrag ### VisualMapContext.min -public double min +public double min ### VisualMapContext.minDrag -public bool minDrag +public bool minDrag ### VisualMapContext.pointerIndex -public int pointerIndex +public int pointerIndex 鼠标悬停选中的index ### VisualMapContext.pointerValue -public double pointerValue +public double pointerValue ## VisualMapHelper @@ -9231,27 +9231,27 @@ class in XCharts.Runtime ### VisualMapHelper.AutoSetLineMinMax -public static void AutoSetLineMinMax(VisualMap visualMap, Serie serie, bool isY, Axis axis, Axis relativedAxis) +public static void AutoSetLineMinMax(VisualMap visualMap, Serie serie, bool isY, Axis axis, Axis relativedAxis) ### VisualMapHelper.GetDimension -public static int GetDimension(VisualMap visualMap, int defaultDimension) +public static int GetDimension(VisualMap visualMap, int defaultDimension) ### VisualMapHelper.IsNeedAreaGradient -public static bool IsNeedAreaGradient(VisualMap visualMap) +public static bool IsNeedAreaGradient(VisualMap visualMap) ### VisualMapHelper.IsNeedGradient -public static bool IsNeedGradient(VisualMap visualMap) +public static bool IsNeedGradient(VisualMap visualMap) ### VisualMapHelper.IsNeedLineGradient -public static bool IsNeedLineGradient(VisualMap visualMap) +public static bool IsNeedLineGradient(VisualMap visualMap) ### VisualMapHelper.SetMinMax -public static void SetMinMax(VisualMap visualMap, double min, double max) +public static void SetMinMax(VisualMap visualMap, double min, double max) ## VisualMapRange @@ -9259,27 +9259,27 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### VisualMapRange.color -public Color32 color +public Color32 color 颜色 ### VisualMapRange.label -public string label +public string label 文字描述 ### VisualMapRange.max -public double max +public double max 范围最大值 ### VisualMapRange.min -public double min +public double min 范围最小值 ### VisualMapRange.Contains -public bool Contains(double value, double minMaxRange) +public bool Contains(double value, double minMaxRange) ## VisualMapTheme @@ -9287,11 +9287,11 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) ### VisualMapTheme.Copy -public void Copy(VisualMapTheme theme) +public void Copy(VisualMapTheme theme) ### VisualMapTheme.VisualMapTheme -public VisualMapTheme(ThemeType theme) : base(theme) +public VisualMapTheme(ThemeType theme) : base(theme) ## Wrapper<T> @@ -9305,7 +9305,7 @@ class in XCharts.Runtime / 继承自: [Axis](#axis) ### XAxis.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() 直角坐标系 grid 中的 x 轴。 ## XAxis3D @@ -9318,7 +9318,7 @@ class in XCharts.Runtime / 继承自: [Axis](#axis) ### XAxis3D.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() 直角坐标系 grid 中的 x 轴。 ## XChartsMgr @@ -9327,44 +9327,44 @@ class in XCharts.Runtime ### XChartsMgr.fullVersion -public static string fullVersion +public static string fullVersion ### XChartsMgr.AddChart -public static void AddChart(BaseChart chart) +public static void AddChart(BaseChart chart) ### XChartsMgr.ContainsChart -public static bool ContainsChart(BaseChart chart) +public static bool ContainsChart(BaseChart chart) ### XChartsMgr.GetChart -public static BaseChart GetChart(string chartName) +public static BaseChart GetChart(string chartName) ### XChartsMgr.GetCharts -public static List<BaseChart> GetCharts(string chartName) +public static List<BaseChart> GetCharts(string chartName) ### XChartsMgr.GetPackageFullPath -public static string GetPackageFullPath() +public static string GetPackageFullPath() ### XChartsMgr.GetRepeatChartNameInfo -public static string GetRepeatChartNameInfo(BaseChart chart, string chartName) +public static string GetRepeatChartNameInfo(BaseChart chart, string chartName) ### XChartsMgr.IsRepeatChartName -public static bool IsRepeatChartName(BaseChart chart, string chartName = null) +public static bool IsRepeatChartName(BaseChart chart, string chartName = null) ### XChartsMgr.RemoveAllChartObject -public static void RemoveAllChartObject() +public static void RemoveAllChartObject() ### XChartsMgr.RemoveChart -public static void RemoveChart(string chartName) +public static void RemoveChart(string chartName) ## XCResourceImporterWindow @@ -9372,7 +9372,7 @@ class in XCharts.Runtime / 继承自: [UnityEditor.EditorWindow](https://docs.un ### XCResourceImporterWindow.ShowPackageImporterWindow -public static void ShowPackageImporterWindow() +public static void ShowPackageImporterWindow() ## XCResourcesImporter @@ -9380,23 +9380,23 @@ class in XCharts.Runtime ### XCResourcesImporter.OnDestroy() -public void OnDestroy() +public void OnDestroy() ### XCResourcesImporter.XCResourcesImporter() -public XCResourcesImporter() +public XCResourcesImporter() ### XCResourcesImporter.OnDestroy -public void OnDestroy() { } +public void OnDestroy() { } ### XCResourcesImporter.OnGUI -public void OnGUI() +public void OnGUI() ### XCResourcesImporter.XCResourcesImporter -public XCResourcesImporter() { } +public XCResourcesImporter() { } ## XCSettings @@ -9404,156 +9404,156 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co ### XCSettings.axisLineType -public static LineStyle.Type axisLineType +public static LineStyle.Type axisLineType ### XCSettings.axisLineWidth -public static float axisLineWidth +public static float axisLineWidth ### XCSettings.axisSplitLineType -public static LineStyle.Type axisSplitLineType +public static LineStyle.Type axisSplitLineType ### XCSettings.axisSplitLineWidth -public static float axisSplitLineWidth +public static float axisSplitLineWidth ### XCSettings.axisTickLength -public static float axisTickLength +public static float axisTickLength ### XCSettings.axisTickWidth -public static float axisTickWidth +public static float axisTickWidth ### XCSettings.cicleSmoothness -public static float cicleSmoothness +public static float cicleSmoothness ### XCSettings.customThemes -public static List<Theme> customThemes +public static List<Theme> customThemes ### XCSettings.dataZoomBorderWidth -public static float dataZoomBorderWidth +public static float dataZoomBorderWidth ### XCSettings.dataZoomDataLineWidth -public static float dataZoomDataLineWidth +public static float dataZoomDataLineWidth ### XCSettings.editorShowAllListData -public static bool editorShowAllListData +public static bool editorShowAllListData ### XCSettings.font -public static Font font +public static Font font ### XCSettings.fontSizeLv1 -public static int fontSizeLv1 +public static int fontSizeLv1 一级字体大小。 ### XCSettings.fontSizeLv2 -public static int fontSizeLv2 +public static int fontSizeLv2 ### XCSettings.fontSizeLv3 -public static int fontSizeLv3 +public static int fontSizeLv3 ### XCSettings.fontSizeLv4 -public static int fontSizeLv4 +public static int fontSizeLv4 ### XCSettings.gaugeAxisLineWidth -public static float gaugeAxisLineWidth +public static float gaugeAxisLineWidth ### XCSettings.gaugeAxisSplitLineLength -public static float gaugeAxisSplitLineLength +public static float gaugeAxisSplitLineLength ### XCSettings.gaugeAxisSplitLineWidth -public static float gaugeAxisSplitLineWidth +public static float gaugeAxisSplitLineWidth ### XCSettings.gaugeAxisTickLength -public static float gaugeAxisTickLength +public static float gaugeAxisTickLength ### XCSettings.gaugeAxisTickWidth -public static float gaugeAxisTickWidth +public static float gaugeAxisTickWidth ### XCSettings.lang -public static Lang lang +public static Lang lang ### XCSettings.lineSegmentDistance -public static float lineSegmentDistance +public static float lineSegmentDistance ### XCSettings.lineSmoothness -public static float lineSmoothness +public static float lineSmoothness ### XCSettings.lineSmoothStyle -public static float lineSmoothStyle +public static float lineSmoothStyle ### XCSettings.maxPainter -public static int maxPainter +public static int maxPainter ### XCSettings.serieCandlestickBorderWidth -public static float serieCandlestickBorderWidth +public static float serieCandlestickBorderWidth ### XCSettings.serieLineSymbolSize -public static float serieLineSymbolSize +public static float serieLineSymbolSize ### XCSettings.serieLineWidth -public static float serieLineWidth +public static float serieLineWidth ### XCSettings.serieScatterSymbolSize -public static float serieScatterSymbolSize +public static float serieScatterSymbolSize ### XCSettings.serieSelectedRate -public static float serieSelectedRate +public static float serieSelectedRate ### XCSettings.tmpFont -public static TMP_FontAsset tmpFont +public static TMP_FontAsset tmpFont ### XCSettings.tootipLineWidth -public static float tootipLineWidth +public static float tootipLineWidth ### XCSettings.visualMapBorderWidth -public static float visualMapBorderWidth +public static float visualMapBorderWidth ### XCSettings.visualMapTriangeLen -public static float visualMapTriangeLen +public static float visualMapTriangeLen ### XCSettings.AddCustomTheme -public static bool AddCustomTheme(Theme theme) +public static bool AddCustomTheme(Theme theme) ### XCSettings.ExistAssetFile -public static bool ExistAssetFile() +public static bool ExistAssetFile() ### XCSettings.GetSettingAssetPath -public static string GetSettingAssetPath() +public static string GetSettingAssetPath() ## XCThemeMgr @@ -9561,51 +9561,51 @@ class in XCharts.Runtime ### XCThemeMgr.AddTheme -public static void AddTheme(Theme theme) +public static void AddTheme(Theme theme) ### XCThemeMgr.CheckReloadTheme -public static void CheckReloadTheme() +public static void CheckReloadTheme() ### XCThemeMgr.ContainsTheme -public static bool ContainsTheme(string themeName) +public static bool ContainsTheme(string themeName) ### XCThemeMgr.ExportTheme -public static bool ExportTheme(Theme theme) +public static bool ExportTheme(Theme theme) ### XCThemeMgr.GetAllThemeNames -public static List<string> GetAllThemeNames() +public static List<string> GetAllThemeNames() ### XCThemeMgr.GetTheme -public static Theme GetTheme(string themeName) +public static Theme GetTheme(string themeName) ### XCThemeMgr.GetThemeAssetPath -public static string GetThemeAssetPath(string themeName) +public static string GetThemeAssetPath(string themeName) ### XCThemeMgr.GetThemeList -public static List<Theme> GetThemeList() +public static List<Theme> GetThemeList() ### XCThemeMgr.LoadTheme -public static Theme LoadTheme(string themeName) +public static Theme LoadTheme(string themeName) ### XCThemeMgr.ReloadThemeList -public static void ReloadThemeList() +public static void ReloadThemeList() 重新加载主题列表 ### XCThemeMgr.SwitchTheme -public static void SwitchTheme(BaseChart chart, string themeName) +public static void SwitchTheme(BaseChart chart, string themeName) ## XLog @@ -9615,63 +9615,63 @@ class in XCharts.Runtime / 继承自: [MonoBehaviour](#monobehaviour) ### XLog.CanLog -public static bool CanLog(int level) +public static bool CanLog(int level) ### XLog.ClearAllLog -public static void ClearAllLog() +public static void ClearAllLog() ### XLog.Debug -public static void Debug(string log) +public static void Debug(string log) ### XLog.EnableLog -public static void EnableLog(int logType) +public static void EnableLog(int logType) ### XLog.Error -public static void Error(string log) +public static void Error(string log) ### XLog.FlushLog -public static void FlushLog() +public static void FlushLog() ### XLog.GetNowTime -public static string GetNowTime(string formatter = null) +public static string GetNowTime(string formatter = null) ### XLog.GetTimestamp -public static ulong GetTimestamp() +public static ulong GetTimestamp() ### XLog.Info -public static void Info(string log) +public static void Info(string log) ### XLog.Log -public static void Log(string log) +public static void Log(string log) ### XLog.LogError -public static void LogError(string log) +public static void LogError(string log) ### XLog.LogWarning -public static void LogWarning(string log) +public static void LogWarning(string log) ### XLog.Proto -public static void Proto(string log) +public static void Proto(string log) ### XLog.Vital -public static void Vital(string log) +public static void Vital(string log) ### XLog.Warning -public static void Warning(string log) +public static void Warning(string log) ## YAxis @@ -9681,7 +9681,7 @@ class in XCharts.Runtime / 继承自: [Axis](#axis) ### YAxis.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() 直角坐标系 grid 中的 y 轴。 ## YAxis3D @@ -9694,7 +9694,7 @@ class in XCharts.Runtime / 继承自: [Axis](#axis) ### YAxis3D.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() 直角坐标系 grid 中的 y 轴。 ## ZAxis3D @@ -9707,6 +9707,6 @@ class in XCharts.Runtime / 继承自: [Axis](#axis) ### ZAxis3D.SetDefaultValue -public override void SetDefaultValue() +public override void SetDefaultValue() 直角坐标系 grid 中的 y 轴。 diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 46bfe4e4..cf184ab4 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -76,6 +76,7 @@ slug: /changelog ## master +* (2024.09.22) 调整`Documentation`文档显示样式 * (2024.09.09) 增加`numericFormatter`对`date`和`time`的支持 * (2024.09.03) 完善`AreaStyle`的`origin`参数设置区域填充起始位置 * (2024.09.01) 增加`Ring`的`radiusGradient`参数设置渐变方向 diff --git a/Documentation~/zh/configuration.md b/Documentation~/zh/configuration.md index 2776cd90..55d8942c 100644 --- a/Documentation~/zh/configuration.md +++ b/Documentation~/zh/configuration.md @@ -212,7 +212,8 @@ class in XCharts.Runtime / 继承自: [Axis](#axis) ### AngleAxis.startAngle -`float` `0` +`float` `default: 0` + 起始刻度的角度,默认为 0 度,即圆心的正右方。 ## AngleAxisTheme @@ -269,22 +270,26 @@ class in XCharts.Runtime / 子类: [AnimationFadeIn](#animationfadein), [Animati ### AnimationInfo.delay -`float` `0` `v3.8.0` +`float` `default: 0` `v3.8.0` + 动画开始前的延迟时间。 ### AnimationInfo.duration -`float` `1000` `v3.8.0` +`float` `default: 1000` `v3.8.0` + 动画的时长。 ### AnimationInfo.enable -`bool` `true` `v3.8.0` +`bool` `default: true` `v3.8.0` + 是否开启动画效果。 ### AnimationInfo.reverse -`bool` `false` `v3.8.0` +`bool` `default: false` `v3.8.0` + 是否开启反向动画效果。 ## AnimationInteraction @@ -298,16 +303,19 @@ class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) ### AnimationInteraction.offset `MLValue` `v3.8.0` + 交互的多样式数值。如饼图的扇形选中时的偏移。 [MLValue](#mlvalue) ### AnimationInteraction.radius `MLValue` `v3.8.0` + 半径的多样式数值。 [MLValue](#mlvalue) ### AnimationInteraction.width `MLValue` `v3.8.0` + 宽度的多样式数值。 [MLValue](#mlvalue) ## AnimationStyle @@ -319,11 +327,13 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### AnimationStyle.addition `AnimationAddition` `v3.8.0` + 数据新增动画配置。 [AnimationAddition](#animationaddition) ### AnimationStyle.change `AnimationChange` `v3.8.0` + 数据变更动画配置。 [AnimationChange](#animationchange) ### AnimationStyle.easting @@ -331,43 +341,51 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) `AnimationEasing` + 可选: - `Linear`: ### AnimationStyle.enable -`bool` `true` +`bool` `default: true` + 是否开启动画效果。 ### AnimationStyle.fadeIn `AnimationFadeIn` `v3.8.0` + 渐入动画配置。 [AnimationFadeIn](#animationfadein) ### AnimationStyle.fadeOut `AnimationFadeOut` `v3.8.0` + 渐出动画配置。 [AnimationFadeOut](#animationfadeout) ### AnimationStyle.hiding `AnimationHiding` `v3.8.0` + 数据隐藏动画配置。 [AnimationHiding](#animationhiding) ### AnimationStyle.interaction `AnimationInteraction` `v3.8.0` + 交互动画配置。 [AnimationInteraction](#animationinteraction) ### AnimationStyle.threshold -`int` `2000` +`int` `default: 2000` + 是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。 ### AnimationStyle.type `AnimationType` + 动画类型。 可选: @@ -382,6 +400,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### AnimationStyle.unscaledTime `bool` `v3.4.0` + 动画是否受TimeScaled的影响。默认为 false 受TimeScaled的影响。 ## AreaStyle @@ -393,21 +412,25 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### AreaStyle.color `Color32` + 区域填充的颜色,如果toColor不是默认值,则表示渐变色的起点颜色。 ### AreaStyle.innerFill `bool` `v3.2.0` + 是否只填充多边形区域。目前只支持凸多边形。 ### AreaStyle.opacity -`float` `0.6f` +`float` `default: 0.6f` + 图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 ### AreaStyle.origin `AreaStyle.AreaOrigin` + 区域填充的起始位置。 可选: @@ -418,17 +441,20 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### AreaStyle.show -`bool` `true` +`bool` `default: true` + 是否显示区域填充。 ### AreaStyle.toColor `Color32` + 渐变色的终点颜色。 ### AreaStyle.toTop -`bool` `true` `v3.6.0` +`bool` `default: true` `v3.6.0` + 渐变色是到顶部还是到实际位置。默认为true到顶部。 ## ArrowStyle @@ -437,27 +463,32 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### ArrowStyle.color -`Color32` `Color.clear` +`Color32` `default: Color.clear` + 箭头颜色。 ### ArrowStyle.dent -`float` `3` +`float` `default: 3` + 箭头的凹度。 ### ArrowStyle.height -`float` `15` +`float` `default: 15` + 箭头高。 ### ArrowStyle.offset -`float` `0` +`float` `default: 0` + 箭头偏移。 ### ArrowStyle.width -`float` `10` +`float` `default: 10` + 箭头宽。 ## Axis @@ -469,111 +500,133 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) / 子类: ### Axis.animation `AxisAnimation` + 坐标轴动画。 [AxisAnimation](#axisanimation) ### Axis.axisLabel `AxisLabel` + 坐标轴刻度标签。 [AxisLabel](#axislabel) ### Axis.axisLine `AxisLine` + 坐标轴轴线。 [AxisLine](#axisline) ### Axis.axisName `AxisName` + 坐标轴名称。 [AxisName](#axisname) ### Axis.axisTick `AxisTick` + 坐标轴刻度。 [AxisTick](#axistick) ### Axis.boundaryGap -`bool` `true` +`bool` `default: true` + 坐标轴两边是否留白。只对类目轴有效。 ### Axis.ceilRate -`double` `0` +`double` `default: 0` + 最大最小值向上取整的倍率。默认为0时自动计算。 ### Axis.clockwise -`bool` `true` +`bool` `default: true` + 刻度增长是否按顺时针,默认顺时针。 ### Axis.data `List` + 类目数据,在类目轴(type: 'category')中有效。 ### Axis.gridIndex `int` + 坐标轴所在的 grid 的索引,默认位于第一个 grid。 ### Axis.icons `List` + 类目数据对应的图标。 ### Axis.indicatorLabel `LabelStyle` `v3.4.0` + 指示器文本的样式。Tooltip为Cross时使用。 [LabelStyle](#labelstyle) ### Axis.insertDataToHead `bool` + 添加新数据时是在列表的头部还是尾部加入。 ### Axis.interval -`double` `0` +`double` `default: 0` + 强制设置坐标轴分割间隔。无法在类目轴中使用。 ### Axis.inverse -`bool` `false` +`bool` `default: false` + 是否反向坐标轴。在类目轴中无效。 ### Axis.logBase -`float` `10` +`float` `default: 10` + 对数轴的底数,只在对数轴(type:'Log')中有效。 ### Axis.logBaseE -`bool` `false` +`bool` `default: false` + 对数轴是否以自然数 e 为底数,为 true 时 logBase 失效。 ### Axis.max `double` + 设定的坐标轴刻度最大值,当minMaxType为Custom时有效。 ### Axis.maxCache -`int` `0` +`int` `default: 0` + The first data will be remove when the size of axis data is larger then maxCache. ### Axis.min `double` + 设定的坐标轴刻度最小值,当minMaxType为Custom时有效。 ### Axis.minCategorySpacing -`float` `0` `v3.11.0` +`float` `default: 0` `v3.11.0` + 类目之间的最小间距。 ### Axis.minMaxType `Axis.AxisMinMaxType` + 坐标轴刻度最大最小值显示类型。 可选: @@ -586,31 +639,37 @@ The first data will be remove when the size of axis data is larger then maxCache ### Axis.minorSplitLine `AxisMinorSplitLine` `v3.2.0` + 坐标轴次分割线。 [AxisMinorSplitLine](#axisminorsplitline) ### Axis.minorTick `AxisMinorTick` `v3.2.0` + 坐标轴次刻度。 [AxisMinorTick](#axisminortick) ### Axis.offset `float` + 坐标轴相对默认位置的偏移。在相同position有多个坐标轴时有用。 ### Axis.parallelIndex `int` + 坐标轴所在的 parallel 的索引,默认位于第一个 parallel。 ### Axis.polarIndex `int` + 坐标轴所在的 ploar 的索引,默认位于第一个 polar。 ### Axis.position `Axis.AxisPosition` + 坐标轴在Grid中的位置。 可选: @@ -623,27 +682,32 @@ The first data will be remove when the size of axis data is larger then maxCache ### Axis.show -`bool` `true` +`bool` `default: true` + 是否显示坐标轴。 ### Axis.splitArea `AxisSplitArea` + 坐标轴分割区域。 [AxisSplitArea](#axissplitarea) ### Axis.splitLine `AxisSplitLine` + 坐标轴分割线。 [AxisSplitLine](#axissplitline) ### Axis.splitNumber -`int` `0` +`int` `default: 0` + 坐标轴的期望的分割段数。默认为0表示自动分割。 ### Axis.type `Axis.AxisType` + 坐标轴类型。 可选: @@ -664,16 +728,19 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### AxisAnimation.duration `float` + 动画时长(ms)。 默认设置为0时,会自动获取serie的动画时长。 ### AxisAnimation.show -`bool` `true` +`bool` `default: true` + 是否开启动画。 ### AxisAnimation.unscaledTime `bool` + 动画是否受TimeScaled的影响。默认为 false 受TimeScaled的影响。 ## AxisLabel @@ -684,37 +751,44 @@ class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle) ### AxisLabel.inside -`bool` `false` +`bool` `default: false` + 刻度标签是否朝内,默认朝外。 ### AxisLabel.interval -`int` `0` +`int` `default: 0` + 坐标轴刻度标签的显示间隔,在类目轴中有效。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。 ### AxisLabel.onZero -`bool` `false` +`bool` `default: false` + 刻度标签显示在0刻度上。 ### AxisLabel.showAsPositiveNumber -`bool` `false` +`bool` `default: false` + 将负数数值显示为正数。一般和`Serie`的`showAsPositiveNumber`配合使用。 ### AxisLabel.showEndLabel -`bool` `true` +`bool` `default: true` + 是否显示最后一个文本。 ### AxisLabel.showStartLabel -`bool` `true` +`bool` `default: true` + 是否显示第一个文本。 ### AxisLabel.textLimit `TextLimit` + 文本限制。 [TextLimit](#textlimit) ## AxisLine @@ -726,16 +800,19 @@ class in XCharts.Runtime / 继承自: [BaseLine](#baseline) ### AxisLine.arrow `ArrowStyle` + 轴线箭头。 [ArrowStyle](#arrowstyle) ### AxisLine.onZero `bool` + X 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一个轴为数值轴且包含 0 刻度时有效。 ### AxisLine.showArrow `bool` + 是否显示箭头。 ## AxisMinorSplitLine @@ -749,11 +826,13 @@ class in XCharts.Runtime / 继承自: [BaseLine](#baseline) ### AxisMinorSplitLine.autoColor `bool` + 自动设置颜色。 ### AxisMinorSplitLine.distance `float` + 刻度线与轴线的距离。 ## AxisMinorTick @@ -768,9 +847,11 @@ class in XCharts.Runtime / 继承自: [BaseLine](#baseline) `bool` + ### AxisMinorTick.splitNumber -`int` `5` +`int` `default: 5` + 分隔线之间分割的刻度数。 ## AxisName @@ -782,21 +863,25 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### AxisName.labelStyle `LabelStyle` + 文本样式。 [LabelStyle](#labelstyle) ### AxisName.name `string` + 坐标轴名称。 ### AxisName.onZero `bool` `v3.1.0` + 坐标轴名称的位置是否保持和Y轴0刻度一致。 ### AxisName.show `bool` + 是否显示坐标轴名称。 ## AxisSplitArea @@ -808,11 +893,13 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### AxisSplitArea.color `List` + 分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。 ### AxisSplitArea.show `bool` + 是否显示分隔区域。 ## AxisSplitLine @@ -824,31 +911,37 @@ class in XCharts.Runtime / 继承自: [BaseLine](#baseline) ### AxisSplitLine.autoColor `bool` + 自动设置颜色。 ### AxisSplitLine.distance `float` + 刻度线与轴线的距离。 ### AxisSplitLine.interval `int` + 坐标轴分隔线的显示间隔。 ### AxisSplitLine.showEndLine -`bool` `true` `v3.3.0` +`bool` `default: true` `v3.3.0` + 是否显示最后一条分割线。 ### AxisSplitLine.showStartLine -`bool` `true` `v3.3.0` +`bool` `default: true` `v3.3.0` + 是否显示第一条分割线。 ### AxisSplitLine.showZLine -`bool` `true` `v3.11.0` +`bool` `default: true` `v3.11.0` + 是否显示Z轴部分分割线。一般用于3D坐标系。 ## AxisTheme @@ -864,35 +957,42 @@ class in XCharts.Runtime / 继承自: [BaseLine](#baseline) ### AxisTick.alignWithLabel `bool` + 类目轴中在 boundaryGap 为 true 的时候有效,可以保证刻度线和标签对齐。 ### AxisTick.autoColor `bool` + ### AxisTick.distance `float` + 刻度线与轴线的距离。 ### AxisTick.inside `bool` + 坐标轴刻度是否朝内,默认朝外。 ### AxisTick.showEndTick `bool` + 是否显示最后一个刻度。 ### AxisTick.showStartTick `bool` + 是否显示第一个刻度。 ### AxisTick.splitNumber -`int` `0` +`int` `default: 0` + 分隔线之间分割的刻度数。 ## Background @@ -903,42 +1003,50 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### Background.autoColor -`bool` `true` +`bool` `default: true` + 当background组件开启时,是否自动使用主题背景色作为backgrounnd组件的颜色。当设置为false时,用imageColor作为颜色。 ### Background.borderStyle `BorderStyle` `v3.10.0` + 背景边框样式。 [BorderStyle](#borderstyle) ### Background.image `Sprite` + 背景图。 ### Background.imageColor `Color` + 背景图颜色。 ### Background.imageHeight -`float` `0` `v3.10.0` +`float` `default: 0` `v3.10.0` + 背景图高度。 ### Background.imageType `Image.Type` + 背景图填充类型。 ### Background.imageWidth -`float` `0` `v3.10.0` +`float` `default: 0` `v3.10.0` + 背景图宽度。 ### Background.show -`bool` `true` +`bool` `default: true` + 是否启用背景组件。 ## Bar @@ -952,16 +1060,19 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) / 子类 ### BaseAxisTheme.lineColor `Color32` + 坐标轴线颜色。 ### BaseAxisTheme.lineLength -`float` `0f` +`float` `default: 0f` + 坐标轴线长。 ### BaseAxisTheme.lineType `LineStyle.Type` + 坐标轴线类型。 可选: @@ -975,32 +1086,38 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) / 子类 ### BaseAxisTheme.lineWidth -`float` `1f` +`float` `default: 1f` + 坐标轴线宽。 ### BaseAxisTheme.minorSplitLineColor `Color32` + 次分割线线颜色。 ### BaseAxisTheme.splitAreaColors `List` + 坐标轴分隔区域的颜色。 ### BaseAxisTheme.splitLineColor `Color32` + 分割线线颜色。 ### BaseAxisTheme.splitLineLength -`float` `0f` +`float` `default: 0f` + 分割线线长。 ### BaseAxisTheme.splitLineType `LineStyle.Type` + 分割线线类型。 可选: @@ -1014,22 +1131,26 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) / 子类 ### BaseAxisTheme.splitLineWidth -`float` `1f` +`float` `default: 1f` + 分割线线宽。 ### BaseAxisTheme.tickColor `Color32` + 坐标轴线颜色。 ### BaseAxisTheme.tickLength -`float` `5f` +`float` `default: 5f` + 刻度线线长。 ### BaseAxisTheme.tickWidth -`float` `1f` +`float` `default: 1f` + 刻度线线宽。 ## BaseLine @@ -1041,11 +1162,13 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类 ### BaseLine.lineStyle `LineStyle` + 线条样式 [LineStyle](#linestyle) ### BaseLine.show `bool` + 是否显示坐标轴轴线。 ## BaseScatter @@ -1075,26 +1198,31 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### BorderStyle.borderColor `Color32` + 边框颜色。 ### BorderStyle.borderWidth `float` + 边框宽度。 ### BorderStyle.cornerRadius `float[]` + 圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。当为(1,1,1,1)时为全圆角。 ### BorderStyle.roundedCorner -`bool` `true` +`bool` `default: true` + 是否显示圆角。 ### BorderStyle.show -`bool` `false` +`bool` `default: false` + 是否显示边框。 ## CalendarCoord @@ -1122,21 +1250,25 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropert ### Comment.items `List` + 注解项。每个注解组件可以设置多个注解项。 ### Comment.labelStyle `LabelStyle` + 所有组件的文本样式。 [LabelStyle](#labelstyle) ### Comment.markStyle `CommentMarkStyle` + 所有组件的文本样式。 [CommentMarkStyle](#commentmarkstyle) ### Comment.show -`bool` `true` +`bool` `default: true` + 是否显示注解组件。 ## CommentItem @@ -1148,31 +1280,37 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### CommentItem.content `string` + 注解的文本内容。支持模板参数,可以参考Tooltip的itemFormatter。 ### CommentItem.labelStyle `LabelStyle` + 注解项的文本样式。 [LabelStyle](#labelstyle) ### CommentItem.location `Location` `v3.5.0` + Comment显示的位置。 [Location](#location) ### CommentItem.markRect `Rect` + 注解区域。 ### CommentItem.markStyle `CommentMarkStyle` + 注解标记区域样式。 [CommentMarkStyle](#commentmarkstyle) ### CommentItem.show -`bool` `true` +`bool` `default: true` + 是否显示当前注解项。 ## CommentMarkStyle @@ -1184,11 +1322,13 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### CommentMarkStyle.lineStyle `LineStyle` + 线条样式。 [LineStyle](#linestyle) ### CommentMarkStyle.show -`bool` `true` +`bool` `default: true` + 是否显示当前注解项。 ## ComponentTheme @@ -1198,26 +1338,31 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类 ### ComponentTheme.font `Font` + 字体。 ### ComponentTheme.fontSize -`int` `18` +`int` `default: 18` + 文本字体大小。 ### ComponentTheme.textBackgroundColor `Color` + 文本颜色。 ### ComponentTheme.textColor `Color` + 文本颜色。 ### ComponentTheme.tMPFont `TMP_FontAsset` + 字体。 ## CoordSystem @@ -1235,51 +1380,61 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 ### DataZoom.areaStyle `AreaStyle` + 阴影填充样式。 [AreaStyle](#areastyle) ### DataZoom.backgroundColor `Color32` + 组件的背景颜色。 ### DataZoom.borderColor `Color32` + 边框颜色。 ### DataZoom.borderWidth `float` + 边框宽。 ### DataZoom.bottom `float` + 组件离容器下侧的距离。 ### DataZoom.enable -`bool` `true` +`bool` `default: true` + 是否显示缩放区域。 ### DataZoom.end `float` + 数据窗口范围的结束百分比。范围是:0 ~ 100。 ### DataZoom.endLock `bool` `v3.6.0` + 固定结束值,不让改变。 ### DataZoom.fillerColor `Color32` + 数据区域颜色。 ### DataZoom.filterMode `DataZoom.FilterMode` + 数据过滤类型。 可选: @@ -1292,31 +1447,37 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 ### DataZoom.labelStyle `LabelStyle` + 文本标签格式。 [LabelStyle](#labelstyle) ### DataZoom.left `float` + 组件离容器左侧的距离。 ### DataZoom.lineStyle `LineStyle` + 阴影线条样式。 [LineStyle](#linestyle) ### DataZoom.marqueeStyle `MarqueeStyle` `v3.5.0` + 选取框样式。 [MarqueeStyle](#marqueestyle) ### DataZoom.minShowNum -`int` `2` +`int` `default: 2` + 最小显示数据个数。当DataZoom放大到最大时,最小显示的数据个数。 ### DataZoom.orient `Orient` + 布局方式是横还是竖。不仅是布局方式,对于直角坐标系而言,也决定了,缺省情况控制横向数轴还是纵向数轴。 可选: @@ -1327,6 +1488,7 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 ### DataZoom.rangeMode `DataZoom.RangeMode` + 取绝对值还是百分比。 可选: @@ -1337,76 +1499,91 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 ### DataZoom.right `float` + 组件离容器右侧的距离。 ### DataZoom.scrollSensitivity -`float` `1.1f` +`float` `default: 1.1f` + 缩放区域组件的敏感度。值越高每次缩放所代表的数据越多。 ### DataZoom.showDataShadow `bool` + 是否显示数据阴影。数据阴影可以简单地反应数据走势。 ### DataZoom.showDetail `bool` + 是否显示detail,即拖拽时候显示详细数值信息。 ### DataZoom.start `float` + 数据窗口范围的起始百分比。范围是:0 ~ 100。 ### DataZoom.startLock `bool` `v3.6.0` + 固定起始值,不让改变。 ### DataZoom.supportInside `bool` + 是否支持内置。内置于坐标系中,使用户可以在坐标系上通过鼠标拖拽、鼠标滚轮、手指滑动(触屏上)来缩放或漫游坐标系。 ### DataZoom.supportInsideDrag -`bool` `true` +`bool` `default: true` + 是否支持坐标系内拖拽 ### DataZoom.supportInsideScroll -`bool` `true` +`bool` `default: true` + 是否支持坐标系内滚动 ### DataZoom.supportMarquee `bool` + 是否支持框选。提供一个选框进行数据区域缩放。 ### DataZoom.supportSlider `bool` + 是否支持滑动条。有单独的滑动条,用户在滑动条上进行缩放或漫游。 ### DataZoom.top `float` + 组件离容器上侧的距离。 ### DataZoom.xAxisIndexs `List` + 控制的 x 轴索引列表。 ### DataZoom.yAxisIndexs `List` + 控制的 y 轴索引列表。 ### DataZoom.zoomLock `bool` + 是否锁定选择区域(或叫做数据窗口)的大小。 如果设置为 true 则锁定选择区域的大小,也就是说,只能平移,不能缩放。 ## DataZoomTheme @@ -1416,36 +1593,43 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) ### DataZoomTheme.backgroundColor `Color32` + 背景颜色。 ### DataZoomTheme.borderColor `Color32` + 边框颜色。 ### DataZoomTheme.borderWidth `float` + 边框线宽。 ### DataZoomTheme.dataAreaColor `Color32` + 数据阴影的填充颜色。 ### DataZoomTheme.dataLineColor `Color32` + 数据阴影的线条颜色。 ### DataZoomTheme.dataLineWidth `float` + 数据阴影线宽。 ### DataZoomTheme.fillerColor `Color32` + 数据区域颜色。 ## DebugInfo @@ -1454,27 +1638,32 @@ class in XCharts.Runtime ### DebugInfo.foldSeries -`bool` `false` +`bool` `default: false` + 是否在Inspector上折叠Serie。 ### DebugInfo.labelStyle `LabelStyle` + [LabelStyle](#labelstyle) ### DebugInfo.show -`bool` `true` +`bool` `default: true` + 是否显示Debug组件。 ### DebugInfo.showAllChartObject -`bool` `false` +`bool` `default: false` + 是否在Hierarchy试图显示所有chart下的节点。 ### DebugInfo.showDebugInfo -`bool` `false` +`bool` `default: false` + ## EffectScatter @@ -1491,6 +1680,7 @@ class in XCharts.Runtime / 继承自: [StateStyle](#statestyle), [ISerieComponen ### EmphasisStyle.blurScope `EmphasisStyle.BlurScope` + 在开启focus的时候,可以通过blurScope配置淡出的范围。 可选: @@ -1502,6 +1692,7 @@ class in XCharts.Runtime / 继承自: [StateStyle](#statestyle), [ISerieComponen ### EmphasisStyle.focus `EmphasisStyle.FocusType` + 在高亮图形时,是否淡出其它数据的图形已达到聚焦的效果。 可选: @@ -1512,7 +1703,8 @@ class in XCharts.Runtime / 继承自: [StateStyle](#statestyle), [ISerieComponen ### EmphasisStyle.scale -`float` `1.1f` +`float` `default: 1.1f` + 高亮时的缩放倍数。 ## EndLabelStyle @@ -1528,51 +1720,61 @@ Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart ### GridCoord.backgroundColor `Color32` + 网格背景色,默认透明。 ### GridCoord.borderColor `Color32` + 网格边框颜色。 ### GridCoord.borderWidth -`float` `0f` +`float` `default: 0f` + 网格边框宽。 ### GridCoord.bottom -`float` `0.14f` +`float` `default: 0.14f` + grid 组件离容器下侧的距离。 ### GridCoord.layoutIndex -`int` `-1` `v3.8.0` +`int` `default: -1` `v3.8.0` + 网格所属的网格布局组件的索引。默认为-1,表示不属于任何网格布局组件。当设置了该值时,left、right、top、bottom属性将失效。 ### GridCoord.left -`float` `0.11f` +`float` `default: 0.11f` + grid 组件离容器左侧的距离。 ### GridCoord.right -`float` `0.08f` +`float` `default: 0.08f` + grid 组件离容器右侧的距离。 ### GridCoord.show -`bool` `true` +`bool` `default: true` + 是否显示直角坐标系网格。 ### GridCoord.showBorder -`bool` `false` +`bool` `default: false` + 是否显示网格边框。 ### GridCoord.top -`float` `0.22f` +`float` `default: 0.22f` + grid 组件离容器上侧的距离。 ## GridCoord3D @@ -1585,57 +1787,68 @@ Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart ### GridCoord3D.bottom -`float` `0.15f` +`float` `default: 0.15f` + grid 组件离容器下侧的距离。 ### GridCoord3D.boxDepth -`float` `0.2f` +`float` `default: 0.2f` + 坐标系的深度。 ### GridCoord3D.boxHeight -`float` `0.4f` +`float` `default: 0.4f` + 坐标系的高度。 ### GridCoord3D.boxWidth -`float` `0.55f` +`float` `default: 0.55f` + 坐标系的宽度。 ### GridCoord3D.left -`float` `0.15f` +`float` `default: 0.15f` + grid 组件离容器左侧的距离。 ### GridCoord3D.right -`float` `0.2f` +`float` `default: 0.2f` + grid 组件离容器右侧的距离。 ### GridCoord3D.show -`bool` `true` +`bool` `default: true` + 是否显示直角坐标系网格。 ### GridCoord3D.showBorder -`bool` `false` +`bool` `default: false` + 是否显示网格边框。 ### GridCoord3D.top -`float` `0.3f` +`float` `default: 0.3f` + grid 组件离容器上侧的距离。 ### GridCoord3D.viewControl `ViewControl` + 3D视角控制组件。 [ViewControl](#viewcontrol) ### GridCoord3D.xYExchanged -`bool` `false` +`bool` `default: false` + ## GridLayout @@ -1647,47 +1860,56 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IUpdateR ### GridLayout.bottom -`float` `0.12f` +`float` `default: 0.12f` + grid 组件离容器下侧的距离。 ### GridLayout.column -`int` `2` +`int` `default: 2` + 网格布局的列数。 ### GridLayout.inverse -`bool` `false` +`bool` `default: false` + 是否反转网格布局。 ### GridLayout.left -`float` `0.1f` +`float` `default: 0.1f` + grid 组件离容器左侧的距离。 ### GridLayout.right -`float` `0.08f` +`float` `default: 0.08f` + grid 组件离容器右侧的距离。 ### GridLayout.row -`int` `2` +`int` `default: 2` + 网格布局的行数。 ### GridLayout.show -`bool` `true` +`bool` `default: true` + 是否显示直角坐标系网格。 ### GridLayout.spacing -`Vector2` `Vector2.zero` +`Vector2` `default: Vector2.zero` + 网格布局的间距。 ### GridLayout.top -`float` `0.22f` +`float` `default: 0.22f` + grid 组件离容器上侧的距离。 ## Heatmap @@ -1697,6 +1919,7 @@ class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#in ### Heatmap.heatmapType `HeatmapType` `v3.3.0` + 热力图类型。通过颜色映射划分。 可选: @@ -1711,6 +1934,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### IconStyle.align `Align` + 水平方向对齐方式。 可选: @@ -1721,22 +1945,26 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### IconStyle.autoHideWhenLabelEmpty -`bool` `false` +`bool` `default: false` + 当label内容为空时是否自动隐藏图标 ### IconStyle.color `Color` + 图标颜色。 ### IconStyle.height -`float` `20` +`float` `default: 20` + 图标高。 ### IconStyle.layer `IconStyle.Layer` + 显示在上层还是在下层。 可选: @@ -1747,26 +1975,31 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### IconStyle.offset `Vector3` + 图标偏移。 ### IconStyle.show -`bool` `false` +`bool` `default: false` + 是否显示图标。 ### IconStyle.sprite `Sprite` + 图标的图片。 ### IconStyle.type `Image.Type` + 图片的显示类型。 ### IconStyle.width -`float` `20` +`float` `default: 20` + 图标宽。 ## ImageStyle @@ -1776,36 +2009,43 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### ImageStyle.autoColor `bool` + 是否自动颜色。 ### ImageStyle.color `Color` + 图标颜色。 ### ImageStyle.height -`float` `0` +`float` `default: 0` + 图标高。 ### ImageStyle.show -`bool` `true` +`bool` `default: true` + 是否显示图标。 ### ImageStyle.sprite `Sprite` + 图标的图片。 ### ImageStyle.type `Image.Type` + 图片的显示类型。 ### ImageStyle.width -`float` `0` +`float` `default: 0` + 图标宽。 ## Indicator @@ -1817,121 +2057,145 @@ class in XCharts.Runtime ### Indicator.axisLine `AxisLine` + 轴线。 [AxisLine](#axisline) ### Indicator.axisName `AxisName` + 雷达图每个指示器名称的配置项。 [AxisName](#axisname) ### Indicator.ceilRate -`double` `0` +`double` `default: 0` + 最大最小值向上取整的倍率。默认为0时自动计算。 ### Indicator.center `float[]` + 雷达图的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。 ### Indicator.connectCenter -`bool` `false` +`bool` `default: false` + 数值是否连线到中心点。 ### Indicator.gridIndex -`int` `-1` `v3.8.0` +`int` `default: -1` `v3.8.0` + 所使用的 layout 组件的 index。 默认为-1不指定index, 当为大于或等于0时, 为第一个layout组件的第index个格子。 ### Indicator.indicator -`bool` `true` +`bool` `default: true` + 是否显示指示器。 ### Indicator.indicatorGap -`float` `10` +`float` `default: 10` + 指示器和雷达的间距。 ### Indicator.indicatorList `List` + 指示器列表。 ### Indicator.isAxisTooltip `bool` + 是否Tooltip显示轴线上的所有数据。 ### Indicator.lineGradient -`bool` `true` +`bool` `default: true` + 数值线段是否需要渐变。 ### Indicator.max `double` + 指示器的最大值,默认为 0 无限制。 ### Indicator.min `double` + 指示器的最小值,默认为 0 无限制。 ### Indicator.name `string` + 指示器名称。 ### Indicator.outRangeColor -`Color32` `Color.red` +`Color32` `default: Color.red` + 数值超出范围时显示的颜色。 ### Indicator.positionType `PositionType` + 显示位置类型。 ### Indicator.radius -`float` `100` +`float` `default: 100` + 雷达图的半径。 ### Indicator.range `double[]` + 正常值范围。当数值不在这个范围时,会自动变更显示颜色。 ### Indicator.shape `Shape` + 雷达图绘制类型,支持 'Polygon' 和 'Circle'。 ### Indicator.show `bool` + 是否显示雷达坐标系组件。 ### Indicator.splitArea `AxisSplitArea` + 分割区域。 [AxisSplitArea](#axissplitarea) ### Indicator.splitLine `AxisSplitLine` + 分割线。 [AxisSplitLine](#axissplitline) ### Indicator.splitNumber -`int` `5` +`int` `default: 5` + 指示器轴的分割段数。 ### Indicator.startAngle `float` `v3.4.0` + 起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。 ## INeedSerieContainer @@ -1973,101 +2237,121 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### ItemStyle.backgroundColor `Color32` + 数据项背景颜色。 ### ItemStyle.backgroundWidth `float` + 数据项背景宽度。 ### ItemStyle.borderColor `Color32` + 边框的颜色。 ### ItemStyle.borderColor0 `Color32` + 边框的颜色。 ### ItemStyle.borderGap -`float` `0` +`float` `default: 0` + 边框间隙。 ### ItemStyle.borderToColor `Color32` + 边框的渐变色。 ### ItemStyle.borderWidth -`float` `0` +`float` `default: 0` + 边框宽。 ### ItemStyle.centerColor `Color32` + 中心区域颜色。 ### ItemStyle.centerGap `float` + 中心区域间隙。 ### ItemStyle.color `Color32` + 数据项颜色。 ### ItemStyle.color0 `Color32` + 数据项颜色。 ### ItemStyle.cornerRadius `float[]` + 圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。 ### ItemStyle.itemFormatter `string` + 提示框单项的字符串模版格式器。具体配置参考`Tooltip`的`formatter` ### ItemStyle.itemMarker `string` + 提示框单项的字符标志。用在Tooltip中。 ### ItemStyle.markColor `Color32` `v3.6.0` + Serie的标识颜色。仅用于Legend和Tooltip的展示,不影响绘制颜色,默认为clear。 ### ItemStyle.numericFormatter `string` + 标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
日期格式:以`date`开头,用来格式化DateTime,常见格式有:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:date:yyyy-MM-dd HH:mm:ss
时间格式:以`time`开头,用来格式化TimeSpan,常见格式有:d日,HH时,mm分,ss秒,fffffff小数部分。 需要Unity2018以上版本才支持格式化,并且里面的字符要转义。如:time:d\.HH\:mm\:ss
数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
时间格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings
注意:date和time格式需要`v3.12.0`以上版本才支持。 ### ItemStyle.opacity -`float` `1` +`float` `default: 1` + 透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 ### ItemStyle.show -`bool` `true` +`bool` `default: true` + 是否启用。 ### ItemStyle.toColor `Color32` + 渐变色的颜色1。 ### ItemStyle.toColor2 `Color32` + 渐变色的颜色2。只在折线图中有效。 ## IUpdateRuntimeData @@ -2083,41 +2367,49 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### LabelLine.endSymbol `SymbolStyle` + 结束点的图形标记。 [SymbolStyle](#symbolstyle) ### LabelLine.lineAngle -`float` `60` +`float` `default: 60` + 视觉引导线的固定角度。对折线和曲线有效。在Pie中无效。 ### LabelLine.lineColor -`Color32` `Color32(0,0,0,0)` +`Color32` `default: Color32(0,0,0,0)` + 视觉引导线颜色。默认和serie一致取自调色板。 ### LabelLine.lineEndX -`float` `0f` `v3.8.0` +`float` `default: 0f` `v3.8.0` + 视觉引导线结束点的固定x位置。当不为0时,会代替lineLength2设定引导线的x位置。 ### LabelLine.lineGap -`float` `1.0f` +`float` `default: 1.0f` + 视觉引导线和容器的间距。 ### LabelLine.lineLength1 -`float` `25f` +`float` `default: 25f` + 视觉引导线第一段的长度。 ### LabelLine.lineLength2 -`float` `15f` +`float` `default: 15f` + 视觉引导线第二段的长度。 ### LabelLine.lineType `LabelLine.LineType` + 视觉引导线类型。 可选: @@ -2128,17 +2420,20 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### LabelLine.lineWidth -`float` `1.0f` +`float` `default: 1.0f` + 视觉引导线的宽度。 ### LabelLine.show -`bool` `true` +`bool` `default: true` + 是否显示视觉引导线。 ### LabelLine.startSymbol `SymbolStyle` + 起始点的图形标记。 [SymbolStyle](#symbolstyle) ## LabelStyle @@ -2149,77 +2444,92 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### LabelStyle.autoOffset -`bool` `false` +`bool` `default: false` + 是否开启自动偏移。当开启时,Y的偏移会自动判断曲线的开口来决定向上还是向下偏移。 ### LabelStyle.autoRotate -`bool` `false` `v3.6.0` +`bool` `default: false` `v3.6.0` + 是否自动旋转。 ### LabelStyle.background `ImageStyle` + 背景图样式。 [ImageStyle](#imagestyle) ### LabelStyle.distance `float` + 距离轴线的距离。 ### LabelStyle.formatter `string` + 标签内容字符串模版格式器。支持用 \n 换行。部分组件的格式器会不生效。
模板通配符有以下这些,部分只适用于固定的组件:
`{.}`:圆点标记。
`{a}`:系列名。
`{b}`:X轴类目名或数据名。
`{c}`:数据值。
`{d}`:百分比。
`{e}`:数据名。
`{f}`:数据和。
`{g}`:数据总个数。
`{h}`:十六进制颜色值。
`{y}`:Y轴的类目名。
`{value}`:坐标轴或图例的值。
以下通配符适用UITable组件:
`{name}`: 表格的行名。
`{index}`:表格的行号。
以下通配符适用UIStatistc组件:
`{title}`:标题文本。
`{dd}`:天。
`{hh}`:小时。
`{mm}`:分钟。
`{ss}`:秒。
`{fff}`:毫秒。
`{d}`:天。
`{h}`:小时。
`{m}`:分钟。
`{s}`:秒。
`{f}`:毫秒。
示例:“{b}:{c}” ### LabelStyle.height -`float` `0` +`float` `default: 0` + 标签的高度。一般不用指定,不指定时则自动是文字的高度。 ### LabelStyle.icon `IconStyle` + 图标样式。 [IconStyle](#iconstyle) ### LabelStyle.numericFormatter `string` + 标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
日期格式:以`date`开头,用来格式化DateTime,常见格式有:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:date:yyyy-MM-dd HH:mm:ss
时间格式:以`time`开头,用来格式化TimeSpan,常见格式有:d日,HH时,mm分,ss秒,fffffff小数部分。 需要Unity2018以上版本才支持格式化,并且里面的字符要转义。如:time:d\.HH\:mm\:ss
数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
时间格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings
注意:date和time格式需要`v3.12.0`以上版本才支持。 ### LabelStyle.offset `Vector3` + 距离图形元素的偏移 ### LabelStyle.Position `[SerializeField]` + 标签的位置。 ### LabelStyle.rotate `float` + 文本的旋转。 ### LabelStyle.show -`bool` `true` +`bool` `default: true` + 是否显示文本标签。 ### LabelStyle.textPadding `TextPadding` + 文本的边距。 [TextPadding](#textpadding) ### LabelStyle.textStyle `TextStyle` + 文本样式。 [TextStyle](#textstyle) ### LabelStyle.width -`float` `0` +`float` `default: 0` + 标签的宽度。一般不用指定,不指定时则自动是文字的宽度。 ## Lang @@ -2245,31 +2555,37 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropert ### Legend.background `ImageStyle` `v3.1.0` + 背景图样式。 [ImageStyle](#imagestyle) ### Legend.colors `List` + 图例标记的颜色列表。 ### Legend.data `List` + 图例的数据数组。数组项通常为一个字符串,每一项代表一个系列的 name(如果是饼图,也可以是饼图单个数据的 name)。 如果 data 没有被指定,会自动从当前系列中获取。指定data时里面的数据项和serie匹配时才会生效。 ### Legend.formatter `string` + 不再使用,使用LabelStyle.formatter代替。 ### Legend.icons `List` + 自定义的图例标记图形。 ### Legend.iconType `Legend.Type` + 图例类型。 可选: @@ -2285,42 +2601,50 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropert ### Legend.itemAutoColor -`bool` `true` +`bool` `default: true` + 图例标记的图形是否自动匹配颜色。 ### Legend.itemGap -`float` `10f` +`float` `default: 10f` + 图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。 ### Legend.itemHeight -`float` `12.0f` +`float` `default: 12.0f` + 图例标记的图形高度。 ### Legend.itemOpacity -`float` `1` +`float` `default: 1` + 图例标记的图形的颜色透明度。 ### Legend.itemWidth -`float` `25.0f` +`float` `default: 25.0f` + 图例标记的图形宽度。 ### Legend.labelStyle `LabelStyle` + 文本样式。 [LabelStyle](#labelstyle) ### Legend.location `Location` + 图例显示的位置。 [Location](#location) ### Legend.orient `Orient` + 布局方式是横还是竖。 可选: @@ -2331,16 +2655,19 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropert ### Legend.padding `Padding` `v3.1.0` + 图例标记和背景的间距。 [Padding](#padding) ### Legend.positions `List` `v3.6.0` + 图例标记的自定义位置列表。 ### Legend.selectedMode `Legend.SelectedMode` + 选择模式。控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。 可选: @@ -2351,12 +2678,14 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropert ### Legend.show -`bool` `true` +`bool` `default: true` + 是否显示图例组件。 ### Legend.textLimit `TextLimit` `v3.10.0` + 文本限制。 [TextLimit](#textlimit) ## LegendTheme @@ -2366,6 +2695,7 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) ### LegendTheme.unableColor `Color` + 文本颜色。 ## Level @@ -2374,27 +2704,32 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### Level.depth -`int` `0` `v3.10.0` +`int` `default: 0` `v3.10.0` + 层级深度。 ### Level.itemStyle `ItemStyle` + 数据项样式。 [ItemStyle](#itemstyle) ### Level.label `LabelStyle` + 文本标签样式。 [LabelStyle](#labelstyle) ### Level.lineStyle `LineStyle` `v3.10.0` + 线条样式。 [LineStyle](#linestyle) ### Level.upperLabel `LabelStyle` + 上方的文本标签样式。 [LabelStyle](#labelstyle) ## LevelStyle @@ -2406,11 +2741,13 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### LevelStyle.levels `List` + 各层节点对应的配置。当enableLevels为true时生效,levels[0]对应的第一层的配置,levels[1]对应第二层,依次类推。当levels中没有对应层时用默认的设置。 ### LevelStyle.show -`bool` `false` +`bool` `default: false` + 是否启用LevelStyle ## Line @@ -2424,11 +2761,13 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### LineArrow.arrow `ArrowStyle` + 箭头。 [ArrowStyle](#arrowstyle) ### LineArrow.position `LineArrow.Position` + 箭头位置。 可选: @@ -2439,6 +2778,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### LineArrow.show `bool` + 是否显示箭头。 ## LineStyle @@ -2450,51 +2790,61 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### LineStyle.color `Color32` + 线的颜色。 ### LineStyle.dashLength -`float` `4` `v3.8.1` +`float` `default: 4` `v3.8.1` + 虚线的长度。默认0时为线条宽度的12倍。在折线图中代表分割段数的倍数。 ### LineStyle.dotLength -`float` `2` `v3.8.1` +`float` `default: 2` `v3.8.1` + 点线的长度。默认0时为线条宽度的3倍。在折线图中代表分割段数的倍数。 ### LineStyle.gapLength -`float` `2` `v3.8.1` +`float` `default: 2` `v3.8.1` + 点线的长度。默认0时为线条宽度的3倍。在折线图中代表分割段数的倍数。 ### LineStyle.length -`float` `0` +`float` `default: 0` + 线长。 ### LineStyle.opacity -`float` `1` +`float` `default: 1` + 线的透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 ### LineStyle.show -`bool` `true` +`bool` `default: true` + 是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。 ### LineStyle.toColor `Color32` + 线的渐变颜色(需要水平方向渐变时)。 ### LineStyle.toColor2 `Color32` + 线的渐变颜色2(需要水平方向三个渐变色的渐变时)。 ### LineStyle.type `LineStyle.Type` + 线的类型。 可选: @@ -2508,7 +2858,8 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### LineStyle.width -`float` `0` +`float` `default: 0` + 线宽。 ## Location @@ -2520,6 +2871,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [IPrope ### Location.align `Location.Align` + 对齐方式。 可选: @@ -2537,21 +2889,25 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [IPrope ### Location.bottom `float` + 离容器下侧的距离。 ### Location.left `float` + 离容器左侧的距离。 ### Location.right `float` + 离容器右侧的距离。 ### Location.top `float` + 离容器上侧的距离。 ## MainComponent @@ -2567,36 +2923,43 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### MarkArea.end `MarkAreaData` + 标域范围的结束数据。 [MarkAreaData](#markareadata) ### MarkArea.itemStyle `ItemStyle` + 标域样式。 [ItemStyle](#itemstyle) ### MarkArea.label `LabelStyle` + 标域文本样式。 [LabelStyle](#labelstyle) ### MarkArea.serieIndex -`int` `0` +`int` `default: 0` + Serie index of markArea. 标域影响的Serie索引。 ### MarkArea.show -`bool` `true` +`bool` `default: true` + 是否显示标域。 ### MarkArea.start `MarkAreaData` + 标域范围的起始数据。 [MarkAreaData](#markareadata) ### MarkArea.text `string` + The text of markArea. 标域显示的文本。 ## MarkAreaData @@ -2607,17 +2970,20 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### MarkAreaData.dimension -`int` `1` +`int` `default: 1` + 从哪个维度的数据计算最大最小值等。 ### MarkAreaData.name `string` + 标注名称。会作为文字显示。 ### MarkAreaData.type `MarkAreaType` + 特殊的标域类型,用于标注最大值最小值等。 可选: @@ -2631,21 +2997,25 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### MarkAreaData.xPosition `float` + 相对原点的 x 坐标,单位像素。当type为None时有效。 ### MarkAreaData.xValue `double` + X轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 ### MarkAreaData.yPosition `float` + 相对原点的 y 坐标,单位像素。当type为None时有效。 ### MarkAreaData.yValue `double` + Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 ## MarkLine @@ -2657,26 +3027,31 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### MarkLine.animation `AnimationStyle` + 标线的动画样式。 [AnimationStyle](#animationstyle) ### MarkLine.data `List` + 标线的数据列表。当数据项的group为0时,每个数据项表示一条标线;当group不为0时,相同group的两个数据项分别表 示标线的起始点和终止点来组成一条标线,此时标线的相关样式参数取起始点的参数。 ### MarkLine.onTop -`bool` `true` `v3.9.0` +`bool` `default: true` `v3.9.0` + 是否在最上层。 ### MarkLine.serieIndex -`int` `0` +`int` `default: 0` + 标线影响的Serie索引。 ### MarkLine.show -`bool` `true` +`bool` `default: true` + 是否显示标线。 ## MarkLineData @@ -2689,42 +3064,50 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### MarkLineData.dimension -`int` `1` +`int` `default: 1` + 从哪个维度的数据计算最大最小值等。 ### MarkLineData.endSymbol `SymbolStyle` + 结束点的图形标记。 [SymbolStyle](#symbolstyle) ### MarkLineData.group -`int` `0` +`int` `default: 0` + 分组。当group不为0时,表示这个data是标线的起点或终点,group一致的data组成一条标线。 ### MarkLineData.label `LabelStyle` + 文本样式。可设置position为Start、Middle和End在不同的位置显示文本。 [LabelStyle](#labelstyle) ### MarkLineData.lineStyle `LineStyle` + 标线样式。 [LineStyle](#linestyle) ### MarkLineData.name `string` + 标线名称,将会作为文字显示。label的formatter可通过{b}显示名称,通过{c}显示数值。 ### MarkLineData.startSymbol `SymbolStyle` + 起始点的图形标记。 [SymbolStyle](#symbolstyle) ### MarkLineData.type `MarkLineType` + 特殊的标线类型,用于标注最大值最小值等。 可选: @@ -2738,26 +3121,31 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### MarkLineData.xPosition `float` + 相对原点的 x 坐标,单位像素。当type为None时有效。 ### MarkLineData.xValue `double` + X轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 ### MarkLineData.yPosition `float` + 相对原点的 y 坐标,单位像素。当type为None时有效。 ### MarkLineData.yValue `double` + Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。 ### MarkLineData.zeroPosition -`bool` `false` +`bool` `default: false` + 是否为坐标系原点。 ## MarqueeStyle @@ -2770,22 +3158,26 @@ Marquee style. It can be used for the DataZoom component. 选取框样式。可 ### MarqueeStyle.apply -`bool` `false` `v3.5.0` +`bool` `default: false` `v3.5.0` + 选取框范围是否应用到DataZoom上。当为true时,框选结束后的范围即为DataZoom的选择范围。 ### MarqueeStyle.areaStyle `AreaStyle` `v3.5.0` + 选取框区域填充样式。 [AreaStyle](#areastyle) ### MarqueeStyle.lineStyle `LineStyle` `v3.5.0` + 选取框区域边框样式。 [LineStyle](#linestyle) ### MarqueeStyle.realRect -`bool` `false` `v3.5.0` +`bool` `default: false` `v3.5.0` + 是否选取实际框选区域。当为true时,以鼠标的其实点和结束点间的实际范围作为框选区域。 ## MLValue @@ -2801,6 +3193,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) `MLValue.Type` + 可选: - `Percent`: 百分比形式。 @@ -2811,6 +3204,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) `float` + ## Padding class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [TextPadding](#textpadding) @@ -2819,27 +3213,32 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类 ### Padding.bottom -`float` `0` +`float` `default: 0` + 底部间距。 ### Padding.left -`float` `2f` +`float` `default: 2f` + 左边间距。 ### Padding.right -`float` `2f` +`float` `default: 2f` + 右部间距。 ### Padding.show -`bool` `true` +`bool` `default: true` + show padding. 是否显示。 ### Padding.top -`float` `0` +`float` `default: 0` + 顶部间距。 ## Parallel @@ -2859,21 +3258,25 @@ Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart ### ParallelCoord.backgroundColor `Color` + 网格背景色,默认透明。 ### ParallelCoord.bottom -`float` `0.12f` +`float` `default: 0.12f` + grid 组件离容器下侧的距离。 ### ParallelCoord.left -`float` `0.1f` +`float` `default: 0.1f` + grid 组件离容器左侧的距离。 ### ParallelCoord.orient `Orient` + 坐标轴朝向。默认为垂直朝向。 可选: @@ -2883,17 +3286,20 @@ grid 组件离容器左侧的距离。 ### ParallelCoord.right -`float` `0.08f` +`float` `default: 0.08f` + grid 组件离容器右侧的距离。 ### ParallelCoord.show -`bool` `true` +`bool` `default: true` + 是否显示直角坐标系网格。 ### ParallelCoord.top -`float` `0.22f` +`float` `default: 0.22f` + grid 组件离容器上侧的距离。 ## Pie @@ -2902,7 +3308,8 @@ class in XCharts.Runtime / 继承自: [Serie](#serie) ### Pie.radiusGradient -`bool` `false` `v3.8.1` +`bool` `default: false` `v3.8.1` + 是否开启半径方向的渐变效果。 ## PolarAxisTheme @@ -2918,26 +3325,31 @@ class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem), [ISerieContai ### PolarCoord.backgroundColor `Color` + 极坐标的背景色,默认透明。 ### PolarCoord.center `float[]` + 极坐标的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。 ### PolarCoord.indicatorLabelOffset -`float` `30f` `v3.8.0` +`float` `default: 30f` `v3.8.0` + 指示器标签的偏移量。 ### PolarCoord.radius `float[]` + 半径。radius[0]表示内径,radius[1]表示外径。 ### PolarCoord.show -`bool` `true` +`bool` `default: true` + 是否显示极坐标。 ## Radar @@ -2946,7 +3358,8 @@ class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#in ### Radar.smooth -`bool` `false` `v3.2.0` +`bool` `default: false` `v3.2.0` + 是否平滑曲线。平滑曲线时不支持区域填充颜色。 ## RadarAxisTheme @@ -2975,7 +3388,8 @@ class in XCharts.Runtime / 继承自: [Serie](#serie) ### Ring.radiusGradient -`bool` `false` `v3.12.0` +`bool` `default: false` `v3.12.0` + 是否开启半径方向的渐变效果。 ## Scatter @@ -2999,6 +3413,7 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.align `Align` + 组件水平方向对齐方式。 可选: @@ -3010,31 +3425,37 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.animation `AnimationStyle` + 起始动画。 [AnimationStyle](#animationstyle) ### Serie.avoidLabelOverlap -`bool` `false` +`bool` `default: false` + 在饼图且标签外部显示的情况下,是否启用防止标签重叠策略,默认关闭,在标签拥挤重叠的情况下会挪动各个标签的位置,防止标签间的重叠。 ### Serie.barGap -`float` `0.1f` +`float` `default: 0.1f` + 不同系列的柱间距离。为百分比(如 '0.3f',表示柱子宽度的 30%) 如果想要两个系列的柱子重叠,可以设置 barGap 为 '-1f'。这在用柱子做背景的时候有用。 在同一坐标系上,此属性会被多个 'bar' 系列共享。此属性应设置于此坐标系中最后一个 'bar' 系列上才会生效,并且是对此坐标系中所有 'bar' 系列生效。 ### Serie.barMaxWidth -`float` `0` `v3.5.0` +`float` `default: 0` `v3.5.0` + 柱条的最大宽度,默认为0为不限制最大宽度。支持设置成相对于类目宽度的百分比。 ### Serie.barPercentStack -`bool` `false` +`bool` `default: false` + 柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true,则就显示成百分比堆叠柱状图。 ### Serie.barType `BarType` + 柱形图类型。 可选: @@ -3045,47 +3466,56 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.barWidth -`float` `0` +`float` `default: 0` + 柱条的宽度,不设时自适应。支持设置成相对于类目宽度的百分比。 ### Serie.barZebraGap -`float` `2f` +`float` `default: 2f` + 斑马线的间距。 ### Serie.barZebraWidth -`float` `4f` +`float` `default: 4f` + 斑马线的粗细。 ### Serie.bottom `float` + 组件离容器下侧的距离。 ### Serie.center `float[]` + 中心点。 ### Serie.clickOffset -`bool` `true` +`bool` `default: true` + 鼠标点击时是否开启偏移,一般用在PieChart图表中。 ### Serie.clip -`bool` `false` +`bool` `default: false` + 是否裁剪超出坐标系部分的图形。 ### Serie.clockwise -`bool` `true` +`bool` `default: true` + 是否顺时针。 ### Serie.colorBy `SerieColorBy` `v3.2.0` + 从主题中取色的策略。 可选: @@ -3097,16 +3527,19 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.coordSystem `string` + 使用的坐标系。 ### Serie.data `List` + 系列中的数据内容数组。SerieData可以设置1到n维数据。 ### Serie.dataSortType `SerieDataSortType` + 组件的数据排序。 可选: @@ -3118,71 +3551,85 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.endAngle `float` + 结束角度。和时钟一样,12点钟位置是0度,顺时针到360度。 ### Serie.gap `float` + 间距。 ### Serie.gridIndex -`int` `-1` `v3.8.0` +`int` `default: -1` `v3.8.0` + 所使用的 layout 组件的 index。 默认为-1不指定index, 当为大于或等于0时, 为第一个layout组件的第index个格子。 ### Serie.ignore -`bool` `false` +`bool` `default: false` + 是否开启忽略数据。当为 true 时,数据值为 ignoreValue 时不进行绘制。 ### Serie.ignoreLineBreak -`bool` `false` +`bool` `default: false` + 忽略数据时折线是断开还是连接。默认false为连接。 ### Serie.ignoreValue -`double` `0` +`double` `default: 0` + 忽略数据的默认值。当ignore为true才有效。 ### Serie.index `int` + 系列索引。 ### Serie.insertDataToHead `bool` + 添加新数据时是在列表的头部还是尾部加入。 ### Serie.itemStyle `ItemStyle` + 图形样式。 [ItemStyle](#itemstyle) ### Serie.large -`bool` `true` +`bool` `default: true` + 是否开启大数据量优化,在数据图形特别多而出现卡顿时候可以开启。 开启后配合 largeThreshold 在数据量大于指定阈值的时候对绘制进行优化。 缺点:优化后不能自定义设置单个数据项的样式,不能显示Label。 ### Serie.largeThreshold -`int` `200` +`int` `default: 200` + 开启大数量优化的阈值。只有当开启了large并且数据量大于该阀值时才进入性能模式。 ### Serie.left `float` + 组件离容器左侧的距离。 ### Serie.lineStyle `LineStyle` + 线条样式。 [LineStyle](#linestyle) ### Serie.lineType `LineType` + 折线图样式类型。 可选: @@ -3196,66 +3643,79 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.links `List` + 数据节点的边。 ### Serie.max `float` + 最大值。 ### Serie.maxCache `int` + 系列中可缓存的最大数据量。默认为0没有限制,大于0时超过指定值会移除旧数据再插入新数据。 ### Serie.maxShow `int` + 系列所显示数据的最大索引 ### Serie.maxSize -`float` `1f` +`float` `default: 1f` + 数据最大值 max 映射的宽度。 ### Serie.min `float` + 最小值。 ### Serie.minAngle `float` + 最小的扇区角度(0-360)。用于防止某个值过小导致扇区太小影响交互。 ### Serie.minRadius -`float` `0f` `v3.8.0` +`float` `default: 0f` `v3.8.0` + 最小半径。可用于限制玫瑰图的最小半径。 ### Serie.minShow `int` + 系列所显示数据的最小索引 ### Serie.minShowLabel -`bool` `false` `v3.10.0` +`bool` `default: false` `v3.10.0` + 是否开启值小于指定值`minShowLabelValue`时不显示标签。 ### Serie.minShowLabelValue -`double` `0` `v3.10.0` +`double` `default: 0` `v3.10.0` + 当开启`minShowLabel`时,值小于该值时不显示标签。 ### Serie.minSize -`float` `0f` +`float` `default: 0f` + 数据最小值 min 映射的宽度。 ### Serie.orient `Orient` + 组件的朝向。 可选: @@ -3265,27 +3725,32 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.parallelIndex -`int` `0` +`int` `default: 0` + 所使用的 parallel coord 组件的 index。 ### Serie.placeHolder -`bool` `false` +`bool` `default: false` + 占位模式。占位模式时,数据有效但不参与渲染和显示。 ### Serie.polarIndex -`int` `0` +`int` `default: 0` + 所使用的 polar 组件的 index。 ### Serie.radarIndex -`int` `0` +`int` `default: 0` + 雷达图所使用的 radar 组件的 index。 ### Serie.radarType `RadarType` + 雷达图类型。 可选: @@ -3296,16 +3761,19 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.radius `float[]` + 半径。radius[0]表示内径,radius[1]表示外径。 ### Serie.right `float` + 组件离容器右侧的距离。 ### Serie.roseType `RoseType` + 是否展示成南丁格尔图,通过半径区分数据大小。 可选: @@ -3317,21 +3785,25 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.roundCap `bool` + 是否开启圆弧效果。 ### Serie.sampleAverage -`float` `0` +`float` `default: 0` + 设定的采样平均值。当sampleType 为 Peak 时,用于和过滤数据的平均值做对比是取最大值还是最小值。默认为0时会实时计算所有数据的平均值。 ### Serie.sampleDist -`float` `0` +`float` `default: 0` + 采样的最小像素距离,默认为0时不采样。当两个数据点间的水平距离小于改值时,开启采样,保证两点间的水平距离不小于改值。 ### Serie.sampleType `SampleType` + 采样类型。当sampleDist大于0时有效。 可选: @@ -3345,61 +3817,73 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.serieName `string` + 系列名称,用于 tooltip 的显示,legend 的图例筛选。 ### Serie.serieType `string` + 系列类型。 ### Serie.show -`bool` `true` +`bool` `default: true` + 系列是否显示在图表上。 ### Serie.showAsPositiveNumber -`bool` `false` +`bool` `default: false` + 将负数数值显示为正数。一般和`AxisLabel`的`showAsPositiveNumber`配合使用。仅在折线图和柱状图中有效。 ### Serie.showDataDimension `int` + 数据项里的数据维数。 ### Serie.showDataName `bool` + 在Editor的inpsector上是否显示name参数 ### Serie.singleAxisIndex -`int` `0` +`int` `default: 0` + 所使用的 singleAxis 组件的 index。 ### Serie.smoothLimit -`bool` `false` `v3.4.0` +`bool` `default: false` `v3.4.0` + 是否限制曲线。当为true时,两个连续相同数值的数据间的曲线会限制为不超出数据点,和数据点是平直的。 ### Serie.splitNumber `int` + 刻度分割段数。最大可设置36。 ### Serie.stack `string` + 数据堆叠,同个类目轴上系列配置相同的stack值后,后一个系列的值会在前一个系列的值上相加。 ### Serie.startAngle `float` + 起始角度。和时钟一样,12点钟位置是0度,顺时针到360度。 ### Serie.state `SerieState` `v3.2.0` + 系列的默认状态。 可选: @@ -3413,26 +3897,31 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.symbol `SerieSymbol` + 标记的图形。 [SerieSymbol](#seriesymbol) ### Serie.top `float` + 组件离容器上侧的距离。 ### Serie.vesselIndex -`int` `0` +`int` `default: 0` + 水位图所使用的 vessel 组件的 index。 ### Serie.xAxisIndex -`int` `0` +`int` `default: 0` + 使用X轴的index。 ### Serie.yAxisIndex -`int` `0` +`int` `default: 0` + 使用Y轴的index。 ## SerieData @@ -3444,46 +3933,55 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### SerieData.data `List` + 可指定任意维数的数值列表。 ### SerieData.id `string` + 数据项的唯一id。唯一id不是必须设置的。 ### SerieData.ignore `bool` + 是否忽略数据。当为 true 时,数据不进行绘制。 ### SerieData.index `int` + 数据项索引。 ### SerieData.name `string` + 数据项名称。 ### SerieData.parentId `string` + 父节点id。父节点id不是必须设置的。 ### SerieData.radius `float` + 自定义半径。可用在饼图中自定义某个数据项的半径。 ### SerieData.selected `bool` + 该数据项是否被选中。 ### SerieData.state `SerieState` `v3.2.0` + 数据项的默认状态。 可选: @@ -3505,16 +4003,19 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### SerieDataLink.source `string` + 边的源节点名称。 ### SerieDataLink.target `string` + 边的目标节点名称。 ### SerieDataLink.value `double` + 边的值。决定边的宽度。 ## SerieSymbol @@ -3525,47 +4026,56 @@ class in XCharts.Runtime / 继承自: [SymbolStyle](#symbolstyle), [ISerieDataCo ### SerieSymbol.dataIndex -`int` `1` +`int` `default: 1` + 当sizeType指定为FromData时,指定的数据源索引。 ### SerieSymbol.dataScale -`float` `1` +`float` `default: 1` + 当sizeType指定为FromData时,指定的倍数系数。 ### SerieSymbol.forceShowLast -`bool` `false` +`bool` `default: false` + 是否强制显示最后一个图形标记。 ### SerieSymbol.interval `int` + 显示图形标记的间隔。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。 ### SerieSymbol.maxSize -`float` `0f` `v3.3.0` +`float` `default: 0f` `v3.3.0` + 图形最大尺寸。只在sizeType为SymbolSizeType.FromData时有效。 ### SerieSymbol.minSize -`float` `0f` `v3.3.0` +`float` `default: 0f` `v3.3.0` + 图形最小尺寸。只在sizeType为SymbolSizeType.FromData时有效。 ### SerieSymbol.repeat -`bool` `false` +`bool` `default: false` + 图形是否重复。 ### SerieSymbol.sizeFunction `SymbolSizeFunction` + 当sizeType指定为Function时,指定的委托函数。 ### SerieSymbol.sizeType `SymbolSizeType` + 标记图形的大小获取方式。 可选: @@ -3577,6 +4087,7 @@ class in XCharts.Runtime / 继承自: [SymbolStyle](#symbolstyle), [ISerieDataCo ### SerieSymbol.startIndex `int` + 开始显示图形标记的索引。 ## SerieTheme @@ -3585,42 +4096,50 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### SerieTheme.candlestickBorderColor -`Color32` `Color32(235, 84, 84, 255)` +`Color32` `default: Color32(235, 84, 84, 255)` + K线图阳线(跌)边框色 ### SerieTheme.candlestickBorderColor0 -`Color32` `Color32(71, 178, 98, 255)` +`Color32` `default: Color32(71, 178, 98, 255)` + K线图阴线(跌)边框色 ### SerieTheme.candlestickBorderWidth -`float` `1` +`float` `default: 1` + K线图边框宽度 ### SerieTheme.candlestickColor -`Color32` `Color32(235, 84, 84, 255)` +`Color32` `default: Color32(235, 84, 84, 255)` + K线图阳线(涨)填充色 ### SerieTheme.candlestickColor0 -`Color32` `Color32(71, 178, 98, 255)` +`Color32` `default: Color32(71, 178, 98, 255)` + K线图阴线(跌)填充色 ### SerieTheme.lineSymbolSize `float` + 折线图的Symbol大小。 ### SerieTheme.lineWidth `float` + 文本颜色。 ### SerieTheme.scatterSymbolSize `float` + 散点图的Symbol大小。 ## Settings @@ -3631,71 +4150,85 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### Settings.axisMaxSplitNumber -`float` `50` `v3.1.0` +`float` `default: 50` `v3.1.0` + 坐标轴最大分隔段数。段数过大时可能会生成较多的label节点。 ### Settings.basePainterMaterial `Material` + Base Pointer 材质球,设置后会影响Axis等。 ### Settings.cicleSmoothness -`float` `2f` +`float` `default: 2f` + 圆形的平滑度。数越小圆越平滑,但顶点数也会随之增加。 ### Settings.legendIconCornerRadius `float[]` + 图例圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。 ### Settings.legendIconLineWidth -`float` `2` +`float` `default: 2` + Line类型图例图标的线条宽度。 ### Settings.lineSegmentDistance -`float` `3f` +`float` `default: 3f` + 线段的分割距离。普通折线图的线是由很多线段组成,段数由该数值决定。值越小段数越多,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。 ### Settings.lineSmoothness -`float` `2f` +`float` `default: 2f` + When the area with gradient is filled, the larger the value, the worse the transition effect. ### Settings.lineSmoothStyle -`float` `2.5f` +`float` `default: 2.5f` + 曲线平滑系数。通过调整平滑系数可以改变曲线的曲率,得到外观稍微有变化的不同曲线。 ### Settings.maxPainter -`int` `10` +`int` `default: 10` + 设定的painter数量。 ### Settings.reversePainter -`bool` `false` +`bool` `default: false` + Painter是否逆序。逆序时index大的serie最先绘制。 ### Settings.seriePainterMaterial `Material` + Serie Pointer 材质球,设置后会影响所有Serie。 ### Settings.show -`bool` `true` +`bool` `default: true` + ### Settings.topPainterMaterial `Material` + Top Pointer 材质球。 ### Settings.upperPainterMaterial `Material` + Upper Pointer 材质球。 ## SimplifiedBar @@ -3718,22 +4251,26 @@ class in XCharts.Runtime / 继承自: [Axis](#axis), [IUpdateRuntimeData](#iupda ### SingleAxis.bottom -`float` `0.2f` +`float` `default: 0.2f` + 组件离容器下侧的距离。 ### SingleAxis.height -`float` `50` +`float` `default: 50` + 坐标轴高。 ### SingleAxis.left -`float` `0.1f` +`float` `default: 0.1f` + 组件离容器左侧的距离。 ### SingleAxis.orient `Orient` + 坐标轴朝向。默认为水平朝向。 可选: @@ -3743,17 +4280,20 @@ class in XCharts.Runtime / 继承自: [Axis](#axis), [IUpdateRuntimeData](#iupda ### SingleAxis.right -`float` `0.1f` +`float` `default: 0.1f` + 组件离容器右侧的距离。 ### SingleAxis.top -`float` `0f` +`float` `default: 0f` + 组件离容器上侧的距离。 ### SingleAxis.width -`float` `0` +`float` `default: 0` + 坐标轴宽。 ## SingleAxisCoord @@ -3767,11 +4307,13 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### StageColor.color `Color32` + 颜色。 ### StageColor.percent `float` + 结束位置百分比。 ## StateStyle @@ -3785,36 +4327,43 @@ Serie的状态样式。Serie的状态有正常,高亮,淡出,选中四种 ### StateStyle.areaStyle `AreaStyle` + 区域样式。 [AreaStyle](#areastyle) ### StateStyle.itemStyle `ItemStyle` + 图形样式。 [ItemStyle](#itemstyle) ### StateStyle.label `LabelStyle` + 图形文本标签。 [LabelStyle](#labelstyle) ### StateStyle.labelLine `LabelLine` + 图形文本引导线样式。 [LabelLine](#labelline) ### StateStyle.lineStyle `LineStyle` + 折线样式。 [LineStyle](#linestyle) ### StateStyle.show -`bool` `true` +`bool` `default: true` + 是否启用高亮样式。 ### StateStyle.symbol `SerieSymbol` + 标记样式。 [SerieSymbol](#seriesymbol) ## SubTitleTheme @@ -3830,46 +4379,55 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类 ### SymbolStyle.color `Color32` + 图形的颜色。 ### SymbolStyle.gap -`float` `0` +`float` `default: 0` + 图形标记和线条的间隙距离。 ### SymbolStyle.height -`float` `0f` +`float` `default: 0f` + 图形的高。 ### SymbolStyle.image `Sprite` + 自定义的标记图形。 ### SymbolStyle.imageType `Image.Type` + 图形填充类型。 ### SymbolStyle.offset -`Vector2` `Vector2.zero` +`Vector2` `default: Vector2.zero` + 图形的偏移。 ### SymbolStyle.show -`bool` `true` +`bool` `default: true` + 是否显示标记。 ### SymbolStyle.size -`float` `0f` +`float` `default: 0f` + 标记的大小。 ### SymbolStyle.type `SymbolType` + 标记类型。 可选: @@ -3891,7 +4449,8 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类 ### SymbolStyle.width -`float` `0f` +`float` `default: 0f` + 图形的宽。 ## TextLimit @@ -3902,22 +4461,26 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### TextLimit.enable -`bool` `false` +`bool` `default: false` + 是否启用文本自适应。 [default:true] ### TextLimit.gap -`float` `1` +`float` `default: 1` + 两边留白像素距离。 [default:10f] ### TextLimit.maxWidth -`float` `0` +`float` `default: 0` + Clipping occurs when the width of the text is greater than this value. ### TextLimit.suffix `string` + 长度超出时的后缀。 [default: "..."] ## TextPadding @@ -3935,75 +4498,90 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### TextStyle.alignment `TextAnchor` + 对齐方式。 ### TextStyle.autoAlign -`bool` `true` +`bool` `default: true` + 文本是否让系统自动选对齐方式。为false时才会用alignment。 ### TextStyle.autoColor -`bool` `false` +`bool` `default: false` + 是否开启自动颜色。当开启时,会自动设置颜色。 ### TextStyle.autoWrap -`bool` `false` +`bool` `default: false` + 是否自动换行。 ### TextStyle.color `Color` + 文本的颜色。 [default: `Color.clear`] ### TextStyle.font `Font` + 文本字体。 [default: null] ### TextStyle.fontSize -`int` `0` +`int` `default: 0` + 文本字体大小。 [default: 18] ### TextStyle.fontStyle `FontStyle` + 文本字体的风格。 [default: FontStyle.Normal] ### TextStyle.lineSpacing -`float` `1f` +`float` `default: 1f` + 行间距。 [default: 1f] ### TextStyle.rotate -`float` `0` +`float` `default: 0` + 文本的旋转。 [default: `0f`] ### TextStyle.show -`bool` `true` +`bool` `default: true` + 文本的相关设置。 ### TextStyle.tMPAlignment `TextAlignmentOptions` + ### TextStyle.tMPFont `TMP_FontAsset` + TextMeshPro字体。 ### TextStyle.tMPFontStyle `FontStyles` + ### TextStyle.tMPSpriteAsset `TMP_SpriteAsset` `v3.1.0` + ## Theme class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject) @@ -4013,61 +4591,73 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co ### Theme.axis `AxisTheme` + [AxisTheme](#axistheme) ### Theme.backgroundColor `Color32` + 背景颜色。 ### Theme.colorPalette `List` + 调色盘颜色列表。如果系列没有设置颜色,则会依次循环从该列表中取颜色作为系列颜色。 ### Theme.common `ComponentTheme` + [ComponentTheme](#componenttheme) ### Theme.contrastColor `Color32` + 对比色。 ### Theme.dataZoom `DataZoomTheme` + [DataZoomTheme](#datazoomtheme) ### Theme.font `Font` + 主题字体。 ### Theme.legend `LegendTheme` + [LegendTheme](#legendtheme) ### Theme.serie `SerieTheme` + [SerieTheme](#serietheme) ### Theme.subTitle `SubTitleTheme` + [SubTitleTheme](#subtitletheme) ### Theme.themeName `string` + 主题名称。 ### Theme.themeType `ThemeType` + 主题类型。 可选: @@ -4080,21 +4670,25 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co ### Theme.title `TitleTheme` + [TitleTheme](#titletheme) ### Theme.tMPFont `TMP_FontAsset` + 主题字体。 ### Theme.tooltip `TooltipTheme` + [TooltipTheme](#tooltiptheme) ### Theme.visualMap `VisualMapTheme` + [VisualMapTheme](#visualmaptheme) ## ThemeStyle @@ -4106,33 +4700,40 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### ThemeStyle.customBackgroundColor `Color32` + 自定义的背景颜色。 ### ThemeStyle.customColorPalette `List` + ### ThemeStyle.customFont `Font` + ### ThemeStyle.enableCustomTheme -`bool` `false` +`bool` `default: false` + 是否自定义主题颜色。当设置为true时,可以用‘sync color to custom’同步主题的颜色到自定义颜色。也可以手动设置。 ### ThemeStyle.sharedTheme `Theme` + 主题配置。 [Theme](#theme) ### ThemeStyle.show -`bool` `true` +`bool` `default: true` + ### ThemeStyle.transparentBackground -`bool` `false` +`bool` `default: false` + 是否透明背景颜色。当设置为true时,不绘制背景颜色。 ## Title @@ -4143,37 +4744,44 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropert ### Title.itemGap -`float` `0` +`float` `default: 0` + 主副标题之间的间距。 ### Title.labelStyle `LabelStyle` + 主标题文本样式。 [LabelStyle](#labelstyle) ### Title.location `Location` + 标题显示位置。 [Location](#location) ### Title.show -`bool` `true` +`bool` `default: true` + 是否显示标题组件。 ### Title.subLabelStyle `LabelStyle` + 副标题文本样式。 [LabelStyle](#labelstyle) ### Title.subText `string` + 副标题文本,支持使用 \n 换行。 ### Title.text `string` + 主标题文本,支持使用 \n 换行。 ## TitleStyle @@ -4194,122 +4802,146 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### Tooltip.alwayShowContent -`bool` `false` +`bool` `default: false` + 是否触发后一直显示提示框浮层。 ### Tooltip.backgroundColor `Color` + 提示框的背景颜色。 ### Tooltip.backgroundImage `Sprite` + 提示框的背景图片。 ### Tooltip.backgroundType `Image.Type` + 提示框的背景图片显示类型。 ### Tooltip.borderColor -`Color32` `Color32(230, 230, 230, 255)` +`Color32` `default: Color32(230, 230, 230, 255)` + 边框颜色。 ### Tooltip.borderWidth -`float` `2f` +`float` `default: 2f` + 边框线宽。 ### Tooltip.contentLabelStyles `List` + 内容部分的文本样式列表。和列一一对应。 ### Tooltip.fixedHeight -`float` `0` +`float` `default: 0` + 固定高度。比 minHeight 优先。 ### Tooltip.fixedWidth -`float` `0` +`float` `default: 0` + 固定宽度。比 minWidth 优先。 ### Tooltip.fixedX -`float` `0f` +`float` `default: 0f` + 固定X位置的坐标。 ### Tooltip.fixedY -`float` `0.7f` +`float` `default: 0.7f` + 固定Y位置的坐标。 ### Tooltip.ignoreDataDefaultContent `string` + 被忽略数据的默认显示字符信息。如果设置为空,则表示完全不显示忽略数据。 ### Tooltip.ignoreDataShow -`bool` `false` +`bool` `default: false` + 是否显示忽略数据在tooltip上。 ### Tooltip.itemFormatter `string` + 提示框单个serie或数据项内容的字符串模版格式器。支持用 \n 换行。用|来表示多个列的分隔。 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。
{i}或-表示忽略当前项。 {.}为当前所指示的serie或数据项的对应颜色的圆点。
{a}为当前所指示的serie或数据项的系列名name。
{b}为当前所指示的serie或数据项的数据项serieData的name,或者类目值(如折线图的X轴)。
{c}为当前所指示的serie或数据项的y维(dimesion为1)的数值。
{d}为当前所指示的serie或数据项的y维(dimesion为1)百分比值,注意不带%号。
{e}为当前所指示的serie或数据项的数据项serieData的name。
{f}为当前所指示的serie的默认维度的数据总和。
{g}为当前所指示的serie的数据总个数。
{h}为当前所指示的serie的十六进制颜色值。
{y}为当前所指示的serie的y轴的类目值。
{c0}表示当前数据项维度为0的数据。
{c1}表示当前数据项维度为1的数据。
{d3}表示维度3的数据的百分比。它的分母是默认维度(一般是1维度)数据。
|表示多个列的分隔。
示例:"{i}", "{.}|{a}|{c}", "{.}|{b}|{c2:f2}", "{.}|{b}|{y}" ### Tooltip.itemHeight -`float` `25f` +`float` `default: 25f` + 数据项文本的高。 ### Tooltip.lineStyle `LineStyle` + 指示线样式。 [LineStyle](#linestyle) ### Tooltip.marker `string` + serie的符号标志。 ### Tooltip.minHeight -`float` `0` +`float` `default: 0` + 最小高度。如若 fixedHeight 设有值,优先取 fixedHeight。 ### Tooltip.minWidth -`float` `0` +`float` `default: 0` + 最小宽度。如若 fixedWidth 设有值,优先取 fixedWidth。 ### Tooltip.numericFormatter `string` + 标准数字和日期格式字符串。用于将Double数值或DateTime日期格式化显示为字符串。numericFormatter用来作为Double.ToString()或DateTime.ToString()的参数。
数字格式使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。如:F1, E2
日期格式:以`date`开头,用来格式化DateTime,常见格式有:yyyy年,MM月,dd日,HH时,mm分,ss秒,fff毫秒。如:date:yyyy-MM-dd HH:mm:ss
时间格式:以`time`开头,用来格式化TimeSpan,常见格式有:d日,HH时,mm分,ss秒,fffffff小数部分。 需要Unity2018以上版本才支持格式化,并且里面的字符要转义。如:time:d\.HH\:mm\:ss
数值格式化参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
日期格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-date-and-time-format-strings
时间格式化参考:https://learn.microsoft.com/zh-cn/dotnet/standard/base-types/standard-timespan-format-strings
注意:date和time格式需要`v3.12.0`以上版本才支持。 ### Tooltip.offset -`Vector2` `Vector2(18f, -25f)` +`Vector2` `default: Vector2(18f, -25f)` + 提示框相对于鼠标位置的偏移。 ### Tooltip.paddingLeftRight -`int` `10` +`int` `default: 10` + 左右边距。 ### Tooltip.paddingTopBottom -`int` `10` +`int` `default: 10` + 上下边距。 ### Tooltip.position `Tooltip.Position` `v3.3.0` + 显示位置类型。 可选: @@ -4321,32 +4953,38 @@ serie的符号标志。 ### Tooltip.show -`bool` `true` +`bool` `default: true` + 是否显示提示框组件。 ### Tooltip.showContent -`bool` `true` +`bool` `default: true` + 是否显示提示框浮层,默认显示。只需tooltip触发事件或显示axisPointer而不需要显示内容时可配置该项为false。 ### Tooltip.titleFormatter `string` + 提示框标题内容的字符串模版格式器。支持用 \n 换行。可以单独设置占位符{i}表示忽略不显示title。 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。
{.}为当前所指示或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)百分比值,注意不带%号。
{e}为当前所指示或index为0的serie的数据项serieData的name。
{h}为当前所指示或index为0的serie的数据项serieData的十六进制颜色值。
{f}为数据总和。
{g}为数据总个数。
{y}为value所对应的y轴的类目值。
{.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)。
{d:0.##} 表示单独指定了数值的格式化字符串为 0.## (用于百分比,保留2位有效数同时又能避免使用 f2 而出现的类似于"100.00%"的情况 )。
示例:"{a}:{c}"、"{a1}:{c1:f1}"、"{a1}:{c1:0:f1}"、"{a1}:{c1:1-1:f1}" ### Tooltip.titleHeight -`float` `25f` +`float` `default: 25f` + 标题文本的高。 ### Tooltip.titleLabelStyle `LabelStyle` + 标题的文本样式。 [LabelStyle](#labelstyle) ### Tooltip.trigger `Tooltip.Trigger` + 触发类型。 可选: @@ -4359,6 +4997,7 @@ serie的符号标志。 ### Tooltip.triggerOn `Tooltip.TriggerOn` `v3.11.0` + 触发条件。 可选: @@ -4369,6 +5008,7 @@ serie的符号标志。 ### Tooltip.type `Tooltip.Type` + 提示框指示器类型。 可选: @@ -4386,26 +5026,31 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) ### TooltipTheme.areaColor `Color32` + 区域指示的颜色。 ### TooltipTheme.labelBackgroundColor `Color32` + 十字指示器坐标轴标签的背景颜色。 ### TooltipTheme.labelTextColor `Color32` + 十字指示器坐标轴标签的文本颜色。 ### TooltipTheme.lineColor `Color32` + 指示线颜色。 ### TooltipTheme.lineType `LineStyle.Type` + 坐标轴线类型。 可选: @@ -4419,7 +5064,8 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) ### TooltipTheme.lineWidth -`float` `1f` +`float` `default: 1f` + 指示线线宽。 ## UIComponentTheme @@ -4429,15 +5075,18 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### UIComponentTheme.sharedTheme `Theme` + 主题配置。 [Theme](#theme) ### UIComponentTheme.show -`bool` `true` +`bool` `default: true` + ### UIComponentTheme.transparentBackground -`bool` `false` +`bool` `default: false` + ## ViewControl @@ -4449,12 +5098,14 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### ViewControl.alpha -`float` `90f` +`float` `default: 90f` + 视角在x-z平面的角度。 ### ViewControl.beta -`float` `55f` +`float` `default: 55f` + 视角在y-z平面的角度。 ## VisualMap @@ -4465,67 +5116,80 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### VisualMap.autoMinMax -`bool` `true` +`bool` `default: true` + Automatically set min, Max value 自动设置min,max的值 ### VisualMap.borderWidth -`float` `0` +`float` `default: 0` + 边框线宽,单位px。 ### VisualMap.calculable -`bool` `false` +`bool` `default: false` + 是否显示拖拽用的手柄(手柄能拖拽调整选中范围)。 ### VisualMap.dimension -`int` `-1` +`int` `default: -1` + Starting at 1, the default is 0 to take the last dimension in data. ### VisualMap.hoverLink -`bool` `true` +`bool` `default: true` + Conversely, when the mouse hovers over a graphic element in a diagram, the corresponding value of the visualMap component is triangulated in the corresponding position. ### VisualMap.inRange `List` + 分段式每一段的相关配置。 ### VisualMap.itemGap -`float` `10f` +`float` `default: 10f` + 每个图元之间的间隔距离。 ### VisualMap.itemHeight -`float` `140f` +`float` `default: 140f` + 图形的高度,即颜色条的高度。 ### VisualMap.itemWidth -`float` `20f` +`float` `default: 20f` + 图形的宽度,即颜色条的宽度。 ### VisualMap.location `Location` + 组件显示的位置。 [Location](#location) ### VisualMap.max -`double` `0` +`double` `default: 0` + 范围最大值 ### VisualMap.min -`double` `0` +`double` `default: 0` + 范围最小值 ### VisualMap.orient `Orient` + 布局方式是横还是竖。 可选: @@ -4536,21 +5200,25 @@ Conversely, when the mouse hovers over a graphic element in a diagram, the corre ### VisualMap.outOfRange `List` + 定义 在选中范围外 的视觉颜色。 ### VisualMap.range `double[]` + 指定手柄对应数值的位置。range 应在[min,max]范围内。 ### VisualMap.realtime -`bool` `true` +`bool` `default: true` + 拖拽时,是否实时更新。 ### VisualMap.selectedMode `VisualMap.SelectedMode` + 选择模式。 可选: @@ -4560,37 +5228,44 @@ Conversely, when the mouse hovers over a graphic element in a diagram, the corre ### VisualMap.serieIndex -`int` `0` +`int` `default: 0` + 影响的serie索引。 ### VisualMap.show -`bool` `true` +`bool` `default: true` + 组件是否生效。 ### VisualMap.showUI -`bool` `false` +`bool` `default: false` + 是否显示组件。如果设置为 false,不会显示,但是数据映射的功能还存在。 ### VisualMap.splitNumber -`int` `5` +`int` `default: 5` + 对于连续型数据,自动平均切分成几段,默认为0时自动匹配inRange颜色列表大小。 ### VisualMap.text `string[]` + 两端的文本,如 ['High', 'Low']。 ### VisualMap.textGap `float[]` + 两端文字主体之间的距离,单位为px。 ### VisualMap.type `VisualMap.Type` + 组件类型。 可选: @@ -4600,12 +5275,14 @@ Conversely, when the mouse hovers over a graphic element in a diagram, the corre ### VisualMap.workOnArea -`bool` `false` +`bool` `default: false` + 组件是否对LineChart的AreaStyle有效。 ### VisualMap.workOnLine -`bool` `true` +`bool` `default: true` + 组件是否对LineChart的LineStyle有效。 ## VisualMapRange @@ -4615,21 +5292,25 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### VisualMapRange.color `Color32` + 颜色 ### VisualMapRange.label `string` + 文字描述 ### VisualMapRange.max `double` + 范围最大值 ### VisualMapRange.min `double` + 范围最小值 ## VisualMapTheme @@ -4639,21 +5320,25 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) ### VisualMapTheme.backgroundColor `Color32` + 背景颜色。 ### VisualMapTheme.borderColor `Color32` + 边框颜色。 ### VisualMapTheme.borderWidth `float` + 边框线宽。 ### VisualMapTheme.triangeLen -`float` `20f` +`float` `default: 20f` + 可视化组件的调节三角形边长。 ## Wrapper<T> @@ -4687,6 +5372,7 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co `LineStyle.Type` + 可选: - `Solid`: 实线 @@ -4698,13 +5384,15 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co ### XCSettings.axisLineWidth -`float` `0.8f` +`float` `default: 0.8f` + ### XCSettings.axisSplitLineType `LineStyle.Type` + 可选: - `Solid`: 实线 @@ -4716,133 +5404,165 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co ### XCSettings.axisSplitLineWidth -`float` `0.8f` +`float` `default: 0.8f` + ### XCSettings.axisTickLength -`float` `5f` +`float` `default: 5f` + ### XCSettings.axisTickWidth -`float` `0.8f` +`float` `default: 0.8f` + ### XCSettings.cicleSmoothness -`float` `2f` +`float` `default: 2f` + ### XCSettings.customThemes `List` + ### XCSettings.dataZoomBorderWidth -`float` `0.5f` +`float` `default: 0.5f` + ### XCSettings.dataZoomDataLineWidth -`float` `0.5f` +`float` `default: 0.5f` + ### XCSettings.editorShowAllListData -`bool` `false` +`bool` `default: false` + ### XCSettings.font `Font` + ### XCSettings.fontSizeLv1 -`int` `28` +`int` `default: 28` + 一级字体大小。 ### XCSettings.fontSizeLv2 -`int` `24` +`int` `default: 24` + ### XCSettings.fontSizeLv3 -`int` `20` +`int` `default: 20` + ### XCSettings.fontSizeLv4 -`int` `18` +`int` `default: 18` + ### XCSettings.gaugeAxisLineWidth -`float` `15f` +`float` `default: 15f` + ### XCSettings.gaugeAxisSplitLineLength -`float` `15f` +`float` `default: 15f` + ### XCSettings.gaugeAxisSplitLineWidth -`float` `0.8f` +`float` `default: 0.8f` + ### XCSettings.gaugeAxisTickLength -`float` `5f` +`float` `default: 5f` + ### XCSettings.gaugeAxisTickWidth -`float` `0.8f` +`float` `default: 0.8f` + ### XCSettings.lang `Lang` + [Lang](#lang) ### XCSettings.lineSegmentDistance -`float` `3f` +`float` `default: 3f` + ### XCSettings.lineSmoothness -`float` `2f` +`float` `default: 2f` + ### XCSettings.lineSmoothStyle -`float` `3f` +`float` `default: 3f` + ### XCSettings.maxPainter -`int` `10` +`int` `default: 10` + ### XCSettings.serieCandlestickBorderWidth -`float` `1f` +`float` `default: 1f` + ### XCSettings.serieLineSymbolSize -`float` `5f` +`float` `default: 5f` + ### XCSettings.serieLineWidth -`float` `1.8f` +`float` `default: 1.8f` + ### XCSettings.serieScatterSymbolSize -`float` `20f` +`float` `default: 20f` + ### XCSettings.serieSelectedRate -`float` `1.3f` +`float` `default: 1.3f` + ### XCSettings.tMPFont `TMP_FontAsset` + ### XCSettings.tootipLineWidth -`float` `0.8f` +`float` `default: 0.8f` + ### XCSettings.visualMapBorderWidth -`float` `0f` +`float` `default: 0f` + ### XCSettings.visualMapTriangeLen -`float` `20f` +`float` `default: 20f` + ## YAxis From c61ad794a7e5685a8763291e5522430c02621f34 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Tue, 24 Sep 2024 18:26:45 +0800 Subject: [PATCH 29/34] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/en/configuration.md | 1161 +++++++++++++--------------- Documentation~/zh/configuration.md | 1161 +++++++++++++--------------- 2 files changed, 1094 insertions(+), 1228 deletions(-) diff --git a/Documentation~/en/configuration.md b/Documentation~/en/configuration.md index 888d7fdd..085b558f 100644 --- a/Documentation~/en/configuration.md +++ b/Documentation~/en/configuration.md @@ -212,7 +212,7 @@ Angle axis of Polar Coordinate. ### AngleAxis.startAngle -`float` `default: 0` +`float` `0` Starting angle of axis. 0 degrees by default, standing for right position of center. @@ -270,25 +270,25 @@ the animation info. ### AnimationInfo.delay -`float` `default: 0` `v3.8.0` +`float` `0` `v3.8.0` the delay time before animation start. ### AnimationInfo.duration -`float` `default: 1000` `v3.8.0` +`float` `1000` `v3.8.0` the duration of animation. ### AnimationInfo.enable -`bool` `default: true` `v3.8.0` +`bool` `true` `v3.8.0` whether enable animation. ### AnimationInfo.reverse -`bool` `default: false` `v3.8.0` +`bool` `false` `v3.8.0` whether enable reverse animation. @@ -302,21 +302,21 @@ Interactive animation of charts. ### AnimationInteraction.offset -`MLValue` `v3.8.0` +[MLValue](#mlvalue) `v3.8.0` -the mlvalue of offset. Such as the offset of the pie chart when the sector is selected. [MLValue](#mlvalue) +the mlvalue of offset. Such as the offset of the pie chart when the sector is selected. ### AnimationInteraction.radius -`MLValue` `v3.8.0` +[MLValue](#mlvalue) `v3.8.0` -the mlvalue of radius. [MLValue](#mlvalue) +the mlvalue of radius. ### AnimationInteraction.width -`MLValue` `v3.8.0` +[MLValue](#mlvalue) `v3.8.0` -the mlvalue of width. [MLValue](#mlvalue) +the mlvalue of width. ## AnimationStyle @@ -326,19 +326,19 @@ the animation of serie. support animation type: fadeIn, fadeOut, change, additio ### AnimationStyle.addition -`AnimationAddition` `v3.8.0` +[AnimationAddition](#animationaddition) `v3.8.0` -Add data animation configuration. [AnimationAddition](#animationaddition) +Add data animation configuration. ### AnimationStyle.change -`AnimationChange` `v3.8.0` +[AnimationChange](#animationchange) `v3.8.0` -Update data animation configuration. [AnimationChange](#animationchange) +Update data animation configuration. ### AnimationStyle.easting -`AnimationEasing` +[AnimationEasing](#animationeasing) @@ -348,43 +348,43 @@ Options: ### AnimationStyle.enable -`bool` `default: true` +`bool` `true` Whether to enable animation. ### AnimationStyle.fadeIn -`AnimationFadeIn` `v3.8.0` +[AnimationFadeIn](#animationfadein) `v3.8.0` -Fade in animation configuration. [AnimationFadeIn](#animationfadein) +Fade in animation configuration. ### AnimationStyle.fadeOut -`AnimationFadeOut` `v3.8.0` +[AnimationFadeOut](#animationfadeout) `v3.8.0` -Fade out animation configuration. [AnimationFadeOut](#animationfadeout) +Fade out animation configuration. ### AnimationStyle.hiding -`AnimationHiding` `v3.8.0` +[AnimationHiding](#animationhiding) `v3.8.0` -Data hiding animation configuration. [AnimationHiding](#animationhiding) +Data hiding animation configuration. ### AnimationStyle.interaction -`AnimationInteraction` `v3.8.0` +[AnimationInteraction](#animationinteraction) `v3.8.0` -Interaction animation configuration. [AnimationInteraction](#animationinteraction) +Interaction animation configuration. ### AnimationStyle.threshold -`int` `default: 2000` +`int` `2000` Whether to set graphic number threshold to animation. Animation will be disabled when graphic number is larger than threshold. ### AnimationStyle.type -`AnimationType` +[AnimationType](#animationtype) The type of animation. @@ -423,13 +423,13 @@ Whether to fill only polygonal areas. Currently, only convex polygons are suppor ### AreaStyle.opacity -`float` `default: 0.6f` +`float` `0.6f` Opacity of the component. Supports value from 0 to 1, and the component will not be drawn when set to 0. ### AreaStyle.origin -`AreaStyle.AreaOrigin` +[AreaStyle.AreaOrigin](#areastyleareaorigin) the origin of area. @@ -441,7 +441,7 @@ Options: ### AreaStyle.show -`bool` `default: true` +`bool` `true` Set this to false to prevent the areafrom showing. @@ -453,7 +453,7 @@ Gradient color, start color to toColor. ### AreaStyle.toTop -`bool` `default: true` `v3.6.0` +`bool` `true` `v3.6.0` Whether to fill the gradient color to the top. The default is true, which means that the gradient color is filled to the top. If it is false, the gradient color is filled to the actual position. @@ -463,31 +463,31 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### ArrowStyle.color -`Color32` `default: Color.clear` +`Color32` `Color.clear` the color of arrow. ### ArrowStyle.dent -`float` `default: 3` +`float` `3` The dent of arrow. ### ArrowStyle.height -`float` `default: 15` +`float` `15` The height of arrow. ### ArrowStyle.offset -`float` `default: 0` +`float` `0` The offset of arrow. ### ArrowStyle.width -`float` `default: 10` +`float` `10` The widht of arrow. @@ -499,49 +499,49 @@ The axis in rectangular coordinate. ### Axis.animation -`AxisAnimation` +[AxisAnimation](#axisanimation) -animation of axis. [AxisAnimation](#axisanimation) +animation of axis. ### Axis.axisLabel -`AxisLabel` +[AxisLabel](#axislabel) -axis label. [AxisLabel](#axislabel) +axis label. ### Axis.axisLine -`AxisLine` +[AxisLine](#axisline) -axis Line. [AxisLine](#axisline) +axis Line. ### Axis.axisName -`AxisName` +[AxisName](#axisname) -axis name. [AxisName](#axisname) +axis name. ### Axis.axisTick -`AxisTick` +[AxisTick](#axistick) -axis tick. [AxisTick](#axistick) +axis tick. ### Axis.boundaryGap -`bool` `default: true` +`bool` `true` The boundary gap on both sides of a coordinate axis, which is valid only for category axis with type: 'Category'. ### Axis.ceilRate -`double` `default: 0` +`double` `0` The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated. ### Axis.clockwise -`bool` `default: true` +`bool` `true` Whether the positive position of axis is in clockwise. True for clockwise by default. @@ -565,9 +565,9 @@ The index of the grid on which the axis are located, by default, is in the first ### Axis.indicatorLabel -`LabelStyle` `v3.4.0` +[LabelStyle](#labelstyle) `v3.4.0` -Style of axis tooltip indicator label. [LabelStyle](#labelstyle) +Style of axis tooltip indicator label. ### Axis.insertDataToHead @@ -577,25 +577,25 @@ Whether to add new data at the head or at the end of the list. ### Axis.interval -`double` `default: 0` +`double` `0` Compulsively set segmentation interval for axis.This is unavailable for category axis. ### Axis.inverse -`bool` `default: false` +`bool` `false` Whether the axis are reversed or not. Invalid in `Category` axis. ### Axis.logBase -`float` `default: 10` +`float` `10` Base of logarithm, which is valid only for numeric axes with type: 'Log'. ### Axis.logBaseE -`bool` `default: false` +`bool` `false` On the log axis, if base e is the natural number, and is true, logBase fails. @@ -607,7 +607,7 @@ The maximum value of axis.Valid when `minMaxType` is `Custom` ### Axis.maxCache -`int` `default: 0` +`int` `0` The max number of axis data cache. @@ -619,13 +619,13 @@ The minimun value of axis.Valid when `minMaxType` is `Custom` ### Axis.minCategorySpacing -`float` `default: 0` `v3.11.0` +`float` `0` `v3.11.0` The minimum spacing between categories. ### Axis.minMaxType -`Axis.AxisMinMaxType` +[Axis.AxisMinMaxType](#axisaxisminmaxtype) the type of axis minmax. @@ -638,15 +638,15 @@ Options: ### Axis.minorSplitLine -`AxisMinorSplitLine` `v3.2.0` +[AxisMinorSplitLine](#axisminorsplitline) `v3.2.0` -axis minor split line. [AxisMinorSplitLine](#axisminorsplitline) +axis minor split line. ### Axis.minorTick -`AxisMinorTick` `v3.2.0` +[AxisMinorTick](#axisminortick) `v3.2.0` -axis minor tick. [AxisMinorTick](#axisminortick) +axis minor tick. ### Axis.offset @@ -668,7 +668,7 @@ The index of the polar on which the axis are located, by default, is in the firs ### Axis.position -`Axis.AxisPosition` +[Axis.AxisPosition](#axisaxisposition) the position of axis in grid. @@ -682,31 +682,31 @@ Options: ### Axis.show -`bool` `default: true` +`bool` `true` Whether to show axis. ### Axis.splitArea -`AxisSplitArea` +[AxisSplitArea](#axissplitarea) -axis split area. [AxisSplitArea](#axissplitarea) +axis split area. ### Axis.splitLine -`AxisSplitLine` +[AxisSplitLine](#axissplitline) -axis split line. [AxisSplitLine](#axissplitline) +axis split line. ### Axis.splitNumber -`int` `default: 0` +`int` `0` Number of segments that the axis is split into. ### Axis.type -`Axis.AxisType` +[Axis.AxisType](#axisaxistype) the type of axis. @@ -733,7 +733,7 @@ the duration of animation (ms). When it is set to 0, the animation duration will ### AxisAnimation.show -`bool` `default: true` +`bool` `true` whether to enable animation. @@ -751,45 +751,45 @@ Settings related to axis label. ### AxisLabel.inside -`bool` `default: false` +`bool` `false` Set this to true so the axis labels face the inside direction. ### AxisLabel.interval -`int` `default: 0` +`int` `0` The display interval of the axis label. ### AxisLabel.onZero -`bool` `default: false` +`bool` `false` 刻度标签显示在0刻度上。 ### AxisLabel.showAsPositiveNumber -`bool` `default: false` +`bool` `false` Show negative number as positive number. ### AxisLabel.showEndLabel -`bool` `default: true` +`bool` `true` Whether to display the last label. ### AxisLabel.showStartLabel -`bool` `default: true` +`bool` `true` Whether to display the first label. ### AxisLabel.textLimit -`TextLimit` +[TextLimit](#textlimit) -文本限制。 [TextLimit](#textlimit) +文本限制。 ## AxisLine @@ -799,9 +799,9 @@ Settings related to axis line. ### AxisLine.arrow -`ArrowStyle` +[ArrowStyle](#arrowstyle) -the arrow of line. [ArrowStyle](#arrowstyle) +the arrow of line. ### AxisLine.onZero @@ -847,10 +847,9 @@ Settings related to axis minor tick. `bool` - ### AxisMinorTick.splitNumber -`int` `default: 5` +`int` `5` Number of segments that the axis is split into. @@ -862,9 +861,9 @@ the name of axis. ### AxisName.labelStyle -`LabelStyle` +[LabelStyle](#labelstyle) -The text style of axis name. [LabelStyle](#labelstyle) +The text style of axis name. ### AxisName.name @@ -928,19 +927,19 @@ Interval of Axis splitLine. ### AxisSplitLine.showEndLine -`bool` `default: true` `v3.3.0` +`bool` `true` `v3.3.0` Whether to show the last split line. ### AxisSplitLine.showStartLine -`bool` `default: true` `v3.3.0` +`bool` `true` `v3.3.0` Whether to show the first split line. ### AxisSplitLine.showZLine -`bool` `default: true` `v3.11.0` +`bool` `true` `v3.11.0` Whether to show the Z axis part of the split line. Generally used for 3D coordinate systems. @@ -964,7 +963,6 @@ Align axis tick with label, which is available only when boundaryGap is set to b `bool` - ### AxisTick.distance `float` @@ -991,7 +989,7 @@ Whether to display the first tick. ### AxisTick.splitNumber -`int` `default: 0` +`int` `0` Number of segments that the axis is split into. @@ -1003,15 +1001,15 @@ Background component. ### Background.autoColor -`bool` `default: true` +`bool` `true` Whether to use theme background color for component color when the background component is on. ### Background.borderStyle -`BorderStyle` `v3.10.0` +[BorderStyle](#borderstyle) `v3.10.0` -the border style of background. [BorderStyle](#borderstyle) +the border style of background. ### Background.image @@ -1027,7 +1025,7 @@ the image of background. ### Background.imageHeight -`float` `default: 0` `v3.10.0` +`float` `0` `v3.10.0` the height of background image. @@ -1039,13 +1037,13 @@ the fill type of background image. ### Background.imageWidth -`float` `default: 0` `v3.10.0` +`float` `0` `v3.10.0` the width of background image. ### Background.show -`bool` `default: true` +`bool` `true` Whether to enable the background component. @@ -1065,13 +1063,13 @@ the color of line. ### BaseAxisTheme.lineLength -`float` `default: 0f` +`float` `0f` the length of line. ### BaseAxisTheme.lineType -`LineStyle.Type` +[LineStyle.Type](#linestyletype) the type of line. @@ -1086,7 +1084,7 @@ Options: ### BaseAxisTheme.lineWidth -`float` `default: 1f` +`float` `1f` the width of line. @@ -1110,13 +1108,13 @@ the color of split line. ### BaseAxisTheme.splitLineLength -`float` `default: 0f` +`float` `0f` the length of split line. ### BaseAxisTheme.splitLineType -`LineStyle.Type` +[LineStyle.Type](#linestyletype) the type of split line. @@ -1131,7 +1129,7 @@ Options: ### BaseAxisTheme.splitLineWidth -`float` `default: 1f` +`float` `1f` the width of split line. @@ -1143,13 +1141,13 @@ the color of tick. ### BaseAxisTheme.tickLength -`float` `default: 5f` +`float` `5f` the length of tick. ### BaseAxisTheme.tickWidth -`float` `default: 1f` +`float` `1f` the width of tick. @@ -1161,9 +1159,9 @@ Settings related to base line. ### BaseLine.lineStyle -`LineStyle` +[LineStyle](#linestyle) -线条样式 [LineStyle](#linestyle) +线条样式 ### BaseLine.show @@ -1215,13 +1213,13 @@ The radius of rounded corner. Its unit is px. Use array to respectively specify ### BorderStyle.roundedCorner -`bool` `default: true` +`bool` `true` whether the border is rounded corner. ### BorderStyle.show -`bool` `default: false` +`bool` `false` whether the border is visible. @@ -1255,19 +1253,19 @@ The items of comment. ### Comment.labelStyle -`LabelStyle` +[LabelStyle](#labelstyle) -The text style of all comments. [LabelStyle](#labelstyle) +The text style of all comments. ### Comment.markStyle -`CommentMarkStyle` +[CommentMarkStyle](#commentmarkstyle) -The text style of all comments. [CommentMarkStyle](#commentmarkstyle) +The text style of all comments. ### Comment.show -`bool` `default: true` +`bool` `true` Set this to false to prevent the comment from showing. @@ -1285,15 +1283,15 @@ content of comment. ### CommentItem.labelStyle -`LabelStyle` +[LabelStyle](#labelstyle) -The text style of all comments. [LabelStyle](#labelstyle) +The text style of all comments. ### CommentItem.location -`Location` `v3.5.0` +[Location](#location) `v3.5.0` -The location of comment. [Location](#location) +The location of comment. ### CommentItem.markRect @@ -1303,13 +1301,13 @@ the mark rect of comment. ### CommentItem.markStyle -`CommentMarkStyle` +[CommentMarkStyle](#commentmarkstyle) -the mark rect style. [CommentMarkStyle](#commentmarkstyle) +the mark rect style. ### CommentItem.show -`bool` `default: true` +`bool` `true` Set this to false to prevent this comment item from showing. @@ -1321,13 +1319,13 @@ the comment mark style. ### CommentMarkStyle.lineStyle -`LineStyle` +[LineStyle](#linestyle) -line style of comment mark area. [LineStyle](#linestyle) +line style of comment mark area. ### CommentMarkStyle.show -`bool` `default: true` +`bool` `true` Set this to false to prevent this comment item from showing. @@ -1343,7 +1341,7 @@ the font of text. ### ComponentTheme.fontSize -`int` `default: 18` +`int` `18` the font size of text. @@ -1379,9 +1377,9 @@ DataZoom component is used for zooming a specific area, which enables user to in ### DataZoom.areaStyle -`AreaStyle` +[AreaStyle](#areastyle) -阴影填充样式。 [AreaStyle](#areastyle) +阴影填充样式。 ### DataZoom.backgroundColor @@ -1409,7 +1407,7 @@ Distance between dataZoom component and the bottom side of the container. bottom ### DataZoom.enable -`bool` `default: true` +`bool` `true` Whether to show dataZoom. @@ -1433,7 +1431,7 @@ the color of dataZoom data area. ### DataZoom.filterMode -`DataZoom.FilterMode` +[DataZoom.FilterMode](#datazoomfiltermode) The mode of data filter. @@ -1446,9 +1444,9 @@ Options: ### DataZoom.labelStyle -`LabelStyle` +[LabelStyle](#labelstyle) -label style. [LabelStyle](#labelstyle) +label style. ### DataZoom.left @@ -1458,25 +1456,25 @@ Distance between dataZoom component and the left side of the container. left val ### DataZoom.lineStyle -`LineStyle` +[LineStyle](#linestyle) -阴影线条样式。 [LineStyle](#linestyle) +阴影线条样式。 ### DataZoom.marqueeStyle -`MarqueeStyle` `v3.5.0` +[MarqueeStyle](#marqueestyle) `v3.5.0` -选取框样式。 [MarqueeStyle](#marqueestyle) +选取框样式。 ### DataZoom.minShowNum -`int` `default: 2` +`int` `2` Minimum number of display data. Minimum number of data displayed when DataZoom is enlarged to maximum. ### DataZoom.orient -`Orient` +[Orient](#orient) Specify whether the layout of dataZoom component is horizontal or vertical. What's more, it indicates whether the horizontal axis or vertical axis is controlled by default in catesian coordinate system. @@ -1487,7 +1485,7 @@ Options: ### DataZoom.rangeMode -`DataZoom.RangeMode` +[DataZoom.RangeMode](#datazoomrangemode) Use absolute value or percent value in DataZoom.start and DataZoom.end. @@ -1504,7 +1502,7 @@ Distance between dataZoom component and the right side of the container. right v ### DataZoom.scrollSensitivity -`float` `default: 1.1f` +`float` `1.1f` The sensitivity of dataZoom scroll. The larger the number, the more sensitive it is. @@ -1540,13 +1538,13 @@ Whether built-in support is supported. Built into the coordinate system to allow ### DataZoom.supportInsideDrag -`bool` `default: true` +`bool` `true` Whether insde drag is supported. ### DataZoom.supportInsideScroll -`bool` `default: true` +`bool` `true` Whether inside scrolling is supported. @@ -1638,32 +1636,29 @@ class in XCharts.Runtime ### DebugInfo.foldSeries -`bool` `default: false` +`bool` `false` Whether to fold series in inspector view. ### DebugInfo.labelStyle -`LabelStyle` - - [LabelStyle](#labelstyle) +[LabelStyle](#labelstyle) ### DebugInfo.show -`bool` `default: true` +`bool` `true` Whether show debug component. ### DebugInfo.showAllChartObject -`bool` `default: false` +`bool` `false` Whether show children components of chart in hierarchy view. ### DebugInfo.showDebugInfo -`bool` `default: false` - +`bool` `false` ## EffectScatter @@ -1679,7 +1674,7 @@ Configurations of emphasis state. ### EmphasisStyle.blurScope -`EmphasisStyle.BlurScope` +[EmphasisStyle.BlurScope](#emphasisstyleblurscope) The range of fade out when focus is enabled. @@ -1691,7 +1686,7 @@ Options: ### EmphasisStyle.focus -`EmphasisStyle.FocusType` +[EmphasisStyle.FocusType](#emphasisstylefocustype) When the data is highlighted, whether to fade out of other data to focus the highlighted. @@ -1703,7 +1698,7 @@ Options: ### EmphasisStyle.scale -`float` `default: 1.1f` +`float` `1.1f` Whether to scale to highlight the data in emphasis state. @@ -1731,49 +1726,49 @@ The color of grid border. ### GridCoord.borderWidth -`float` `default: 0f` +`float` `0f` Border width of grid. ### GridCoord.bottom -`float` `default: 0.14f` +`float` `0.14f` Distance between grid component and the bottom side of the container. ### GridCoord.layoutIndex -`int` `default: -1` `v3.8.0` +`int` `-1` `v3.8.0` The index of the grid layout component to which the grid belongs. The default is -1, which means that it does not belong to any grid layout component. When this value is set, the left, right, top, and bottom properties will be invalid. ### GridCoord.left -`float` `default: 0.11f` +`float` `0.11f` Distance between grid component and the left side of the container. ### GridCoord.right -`float` `default: 0.08f` +`float` `0.08f` Distance between grid component and the right side of the container. ### GridCoord.show -`bool` `default: true` +`bool` `true` Whether to show the grid in rectangular coordinate. ### GridCoord.showBorder -`bool` `default: false` +`bool` `false` Whether to show the grid border. ### GridCoord.top -`float` `default: 0.22f` +`float` `0.22f` Distance between grid component and the top side of the container. @@ -1787,68 +1782,67 @@ Grid component. ### GridCoord3D.bottom -`float` `default: 0.15f` +`float` `0.15f` Distance between grid component and the bottom side of the container. ### GridCoord3D.boxDepth -`float` `default: 0.2f` +`float` `0.2f` The depth of the box in the coordinate system. ### GridCoord3D.boxHeight -`float` `default: 0.4f` +`float` `0.4f` The height of the box in the coordinate system. ### GridCoord3D.boxWidth -`float` `default: 0.55f` +`float` `0.55f` The width of the box in the coordinate system. ### GridCoord3D.left -`float` `default: 0.15f` +`float` `0.15f` Distance between grid component and the left side of the container. ### GridCoord3D.right -`float` `default: 0.2f` +`float` `0.2f` Distance between grid component and the right side of the container. ### GridCoord3D.show -`bool` `default: true` +`bool` `true` Whether to show the grid in rectangular coordinate. ### GridCoord3D.showBorder -`bool` `default: false` +`bool` `false` Whether to show the grid border. ### GridCoord3D.top -`float` `default: 0.3f` +`float` `0.3f` Distance between grid component and the top side of the container. ### GridCoord3D.viewControl -`ViewControl` +[ViewControl](#viewcontrol) -View control component in 3D coordinate system. [ViewControl](#viewcontrol) +View control component in 3D coordinate system. ### GridCoord3D.xYExchanged -`bool` `default: false` - +`bool` `false` ## GridLayout @@ -1860,55 +1854,55 @@ Grid layout component. Used to manage the layout of multiple `GridCoord`, and th ### GridLayout.bottom -`float` `default: 0.12f` +`float` `0.12f` Distance between grid component and the bottom side of the container. ### GridLayout.column -`int` `default: 2` +`int` `2` the column count of grid layout. ### GridLayout.inverse -`bool` `default: false` +`bool` `false` Whether to inverse the grid layout. ### GridLayout.left -`float` `default: 0.1f` +`float` `0.1f` Distance between grid component and the left side of the container. ### GridLayout.right -`float` `default: 0.08f` +`float` `0.08f` Distance between grid component and the right side of the container. ### GridLayout.row -`int` `default: 2` +`int` `2` the row count of grid layout. ### GridLayout.show -`bool` `default: true` +`bool` `true` Whether to show the grid in rectangular coordinate. ### GridLayout.spacing -`Vector2` `default: Vector2.zero` +`Vector2` `Vector2.zero` the spacing of grid layout. ### GridLayout.top -`float` `default: 0.22f` +`float` `0.22f` Distance between grid component and the top side of the container. @@ -1918,7 +1912,7 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer] ### Heatmap.heatmapType -`HeatmapType` `v3.3.0` +[HeatmapType](#heatmaptype) `v3.3.0` The mapping type of heatmap. @@ -1933,7 +1927,7 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### IconStyle.align -`Align` +[Align](#align) 水平方向对齐方式。 @@ -1945,7 +1939,7 @@ Options: ### IconStyle.autoHideWhenLabelEmpty -`bool` `default: false` +`bool` `false` 当label内容为空时是否自动隐藏图标 @@ -1957,13 +1951,13 @@ Options: ### IconStyle.height -`float` `default: 20` +`float` `20` 图标高。 ### IconStyle.layer -`IconStyle.Layer` +[IconStyle.Layer](#iconstylelayer) 显示在上层还是在下层。 @@ -1980,7 +1974,7 @@ Options: ### IconStyle.show -`bool` `default: false` +`bool` `false` Whether the data icon is show. @@ -1998,7 +1992,7 @@ How to display the icon. ### IconStyle.width -`float` `default: 20` +`float` `20` 图标宽。 @@ -2020,13 +2014,13 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [IS ### ImageStyle.height -`float` `default: 0` +`float` `0` 图标高。 ### ImageStyle.show -`bool` `default: true` +`bool` `true` Whether the data icon is show. @@ -2044,7 +2038,7 @@ How to display the image. ### ImageStyle.width -`float` `default: 0` +`float` `0` 图标宽。 @@ -2056,19 +2050,19 @@ Indicator of radar chart, which is used to assign multiple variables(dimensions) ### Indicator.axisLine -`AxisLine` +[AxisLine](#axisline) -axis line. [AxisLine](#axisline) +axis line. ### Indicator.axisName -`AxisName` +[AxisName](#axisname) -Name options for radar indicators. [AxisName](#axisname) +Name options for radar indicators. ### Indicator.ceilRate -`double` `default: 0` +`double` `0` The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated. @@ -2080,25 +2074,25 @@ the center of radar chart. ### Indicator.connectCenter -`bool` `default: false` +`bool` `false` Whether serie data connect to radar center with line. ### Indicator.gridIndex -`int` `default: -1` `v3.8.0` +`int` `-1` `v3.8.0` Index of layout component that serie uses. Default is -1 means not use layout, otherwise use the first layout component. ### Indicator.indicator -`bool` `default: true` +`bool` `true` Whether to show indicator. ### Indicator.indicatorGap -`float` `default: 10` +`float` `10` The gap of indicator and radar. @@ -2116,7 +2110,7 @@ the indicator list. ### Indicator.lineGradient -`bool` `default: true` +`bool` `true` Whether need gradient for data line. @@ -2140,7 +2134,7 @@ The name of indicator. ### Indicator.outRangeColor -`Color32` `default: Color.red` +`Color32` `Color.red` The color displayed when data out of range. @@ -2152,7 +2146,7 @@ The position type of indicator. ### Indicator.radius -`float` `default: 100` +`float` `100` the radius of radar. @@ -2176,19 +2170,19 @@ Radar render type, in which 'Polygon' and 'Circle' are supported. ### Indicator.splitArea -`AxisSplitArea` +[AxisSplitArea](#axissplitarea) -Split area of axis in grid area. [AxisSplitArea](#axissplitarea) +Split area of axis in grid area. ### Indicator.splitLine -`AxisSplitLine` +[AxisSplitLine](#axissplitline) -split line. [AxisSplitLine](#axissplitline) +split line. ### Indicator.splitNumber -`int` `default: 5` +`int` `5` Segments of indicator axis. @@ -2260,7 +2254,7 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [IS ### ItemStyle.borderGap -`float` `default: 0` +`float` `0` 边框间隙。 @@ -2272,7 +2266,7 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [IS ### ItemStyle.borderWidth -`float` `default: 0` +`float` `0` 边框宽。 @@ -2332,13 +2326,13 @@ Standard number and date format string. Used to format a Double value or a DateT ### ItemStyle.opacity -`float` `default: 1` +`float` `1` 透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 ### ItemStyle.show -`bool` `default: true` +`bool` `true` 是否启用。 @@ -2366,49 +2360,49 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [IS ### LabelLine.endSymbol -`SymbolStyle` +[SymbolStyle](#symbolstyle) -The symbol of the end point of labelline. [SymbolStyle](#symbolstyle) +The symbol of the end point of labelline. ### LabelLine.lineAngle -`float` `default: 60` +`float` `60` the angle of visual guild line. Valid for broken line and curve line. Invalid in Pie. ### LabelLine.lineColor -`Color32` `default: Color32(0,0,0,0)` +`Color32` `Color32(0,0,0,0)` the color of visual guild line. ### LabelLine.lineEndX -`float` `default: 0f` `v3.8.0` +`float` `0f` `v3.8.0` The fixed x position of the end point of visual guide line. ### LabelLine.lineGap -`float` `default: 1.0f` +`float` `1.0f` the gap of container and guild line. ### LabelLine.lineLength1 -`float` `default: 25f` +`float` `25f` The length of the first segment of visual guide line. ### LabelLine.lineLength2 -`float` `default: 15f` +`float` `15f` The length of the second segment of visual guide line. ### LabelLine.lineType -`LabelLine.LineType` +[LabelLine.LineType](#labellinelinetype) the type of visual guide line. @@ -2420,21 +2414,21 @@ Options: ### LabelLine.lineWidth -`float` `default: 1.0f` +`float` `1.0f` the width of visual guild line. ### LabelLine.show -`bool` `default: true` +`bool` `true` Whether the label line is showed. ### LabelLine.startSymbol -`SymbolStyle` +[SymbolStyle](#symbolstyle) -The symbol of the start point of labelline. [SymbolStyle](#symbolstyle) +The symbol of the start point of labelline. ## LabelStyle @@ -2444,21 +2438,21 @@ Text label of chart, to explain some data information about graphic item like va ### LabelStyle.autoOffset -`bool` `default: false` +`bool` `false` Whether to automatically offset. When turned on, the Y offset will automatically determine the opening of the curve to determine whether to offset up or down. ### LabelStyle.autoRotate -`bool` `default: false` `v3.6.0` +`bool` `false` `v3.6.0` auto rotate of label. ### LabelStyle.background -`ImageStyle` +[ImageStyle](#imagestyle) -the sytle of background. [ImageStyle](#imagestyle) +the sytle of background. ### LabelStyle.distance @@ -2474,15 +2468,15 @@ label content string template formatter. \n line wrapping is supported. Formatte ### LabelStyle.height -`float` `default: 0` +`float` `0` the height of label. If set as default value 0, it means than the label height auto set as the text height. ### LabelStyle.icon -`IconStyle` +[IconStyle](#iconstyle) -the sytle of icon. [IconStyle](#iconstyle) +the sytle of icon. ### LabelStyle.numericFormatter @@ -2510,25 +2504,25 @@ Rotation of label. ### LabelStyle.show -`bool` `default: true` +`bool` `true` Whether the label is showed. ### LabelStyle.textPadding -`TextPadding` +[TextPadding](#textpadding) -the text padding of label. [TextPadding](#textpadding) +the text padding of label. ### LabelStyle.textStyle -`TextStyle` +[TextStyle](#textstyle) -the sytle of text. [TextStyle](#textstyle) +the sytle of text. ### LabelStyle.width -`float` `default: 0` +`float` `0` the width of label. If set as default value 0, it means than the label width auto set as the text width. @@ -2554,9 +2548,9 @@ Legend component.The legend component shows different sets of tags, colors, and ### Legend.background -`ImageStyle` `v3.1.0` +[ImageStyle](#imagestyle) `v3.1.0` -the sytle of background. [ImageStyle](#imagestyle) +the sytle of background. ### Legend.colors @@ -2584,7 +2578,7 @@ No longer used, the use of LabelStyle.formatter instead. ### Legend.iconType -`Legend.Type` +[Legend.Type](#legendtype) Type of legend. @@ -2601,49 +2595,49 @@ Options: ### Legend.itemAutoColor -`bool` `default: true` +`bool` `true` Whether the legend symbol matches the color automatically. ### Legend.itemGap -`float` `default: 10f` +`float` `10f` The distance between each legend, horizontal distance in horizontal layout, and vertical distance in vertical layout. ### Legend.itemHeight -`float` `default: 12.0f` +`float` `12.0f` Image height of legend symbol. ### Legend.itemOpacity -`float` `default: 1` +`float` `1` the opacity of item color. ### Legend.itemWidth -`float` `default: 25.0f` +`float` `25.0f` Image width of legend symbol. ### Legend.labelStyle -`LabelStyle` +[LabelStyle](#labelstyle) -the style of text. [LabelStyle](#labelstyle) +the style of text. ### Legend.location -`Location` +[Location](#location) -The location of legend. [Location](#location) +The location of legend. ### Legend.orient -`Orient` +[Orient](#orient) Specify whether the layout of legend component is horizontal or vertical. @@ -2654,9 +2648,9 @@ Options: ### Legend.padding -`Padding` `v3.1.0` +[Padding](#padding) `v3.1.0` -the paddinng of item and background. [Padding](#padding) +the paddinng of item and background. ### Legend.positions @@ -2666,7 +2660,7 @@ the custom positions of legend item. ### Legend.selectedMode -`Legend.SelectedMode` +[Legend.SelectedMode](#legendselectedmode) Selected mode of legend, which controls whether series can be toggled displaying by clicking legends. @@ -2678,15 +2672,15 @@ Options: ### Legend.show -`bool` `default: true` +`bool` `true` Whether to show legend component. ### Legend.textLimit -`TextLimit` `v3.10.0` +[TextLimit](#textlimit) `v3.10.0` -the limit of text. [TextLimit](#textlimit) +the limit of text. ## LegendTheme @@ -2704,33 +2698,33 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### Level.depth -`int` `default: 0` `v3.10.0` +`int` `0` `v3.10.0` the depth of level. ### Level.itemStyle -`ItemStyle` +[ItemStyle](#itemstyle) -the item style of level. [ItemStyle](#itemstyle) +the item style of level. ### Level.label -`LabelStyle` +[LabelStyle](#labelstyle) -the label style of level. [LabelStyle](#labelstyle) +the label style of level. ### Level.lineStyle -`LineStyle` `v3.10.0` +[LineStyle](#linestyle) `v3.10.0` -the line style of level. [LineStyle](#linestyle) +the line style of level. ### Level.upperLabel -`LabelStyle` +[LabelStyle](#labelstyle) -the upper label style of level. [LabelStyle](#labelstyle) +the upper label style of level. ## LevelStyle @@ -2746,7 +2740,7 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### LevelStyle.show -`bool` `default: false` +`bool` `false` 是否启用LevelStyle @@ -2760,13 +2754,13 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent), [IS ### LineArrow.arrow -`ArrowStyle` +[ArrowStyle](#arrowstyle) -the arrow of line. [ArrowStyle](#arrowstyle) +the arrow of line. ### LineArrow.position -`LineArrow.Position` +[LineArrow.Position](#linearrowposition) The position of arrow. @@ -2795,37 +2789,37 @@ the color of line, default use serie color. ### LineStyle.dashLength -`float` `default: 4` `v3.8.1` +`float` `4` `v3.8.1` the length of dash line. default value is 0, which means the length of dash line is 12 times of line width. Represents a multiple of the number of segments in a line chart. ### LineStyle.dotLength -`float` `default: 2` `v3.8.1` +`float` `2` `v3.8.1` the length of dot line. default value is 0, which means the length of dot line is 2 times of line width. Represents a multiple of the number of segments in a line chart. ### LineStyle.gapLength -`float` `default: 2` `v3.8.1` +`float` `2` `v3.8.1` the length of gap line. default value is 0, which means the length of gap line is 3 times of line width. Represents a multiple of the number of segments in a line chart. ### LineStyle.length -`float` `default: 0` +`float` `0` the length of line. ### LineStyle.opacity -`float` `default: 1` +`float` `1` Opacity of the line. Supports value from 0 to 1, and the line will not be drawn when set to 0. ### LineStyle.show -`bool` `default: true` +`bool` `true` Whether show line. @@ -2843,7 +2837,7 @@ the end color of line, default use serie color. ### LineStyle.type -`LineStyle.Type` +[LineStyle.Type](#linestyletype) the type of line. @@ -2858,7 +2852,7 @@ Options: ### LineStyle.width -`float` `default: 0` +`float` `0` the width of line. @@ -2870,7 +2864,7 @@ Location type. Quick to set the general location. ### Location.align -`Location.Align` +[Location.Align](#locationalign) 对齐方式。 @@ -2922,39 +2916,39 @@ Used to mark an area in chart. For example, mark a time interval. ### MarkArea.end -`MarkAreaData` +[MarkAreaData](#markareadata) -标域范围的结束数据。 [MarkAreaData](#markareadata) +标域范围的结束数据。 ### MarkArea.itemStyle -`ItemStyle` +[ItemStyle](#itemstyle) -标域样式。 [ItemStyle](#itemstyle) +标域样式。 ### MarkArea.label -`LabelStyle` +[LabelStyle](#labelstyle) -标域文本样式。 [LabelStyle](#labelstyle) +标域文本样式。 ### MarkArea.serieIndex -`int` `default: 0` +`int` `0` Serie index of markArea. 标域影响的Serie索引。 ### MarkArea.show -`bool` `default: true` +`bool` `true` 是否显示标域。 ### MarkArea.start -`MarkAreaData` +[MarkAreaData](#markareadata) -标域范围的起始数据。 [MarkAreaData](#markareadata) +标域范围的起始数据。 ### MarkArea.text @@ -2970,7 +2964,7 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### MarkAreaData.dimension -`int` `default: 1` +`int` `1` From which dimension of data to calculate the maximum and minimum value and so on. @@ -2982,7 +2976,7 @@ Name of the marker, which will display as a label. ### MarkAreaData.type -`MarkAreaType` +[MarkAreaType](#markareatype) Special markArea types, are used to label maximum value, minimum value and so on. @@ -3026,9 +3020,9 @@ Use a line in the chart to illustrate. ### MarkLine.animation -`AnimationStyle` +[AnimationStyle](#animationstyle) -The animation of markline. [AnimationStyle](#animationstyle) +The animation of markline. ### MarkLine.data @@ -3038,19 +3032,19 @@ A list of marked data. When the group of data item is 0, each data item represen ### MarkLine.onTop -`bool` `default: true` `v3.9.0` +`bool` `true` `v3.9.0` whether the markline is on top. ### MarkLine.serieIndex -`int` `default: 0` +`int` `0` The serie index of markLine. ### MarkLine.show -`bool` `default: true` +`bool` `true` Whether to display the marking line. @@ -3064,33 +3058,33 @@ Data of marking line. ### MarkLineData.dimension -`int` `default: 1` +`int` `1` From which dimension of data to calculate the maximum and minimum value and so on. ### MarkLineData.endSymbol -`SymbolStyle` +[SymbolStyle](#symbolstyle) -The symbol of the end point of markline. [SymbolStyle](#symbolstyle) +The symbol of the end point of markline. ### MarkLineData.group -`int` `default: 0` +`int` `0` Grouping. When the group is not 0, it means that this data is the starting point or end point of the marking line. Data consistent with the group form a marking line. ### MarkLineData.label -`LabelStyle` +[LabelStyle](#labelstyle) -Text styles of label. You can set position to Start, Middle, and End to display text in different locations. [LabelStyle](#labelstyle) +Text styles of label. You can set position to Start, Middle, and End to display text in different locations. ### MarkLineData.lineStyle -`LineStyle` +[LineStyle](#linestyle) -The line style of markline. [LineStyle](#linestyle) +The line style of markline. ### MarkLineData.name @@ -3100,13 +3094,13 @@ Name of the marker, which will display as a label. ### MarkLineData.startSymbol -`SymbolStyle` +[SymbolStyle](#symbolstyle) -The symbol of the start point of markline. [SymbolStyle](#symbolstyle) +The symbol of the start point of markline. ### MarkLineData.type -`MarkLineType` +[MarkLineType](#marklinetype) Special label types, are used to label maximum value, minimum value and so on. @@ -3144,7 +3138,7 @@ That's the value on the Y-axis. The value specified when the Y axis is the categ ### MarkLineData.zeroPosition -`bool` `default: false` +`bool` `false` Is the origin of the coordinate system. @@ -3158,25 +3152,25 @@ Marquee style. It can be used for the DataZoom component. 选取框样式。可 ### MarqueeStyle.apply -`bool` `default: false` `v3.5.0` +`bool` `false` `v3.5.0` Check whether the scope is applied to the DataZoom. If this parameter is set to true, the range after the selection is complete is the DataZoom selection range. ### MarqueeStyle.areaStyle -`AreaStyle` `v3.5.0` +[AreaStyle](#areastyle) `v3.5.0` -The area style of marquee. [AreaStyle](#areastyle) +The area style of marquee. ### MarqueeStyle.lineStyle -`LineStyle` `v3.5.0` +[LineStyle](#linestyle) `v3.5.0` -The line style of marquee border. [LineStyle](#linestyle) +The line style of marquee border. ### MarqueeStyle.realRect -`bool` `default: false` `v3.5.0` +`bool` `false` `v3.5.0` Whether to select the actual box selection area. When true, the actual range between the mouse's actual point and the end point is used as the box selection area. @@ -3190,7 +3184,7 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### MLValue.type -`MLValue.Type` +[MLValue.Type](#mlvaluetype) @@ -3204,7 +3198,6 @@ Options: `float` - ## Padding class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Subclasses: [TextPadding](#textpadding) @@ -3213,31 +3206,31 @@ padding setting of item or text. ### Padding.bottom -`float` `default: 0` +`float` `0` padding of bottom. ### Padding.left -`float` `default: 2f` +`float` `2f` padding of left. ### Padding.right -`float` `default: 2f` +`float` `2f` padding of right. ### Padding.show -`bool` `default: true` +`bool` `true` show padding. 是否显示。 ### Padding.top -`float` `default: 0` +`float` `0` padding of top. @@ -3263,19 +3256,19 @@ Background color of grid, which is transparent by default. ### ParallelCoord.bottom -`float` `default: 0.12f` +`float` `0.12f` Distance between grid component and the bottom side of the container. ### ParallelCoord.left -`float` `default: 0.1f` +`float` `0.1f` Distance between grid component and the left side of the container. ### ParallelCoord.orient -`Orient` +[Orient](#orient) Orientation of the axis. By default, it's 'Vertical'. You can set it to be 'Horizonal' to make a vertical axis. @@ -3286,19 +3279,19 @@ Options: ### ParallelCoord.right -`float` `default: 0.08f` +`float` `0.08f` Distance between grid component and the right side of the container. ### ParallelCoord.show -`bool` `default: true` +`bool` `true` Whether to show the grid in rectangular coordinate. ### ParallelCoord.top -`float` `default: 0.22f` +`float` `0.22f` Distance between grid component and the top side of the container. @@ -3308,7 +3301,7 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie) ### Pie.radiusGradient -`bool` `default: false` `v3.8.1` +`bool` `false` `v3.8.1` Whether to use gradient color in pie chart. @@ -3336,7 +3329,7 @@ The center of ploar. The center[0] is the x-coordinate, and the center[1] is the ### PolarCoord.indicatorLabelOffset -`float` `default: 30f` `v3.8.0` +`float` `30f` `v3.8.0` The offset of indicator label. @@ -3348,7 +3341,7 @@ the radius of polar. ### PolarCoord.show -`bool` `default: true` +`bool` `true` Whether to show the polor component. @@ -3358,7 +3351,7 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie), [INeedSerieContainer] ### Radar.smooth -`bool` `default: false` `v3.2.0` +`bool` `false` `v3.2.0` Whether use smooth curve. @@ -3388,7 +3381,7 @@ class in XCharts.Runtime / Inherits from: [Serie](#serie) ### Ring.radiusGradient -`bool` `default: false` `v3.12.0` +`bool` `false` `v3.12.0` Whether to use gradient color in pie chart. @@ -3412,7 +3405,7 @@ class in XCharts.Runtime / Inherits from: [BaseSerie](#baseserie), [IComparable] ### Serie.align -`Align` +[Align](#align) 组件水平方向对齐方式。 @@ -3424,37 +3417,37 @@ Options: ### Serie.animation -`AnimationStyle` +[AnimationStyle](#animationstyle) -The start animation. [AnimationStyle](#animationstyle) +The start animation. ### Serie.avoidLabelOverlap -`bool` `default: false` +`bool` `false` If the pie chart and labels are displayed externally, whether to enable the label overlap prevention policy is disabled by default. If labels are crowded and overlapped, the positions of labels are moved to prevent label overlap. ### Serie.barGap -`float` `default: 0.1f` +`float` `0.1f` The gap between bars between different series, is a percent value like '0.3f' , which means 30% of the bar width, can be set as a fixed value. Set barGap as '-1' can overlap bars that belong to different series, which is useful when making a series of bar be background. In a single coodinate system, this attribute is shared by multiple 'bar' series. This attribute should be set on the last 'bar' series in the coodinate system, then it will be adopted by all 'bar' series in the coordinate system. ### Serie.barMaxWidth -`float` `default: 0` `v3.5.0` +`float` `0` `v3.5.0` The max width of the bar. Adaptive when default 0. ### Serie.barPercentStack -`bool` `default: false` +`bool` `false` 柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true,则就显示成百分比堆叠柱状图。 ### Serie.barType -`BarType` +[BarType](#bartype) 柱形图类型。 @@ -3466,19 +3459,19 @@ Options: ### Serie.barWidth -`float` `default: 0` +`float` `0` The width of the bar. Adaptive when default 0. ### Serie.barZebraGap -`float` `default: 2f` +`float` `2f` 斑马线的间距。 ### Serie.barZebraWidth -`float` `default: 4f` +`float` `4f` 斑马线的粗细。 @@ -3496,25 +3489,25 @@ the center of chart. ### Serie.clickOffset -`bool` `default: true` +`bool` `true` Whether offset when mouse click pie chart item. ### Serie.clip -`bool` `default: false` +`bool` `false` If clip the overflow on the coordinate system. ### Serie.clockwise -`bool` `default: true` +`bool` `true` 是否顺时针。 ### Serie.colorBy -`SerieColorBy` `v3.2.0` +[SerieColorBy](#seriecolorby) `v3.2.0` The policy to take color from theme. @@ -3538,7 +3531,7 @@ the chart coord system of serie. ### Serie.dataSortType -`SerieDataSortType` +[SerieDataSortType](#seriedatasorttype) 组件的数据排序。 @@ -3562,25 +3555,25 @@ gap of item. ### Serie.gridIndex -`int` `default: -1` `v3.8.0` +`int` `-1` `v3.8.0` Index of layout component that serie uses. Default is -1 means not use layout, otherwise use the first layout component. ### Serie.ignore -`bool` `default: false` +`bool` `false` 是否开启忽略数据。当为 true 时,数据值为 ignoreValue 时不进行绘制。 ### Serie.ignoreLineBreak -`bool` `default: false` +`bool` `false` 忽略数据时折线是断开还是连接。默认false为连接。 ### Serie.ignoreValue -`double` `default: 0` +`double` `0` 忽略数据的默认值。当ignore为true才有效。 @@ -3598,19 +3591,19 @@ Whether to add new data at the head or at the end of the list. ### Serie.itemStyle -`ItemStyle` +[ItemStyle](#itemstyle) -The style of data item. [ItemStyle](#itemstyle) +The style of data item. ### Serie.large -`bool` `default: true` +`bool` `true` 是否开启大数据量优化,在数据图形特别多而出现卡顿时候可以开启。 开启后配合 largeThreshold 在数据量大于指定阈值的时候对绘制进行优化。 缺点:优化后不能自定义设置单个数据项的样式,不能显示Label。 ### Serie.largeThreshold -`int` `default: 200` +`int` `200` Turn on the threshold for mass optimization. Enter performance mode only when large is enabled and the amount of data is greater than the threshold. @@ -3622,13 +3615,13 @@ Distance between component and the left side of the container. ### Serie.lineStyle -`LineStyle` +[LineStyle](#linestyle) -The style of line. [LineStyle](#linestyle) +The style of line. ### Serie.lineType -`LineType` +[LineType](#linetype) The type of line chart. @@ -3666,7 +3659,7 @@ The max number of data to show in chart. ### Serie.maxSize -`float` `default: 1f` +`float` `1f` 数据最大值 max 映射的宽度。 @@ -3684,7 +3677,7 @@ The minimum angle of sector(0-360). It prevents some sector from being too small ### Serie.minRadius -`float` `default: 0f` `v3.8.0` +`float` `0f` `v3.8.0` the min radius of chart. It can be used to limit the minimum radius of the rose chart. @@ -3696,25 +3689,25 @@ The min number of data to show in chart. ### Serie.minShowLabel -`bool` `default: false` `v3.10.0` +`bool` `false` `v3.10.0` Whether the label is not displayed when the enabled value is less than the specified value. ### Serie.minShowLabelValue -`double` `default: 0` `v3.10.0` +`double` `0` `v3.10.0` When 'minShowLabel' is enabled, labels are not displayed if the value is less than this value. ### Serie.minSize -`float` `default: 0f` +`float` `0f` 数据最小值 min 映射的宽度。 ### Serie.orient -`Orient` +[Orient](#orient) 组件的朝向。 @@ -3725,31 +3718,31 @@ Options: ### Serie.parallelIndex -`int` `default: 0` +`int` `0` Index of parallel coord component that serie uses. ### Serie.placeHolder -`bool` `default: false` +`bool` `false` 占位模式。占位模式时,数据有效但不参与渲染和显示。 ### Serie.polarIndex -`int` `default: 0` +`int` `0` Index of polar component that serie uses. ### Serie.radarIndex -`int` `default: 0` +`int` `0` Index of radar component that radar chart uses. ### Serie.radarType -`RadarType` +[RadarType](#radartype) 雷达图类型。 @@ -3772,7 +3765,7 @@ Distance between component and the right side of the container. ### Serie.roseType -`RoseType` +[RoseType](#rosetype) Whether to show as Nightingale chart. @@ -3790,19 +3783,19 @@ Options: ### Serie.sampleAverage -`float` `default: 0` +`float` `0` 设定的采样平均值。当sampleType 为 Peak 时,用于和过滤数据的平均值做对比是取最大值还是最小值。默认为0时会实时计算所有数据的平均值。 ### Serie.sampleDist -`float` `default: 0` +`float` `0` the min pixel dist of sample. ### Serie.sampleType -`SampleType` +[SampleType](#sampletype) the type of sample. @@ -3828,13 +3821,13 @@ the type of serie. ### Serie.show -`bool` `default: true` +`bool` `true` Whether to show serie in chart. ### Serie.showAsPositiveNumber -`bool` `default: false` +`bool` `false` Show negative number as positive number. @@ -3852,13 +3845,13 @@ Show negative number as positive number. ### Serie.singleAxisIndex -`int` `default: 0` +`int` `0` Index of single axis component that serie uses. ### Serie.smoothLimit -`bool` `default: false` `v3.4.0` +`bool` `false` `v3.4.0` Whether to restrict the curve. When true, the curve between two continuous data of the same value is restricted to not exceed the data point, and is flat to the data point. @@ -3882,7 +3875,7 @@ If stack the value. On the same category axis, the series with the same stack na ### Serie.state -`SerieState` `v3.2.0` +[SerieState](#seriestate) `v3.2.0` The default state of a serie. @@ -3896,9 +3889,9 @@ Options: ### Serie.symbol -`SerieSymbol` +[SerieSymbol](#seriesymbol) -the symbol of serie data item. [SerieSymbol](#seriesymbol) +the symbol of serie data item. ### Serie.top @@ -3908,19 +3901,19 @@ Distance between component and the top side of the container. ### Serie.vesselIndex -`int` `default: 0` +`int` `0` Index of vesel component that liquid chart uses. ### Serie.xAxisIndex -`int` `default: 0` +`int` `0` the index of XAxis. ### Serie.yAxisIndex -`int` `default: 0` +`int` `0` the index of YAxis. @@ -3980,7 +3973,7 @@ Whether the data item is selected. ### SerieData.state -`SerieState` `v3.2.0` +[SerieState](#seriestate) `v3.2.0` the state of serie data. @@ -4026,19 +4019,19 @@ class in XCharts.Runtime / Inherits from: [SymbolStyle](#symbolstyle), [ISerieDa ### SerieSymbol.dataIndex -`int` `default: 1` +`int` `1` whitch data index is when the sizeType assined as FromData. ### SerieSymbol.dataScale -`float` `default: 1` +`float` `1` the scale of data when sizeType assined as FromData. ### SerieSymbol.forceShowLast -`bool` `default: false` +`bool` `false` whether to show the last symbol. @@ -4050,19 +4043,19 @@ the interval of show symbol. ### SerieSymbol.maxSize -`float` `default: 0f` `v3.3.0` +`float` `0f` `v3.3.0` Maximum symbol size. ### SerieSymbol.minSize -`float` `default: 0f` `v3.3.0` +`float` `0f` `v3.3.0` Minimum symbol size. ### SerieSymbol.repeat -`bool` `default: false` +`bool` `false` 图形是否重复。 @@ -4074,7 +4067,7 @@ the function of size when sizeType assined as Function. ### SerieSymbol.sizeType -`SymbolSizeType` +[SymbolSizeType](#symbolsizetype) the type of symbol size. @@ -4096,31 +4089,31 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### SerieTheme.candlestickBorderColor -`Color32` `default: Color32(235, 84, 84, 255)` +`Color32` `Color32(235, 84, 84, 255)` K线图阳线(跌)边框色 ### SerieTheme.candlestickBorderColor0 -`Color32` `default: Color32(71, 178, 98, 255)` +`Color32` `Color32(71, 178, 98, 255)` K线图阴线(跌)边框色 ### SerieTheme.candlestickBorderWidth -`float` `default: 1` +`float` `1` K线图边框宽度 ### SerieTheme.candlestickColor -`Color32` `default: Color32(235, 84, 84, 255)` +`Color32` `Color32(235, 84, 84, 255)` K线图阳线(涨)填充色 ### SerieTheme.candlestickColor0 -`Color32` `default: Color32(71, 178, 98, 255)` +`Color32` `Color32(71, 178, 98, 255)` K线图阴线(跌)填充色 @@ -4150,7 +4143,7 @@ Global parameter setting component. The default value can be used in general, an ### Settings.axisMaxSplitNumber -`float` `default: 50` `v3.1.0` +`float` `50` `v3.1.0` the max splitnumber of axis. @@ -4162,7 +4155,7 @@ Base Pointer 材质球,设置后会影响Axis等。 ### Settings.cicleSmoothness -`float` `default: 2f` +`float` `2f` the smoothess of cricle. @@ -4174,37 +4167,37 @@ The radius of rounded corner. Its unit is px. Use array to respectively specify ### Settings.legendIconLineWidth -`float` `default: 2` +`float` `2` the width of line serie legend. ### Settings.lineSegmentDistance -`float` `default: 3f` +`float` `3f` The partition distance of a line segment. A line in a normal line chart is made up of many segments, the number of which is determined by the change in value. The smaller the number of segments, the higher the number of vertices. When the area with gradient is filled, the larger the value, the worse the transition effect. ### Settings.lineSmoothness -`float` `default: 2f` +`float` `2f` Smoothness of curve. The smaller the value, the smoother the curve, but the number of vertices will increase. ### Settings.lineSmoothStyle -`float` `default: 2.5f` +`float` `2.5f` Curve smoothing factor. By adjusting the smoothing coefficient, the curvature of the curve can be changed, and different curves with slightly different appearance can be obtained. ### Settings.maxPainter -`int` `default: 10` +`int` `10` max painter. ### Settings.reversePainter -`bool` `default: false` +`bool` `false` Painter是否逆序。逆序时index大的serie最先绘制。 @@ -4216,8 +4209,7 @@ Serie Pointer 材质球,设置后会影响所有Serie。 ### Settings.show -`bool` `default: true` - +`bool` `true` ### Settings.topPainterMaterial @@ -4251,25 +4243,25 @@ Single axis. ### SingleAxis.bottom -`float` `default: 0.2f` +`float` `0.2f` Distance between component and the bottom side of the container. ### SingleAxis.height -`float` `default: 50` +`float` `50` height of axis. ### SingleAxis.left -`float` `default: 0.1f` +`float` `0.1f` Distance between component and the left side of the container. ### SingleAxis.orient -`Orient` +[Orient](#orient) Orientation of the axis. By default, it's 'Horizontal'. You can set it to be 'Vertical' to make a vertical axis. @@ -4280,19 +4272,19 @@ Options: ### SingleAxis.right -`float` `default: 0.1f` +`float` `0.1f` Distance between component and the right side of the container. ### SingleAxis.top -`float` `default: 0f` +`float` `0f` Distance between component and the top side of the container. ### SingleAxis.width -`float` `default: 0` +`float` `0` width of axis. @@ -4326,45 +4318,45 @@ the state style of serie. ### StateStyle.areaStyle -`AreaStyle` +[AreaStyle](#areastyle) -区域样式。 [AreaStyle](#areastyle) +区域样式。 ### StateStyle.itemStyle -`ItemStyle` +[ItemStyle](#itemstyle) -图形样式。 [ItemStyle](#itemstyle) +图形样式。 ### StateStyle.label -`LabelStyle` +[LabelStyle](#labelstyle) -图形文本标签。 [LabelStyle](#labelstyle) +图形文本标签。 ### StateStyle.labelLine -`LabelLine` +[LabelLine](#labelline) -图形文本引导线样式。 [LabelLine](#labelline) +图形文本引导线样式。 ### StateStyle.lineStyle -`LineStyle` +[LineStyle](#linestyle) -折线样式。 [LineStyle](#linestyle) +折线样式。 ### StateStyle.show -`bool` `default: true` +`bool` `true` 是否启用高亮样式。 ### StateStyle.symbol -`SerieSymbol` +[SerieSymbol](#seriesymbol) -标记样式。 [SerieSymbol](#seriesymbol) +标记样式。 ## SubTitleTheme @@ -4384,13 +4376,13 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) / Su ### SymbolStyle.gap -`float` `default: 0` +`float` `0` the gap of symbol and line segment. ### SymbolStyle.height -`float` `default: 0f` +`float` `0f` 图形的高。 @@ -4408,25 +4400,25 @@ the fill type of image. ### SymbolStyle.offset -`Vector2` `default: Vector2.zero` +`Vector2` `Vector2.zero` 图形的偏移。 ### SymbolStyle.show -`bool` `default: true` +`bool` `true` Whether the symbol is showed. ### SymbolStyle.size -`float` `default: 0f` +`float` `0f` the size of symbol. ### SymbolStyle.type -`SymbolType` +[SymbolType](#symboltype) the type of symbol. @@ -4449,7 +4441,7 @@ Options: ### SymbolStyle.width -`float` `default: 0f` +`float` `0f` 图形的宽。 @@ -4461,19 +4453,19 @@ Text character limitation and adaptation component. When the length of the text ### TextLimit.enable -`bool` `default: false` +`bool` `false` Whether to enable text limit. ### TextLimit.gap -`float` `default: 1` +`float` `1` White pixel distance at both ends. ### TextLimit.maxWidth -`float` `default: 0` +`float` `0` Set the maximum width. A default of 0 indicates automatic fetch; otherwise, custom. @@ -4503,19 +4495,19 @@ Settings related to text. ### TextStyle.autoAlign -`bool` `default: true` +`bool` `true` 文本是否让系统自动选对齐方式。为false时才会用alignment。 ### TextStyle.autoColor -`bool` `default: false` +`bool` `false` 是否开启自动颜色。当开启时,会自动设置颜色。 ### TextStyle.autoWrap -`bool` `default: false` +`bool` `false` 是否自动换行。 @@ -4533,7 +4525,7 @@ the font of text. When `null`, the theme's font is used by default. ### TextStyle.fontSize -`int` `default: 0` +`int` `0` font size. @@ -4545,19 +4537,19 @@ font style. ### TextStyle.lineSpacing -`float` `default: 1f` +`float` `1f` text line spacing. ### TextStyle.rotate -`float` `default: 0` +`float` `0` Rotation of text. ### TextStyle.show -`bool` `default: true` +`bool` `true` Settings related to text. @@ -4565,7 +4557,6 @@ Settings related to text. `TextAlignmentOptions` - ### TextStyle.tMPFont `TMP_FontAsset` @@ -4576,12 +4567,10 @@ the font of textmeshpro. `FontStyles` - ### TextStyle.tMPSpriteAsset `TMP_SpriteAsset` `v3.1.0` - ## Theme class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject) @@ -4590,9 +4579,7 @@ Theme. ### Theme.axis -`AxisTheme` - - [AxisTheme](#axistheme) +[AxisTheme](#axistheme) ### Theme.backgroundColor @@ -4608,9 +4595,7 @@ The color list of palette. If no color is set in series, the colors would be ado ### Theme.common -`ComponentTheme` - - [ComponentTheme](#componenttheme) +[ComponentTheme](#componenttheme) ### Theme.contrastColor @@ -4620,9 +4605,7 @@ the contrast color of chart. ### Theme.dataZoom -`DataZoomTheme` - - [DataZoomTheme](#datazoomtheme) +[DataZoomTheme](#datazoomtheme) ### Theme.font @@ -4632,21 +4615,15 @@ the font of chart text。 ### Theme.legend -`LegendTheme` - - [LegendTheme](#legendtheme) +[LegendTheme](#legendtheme) ### Theme.serie -`SerieTheme` - - [SerieTheme](#serietheme) +[SerieTheme](#serietheme) ### Theme.subTitle -`SubTitleTheme` - - [SubTitleTheme](#subtitletheme) +[SubTitleTheme](#subtitletheme) ### Theme.themeName @@ -4656,7 +4633,7 @@ the name of theme. ### Theme.themeType -`ThemeType` +[ThemeType](#themetype) the theme of chart. @@ -4669,9 +4646,7 @@ Options: ### Theme.title -`TitleTheme` - - [TitleTheme](#titletheme) +[TitleTheme](#titletheme) ### Theme.tMPFont @@ -4681,15 +4656,11 @@ the font of chart text。 ### Theme.tooltip -`TooltipTheme` - - [TooltipTheme](#tooltiptheme) +[TooltipTheme](#tooltiptheme) ### Theme.visualMap -`VisualMapTheme` - - [VisualMapTheme](#visualmaptheme) +[VisualMapTheme](#visualmaptheme) ## ThemeStyle @@ -4707,32 +4678,29 @@ the custom background color of chart. `List` - ### ThemeStyle.customFont `Font` - ### ThemeStyle.enableCustomTheme -`bool` `default: false` +`bool` `false` Whether to customize theme colors. When set to true, you can use 'sync color to custom' to synchronize the theme color to the custom color. It can also be set manually. ### ThemeStyle.sharedTheme -`Theme` +[Theme](#theme) -the asset of theme. [Theme](#theme) +the asset of theme. ### ThemeStyle.show -`bool` `default: true` - +`bool` `true` ### ThemeStyle.transparentBackground -`bool` `default: false` +`bool` `false` Whether the background color is transparent. When true, the background color is not drawn. @@ -4744,33 +4712,33 @@ Title component, including main title and subtitle. ### Title.itemGap -`float` `default: 0` +`float` `0` [default:8] The gap between the main title and subtitle. ### Title.labelStyle -`LabelStyle` +[LabelStyle](#labelstyle) -The text style of main title. [LabelStyle](#labelstyle) +The text style of main title. ### Title.location -`Location` +[Location](#location) -The location of title component. [Location](#location) +The location of title component. ### Title.show -`bool` `default: true` +`bool` `true` [default:true] Set this to false to prevent the title from showing. ### Title.subLabelStyle -`LabelStyle` +[LabelStyle](#labelstyle) -The text style of sub title. [LabelStyle](#labelstyle) +The text style of sub title. ### Title.subText @@ -4802,7 +4770,7 @@ Tooltip component. ### Tooltip.alwayShowContent -`bool` `default: false` +`bool` `false` Whether to trigger after always display. @@ -4826,13 +4794,13 @@ The background type of tooltip. ### Tooltip.borderColor -`Color32` `default: Color32(230, 230, 230, 255)` +`Color32` `Color32(230, 230, 230, 255)` the color of tooltip border. ### Tooltip.borderWidth -`float` `default: 2f` +`float` `2f` the width of tooltip border. @@ -4844,25 +4812,25 @@ the textstyle list of content. ### Tooltip.fixedHeight -`float` `default: 0` +`float` `0` Fixed height. Higher priority than minHeight. ### Tooltip.fixedWidth -`float` `default: 0` +`float` `0` Fixed width. Higher priority than minWidth. ### Tooltip.fixedX -`float` `default: 0f` +`float` `0f` the x positionn of fixedX. ### Tooltip.fixedY -`float` `default: 0.7f` +`float` `0.7f` the y position of fixedY. @@ -4874,7 +4842,7 @@ The default display character information for ignored data. ### Tooltip.ignoreDataShow -`bool` `default: false` +`bool` `false` Whether to show ignored data on tooltip. @@ -4886,15 +4854,15 @@ a string template formatter for a single Serie or data item content. Support for ### Tooltip.itemHeight -`float` `default: 25f` +`float` `25f` height of content text. ### Tooltip.lineStyle -`LineStyle` +[LineStyle](#linestyle) -the line style of indicator line. [LineStyle](#linestyle) +the line style of indicator line. ### Tooltip.marker @@ -4904,13 +4872,13 @@ the marker of serie. ### Tooltip.minHeight -`float` `default: 0` +`float` `0` Minimum height. If fixedHeight has a value, take priority over fixedHeight. ### Tooltip.minWidth -`float` `default: 0` +`float` `0` Minimum width. If fixedWidth has a value, get fixedWidth first. @@ -4922,25 +4890,25 @@ Standard number and date format string. Used to format a Double value or a DateT ### Tooltip.offset -`Vector2` `default: Vector2(18f, -25f)` +`Vector2` `Vector2(18f, -25f)` The position offset of tooltip relative to the mouse position. ### Tooltip.paddingLeftRight -`int` `default: 10` +`int` `10` the text padding of left and right. defaut:5. ### Tooltip.paddingTopBottom -`int` `default: 10` +`int` `10` the text padding of top and bottom. defaut:5. ### Tooltip.position -`Tooltip.Position` `v3.3.0` +[Tooltip.Position](#tooltipposition) `v3.3.0` Type of position. @@ -4953,13 +4921,13 @@ Options: ### Tooltip.show -`bool` `default: true` +`bool` `true` Whether to show the tooltip component. ### Tooltip.showContent -`bool` `default: true` +`bool` `true` Whether to show the tooltip floating layer, whose default value is true. It should be configurated to be false, if you only need tooltip to trigger the event or show the axisPointer without content. @@ -4971,19 +4939,19 @@ String template formatter for tooltip title content. \n line wrapping is support ### Tooltip.titleHeight -`float` `default: 25f` +`float` `25f` height of title text. ### Tooltip.titleLabelStyle -`LabelStyle` +[LabelStyle](#labelstyle) -the textstyle of title. [LabelStyle](#labelstyle) +the textstyle of title. ### Tooltip.trigger -`Tooltip.Trigger` +[Tooltip.Trigger](#tooltiptrigger) Type of triggering. @@ -4996,7 +4964,7 @@ Options: ### Tooltip.triggerOn -`Tooltip.TriggerOn` `v3.11.0` +[Tooltip.TriggerOn](#tooltiptriggeron) `v3.11.0` Condition of trigger tooltip. @@ -5007,7 +4975,7 @@ Options: ### Tooltip.type -`Tooltip.Type` +[Tooltip.Type](#tooltiptype) Indicator type. @@ -5049,7 +5017,7 @@ the color of line. ### TooltipTheme.lineType -`LineStyle.Type` +[LineStyle.Type](#linestyletype) the type of line. @@ -5064,7 +5032,7 @@ Options: ### TooltipTheme.lineWidth -`float` `default: 1f` +`float` `1f` the width of line. @@ -5074,19 +5042,17 @@ class in XCharts.Runtime / Inherits from: [ChildComponent](#childcomponent) ### UIComponentTheme.sharedTheme -`Theme` +[Theme](#theme) -the asset of theme. [Theme](#theme) +the asset of theme. ### UIComponentTheme.show -`bool` `default: true` - +`bool` `true` ### UIComponentTheme.transparentBackground -`bool` `default: false` - +`bool` `false` ## ViewControl @@ -5098,13 +5064,13 @@ View control component in 3D coordinate system. ### ViewControl.alpha -`float` `default: 90f` +`float` `90f` The angle of the view in the x-z plane. ### ViewControl.beta -`float` `default: 55f` +`float` `55f` The angle of the view in the y-z plane. @@ -5116,31 +5082,31 @@ VisualMap component. Mapping data to visual elements such as colors. ### VisualMap.autoMinMax -`bool` `default: true` +`bool` `true` Automatically set min, Max value 自动设置min,max的值 ### VisualMap.borderWidth -`float` `default: 0` +`float` `0` Border line width. ### VisualMap.calculable -`bool` `default: false` +`bool` `false` Whether the handle used for dragging is displayed (the handle can be dragged to adjust the selected range). ### VisualMap.dimension -`int` `default: -1` +`int` `-1` Specifies "which dimension" of the data to map to the visual element. "Data" is series.data. ### VisualMap.hoverLink -`bool` `default: true` +`bool` `true` When the hoverLink function is turned on, when the mouse hovers over the visualMap component, the corresponding value of the mouse position is highlighted in the corresponding graphic element in the diagram. @@ -5152,43 +5118,43 @@ When the hoverLink function is turned on, when the mouse hovers over the visualM ### VisualMap.itemGap -`float` `default: 10f` +`float` `10f` 每个图元之间的间隔距离。 ### VisualMap.itemHeight -`float` `default: 140f` +`float` `140f` The height of the figure, that is, the height of the color bar. ### VisualMap.itemWidth -`float` `default: 20f` +`float` `20f` The width of the figure, that is, the width of the color bar. ### VisualMap.location -`Location` +[Location](#location) -The location of component. [Location](#location) +The location of component. ### VisualMap.max -`double` `default: 0` +`double` `0` 范围最大值 ### VisualMap.min -`double` `default: 0` +`double` `0` 范围最小值 ### VisualMap.orient -`Orient` +[Orient](#orient) Specify whether the layout of component is horizontal or vertical. @@ -5211,13 +5177,13 @@ Specifies the position of the numeric value corresponding to the handle. Range s ### VisualMap.realtime -`bool` `default: true` +`bool` `true` Whether to update in real time while dragging. ### VisualMap.selectedMode -`VisualMap.SelectedMode` +[VisualMap.SelectedMode](#visualmapselectedmode) the selected mode for Piecewise visualMap. @@ -5228,25 +5194,25 @@ Options: ### VisualMap.serieIndex -`int` `default: 0` +`int` `0` the serie index of visualMap. ### VisualMap.show -`bool` `default: true` +`bool` `true` Whether to enable components. ### VisualMap.showUI -`bool` `default: false` +`bool` `false` Whether to display components. If set to false, it will not show up, but the data mapping function still exists. ### VisualMap.splitNumber -`int` `default: 5` +`int` `5` For continuous data, it is automatically evenly divided into several segments and automatically matches the size of inRange color list when the default is 0. @@ -5264,7 +5230,7 @@ The distance between the two text bodies. ### VisualMap.type -`VisualMap.Type` +[VisualMap.Type](#visualmaptype) the type of visualmap component. @@ -5275,13 +5241,13 @@ Options: ### VisualMap.workOnArea -`bool` `default: false` +`bool` `false` Whether the visualmap is work on areaStyle of linechart. ### VisualMap.workOnLine -`bool` `default: true` +`bool` `true` Whether the visualmap is work on linestyle of linechart. @@ -5337,7 +5303,7 @@ the width of border. ### VisualMapTheme.triangeLen -`float` `default: 20f` +`float` `20f` 可视化组件的调节三角形边长。 @@ -5369,7 +5335,7 @@ class in XCharts.Runtime / Inherits from: [ScriptableObject](https://docs.unity3 ### XCSettings.axisLineType -`LineStyle.Type` +[LineStyle.Type](#linestyletype) @@ -5384,12 +5350,11 @@ Options: ### XCSettings.axisLineWidth -`float` `default: 0.8f` - +`float` `0.8f` ### XCSettings.axisSplitLineType -`LineStyle.Type` +[LineStyle.Type](#linestyletype) @@ -5404,165 +5369,133 @@ Options: ### XCSettings.axisSplitLineWidth -`float` `default: 0.8f` - +`float` `0.8f` ### XCSettings.axisTickLength -`float` `default: 5f` - +`float` `5f` ### XCSettings.axisTickWidth -`float` `default: 0.8f` - +`float` `0.8f` ### XCSettings.cicleSmoothness -`float` `default: 2f` - +`float` `2f` ### XCSettings.customThemes `List` - ### XCSettings.dataZoomBorderWidth -`float` `default: 0.5f` - +`float` `0.5f` ### XCSettings.dataZoomDataLineWidth -`float` `default: 0.5f` - +`float` `0.5f` ### XCSettings.editorShowAllListData -`bool` `default: false` - +`bool` `false` ### XCSettings.font `Font` - ### XCSettings.fontSizeLv1 -`int` `default: 28` +`int` `28` 一级字体大小。 ### XCSettings.fontSizeLv2 -`int` `default: 24` - +`int` `24` ### XCSettings.fontSizeLv3 -`int` `default: 20` - +`int` `20` ### XCSettings.fontSizeLv4 -`int` `default: 18` - +`int` `18` ### XCSettings.gaugeAxisLineWidth -`float` `default: 15f` - +`float` `15f` ### XCSettings.gaugeAxisSplitLineLength -`float` `default: 15f` - +`float` `15f` ### XCSettings.gaugeAxisSplitLineWidth -`float` `default: 0.8f` - +`float` `0.8f` ### XCSettings.gaugeAxisTickLength -`float` `default: 5f` - +`float` `5f` ### XCSettings.gaugeAxisTickWidth -`float` `default: 0.8f` - +`float` `0.8f` ### XCSettings.lang -`Lang` - - [Lang](#lang) +[Lang](#lang) ### XCSettings.lineSegmentDistance -`float` `default: 3f` - +`float` `3f` ### XCSettings.lineSmoothness -`float` `default: 2f` - +`float` `2f` ### XCSettings.lineSmoothStyle -`float` `default: 3f` - +`float` `3f` ### XCSettings.maxPainter -`int` `default: 10` - +`int` `10` ### XCSettings.serieCandlestickBorderWidth -`float` `default: 1f` - +`float` `1f` ### XCSettings.serieLineSymbolSize -`float` `default: 5f` - +`float` `5f` ### XCSettings.serieLineWidth -`float` `default: 1.8f` - +`float` `1.8f` ### XCSettings.serieScatterSymbolSize -`float` `default: 20f` - +`float` `20f` ### XCSettings.serieSelectedRate -`float` `default: 1.3f` - +`float` `1.3f` ### XCSettings.tMPFont `TMP_FontAsset` - ### XCSettings.tootipLineWidth -`float` `default: 0.8f` - +`float` `0.8f` ### XCSettings.visualMapBorderWidth -`float` `default: 0f` - +`float` `0f` ### XCSettings.visualMapTriangeLen -`float` `default: 20f` - +`float` `20f` ## YAxis diff --git a/Documentation~/zh/configuration.md b/Documentation~/zh/configuration.md index 55d8942c..edc81ed6 100644 --- a/Documentation~/zh/configuration.md +++ b/Documentation~/zh/configuration.md @@ -212,7 +212,7 @@ class in XCharts.Runtime / 继承自: [Axis](#axis) ### AngleAxis.startAngle -`float` `default: 0` +`float` `0` 起始刻度的角度,默认为 0 度,即圆心的正右方。 @@ -270,25 +270,25 @@ class in XCharts.Runtime / 子类: [AnimationFadeIn](#animationfadein), [Animati ### AnimationInfo.delay -`float` `default: 0` `v3.8.0` +`float` `0` `v3.8.0` 动画开始前的延迟时间。 ### AnimationInfo.duration -`float` `default: 1000` `v3.8.0` +`float` `1000` `v3.8.0` 动画的时长。 ### AnimationInfo.enable -`bool` `default: true` `v3.8.0` +`bool` `true` `v3.8.0` 是否开启动画效果。 ### AnimationInfo.reverse -`bool` `default: false` `v3.8.0` +`bool` `false` `v3.8.0` 是否开启反向动画效果。 @@ -302,21 +302,21 @@ class in XCharts.Runtime / 继承自: [AnimationInfo](#animationinfo) ### AnimationInteraction.offset -`MLValue` `v3.8.0` +[MLValue](#mlvalue) `v3.8.0` -交互的多样式数值。如饼图的扇形选中时的偏移。 [MLValue](#mlvalue) +交互的多样式数值。如饼图的扇形选中时的偏移。 ### AnimationInteraction.radius -`MLValue` `v3.8.0` +[MLValue](#mlvalue) `v3.8.0` -半径的多样式数值。 [MLValue](#mlvalue) +半径的多样式数值。 ### AnimationInteraction.width -`MLValue` `v3.8.0` +[MLValue](#mlvalue) `v3.8.0` -宽度的多样式数值。 [MLValue](#mlvalue) +宽度的多样式数值。 ## AnimationStyle @@ -326,19 +326,19 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### AnimationStyle.addition -`AnimationAddition` `v3.8.0` +[AnimationAddition](#animationaddition) `v3.8.0` -数据新增动画配置。 [AnimationAddition](#animationaddition) +数据新增动画配置。 ### AnimationStyle.change -`AnimationChange` `v3.8.0` +[AnimationChange](#animationchange) `v3.8.0` -数据变更动画配置。 [AnimationChange](#animationchange) +数据变更动画配置。 ### AnimationStyle.easting -`AnimationEasing` +[AnimationEasing](#animationeasing) @@ -348,43 +348,43 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### AnimationStyle.enable -`bool` `default: true` +`bool` `true` 是否开启动画效果。 ### AnimationStyle.fadeIn -`AnimationFadeIn` `v3.8.0` +[AnimationFadeIn](#animationfadein) `v3.8.0` -渐入动画配置。 [AnimationFadeIn](#animationfadein) +渐入动画配置。 ### AnimationStyle.fadeOut -`AnimationFadeOut` `v3.8.0` +[AnimationFadeOut](#animationfadeout) `v3.8.0` -渐出动画配置。 [AnimationFadeOut](#animationfadeout) +渐出动画配置。 ### AnimationStyle.hiding -`AnimationHiding` `v3.8.0` +[AnimationHiding](#animationhiding) `v3.8.0` -数据隐藏动画配置。 [AnimationHiding](#animationhiding) +数据隐藏动画配置。 ### AnimationStyle.interaction -`AnimationInteraction` `v3.8.0` +[AnimationInteraction](#animationinteraction) `v3.8.0` -交互动画配置。 [AnimationInteraction](#animationinteraction) +交互动画配置。 ### AnimationStyle.threshold -`int` `default: 2000` +`int` `2000` 是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。 ### AnimationStyle.type -`AnimationType` +[AnimationType](#animationtype) 动画类型。 @@ -423,13 +423,13 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### AreaStyle.opacity -`float` `default: 0.6f` +`float` `0.6f` 图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 ### AreaStyle.origin -`AreaStyle.AreaOrigin` +[AreaStyle.AreaOrigin](#areastyleareaorigin) 区域填充的起始位置。 @@ -441,7 +441,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### AreaStyle.show -`bool` `default: true` +`bool` `true` 是否显示区域填充。 @@ -453,7 +453,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### AreaStyle.toTop -`bool` `default: true` `v3.6.0` +`bool` `true` `v3.6.0` 渐变色是到顶部还是到实际位置。默认为true到顶部。 @@ -463,31 +463,31 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### ArrowStyle.color -`Color32` `default: Color.clear` +`Color32` `Color.clear` 箭头颜色。 ### ArrowStyle.dent -`float` `default: 3` +`float` `3` 箭头的凹度。 ### ArrowStyle.height -`float` `default: 15` +`float` `15` 箭头高。 ### ArrowStyle.offset -`float` `default: 0` +`float` `0` 箭头偏移。 ### ArrowStyle.width -`float` `default: 10` +`float` `10` 箭头宽。 @@ -499,49 +499,49 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) / 子类: ### Axis.animation -`AxisAnimation` +[AxisAnimation](#axisanimation) -坐标轴动画。 [AxisAnimation](#axisanimation) +坐标轴动画。 ### Axis.axisLabel -`AxisLabel` +[AxisLabel](#axislabel) -坐标轴刻度标签。 [AxisLabel](#axislabel) +坐标轴刻度标签。 ### Axis.axisLine -`AxisLine` +[AxisLine](#axisline) -坐标轴轴线。 [AxisLine](#axisline) +坐标轴轴线。 ### Axis.axisName -`AxisName` +[AxisName](#axisname) -坐标轴名称。 [AxisName](#axisname) +坐标轴名称。 ### Axis.axisTick -`AxisTick` +[AxisTick](#axistick) -坐标轴刻度。 [AxisTick](#axistick) +坐标轴刻度。 ### Axis.boundaryGap -`bool` `default: true` +`bool` `true` 坐标轴两边是否留白。只对类目轴有效。 ### Axis.ceilRate -`double` `default: 0` +`double` `0` 最大最小值向上取整的倍率。默认为0时自动计算。 ### Axis.clockwise -`bool` `default: true` +`bool` `true` 刻度增长是否按顺时针,默认顺时针。 @@ -565,9 +565,9 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) / 子类: ### Axis.indicatorLabel -`LabelStyle` `v3.4.0` +[LabelStyle](#labelstyle) `v3.4.0` -指示器文本的样式。Tooltip为Cross时使用。 [LabelStyle](#labelstyle) +指示器文本的样式。Tooltip为Cross时使用。 ### Axis.insertDataToHead @@ -577,25 +577,25 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) / 子类: ### Axis.interval -`double` `default: 0` +`double` `0` 强制设置坐标轴分割间隔。无法在类目轴中使用。 ### Axis.inverse -`bool` `default: false` +`bool` `false` 是否反向坐标轴。在类目轴中无效。 ### Axis.logBase -`float` `default: 10` +`float` `10` 对数轴的底数,只在对数轴(type:'Log')中有效。 ### Axis.logBaseE -`bool` `default: false` +`bool` `false` 对数轴是否以自然数 e 为底数,为 true 时 logBase 失效。 @@ -607,7 +607,7 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) / 子类: ### Axis.maxCache -`int` `default: 0` +`int` `0` The first data will be remove when the size of axis data is larger then maxCache. @@ -619,13 +619,13 @@ The first data will be remove when the size of axis data is larger then maxCache ### Axis.minCategorySpacing -`float` `default: 0` `v3.11.0` +`float` `0` `v3.11.0` 类目之间的最小间距。 ### Axis.minMaxType -`Axis.AxisMinMaxType` +[Axis.AxisMinMaxType](#axisaxisminmaxtype) 坐标轴刻度最大最小值显示类型。 @@ -638,15 +638,15 @@ The first data will be remove when the size of axis data is larger then maxCache ### Axis.minorSplitLine -`AxisMinorSplitLine` `v3.2.0` +[AxisMinorSplitLine](#axisminorsplitline) `v3.2.0` -坐标轴次分割线。 [AxisMinorSplitLine](#axisminorsplitline) +坐标轴次分割线。 ### Axis.minorTick -`AxisMinorTick` `v3.2.0` +[AxisMinorTick](#axisminortick) `v3.2.0` -坐标轴次刻度。 [AxisMinorTick](#axisminortick) +坐标轴次刻度。 ### Axis.offset @@ -668,7 +668,7 @@ The first data will be remove when the size of axis data is larger then maxCache ### Axis.position -`Axis.AxisPosition` +[Axis.AxisPosition](#axisaxisposition) 坐标轴在Grid中的位置。 @@ -682,31 +682,31 @@ The first data will be remove when the size of axis data is larger then maxCache ### Axis.show -`bool` `default: true` +`bool` `true` 是否显示坐标轴。 ### Axis.splitArea -`AxisSplitArea` +[AxisSplitArea](#axissplitarea) -坐标轴分割区域。 [AxisSplitArea](#axissplitarea) +坐标轴分割区域。 ### Axis.splitLine -`AxisSplitLine` +[AxisSplitLine](#axissplitline) -坐标轴分割线。 [AxisSplitLine](#axissplitline) +坐标轴分割线。 ### Axis.splitNumber -`int` `default: 0` +`int` `0` 坐标轴的期望的分割段数。默认为0表示自动分割。 ### Axis.type -`Axis.AxisType` +[Axis.AxisType](#axisaxistype) 坐标轴类型。 @@ -733,7 +733,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### AxisAnimation.show -`bool` `default: true` +`bool` `true` 是否开启动画。 @@ -751,45 +751,45 @@ class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle) ### AxisLabel.inside -`bool` `default: false` +`bool` `false` 刻度标签是否朝内,默认朝外。 ### AxisLabel.interval -`int` `default: 0` +`int` `0` 坐标轴刻度标签的显示间隔,在类目轴中有效。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。 ### AxisLabel.onZero -`bool` `default: false` +`bool` `false` 刻度标签显示在0刻度上。 ### AxisLabel.showAsPositiveNumber -`bool` `default: false` +`bool` `false` 将负数数值显示为正数。一般和`Serie`的`showAsPositiveNumber`配合使用。 ### AxisLabel.showEndLabel -`bool` `default: true` +`bool` `true` 是否显示最后一个文本。 ### AxisLabel.showStartLabel -`bool` `default: true` +`bool` `true` 是否显示第一个文本。 ### AxisLabel.textLimit -`TextLimit` +[TextLimit](#textlimit) -文本限制。 [TextLimit](#textlimit) +文本限制。 ## AxisLine @@ -799,9 +799,9 @@ class in XCharts.Runtime / 继承自: [BaseLine](#baseline) ### AxisLine.arrow -`ArrowStyle` +[ArrowStyle](#arrowstyle) -轴线箭头。 [ArrowStyle](#arrowstyle) +轴线箭头。 ### AxisLine.onZero @@ -847,10 +847,9 @@ class in XCharts.Runtime / 继承自: [BaseLine](#baseline) `bool` - ### AxisMinorTick.splitNumber -`int` `default: 5` +`int` `5` 分隔线之间分割的刻度数。 @@ -862,9 +861,9 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### AxisName.labelStyle -`LabelStyle` +[LabelStyle](#labelstyle) -文本样式。 [LabelStyle](#labelstyle) +文本样式。 ### AxisName.name @@ -928,19 +927,19 @@ class in XCharts.Runtime / 继承自: [BaseLine](#baseline) ### AxisSplitLine.showEndLine -`bool` `default: true` `v3.3.0` +`bool` `true` `v3.3.0` 是否显示最后一条分割线。 ### AxisSplitLine.showStartLine -`bool` `default: true` `v3.3.0` +`bool` `true` `v3.3.0` 是否显示第一条分割线。 ### AxisSplitLine.showZLine -`bool` `default: true` `v3.11.0` +`bool` `true` `v3.11.0` 是否显示Z轴部分分割线。一般用于3D坐标系。 @@ -964,7 +963,6 @@ class in XCharts.Runtime / 继承自: [BaseLine](#baseline) `bool` - ### AxisTick.distance `float` @@ -991,7 +989,7 @@ class in XCharts.Runtime / 继承自: [BaseLine](#baseline) ### AxisTick.splitNumber -`int` `default: 0` +`int` `0` 分隔线之间分割的刻度数。 @@ -1003,15 +1001,15 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### Background.autoColor -`bool` `default: true` +`bool` `true` 当background组件开启时,是否自动使用主题背景色作为backgrounnd组件的颜色。当设置为false时,用imageColor作为颜色。 ### Background.borderStyle -`BorderStyle` `v3.10.0` +[BorderStyle](#borderstyle) `v3.10.0` -背景边框样式。 [BorderStyle](#borderstyle) +背景边框样式。 ### Background.image @@ -1027,7 +1025,7 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### Background.imageHeight -`float` `default: 0` `v3.10.0` +`float` `0` `v3.10.0` 背景图高度。 @@ -1039,13 +1037,13 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### Background.imageWidth -`float` `default: 0` `v3.10.0` +`float` `0` `v3.10.0` 背景图宽度。 ### Background.show -`bool` `default: true` +`bool` `true` 是否启用背景组件。 @@ -1065,13 +1063,13 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) / 子类 ### BaseAxisTheme.lineLength -`float` `default: 0f` +`float` `0f` 坐标轴线长。 ### BaseAxisTheme.lineType -`LineStyle.Type` +[LineStyle.Type](#linestyletype) 坐标轴线类型。 @@ -1086,7 +1084,7 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) / 子类 ### BaseAxisTheme.lineWidth -`float` `default: 1f` +`float` `1f` 坐标轴线宽。 @@ -1110,13 +1108,13 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) / 子类 ### BaseAxisTheme.splitLineLength -`float` `default: 0f` +`float` `0f` 分割线线长。 ### BaseAxisTheme.splitLineType -`LineStyle.Type` +[LineStyle.Type](#linestyletype) 分割线线类型。 @@ -1131,7 +1129,7 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) / 子类 ### BaseAxisTheme.splitLineWidth -`float` `default: 1f` +`float` `1f` 分割线线宽。 @@ -1143,13 +1141,13 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) / 子类 ### BaseAxisTheme.tickLength -`float` `default: 5f` +`float` `5f` 刻度线线长。 ### BaseAxisTheme.tickWidth -`float` `default: 1f` +`float` `1f` 刻度线线宽。 @@ -1161,9 +1159,9 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类 ### BaseLine.lineStyle -`LineStyle` +[LineStyle](#linestyle) -线条样式 [LineStyle](#linestyle) +线条样式 ### BaseLine.show @@ -1215,13 +1213,13 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### BorderStyle.roundedCorner -`bool` `default: true` +`bool` `true` 是否显示圆角。 ### BorderStyle.show -`bool` `default: false` +`bool` `false` 是否显示边框。 @@ -1255,19 +1253,19 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropert ### Comment.labelStyle -`LabelStyle` +[LabelStyle](#labelstyle) -所有组件的文本样式。 [LabelStyle](#labelstyle) +所有组件的文本样式。 ### Comment.markStyle -`CommentMarkStyle` +[CommentMarkStyle](#commentmarkstyle) -所有组件的文本样式。 [CommentMarkStyle](#commentmarkstyle) +所有组件的文本样式。 ### Comment.show -`bool` `default: true` +`bool` `true` 是否显示注解组件。 @@ -1285,15 +1283,15 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### CommentItem.labelStyle -`LabelStyle` +[LabelStyle](#labelstyle) -注解项的文本样式。 [LabelStyle](#labelstyle) +注解项的文本样式。 ### CommentItem.location -`Location` `v3.5.0` +[Location](#location) `v3.5.0` -Comment显示的位置。 [Location](#location) +Comment显示的位置。 ### CommentItem.markRect @@ -1303,13 +1301,13 @@ Comment显示的位置。 [Location](#location) ### CommentItem.markStyle -`CommentMarkStyle` +[CommentMarkStyle](#commentmarkstyle) -注解标记区域样式。 [CommentMarkStyle](#commentmarkstyle) +注解标记区域样式。 ### CommentItem.show -`bool` `default: true` +`bool` `true` 是否显示当前注解项。 @@ -1321,13 +1319,13 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### CommentMarkStyle.lineStyle -`LineStyle` +[LineStyle](#linestyle) -线条样式。 [LineStyle](#linestyle) +线条样式。 ### CommentMarkStyle.show -`bool` `default: true` +`bool` `true` 是否显示当前注解项。 @@ -1343,7 +1341,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类 ### ComponentTheme.fontSize -`int` `default: 18` +`int` `18` 文本字体大小。 @@ -1379,9 +1377,9 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 ### DataZoom.areaStyle -`AreaStyle` +[AreaStyle](#areastyle) -阴影填充样式。 [AreaStyle](#areastyle) +阴影填充样式。 ### DataZoom.backgroundColor @@ -1409,7 +1407,7 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 ### DataZoom.enable -`bool` `default: true` +`bool` `true` 是否显示缩放区域。 @@ -1433,7 +1431,7 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 ### DataZoom.filterMode -`DataZoom.FilterMode` +[DataZoom.FilterMode](#datazoomfiltermode) 数据过滤类型。 @@ -1446,9 +1444,9 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 ### DataZoom.labelStyle -`LabelStyle` +[LabelStyle](#labelstyle) -文本标签格式。 [LabelStyle](#labelstyle) +文本标签格式。 ### DataZoom.left @@ -1458,25 +1456,25 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 ### DataZoom.lineStyle -`LineStyle` +[LineStyle](#linestyle) -阴影线条样式。 [LineStyle](#linestyle) +阴影线条样式。 ### DataZoom.marqueeStyle -`MarqueeStyle` `v3.5.0` +[MarqueeStyle](#marqueestyle) `v3.5.0` -选取框样式。 [MarqueeStyle](#marqueestyle) +选取框样式。 ### DataZoom.minShowNum -`int` `default: 2` +`int` `2` 最小显示数据个数。当DataZoom放大到最大时,最小显示的数据个数。 ### DataZoom.orient -`Orient` +[Orient](#orient) 布局方式是横还是竖。不仅是布局方式,对于直角坐标系而言,也决定了,缺省情况控制横向数轴还是纵向数轴。 @@ -1487,7 +1485,7 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 ### DataZoom.rangeMode -`DataZoom.RangeMode` +[DataZoom.RangeMode](#datazoomrangemode) 取绝对值还是百分比。 @@ -1504,7 +1502,7 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 ### DataZoom.scrollSensitivity -`float` `default: 1.1f` +`float` `1.1f` 缩放区域组件的敏感度。值越高每次缩放所代表的数据越多。 @@ -1540,13 +1538,13 @@ DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息 ### DataZoom.supportInsideDrag -`bool` `default: true` +`bool` `true` 是否支持坐标系内拖拽 ### DataZoom.supportInsideScroll -`bool` `default: true` +`bool` `true` 是否支持坐标系内滚动 @@ -1638,32 +1636,29 @@ class in XCharts.Runtime ### DebugInfo.foldSeries -`bool` `default: false` +`bool` `false` 是否在Inspector上折叠Serie。 ### DebugInfo.labelStyle -`LabelStyle` - - [LabelStyle](#labelstyle) +[LabelStyle](#labelstyle) ### DebugInfo.show -`bool` `default: true` +`bool` `true` 是否显示Debug组件。 ### DebugInfo.showAllChartObject -`bool` `default: false` +`bool` `false` 是否在Hierarchy试图显示所有chart下的节点。 ### DebugInfo.showDebugInfo -`bool` `default: false` - +`bool` `false` ## EffectScatter @@ -1679,7 +1674,7 @@ class in XCharts.Runtime / 继承自: [StateStyle](#statestyle), [ISerieComponen ### EmphasisStyle.blurScope -`EmphasisStyle.BlurScope` +[EmphasisStyle.BlurScope](#emphasisstyleblurscope) 在开启focus的时候,可以通过blurScope配置淡出的范围。 @@ -1691,7 +1686,7 @@ class in XCharts.Runtime / 继承自: [StateStyle](#statestyle), [ISerieComponen ### EmphasisStyle.focus -`EmphasisStyle.FocusType` +[EmphasisStyle.FocusType](#emphasisstylefocustype) 在高亮图形时,是否淡出其它数据的图形已达到聚焦的效果。 @@ -1703,7 +1698,7 @@ class in XCharts.Runtime / 继承自: [StateStyle](#statestyle), [ISerieComponen ### EmphasisStyle.scale -`float` `default: 1.1f` +`float` `1.1f` 高亮时的缩放倍数。 @@ -1731,49 +1726,49 @@ Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart ### GridCoord.borderWidth -`float` `default: 0f` +`float` `0f` 网格边框宽。 ### GridCoord.bottom -`float` `default: 0.14f` +`float` `0.14f` grid 组件离容器下侧的距离。 ### GridCoord.layoutIndex -`int` `default: -1` `v3.8.0` +`int` `-1` `v3.8.0` 网格所属的网格布局组件的索引。默认为-1,表示不属于任何网格布局组件。当设置了该值时,left、right、top、bottom属性将失效。 ### GridCoord.left -`float` `default: 0.11f` +`float` `0.11f` grid 组件离容器左侧的距离。 ### GridCoord.right -`float` `default: 0.08f` +`float` `0.08f` grid 组件离容器右侧的距离。 ### GridCoord.show -`bool` `default: true` +`bool` `true` 是否显示直角坐标系网格。 ### GridCoord.showBorder -`bool` `default: false` +`bool` `false` 是否显示网格边框。 ### GridCoord.top -`float` `default: 0.22f` +`float` `0.22f` grid 组件离容器上侧的距离。 @@ -1787,68 +1782,67 @@ Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart ### GridCoord3D.bottom -`float` `default: 0.15f` +`float` `0.15f` grid 组件离容器下侧的距离。 ### GridCoord3D.boxDepth -`float` `default: 0.2f` +`float` `0.2f` 坐标系的深度。 ### GridCoord3D.boxHeight -`float` `default: 0.4f` +`float` `0.4f` 坐标系的高度。 ### GridCoord3D.boxWidth -`float` `default: 0.55f` +`float` `0.55f` 坐标系的宽度。 ### GridCoord3D.left -`float` `default: 0.15f` +`float` `0.15f` grid 组件离容器左侧的距离。 ### GridCoord3D.right -`float` `default: 0.2f` +`float` `0.2f` grid 组件离容器右侧的距离。 ### GridCoord3D.show -`bool` `default: true` +`bool` `true` 是否显示直角坐标系网格。 ### GridCoord3D.showBorder -`bool` `default: false` +`bool` `false` 是否显示网格边框。 ### GridCoord3D.top -`float` `default: 0.3f` +`float` `0.3f` grid 组件离容器上侧的距离。 ### GridCoord3D.viewControl -`ViewControl` +[ViewControl](#viewcontrol) -3D视角控制组件。 [ViewControl](#viewcontrol) +3D视角控制组件。 ### GridCoord3D.xYExchanged -`bool` `default: false` - +`bool` `false` ## GridLayout @@ -1860,55 +1854,55 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IUpdateR ### GridLayout.bottom -`float` `default: 0.12f` +`float` `0.12f` grid 组件离容器下侧的距离。 ### GridLayout.column -`int` `default: 2` +`int` `2` 网格布局的列数。 ### GridLayout.inverse -`bool` `default: false` +`bool` `false` 是否反转网格布局。 ### GridLayout.left -`float` `default: 0.1f` +`float` `0.1f` grid 组件离容器左侧的距离。 ### GridLayout.right -`float` `default: 0.08f` +`float` `0.08f` grid 组件离容器右侧的距离。 ### GridLayout.row -`int` `default: 2` +`int` `2` 网格布局的行数。 ### GridLayout.show -`bool` `default: true` +`bool` `true` 是否显示直角坐标系网格。 ### GridLayout.spacing -`Vector2` `default: Vector2.zero` +`Vector2` `Vector2.zero` 网格布局的间距。 ### GridLayout.top -`float` `default: 0.22f` +`float` `0.22f` grid 组件离容器上侧的距离。 @@ -1918,7 +1912,7 @@ class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#in ### Heatmap.heatmapType -`HeatmapType` `v3.3.0` +[HeatmapType](#heatmaptype) `v3.3.0` 热力图类型。通过颜色映射划分。 @@ -1933,7 +1927,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### IconStyle.align -`Align` +[Align](#align) 水平方向对齐方式。 @@ -1945,7 +1939,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### IconStyle.autoHideWhenLabelEmpty -`bool` `default: false` +`bool` `false` 当label内容为空时是否自动隐藏图标 @@ -1957,13 +1951,13 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### IconStyle.height -`float` `default: 20` +`float` `20` 图标高。 ### IconStyle.layer -`IconStyle.Layer` +[IconStyle.Layer](#iconstylelayer) 显示在上层还是在下层。 @@ -1980,7 +1974,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### IconStyle.show -`bool` `default: false` +`bool` `false` 是否显示图标。 @@ -1998,7 +1992,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### IconStyle.width -`float` `default: 20` +`float` `20` 图标宽。 @@ -2020,13 +2014,13 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### ImageStyle.height -`float` `default: 0` +`float` `0` 图标高。 ### ImageStyle.show -`bool` `default: true` +`bool` `true` 是否显示图标。 @@ -2044,7 +2038,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### ImageStyle.width -`float` `default: 0` +`float` `0` 图标宽。 @@ -2056,19 +2050,19 @@ class in XCharts.Runtime ### Indicator.axisLine -`AxisLine` +[AxisLine](#axisline) -轴线。 [AxisLine](#axisline) +轴线。 ### Indicator.axisName -`AxisName` +[AxisName](#axisname) -雷达图每个指示器名称的配置项。 [AxisName](#axisname) +雷达图每个指示器名称的配置项。 ### Indicator.ceilRate -`double` `default: 0` +`double` `0` 最大最小值向上取整的倍率。默认为0时自动计算。 @@ -2080,25 +2074,25 @@ class in XCharts.Runtime ### Indicator.connectCenter -`bool` `default: false` +`bool` `false` 数值是否连线到中心点。 ### Indicator.gridIndex -`int` `default: -1` `v3.8.0` +`int` `-1` `v3.8.0` 所使用的 layout 组件的 index。 默认为-1不指定index, 当为大于或等于0时, 为第一个layout组件的第index个格子。 ### Indicator.indicator -`bool` `default: true` +`bool` `true` 是否显示指示器。 ### Indicator.indicatorGap -`float` `default: 10` +`float` `10` 指示器和雷达的间距。 @@ -2116,7 +2110,7 @@ class in XCharts.Runtime ### Indicator.lineGradient -`bool` `default: true` +`bool` `true` 数值线段是否需要渐变。 @@ -2140,7 +2134,7 @@ class in XCharts.Runtime ### Indicator.outRangeColor -`Color32` `default: Color.red` +`Color32` `Color.red` 数值超出范围时显示的颜色。 @@ -2152,7 +2146,7 @@ class in XCharts.Runtime ### Indicator.radius -`float` `default: 100` +`float` `100` 雷达图的半径。 @@ -2176,19 +2170,19 @@ class in XCharts.Runtime ### Indicator.splitArea -`AxisSplitArea` +[AxisSplitArea](#axissplitarea) -分割区域。 [AxisSplitArea](#axissplitarea) +分割区域。 ### Indicator.splitLine -`AxisSplitLine` +[AxisSplitLine](#axissplitline) -分割线。 [AxisSplitLine](#axissplitline) +分割线。 ### Indicator.splitNumber -`int` `default: 5` +`int` `5` 指示器轴的分割段数。 @@ -2260,7 +2254,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### ItemStyle.borderGap -`float` `default: 0` +`float` `0` 边框间隙。 @@ -2272,7 +2266,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### ItemStyle.borderWidth -`float` `default: 0` +`float` `0` 边框宽。 @@ -2332,13 +2326,13 @@ Serie的标识颜色。仅用于Legend和Tooltip的展示,不影响绘制颜 ### ItemStyle.opacity -`float` `default: 1` +`float` `1` 透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 ### ItemStyle.show -`bool` `default: true` +`bool` `true` 是否启用。 @@ -2366,49 +2360,49 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### LabelLine.endSymbol -`SymbolStyle` +[SymbolStyle](#symbolstyle) -结束点的图形标记。 [SymbolStyle](#symbolstyle) +结束点的图形标记。 ### LabelLine.lineAngle -`float` `default: 60` +`float` `60` 视觉引导线的固定角度。对折线和曲线有效。在Pie中无效。 ### LabelLine.lineColor -`Color32` `default: Color32(0,0,0,0)` +`Color32` `Color32(0,0,0,0)` 视觉引导线颜色。默认和serie一致取自调色板。 ### LabelLine.lineEndX -`float` `default: 0f` `v3.8.0` +`float` `0f` `v3.8.0` 视觉引导线结束点的固定x位置。当不为0时,会代替lineLength2设定引导线的x位置。 ### LabelLine.lineGap -`float` `default: 1.0f` +`float` `1.0f` 视觉引导线和容器的间距。 ### LabelLine.lineLength1 -`float` `default: 25f` +`float` `25f` 视觉引导线第一段的长度。 ### LabelLine.lineLength2 -`float` `default: 15f` +`float` `15f` 视觉引导线第二段的长度。 ### LabelLine.lineType -`LabelLine.LineType` +[LabelLine.LineType](#labellinelinetype) 视觉引导线类型。 @@ -2420,21 +2414,21 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### LabelLine.lineWidth -`float` `default: 1.0f` +`float` `1.0f` 视觉引导线的宽度。 ### LabelLine.show -`bool` `default: true` +`bool` `true` 是否显示视觉引导线。 ### LabelLine.startSymbol -`SymbolStyle` +[SymbolStyle](#symbolstyle) -起始点的图形标记。 [SymbolStyle](#symbolstyle) +起始点的图形标记。 ## LabelStyle @@ -2444,21 +2438,21 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### LabelStyle.autoOffset -`bool` `default: false` +`bool` `false` 是否开启自动偏移。当开启时,Y的偏移会自动判断曲线的开口来决定向上还是向下偏移。 ### LabelStyle.autoRotate -`bool` `default: false` `v3.6.0` +`bool` `false` `v3.6.0` 是否自动旋转。 ### LabelStyle.background -`ImageStyle` +[ImageStyle](#imagestyle) -背景图样式。 [ImageStyle](#imagestyle) +背景图样式。 ### LabelStyle.distance @@ -2474,15 +2468,15 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### LabelStyle.height -`float` `default: 0` +`float` `0` 标签的高度。一般不用指定,不指定时则自动是文字的高度。 ### LabelStyle.icon -`IconStyle` +[IconStyle](#iconstyle) -图标样式。 [IconStyle](#iconstyle) +图标样式。 ### LabelStyle.numericFormatter @@ -2510,25 +2504,25 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### LabelStyle.show -`bool` `default: true` +`bool` `true` 是否显示文本标签。 ### LabelStyle.textPadding -`TextPadding` +[TextPadding](#textpadding) -文本的边距。 [TextPadding](#textpadding) +文本的边距。 ### LabelStyle.textStyle -`TextStyle` +[TextStyle](#textstyle) -文本样式。 [TextStyle](#textstyle) +文本样式。 ### LabelStyle.width -`float` `default: 0` +`float` `0` 标签的宽度。一般不用指定,不指定时则自动是文字的宽度。 @@ -2554,9 +2548,9 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropert ### Legend.background -`ImageStyle` `v3.1.0` +[ImageStyle](#imagestyle) `v3.1.0` -背景图样式。 [ImageStyle](#imagestyle) +背景图样式。 ### Legend.colors @@ -2584,7 +2578,7 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropert ### Legend.iconType -`Legend.Type` +[Legend.Type](#legendtype) 图例类型。 @@ -2601,49 +2595,49 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropert ### Legend.itemAutoColor -`bool` `default: true` +`bool` `true` 图例标记的图形是否自动匹配颜色。 ### Legend.itemGap -`float` `default: 10f` +`float` `10f` 图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。 ### Legend.itemHeight -`float` `default: 12.0f` +`float` `12.0f` 图例标记的图形高度。 ### Legend.itemOpacity -`float` `default: 1` +`float` `1` 图例标记的图形的颜色透明度。 ### Legend.itemWidth -`float` `default: 25.0f` +`float` `25.0f` 图例标记的图形宽度。 ### Legend.labelStyle -`LabelStyle` +[LabelStyle](#labelstyle) -文本样式。 [LabelStyle](#labelstyle) +文本样式。 ### Legend.location -`Location` +[Location](#location) -图例显示的位置。 [Location](#location) +图例显示的位置。 ### Legend.orient -`Orient` +[Orient](#orient) 布局方式是横还是竖。 @@ -2654,9 +2648,9 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropert ### Legend.padding -`Padding` `v3.1.0` +[Padding](#padding) `v3.1.0` -图例标记和背景的间距。 [Padding](#padding) +图例标记和背景的间距。 ### Legend.positions @@ -2666,7 +2660,7 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropert ### Legend.selectedMode -`Legend.SelectedMode` +[Legend.SelectedMode](#legendselectedmode) 选择模式。控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。 @@ -2678,15 +2672,15 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropert ### Legend.show -`bool` `default: true` +`bool` `true` 是否显示图例组件。 ### Legend.textLimit -`TextLimit` `v3.10.0` +[TextLimit](#textlimit) `v3.10.0` -文本限制。 [TextLimit](#textlimit) +文本限制。 ## LegendTheme @@ -2704,33 +2698,33 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### Level.depth -`int` `default: 0` `v3.10.0` +`int` `0` `v3.10.0` 层级深度。 ### Level.itemStyle -`ItemStyle` +[ItemStyle](#itemstyle) -数据项样式。 [ItemStyle](#itemstyle) +数据项样式。 ### Level.label -`LabelStyle` +[LabelStyle](#labelstyle) -文本标签样式。 [LabelStyle](#labelstyle) +文本标签样式。 ### Level.lineStyle -`LineStyle` `v3.10.0` +[LineStyle](#linestyle) `v3.10.0` -线条样式。 [LineStyle](#linestyle) +线条样式。 ### Level.upperLabel -`LabelStyle` +[LabelStyle](#labelstyle) -上方的文本标签样式。 [LabelStyle](#labelstyle) +上方的文本标签样式。 ## LevelStyle @@ -2746,7 +2740,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### LevelStyle.show -`bool` `default: false` +`bool` `false` 是否启用LevelStyle @@ -2760,13 +2754,13 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### LineArrow.arrow -`ArrowStyle` +[ArrowStyle](#arrowstyle) -箭头。 [ArrowStyle](#arrowstyle) +箭头。 ### LineArrow.position -`LineArrow.Position` +[LineArrow.Position](#linearrowposition) 箭头位置。 @@ -2795,37 +2789,37 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### LineStyle.dashLength -`float` `default: 4` `v3.8.1` +`float` `4` `v3.8.1` 虚线的长度。默认0时为线条宽度的12倍。在折线图中代表分割段数的倍数。 ### LineStyle.dotLength -`float` `default: 2` `v3.8.1` +`float` `2` `v3.8.1` 点线的长度。默认0时为线条宽度的3倍。在折线图中代表分割段数的倍数。 ### LineStyle.gapLength -`float` `default: 2` `v3.8.1` +`float` `2` `v3.8.1` 点线的长度。默认0时为线条宽度的3倍。在折线图中代表分割段数的倍数。 ### LineStyle.length -`float` `default: 0` +`float` `0` 线长。 ### LineStyle.opacity -`float` `default: 1` +`float` `1` 线的透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 ### LineStyle.show -`bool` `default: true` +`bool` `true` 是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。 @@ -2843,7 +2837,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### LineStyle.type -`LineStyle.Type` +[LineStyle.Type](#linestyletype) 线的类型。 @@ -2858,7 +2852,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [ISerie ### LineStyle.width -`float` `default: 0` +`float` `0` 线宽。 @@ -2870,7 +2864,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent), [IPrope ### Location.align -`Location.Align` +[Location.Align](#locationalign) 对齐方式。 @@ -2922,39 +2916,39 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### MarkArea.end -`MarkAreaData` +[MarkAreaData](#markareadata) -标域范围的结束数据。 [MarkAreaData](#markareadata) +标域范围的结束数据。 ### MarkArea.itemStyle -`ItemStyle` +[ItemStyle](#itemstyle) -标域样式。 [ItemStyle](#itemstyle) +标域样式。 ### MarkArea.label -`LabelStyle` +[LabelStyle](#labelstyle) -标域文本样式。 [LabelStyle](#labelstyle) +标域文本样式。 ### MarkArea.serieIndex -`int` `default: 0` +`int` `0` Serie index of markArea. 标域影响的Serie索引。 ### MarkArea.show -`bool` `default: true` +`bool` `true` 是否显示标域。 ### MarkArea.start -`MarkAreaData` +[MarkAreaData](#markareadata) -标域范围的起始数据。 [MarkAreaData](#markareadata) +标域范围的起始数据。 ### MarkArea.text @@ -2970,7 +2964,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### MarkAreaData.dimension -`int` `default: 1` +`int` `1` 从哪个维度的数据计算最大最小值等。 @@ -2982,7 +2976,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### MarkAreaData.type -`MarkAreaType` +[MarkAreaType](#markareatype) 特殊的标域类型,用于标注最大值最小值等。 @@ -3026,9 +3020,9 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### MarkLine.animation -`AnimationStyle` +[AnimationStyle](#animationstyle) -标线的动画样式。 [AnimationStyle](#animationstyle) +标线的动画样式。 ### MarkLine.data @@ -3038,19 +3032,19 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### MarkLine.onTop -`bool` `default: true` `v3.9.0` +`bool` `true` `v3.9.0` 是否在最上层。 ### MarkLine.serieIndex -`int` `default: 0` +`int` `0` 标线影响的Serie索引。 ### MarkLine.show -`bool` `default: true` +`bool` `true` 是否显示标线。 @@ -3064,33 +3058,33 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### MarkLineData.dimension -`int` `default: 1` +`int` `1` 从哪个维度的数据计算最大最小值等。 ### MarkLineData.endSymbol -`SymbolStyle` +[SymbolStyle](#symbolstyle) -结束点的图形标记。 [SymbolStyle](#symbolstyle) +结束点的图形标记。 ### MarkLineData.group -`int` `default: 0` +`int` `0` 分组。当group不为0时,表示这个data是标线的起点或终点,group一致的data组成一条标线。 ### MarkLineData.label -`LabelStyle` +[LabelStyle](#labelstyle) -文本样式。可设置position为Start、Middle和End在不同的位置显示文本。 [LabelStyle](#labelstyle) +文本样式。可设置position为Start、Middle和End在不同的位置显示文本。 ### MarkLineData.lineStyle -`LineStyle` +[LineStyle](#linestyle) -标线样式。 [LineStyle](#linestyle) +标线样式。 ### MarkLineData.name @@ -3100,13 +3094,13 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### MarkLineData.startSymbol -`SymbolStyle` +[SymbolStyle](#symbolstyle) -起始点的图形标记。 [SymbolStyle](#symbolstyle) +起始点的图形标记。 ### MarkLineData.type -`MarkLineType` +[MarkLineType](#marklinetype) 特殊的标线类型,用于标注最大值最小值等。 @@ -3144,7 +3138,7 @@ Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索 ### MarkLineData.zeroPosition -`bool` `default: false` +`bool` `false` 是否为坐标系原点。 @@ -3158,25 +3152,25 @@ Marquee style. It can be used for the DataZoom component. 选取框样式。可 ### MarqueeStyle.apply -`bool` `default: false` `v3.5.0` +`bool` `false` `v3.5.0` 选取框范围是否应用到DataZoom上。当为true时,框选结束后的范围即为DataZoom的选择范围。 ### MarqueeStyle.areaStyle -`AreaStyle` `v3.5.0` +[AreaStyle](#areastyle) `v3.5.0` -选取框区域填充样式。 [AreaStyle](#areastyle) +选取框区域填充样式。 ### MarqueeStyle.lineStyle -`LineStyle` `v3.5.0` +[LineStyle](#linestyle) `v3.5.0` -选取框区域边框样式。 [LineStyle](#linestyle) +选取框区域边框样式。 ### MarqueeStyle.realRect -`bool` `default: false` `v3.5.0` +`bool` `false` `v3.5.0` 是否选取实际框选区域。当为true时,以鼠标的其实点和结束点间的实际范围作为框选区域。 @@ -3190,7 +3184,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### MLValue.type -`MLValue.Type` +[MLValue.Type](#mlvaluetype) @@ -3204,7 +3198,6 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) `float` - ## Padding class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类: [TextPadding](#textpadding) @@ -3213,31 +3206,31 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类 ### Padding.bottom -`float` `default: 0` +`float` `0` 底部间距。 ### Padding.left -`float` `default: 2f` +`float` `2f` 左边间距。 ### Padding.right -`float` `default: 2f` +`float` `2f` 右部间距。 ### Padding.show -`bool` `default: true` +`bool` `true` show padding. 是否显示。 ### Padding.top -`float` `default: 0` +`float` `0` 顶部间距。 @@ -3263,19 +3256,19 @@ Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart ### ParallelCoord.bottom -`float` `default: 0.12f` +`float` `0.12f` grid 组件离容器下侧的距离。 ### ParallelCoord.left -`float` `default: 0.1f` +`float` `0.1f` grid 组件离容器左侧的距离。 ### ParallelCoord.orient -`Orient` +[Orient](#orient) 坐标轴朝向。默认为垂直朝向。 @@ -3286,19 +3279,19 @@ grid 组件离容器左侧的距离。 ### ParallelCoord.right -`float` `default: 0.08f` +`float` `0.08f` grid 组件离容器右侧的距离。 ### ParallelCoord.show -`bool` `default: true` +`bool` `true` 是否显示直角坐标系网格。 ### ParallelCoord.top -`float` `default: 0.22f` +`float` `0.22f` grid 组件离容器上侧的距离。 @@ -3308,7 +3301,7 @@ class in XCharts.Runtime / 继承自: [Serie](#serie) ### Pie.radiusGradient -`bool` `default: false` `v3.8.1` +`bool` `false` `v3.8.1` 是否开启半径方向的渐变效果。 @@ -3336,7 +3329,7 @@ class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem), [ISerieContai ### PolarCoord.indicatorLabelOffset -`float` `default: 30f` `v3.8.0` +`float` `30f` `v3.8.0` 指示器标签的偏移量。 @@ -3348,7 +3341,7 @@ class in XCharts.Runtime / 继承自: [CoordSystem](#coordsystem), [ISerieContai ### PolarCoord.show -`bool` `default: true` +`bool` `true` 是否显示极坐标。 @@ -3358,7 +3351,7 @@ class in XCharts.Runtime / 继承自: [Serie](#serie), [INeedSerieContainer](#in ### Radar.smooth -`bool` `default: false` `v3.2.0` +`bool` `false` `v3.2.0` 是否平滑曲线。平滑曲线时不支持区域填充颜色。 @@ -3388,7 +3381,7 @@ class in XCharts.Runtime / 继承自: [Serie](#serie) ### Ring.radiusGradient -`bool` `default: false` `v3.12.0` +`bool` `false` `v3.12.0` 是否开启半径方向的渐变效果。 @@ -3412,7 +3405,7 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.align -`Align` +[Align](#align) 组件水平方向对齐方式。 @@ -3424,37 +3417,37 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.animation -`AnimationStyle` +[AnimationStyle](#animationstyle) -起始动画。 [AnimationStyle](#animationstyle) +起始动画。 ### Serie.avoidLabelOverlap -`bool` `default: false` +`bool` `false` 在饼图且标签外部显示的情况下,是否启用防止标签重叠策略,默认关闭,在标签拥挤重叠的情况下会挪动各个标签的位置,防止标签间的重叠。 ### Serie.barGap -`float` `default: 0.1f` +`float` `0.1f` 不同系列的柱间距离。为百分比(如 '0.3f',表示柱子宽度的 30%) 如果想要两个系列的柱子重叠,可以设置 barGap 为 '-1f'。这在用柱子做背景的时候有用。 在同一坐标系上,此属性会被多个 'bar' 系列共享。此属性应设置于此坐标系中最后一个 'bar' 系列上才会生效,并且是对此坐标系中所有 'bar' 系列生效。 ### Serie.barMaxWidth -`float` `default: 0` `v3.5.0` +`float` `0` `v3.5.0` 柱条的最大宽度,默认为0为不限制最大宽度。支持设置成相对于类目宽度的百分比。 ### Serie.barPercentStack -`bool` `default: false` +`bool` `false` 柱形图是否为百分比堆积。相同stack的serie只要有一个barPercentStack为true,则就显示成百分比堆叠柱状图。 ### Serie.barType -`BarType` +[BarType](#bartype) 柱形图类型。 @@ -3466,19 +3459,19 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.barWidth -`float` `default: 0` +`float` `0` 柱条的宽度,不设时自适应。支持设置成相对于类目宽度的百分比。 ### Serie.barZebraGap -`float` `default: 2f` +`float` `2f` 斑马线的间距。 ### Serie.barZebraWidth -`float` `default: 4f` +`float` `4f` 斑马线的粗细。 @@ -3496,25 +3489,25 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.clickOffset -`bool` `default: true` +`bool` `true` 鼠标点击时是否开启偏移,一般用在PieChart图表中。 ### Serie.clip -`bool` `default: false` +`bool` `false` 是否裁剪超出坐标系部分的图形。 ### Serie.clockwise -`bool` `default: true` +`bool` `true` 是否顺时针。 ### Serie.colorBy -`SerieColorBy` `v3.2.0` +[SerieColorBy](#seriecolorby) `v3.2.0` 从主题中取色的策略。 @@ -3538,7 +3531,7 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.dataSortType -`SerieDataSortType` +[SerieDataSortType](#seriedatasorttype) 组件的数据排序。 @@ -3562,25 +3555,25 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.gridIndex -`int` `default: -1` `v3.8.0` +`int` `-1` `v3.8.0` 所使用的 layout 组件的 index。 默认为-1不指定index, 当为大于或等于0时, 为第一个layout组件的第index个格子。 ### Serie.ignore -`bool` `default: false` +`bool` `false` 是否开启忽略数据。当为 true 时,数据值为 ignoreValue 时不进行绘制。 ### Serie.ignoreLineBreak -`bool` `default: false` +`bool` `false` 忽略数据时折线是断开还是连接。默认false为连接。 ### Serie.ignoreValue -`double` `default: 0` +`double` `0` 忽略数据的默认值。当ignore为true才有效。 @@ -3598,19 +3591,19 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.itemStyle -`ItemStyle` +[ItemStyle](#itemstyle) -图形样式。 [ItemStyle](#itemstyle) +图形样式。 ### Serie.large -`bool` `default: true` +`bool` `true` 是否开启大数据量优化,在数据图形特别多而出现卡顿时候可以开启。 开启后配合 largeThreshold 在数据量大于指定阈值的时候对绘制进行优化。 缺点:优化后不能自定义设置单个数据项的样式,不能显示Label。 ### Serie.largeThreshold -`int` `default: 200` +`int` `200` 开启大数量优化的阈值。只有当开启了large并且数据量大于该阀值时才进入性能模式。 @@ -3622,13 +3615,13 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.lineStyle -`LineStyle` +[LineStyle](#linestyle) -线条样式。 [LineStyle](#linestyle) +线条样式。 ### Serie.lineType -`LineType` +[LineType](#linetype) 折线图样式类型。 @@ -3666,7 +3659,7 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.maxSize -`float` `default: 1f` +`float` `1f` 数据最大值 max 映射的宽度。 @@ -3684,7 +3677,7 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.minRadius -`float` `default: 0f` `v3.8.0` +`float` `0f` `v3.8.0` 最小半径。可用于限制玫瑰图的最小半径。 @@ -3696,25 +3689,25 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.minShowLabel -`bool` `default: false` `v3.10.0` +`bool` `false` `v3.10.0` 是否开启值小于指定值`minShowLabelValue`时不显示标签。 ### Serie.minShowLabelValue -`double` `default: 0` `v3.10.0` +`double` `0` `v3.10.0` 当开启`minShowLabel`时,值小于该值时不显示标签。 ### Serie.minSize -`float` `default: 0f` +`float` `0f` 数据最小值 min 映射的宽度。 ### Serie.orient -`Orient` +[Orient](#orient) 组件的朝向。 @@ -3725,31 +3718,31 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.parallelIndex -`int` `default: 0` +`int` `0` 所使用的 parallel coord 组件的 index。 ### Serie.placeHolder -`bool` `default: false` +`bool` `false` 占位模式。占位模式时,数据有效但不参与渲染和显示。 ### Serie.polarIndex -`int` `default: 0` +`int` `0` 所使用的 polar 组件的 index。 ### Serie.radarIndex -`int` `default: 0` +`int` `0` 雷达图所使用的 radar 组件的 index。 ### Serie.radarType -`RadarType` +[RadarType](#radartype) 雷达图类型。 @@ -3772,7 +3765,7 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.roseType -`RoseType` +[RoseType](#rosetype) 是否展示成南丁格尔图,通过半径区分数据大小。 @@ -3790,19 +3783,19 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.sampleAverage -`float` `default: 0` +`float` `0` 设定的采样平均值。当sampleType 为 Peak 时,用于和过滤数据的平均值做对比是取最大值还是最小值。默认为0时会实时计算所有数据的平均值。 ### Serie.sampleDist -`float` `default: 0` +`float` `0` 采样的最小像素距离,默认为0时不采样。当两个数据点间的水平距离小于改值时,开启采样,保证两点间的水平距离不小于改值。 ### Serie.sampleType -`SampleType` +[SampleType](#sampletype) 采样类型。当sampleDist大于0时有效。 @@ -3828,13 +3821,13 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.show -`bool` `default: true` +`bool` `true` 系列是否显示在图表上。 ### Serie.showAsPositiveNumber -`bool` `default: false` +`bool` `false` 将负数数值显示为正数。一般和`AxisLabel`的`showAsPositiveNumber`配合使用。仅在折线图和柱状图中有效。 @@ -3852,13 +3845,13 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.singleAxisIndex -`int` `default: 0` +`int` `0` 所使用的 singleAxis 组件的 index。 ### Serie.smoothLimit -`bool` `default: false` `v3.4.0` +`bool` `false` `v3.4.0` 是否限制曲线。当为true时,两个连续相同数值的数据间的曲线会限制为不超出数据点,和数据点是平直的。 @@ -3882,7 +3875,7 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.state -`SerieState` `v3.2.0` +[SerieState](#seriestate) `v3.2.0` 系列的默认状态。 @@ -3896,9 +3889,9 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.symbol -`SerieSymbol` +[SerieSymbol](#seriesymbol) -标记的图形。 [SerieSymbol](#seriesymbol) +标记的图形。 ### Serie.top @@ -3908,19 +3901,19 @@ class in XCharts.Runtime / 继承自: [BaseSerie](#baseserie), [IComparable](htt ### Serie.vesselIndex -`int` `default: 0` +`int` `0` 水位图所使用的 vessel 组件的 index。 ### Serie.xAxisIndex -`int` `default: 0` +`int` `0` 使用X轴的index。 ### Serie.yAxisIndex -`int` `default: 0` +`int` `0` 使用Y轴的index。 @@ -3980,7 +3973,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### SerieData.state -`SerieState` `v3.2.0` +[SerieState](#seriestate) `v3.2.0` 数据项的默认状态。 @@ -4026,19 +4019,19 @@ class in XCharts.Runtime / 继承自: [SymbolStyle](#symbolstyle), [ISerieDataCo ### SerieSymbol.dataIndex -`int` `default: 1` +`int` `1` 当sizeType指定为FromData时,指定的数据源索引。 ### SerieSymbol.dataScale -`float` `default: 1` +`float` `1` 当sizeType指定为FromData时,指定的倍数系数。 ### SerieSymbol.forceShowLast -`bool` `default: false` +`bool` `false` 是否强制显示最后一个图形标记。 @@ -4050,19 +4043,19 @@ class in XCharts.Runtime / 继承自: [SymbolStyle](#symbolstyle), [ISerieDataCo ### SerieSymbol.maxSize -`float` `default: 0f` `v3.3.0` +`float` `0f` `v3.3.0` 图形最大尺寸。只在sizeType为SymbolSizeType.FromData时有效。 ### SerieSymbol.minSize -`float` `default: 0f` `v3.3.0` +`float` `0f` `v3.3.0` 图形最小尺寸。只在sizeType为SymbolSizeType.FromData时有效。 ### SerieSymbol.repeat -`bool` `default: false` +`bool` `false` 图形是否重复。 @@ -4074,7 +4067,7 @@ class in XCharts.Runtime / 继承自: [SymbolStyle](#symbolstyle), [ISerieDataCo ### SerieSymbol.sizeType -`SymbolSizeType` +[SymbolSizeType](#symbolsizetype) 标记图形的大小获取方式。 @@ -4096,31 +4089,31 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### SerieTheme.candlestickBorderColor -`Color32` `default: Color32(235, 84, 84, 255)` +`Color32` `Color32(235, 84, 84, 255)` K线图阳线(跌)边框色 ### SerieTheme.candlestickBorderColor0 -`Color32` `default: Color32(71, 178, 98, 255)` +`Color32` `Color32(71, 178, 98, 255)` K线图阴线(跌)边框色 ### SerieTheme.candlestickBorderWidth -`float` `default: 1` +`float` `1` K线图边框宽度 ### SerieTheme.candlestickColor -`Color32` `default: Color32(235, 84, 84, 255)` +`Color32` `Color32(235, 84, 84, 255)` K线图阳线(涨)填充色 ### SerieTheme.candlestickColor0 -`Color32` `default: Color32(71, 178, 98, 255)` +`Color32` `Color32(71, 178, 98, 255)` K线图阴线(跌)填充色 @@ -4150,7 +4143,7 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### Settings.axisMaxSplitNumber -`float` `default: 50` `v3.1.0` +`float` `50` `v3.1.0` 坐标轴最大分隔段数。段数过大时可能会生成较多的label节点。 @@ -4162,7 +4155,7 @@ Base Pointer 材质球,设置后会影响Axis等。 ### Settings.cicleSmoothness -`float` `default: 2f` +`float` `2f` 圆形的平滑度。数越小圆越平滑,但顶点数也会随之增加。 @@ -4174,37 +4167,37 @@ Base Pointer 材质球,设置后会影响Axis等。 ### Settings.legendIconLineWidth -`float` `default: 2` +`float` `2` Line类型图例图标的线条宽度。 ### Settings.lineSegmentDistance -`float` `default: 3f` +`float` `3f` 线段的分割距离。普通折线图的线是由很多线段组成,段数由该数值决定。值越小段数越多,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。 ### Settings.lineSmoothness -`float` `default: 2f` +`float` `2f` When the area with gradient is filled, the larger the value, the worse the transition effect. ### Settings.lineSmoothStyle -`float` `default: 2.5f` +`float` `2.5f` 曲线平滑系数。通过调整平滑系数可以改变曲线的曲率,得到外观稍微有变化的不同曲线。 ### Settings.maxPainter -`int` `default: 10` +`int` `10` 设定的painter数量。 ### Settings.reversePainter -`bool` `default: false` +`bool` `false` Painter是否逆序。逆序时index大的serie最先绘制。 @@ -4216,8 +4209,7 @@ Serie Pointer 材质球,设置后会影响所有Serie。 ### Settings.show -`bool` `default: true` - +`bool` `true` ### Settings.topPainterMaterial @@ -4251,25 +4243,25 @@ class in XCharts.Runtime / 继承自: [Axis](#axis), [IUpdateRuntimeData](#iupda ### SingleAxis.bottom -`float` `default: 0.2f` +`float` `0.2f` 组件离容器下侧的距离。 ### SingleAxis.height -`float` `default: 50` +`float` `50` 坐标轴高。 ### SingleAxis.left -`float` `default: 0.1f` +`float` `0.1f` 组件离容器左侧的距离。 ### SingleAxis.orient -`Orient` +[Orient](#orient) 坐标轴朝向。默认为水平朝向。 @@ -4280,19 +4272,19 @@ class in XCharts.Runtime / 继承自: [Axis](#axis), [IUpdateRuntimeData](#iupda ### SingleAxis.right -`float` `default: 0.1f` +`float` `0.1f` 组件离容器右侧的距离。 ### SingleAxis.top -`float` `default: 0f` +`float` `0f` 组件离容器上侧的距离。 ### SingleAxis.width -`float` `default: 0` +`float` `0` 坐标轴宽。 @@ -4326,45 +4318,45 @@ Serie的状态样式。Serie的状态有正常,高亮,淡出,选中四种 ### StateStyle.areaStyle -`AreaStyle` +[AreaStyle](#areastyle) -区域样式。 [AreaStyle](#areastyle) +区域样式。 ### StateStyle.itemStyle -`ItemStyle` +[ItemStyle](#itemstyle) -图形样式。 [ItemStyle](#itemstyle) +图形样式。 ### StateStyle.label -`LabelStyle` +[LabelStyle](#labelstyle) -图形文本标签。 [LabelStyle](#labelstyle) +图形文本标签。 ### StateStyle.labelLine -`LabelLine` +[LabelLine](#labelline) -图形文本引导线样式。 [LabelLine](#labelline) +图形文本引导线样式。 ### StateStyle.lineStyle -`LineStyle` +[LineStyle](#linestyle) -折线样式。 [LineStyle](#linestyle) +折线样式。 ### StateStyle.show -`bool` `default: true` +`bool` `true` 是否启用高亮样式。 ### StateStyle.symbol -`SerieSymbol` +[SerieSymbol](#seriesymbol) -标记样式。 [SerieSymbol](#seriesymbol) +标记样式。 ## SubTitleTheme @@ -4384,13 +4376,13 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类 ### SymbolStyle.gap -`float` `default: 0` +`float` `0` 图形标记和线条的间隙距离。 ### SymbolStyle.height -`float` `default: 0f` +`float` `0f` 图形的高。 @@ -4408,25 +4400,25 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类 ### SymbolStyle.offset -`Vector2` `default: Vector2.zero` +`Vector2` `Vector2.zero` 图形的偏移。 ### SymbolStyle.show -`bool` `default: true` +`bool` `true` 是否显示标记。 ### SymbolStyle.size -`float` `default: 0f` +`float` `0f` 标记的大小。 ### SymbolStyle.type -`SymbolType` +[SymbolType](#symboltype) 标记类型。 @@ -4449,7 +4441,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) / 子类 ### SymbolStyle.width -`float` `default: 0f` +`float` `0f` 图形的宽。 @@ -4461,19 +4453,19 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### TextLimit.enable -`bool` `default: false` +`bool` `false` 是否启用文本自适应。 [default:true] ### TextLimit.gap -`float` `default: 1` +`float` `1` 两边留白像素距离。 [default:10f] ### TextLimit.maxWidth -`float` `default: 0` +`float` `0` Clipping occurs when the width of the text is greater than this value. @@ -4503,19 +4495,19 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### TextStyle.autoAlign -`bool` `default: true` +`bool` `true` 文本是否让系统自动选对齐方式。为false时才会用alignment。 ### TextStyle.autoColor -`bool` `default: false` +`bool` `false` 是否开启自动颜色。当开启时,会自动设置颜色。 ### TextStyle.autoWrap -`bool` `default: false` +`bool` `false` 是否自动换行。 @@ -4533,7 +4525,7 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### TextStyle.fontSize -`int` `default: 0` +`int` `0` 文本字体大小。 [default: 18] @@ -4545,19 +4537,19 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### TextStyle.lineSpacing -`float` `default: 1f` +`float` `1f` 行间距。 [default: 1f] ### TextStyle.rotate -`float` `default: 0` +`float` `0` 文本的旋转。 [default: `0f`] ### TextStyle.show -`bool` `default: true` +`bool` `true` 文本的相关设置。 @@ -4565,7 +4557,6 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) `TextAlignmentOptions` - ### TextStyle.tMPFont `TMP_FontAsset` @@ -4576,12 +4567,10 @@ TextMeshPro字体。 `FontStyles` - ### TextStyle.tMPSpriteAsset `TMP_SpriteAsset` `v3.1.0` - ## Theme class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.com/ScriptReference/30_search.html?q=ScriptableObject) @@ -4590,9 +4579,7 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co ### Theme.axis -`AxisTheme` - - [AxisTheme](#axistheme) +[AxisTheme](#axistheme) ### Theme.backgroundColor @@ -4608,9 +4595,7 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co ### Theme.common -`ComponentTheme` - - [ComponentTheme](#componenttheme) +[ComponentTheme](#componenttheme) ### Theme.contrastColor @@ -4620,9 +4605,7 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co ### Theme.dataZoom -`DataZoomTheme` - - [DataZoomTheme](#datazoomtheme) +[DataZoomTheme](#datazoomtheme) ### Theme.font @@ -4632,21 +4615,15 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co ### Theme.legend -`LegendTheme` - - [LegendTheme](#legendtheme) +[LegendTheme](#legendtheme) ### Theme.serie -`SerieTheme` - - [SerieTheme](#serietheme) +[SerieTheme](#serietheme) ### Theme.subTitle -`SubTitleTheme` - - [SubTitleTheme](#subtitletheme) +[SubTitleTheme](#subtitletheme) ### Theme.themeName @@ -4656,7 +4633,7 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co ### Theme.themeType -`ThemeType` +[ThemeType](#themetype) 主题类型。 @@ -4669,9 +4646,7 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co ### Theme.title -`TitleTheme` - - [TitleTheme](#titletheme) +[TitleTheme](#titletheme) ### Theme.tMPFont @@ -4681,15 +4656,11 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co ### Theme.tooltip -`TooltipTheme` - - [TooltipTheme](#tooltiptheme) +[TooltipTheme](#tooltiptheme) ### Theme.visualMap -`VisualMapTheme` - - [VisualMapTheme](#visualmaptheme) +[VisualMapTheme](#visualmaptheme) ## ThemeStyle @@ -4707,32 +4678,29 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) `List` - ### ThemeStyle.customFont `Font` - ### ThemeStyle.enableCustomTheme -`bool` `default: false` +`bool` `false` 是否自定义主题颜色。当设置为true时,可以用‘sync color to custom’同步主题的颜色到自定义颜色。也可以手动设置。 ### ThemeStyle.sharedTheme -`Theme` +[Theme](#theme) -主题配置。 [Theme](#theme) +主题配置。 ### ThemeStyle.show -`bool` `default: true` - +`bool` `true` ### ThemeStyle.transparentBackground -`bool` `default: false` +`bool` `false` 是否透明背景颜色。当设置为true时,不绘制背景颜色。 @@ -4744,33 +4712,33 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent), [IPropert ### Title.itemGap -`float` `default: 0` +`float` `0` 主副标题之间的间距。 ### Title.labelStyle -`LabelStyle` +[LabelStyle](#labelstyle) -主标题文本样式。 [LabelStyle](#labelstyle) +主标题文本样式。 ### Title.location -`Location` +[Location](#location) -标题显示位置。 [Location](#location) +标题显示位置。 ### Title.show -`bool` `default: true` +`bool` `true` 是否显示标题组件。 ### Title.subLabelStyle -`LabelStyle` +[LabelStyle](#labelstyle) -副标题文本样式。 [LabelStyle](#labelstyle) +副标题文本样式。 ### Title.subText @@ -4802,7 +4770,7 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### Tooltip.alwayShowContent -`bool` `default: false` +`bool` `false` 是否触发后一直显示提示框浮层。 @@ -4826,13 +4794,13 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### Tooltip.borderColor -`Color32` `default: Color32(230, 230, 230, 255)` +`Color32` `Color32(230, 230, 230, 255)` 边框颜色。 ### Tooltip.borderWidth -`float` `default: 2f` +`float` `2f` 边框线宽。 @@ -4844,25 +4812,25 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### Tooltip.fixedHeight -`float` `default: 0` +`float` `0` 固定高度。比 minHeight 优先。 ### Tooltip.fixedWidth -`float` `default: 0` +`float` `0` 固定宽度。比 minWidth 优先。 ### Tooltip.fixedX -`float` `default: 0f` +`float` `0f` 固定X位置的坐标。 ### Tooltip.fixedY -`float` `default: 0.7f` +`float` `0.7f` 固定Y位置的坐标。 @@ -4874,7 +4842,7 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### Tooltip.ignoreDataShow -`bool` `default: false` +`bool` `false` 是否显示忽略数据在tooltip上。 @@ -4886,15 +4854,15 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### Tooltip.itemHeight -`float` `default: 25f` +`float` `25f` 数据项文本的高。 ### Tooltip.lineStyle -`LineStyle` +[LineStyle](#linestyle) -指示线样式。 [LineStyle](#linestyle) +指示线样式。 ### Tooltip.marker @@ -4904,13 +4872,13 @@ serie的符号标志。 ### Tooltip.minHeight -`float` `default: 0` +`float` `0` 最小高度。如若 fixedHeight 设有值,优先取 fixedHeight。 ### Tooltip.minWidth -`float` `default: 0` +`float` `0` 最小宽度。如若 fixedWidth 设有值,优先取 fixedWidth。 @@ -4922,25 +4890,25 @@ serie的符号标志。 ### Tooltip.offset -`Vector2` `default: Vector2(18f, -25f)` +`Vector2` `Vector2(18f, -25f)` 提示框相对于鼠标位置的偏移。 ### Tooltip.paddingLeftRight -`int` `default: 10` +`int` `10` 左右边距。 ### Tooltip.paddingTopBottom -`int` `default: 10` +`int` `10` 上下边距。 ### Tooltip.position -`Tooltip.Position` `v3.3.0` +[Tooltip.Position](#tooltipposition) `v3.3.0` 显示位置类型。 @@ -4953,13 +4921,13 @@ serie的符号标志。 ### Tooltip.show -`bool` `default: true` +`bool` `true` 是否显示提示框组件。 ### Tooltip.showContent -`bool` `default: true` +`bool` `true` 是否显示提示框浮层,默认显示。只需tooltip触发事件或显示axisPointer而不需要显示内容时可配置该项为false。 @@ -4971,19 +4939,19 @@ serie的符号标志。 ### Tooltip.titleHeight -`float` `default: 25f` +`float` `25f` 标题文本的高。 ### Tooltip.titleLabelStyle -`LabelStyle` +[LabelStyle](#labelstyle) -标题的文本样式。 [LabelStyle](#labelstyle) +标题的文本样式。 ### Tooltip.trigger -`Tooltip.Trigger` +[Tooltip.Trigger](#tooltiptrigger) 触发类型。 @@ -4996,7 +4964,7 @@ serie的符号标志。 ### Tooltip.triggerOn -`Tooltip.TriggerOn` `v3.11.0` +[Tooltip.TriggerOn](#tooltiptriggeron) `v3.11.0` 触发条件。 @@ -5007,7 +4975,7 @@ serie的符号标志。 ### Tooltip.type -`Tooltip.Type` +[Tooltip.Type](#tooltiptype) 提示框指示器类型。 @@ -5049,7 +5017,7 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) ### TooltipTheme.lineType -`LineStyle.Type` +[LineStyle.Type](#linestyletype) 坐标轴线类型。 @@ -5064,7 +5032,7 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) ### TooltipTheme.lineWidth -`float` `default: 1f` +`float` `1f` 指示线线宽。 @@ -5074,19 +5042,17 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### UIComponentTheme.sharedTheme -`Theme` +[Theme](#theme) -主题配置。 [Theme](#theme) +主题配置。 ### UIComponentTheme.show -`bool` `default: true` - +`bool` `true` ### UIComponentTheme.transparentBackground -`bool` `default: false` - +`bool` `false` ## ViewControl @@ -5098,13 +5064,13 @@ class in XCharts.Runtime / 继承自: [ChildComponent](#childcomponent) ### ViewControl.alpha -`float` `default: 90f` +`float` `90f` 视角在x-z平面的角度。 ### ViewControl.beta -`float` `default: 55f` +`float` `55f` 视角在y-z平面的角度。 @@ -5116,31 +5082,31 @@ class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent) ### VisualMap.autoMinMax -`bool` `default: true` +`bool` `true` Automatically set min, Max value 自动设置min,max的值 ### VisualMap.borderWidth -`float` `default: 0` +`float` `0` 边框线宽,单位px。 ### VisualMap.calculable -`bool` `default: false` +`bool` `false` 是否显示拖拽用的手柄(手柄能拖拽调整选中范围)。 ### VisualMap.dimension -`int` `default: -1` +`int` `-1` Starting at 1, the default is 0 to take the last dimension in data. ### VisualMap.hoverLink -`bool` `default: true` +`bool` `true` Conversely, when the mouse hovers over a graphic element in a diagram, the corresponding value of the visualMap component is triangulated in the corresponding position. @@ -5152,43 +5118,43 @@ Conversely, when the mouse hovers over a graphic element in a diagram, the corre ### VisualMap.itemGap -`float` `default: 10f` +`float` `10f` 每个图元之间的间隔距离。 ### VisualMap.itemHeight -`float` `default: 140f` +`float` `140f` 图形的高度,即颜色条的高度。 ### VisualMap.itemWidth -`float` `default: 20f` +`float` `20f` 图形的宽度,即颜色条的宽度。 ### VisualMap.location -`Location` +[Location](#location) -组件显示的位置。 [Location](#location) +组件显示的位置。 ### VisualMap.max -`double` `default: 0` +`double` `0` 范围最大值 ### VisualMap.min -`double` `default: 0` +`double` `0` 范围最小值 ### VisualMap.orient -`Orient` +[Orient](#orient) 布局方式是横还是竖。 @@ -5211,13 +5177,13 @@ Conversely, when the mouse hovers over a graphic element in a diagram, the corre ### VisualMap.realtime -`bool` `default: true` +`bool` `true` 拖拽时,是否实时更新。 ### VisualMap.selectedMode -`VisualMap.SelectedMode` +[VisualMap.SelectedMode](#visualmapselectedmode) 选择模式。 @@ -5228,25 +5194,25 @@ Conversely, when the mouse hovers over a graphic element in a diagram, the corre ### VisualMap.serieIndex -`int` `default: 0` +`int` `0` 影响的serie索引。 ### VisualMap.show -`bool` `default: true` +`bool` `true` 组件是否生效。 ### VisualMap.showUI -`bool` `default: false` +`bool` `false` 是否显示组件。如果设置为 false,不会显示,但是数据映射的功能还存在。 ### VisualMap.splitNumber -`int` `default: 5` +`int` `5` 对于连续型数据,自动平均切分成几段,默认为0时自动匹配inRange颜色列表大小。 @@ -5264,7 +5230,7 @@ Conversely, when the mouse hovers over a graphic element in a diagram, the corre ### VisualMap.type -`VisualMap.Type` +[VisualMap.Type](#visualmaptype) 组件类型。 @@ -5275,13 +5241,13 @@ Conversely, when the mouse hovers over a graphic element in a diagram, the corre ### VisualMap.workOnArea -`bool` `default: false` +`bool` `false` 组件是否对LineChart的AreaStyle有效。 ### VisualMap.workOnLine -`bool` `default: true` +`bool` `true` 组件是否对LineChart的LineStyle有效。 @@ -5337,7 +5303,7 @@ class in XCharts.Runtime / 继承自: [ComponentTheme](#componenttheme) ### VisualMapTheme.triangeLen -`float` `default: 20f` +`float` `20f` 可视化组件的调节三角形边长。 @@ -5369,7 +5335,7 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co ### XCSettings.axisLineType -`LineStyle.Type` +[LineStyle.Type](#linestyletype) @@ -5384,12 +5350,11 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co ### XCSettings.axisLineWidth -`float` `default: 0.8f` - +`float` `0.8f` ### XCSettings.axisSplitLineType -`LineStyle.Type` +[LineStyle.Type](#linestyletype) @@ -5404,165 +5369,133 @@ class in XCharts.Runtime / 继承自: [ScriptableObject](https://docs.unity3d.co ### XCSettings.axisSplitLineWidth -`float` `default: 0.8f` - +`float` `0.8f` ### XCSettings.axisTickLength -`float` `default: 5f` - +`float` `5f` ### XCSettings.axisTickWidth -`float` `default: 0.8f` - +`float` `0.8f` ### XCSettings.cicleSmoothness -`float` `default: 2f` - +`float` `2f` ### XCSettings.customThemes `List` - ### XCSettings.dataZoomBorderWidth -`float` `default: 0.5f` - +`float` `0.5f` ### XCSettings.dataZoomDataLineWidth -`float` `default: 0.5f` - +`float` `0.5f` ### XCSettings.editorShowAllListData -`bool` `default: false` - +`bool` `false` ### XCSettings.font `Font` - ### XCSettings.fontSizeLv1 -`int` `default: 28` +`int` `28` 一级字体大小。 ### XCSettings.fontSizeLv2 -`int` `default: 24` - +`int` `24` ### XCSettings.fontSizeLv3 -`int` `default: 20` - +`int` `20` ### XCSettings.fontSizeLv4 -`int` `default: 18` - +`int` `18` ### XCSettings.gaugeAxisLineWidth -`float` `default: 15f` - +`float` `15f` ### XCSettings.gaugeAxisSplitLineLength -`float` `default: 15f` - +`float` `15f` ### XCSettings.gaugeAxisSplitLineWidth -`float` `default: 0.8f` - +`float` `0.8f` ### XCSettings.gaugeAxisTickLength -`float` `default: 5f` - +`float` `5f` ### XCSettings.gaugeAxisTickWidth -`float` `default: 0.8f` - +`float` `0.8f` ### XCSettings.lang -`Lang` - - [Lang](#lang) +[Lang](#lang) ### XCSettings.lineSegmentDistance -`float` `default: 3f` - +`float` `3f` ### XCSettings.lineSmoothness -`float` `default: 2f` - +`float` `2f` ### XCSettings.lineSmoothStyle -`float` `default: 3f` - +`float` `3f` ### XCSettings.maxPainter -`int` `default: 10` - +`int` `10` ### XCSettings.serieCandlestickBorderWidth -`float` `default: 1f` - +`float` `1f` ### XCSettings.serieLineSymbolSize -`float` `default: 5f` - +`float` `5f` ### XCSettings.serieLineWidth -`float` `default: 1.8f` - +`float` `1.8f` ### XCSettings.serieScatterSymbolSize -`float` `default: 20f` - +`float` `20f` ### XCSettings.serieSelectedRate -`float` `default: 1.3f` - +`float` `1.3f` ### XCSettings.tMPFont `TMP_FontAsset` - ### XCSettings.tootipLineWidth -`float` `default: 0.8f` - +`float` `0.8f` ### XCSettings.visualMapBorderWidth -`float` `default: 0f` - +`float` `0f` ### XCSettings.visualMapTriangeLen -`float` `default: 20f` - +`float` `20f` ## YAxis From f9b1eadd401d80655c096972c47a3d7496c4a548 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Tue, 24 Sep 2024 18:28:21 +0800 Subject: [PATCH 30/34] =?UTF-8?q?=E5=AE=8C=E5=96=84`Legend`=E7=9A=84`forma?= =?UTF-8?q?tter`=E5=AF=B9=E5=A4=9ASerie=E7=9A=84=E6=94=AF=E6=8C=81=20(#332?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 1 + Runtime/Component/Legend/LegendHandler.cs | 9 ++++++--- Runtime/Serie/SeriesHelper.cs | 15 +++++++++++++++ 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index cf184ab4..a6301656 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -76,6 +76,7 @@ slug: /changelog ## master +* (2024.09.24) 完善`Legend`的`formatter`对多Serie的支持 (#332) * (2024.09.22) 调整`Documentation`文档显示样式 * (2024.09.09) 增加`numericFormatter`对`date`和`time`的支持 * (2024.09.03) 完善`AreaStyle`的`origin`参数设置区域填充起始位置 diff --git a/Runtime/Component/Legend/LegendHandler.cs b/Runtime/Component/Legend/LegendHandler.cs index f42ec6e9..aa830414 100644 --- a/Runtime/Component/Legend/LegendHandler.cs +++ b/Runtime/Component/Legend/LegendHandler.cs @@ -87,11 +87,14 @@ namespace XCharts.Runtime ChartHelper.HideAllObject(legendObject); if (!legend.show) return; var textLimitInitFlag = false; + var isAnySerieColorByData = SeriesHelper.IsAnyColorByDataSerie(chart.series); for (int i = 0; i < datas.Count; i++) { if (!SeriesHelper.IsLegalLegendName(datas[i])) continue; string legendName = datas[i]; - var legendContent = GetFormatterContent(legend, i, datas[i]); + var serieIndex = isAnySerieColorByData ? 0 : i; + var dataIndex = isAnySerieColorByData ? i : 0; + var legendContent = GetFormatterContent(legend, dataIndex, datas[i], serieIndex); if (legend.textLimit.enable) legendContent = legend.textLimit.GetLimitContent(legendContent); var readIndex = chart.m_LegendRealShowName.IndexOf(datas[i]); @@ -158,7 +161,7 @@ namespace XCharts.Runtime legend.refreshComponent(); } - private string GetFormatterContent(Legend legend, int dataIndex, string category) + private string GetFormatterContent(Legend legend, int dataIndex, string category, int serieIndex) { #pragma warning disable 0618 if (string.IsNullOrEmpty(legend.formatter) && string.IsNullOrEmpty(legend.labelStyle.formatter)) @@ -168,7 +171,7 @@ namespace XCharts.Runtime var formatter = string.IsNullOrEmpty(legend.labelStyle.formatter) ? legend.formatter : legend.labelStyle.formatter; var content = formatter.Replace("{name}", category); content = content.Replace("{value}", category); - var serie = chart.GetSerie(0); + var serie = chart.GetSerie(serieIndex); FormatterHelper.ReplaceContent(ref content, dataIndex, legend.labelStyle.numericFormatter, serie, chart, category); return content; } diff --git a/Runtime/Serie/SeriesHelper.cs b/Runtime/Serie/SeriesHelper.cs index fc65b45b..ed6a0ab7 100644 --- a/Runtime/Serie/SeriesHelper.cs +++ b/Runtime/Serie/SeriesHelper.cs @@ -132,6 +132,21 @@ namespace XCharts.Runtime return false; } + /// + /// check if series has any serie which is color by data. + /// || 是否有任何一个系列是按数据颜色的。 + /// + /// + /// + public static bool IsAnyColorByDataSerie(List series) + { + foreach (var serie in series) + { + if (serie.defaultColorBy == SerieColorBy.Data) return true; + } + return false; + } + /// /// 获得上一个同堆叠且显示的serie。 /// From df4223421f9e654bbc5001293684674c94a8e1fc Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Fri, 27 Sep 2024 19:08:25 +0800 Subject: [PATCH 31/34] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=95=99=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 1 + Documentation~/zh/img/tutorial01_axisdata.png | Bin 0 -> 23064 bytes .../zh/img/tutorial01_seriedata.png | Bin 0 -> 26370 bytes Documentation~/zh/tutorial01.md | 167 ++++++++++++------ 4 files changed, 116 insertions(+), 52 deletions(-) create mode 100644 Documentation~/zh/img/tutorial01_axisdata.png create mode 100644 Documentation~/zh/img/tutorial01_seriedata.png diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index a6301656..4c634e2e 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -76,6 +76,7 @@ slug: /changelog ## master +* (2024.09.27) 完善`5分钟教程` * (2024.09.24) 完善`Legend`的`formatter`对多Serie的支持 (#332) * (2024.09.22) 调整`Documentation`文档显示样式 * (2024.09.09) 增加`numericFormatter`对`date`和`time`的支持 diff --git a/Documentation~/zh/img/tutorial01_axisdata.png b/Documentation~/zh/img/tutorial01_axisdata.png new file mode 100644 index 0000000000000000000000000000000000000000..8c4910aff32ac672f731a2d7ca7ff94646cfc131 GIT binary patch literal 23064 zcmZ^~byOQ))HU4Vt_f1CP$YP9ZPDP8;7$ppXp6fQEetNjHMo1Rq9wRH6ljY(g(5Bb z@_XLz`Tl#eR@O}Jx_9QznX}J6ci)ppn1&)D-ZQ)>Po5AeE6Hm;d4dK!e*JOKA6vp+ z6)-#=pfEKZXm4+CZEfB5_I6o$#n8}DPiJRKOKVb6(qsF~%uGgR*2SMcy1KfUn3z#f zQ4es$yLa!ryu2QCtsbQH#U&)RK4;7Zgl}Hf)jwVk$4yH^yWrt}J_~&vv?WiT82Tv7 z%jkGLJ^cJMsep?hJT>ucJPX0-?}xyH)Q?8*+pnsQSEtOpzjK6t#MAuYM?m;0ik0fw z^+CqI=W88*zmM(U?n}3sTmG|hWYvn)A0tg3LHV<)Phy1-#DPgY}~zoBZ0|=)e2Y{c6_~ z>KYV~%K&7c@#_kvUtd5%{(gBvdWG1QpSfyHU_{PB5q(+t9&_>Z`xxNgsT8aNJ%vAf z@J4^lJ(y^6H;N_4OD39HZFj~IPxlHwWUxdqD(Lr$=NR-yd5b2Yc<8J+-4q=nGS?ih z8j6&QDbVi}gYLHg?^CITB>Yflz7n1ryAg8ai?rtJEog(j7Q2kfnMrJz8hO(@iP=(z zH0S3I!)}ZqsgjQ3mxfgnM9M@7=`+tyiB+>5WUx|XE3W@OF;YHP4c}4s?kCCmRroCu z-@8Z)?p8J^Swn!3OVCl$Fw0OqzLS6GtbCReX$Cs*jKv4uP#T-mF+rXApqz)1;C+l~ zqRMt%Q@%fl0^SM$nTBj(!aVI0h274`o{D0a_m;QH!Q7}gBkDP$5J1%XO2I z!S$#Q3RBG6x7XFXezVtHyx%slfk0&^N;t^00o9`CRMwL-ItB4g;s|CFY8m$SUpM?@^PZEYV&cP6n%Az z>EE3DE`}eM6+?~Lmir7)PDI{32iaSpv+@Qm#Hs>LROFAGBAbUWZ&X*kpn&2O*@! zAX=BI7@S^4{*GD}_onDJI6ht76FR1Kb!k-$kjvR z!1&`2Yl{v!fwbq7+aKE>|C|U{tZuoSD6b!)7x4W&NwsT#A49~g zU8C1VJnyQm(S!cF?;b=4iou*CZLqNw30*3V0xi4Hq2t=^2Mm5R8U590t}xu_W!L$=HmmLAmRE2I3EKd~-0 z4I~5K;c0(u;g!{pieIfx#~myu<>Zjz0B?JLGgxxW=zF4&)7LjPG02DiZT zC5EzP>OL?uegWA-;lsR;I0+E9(h81eMlp2;dqH$;q)Yf3$#^;BItZcJW2j%q)t*|k z&BXDhy7Xp>0t%5i1EGZF;cB#6i5WbG`=y$)Ouf=|U9klak7CHP@v$E(SWwqEM5hd2 zQL@0C3~E;8fq)-Cro*E(rv@oq067MLc+g`9K_pkIL46RBy;ITcM*$o{7 z=a(`V6|ZHU<%q{3e{=`i zFo~;;GJXa__2GrRWZSiQX|ztZ)uodBsl6_2yvkN(JL#5=SeY4|8YH5r7C^S!3OG!G zMh-9|5iol*lQb&B=UeZgaXMW}`K9v1(OX@wy}k0p&B2lQXqCl!n94JxbeerQzrEyboL%BEMGQv_5Er zpeAYJS3wFv3cpzh-1Y1J2PPdX^2>p{R%l+58?U7Y1Ognp={=x2M{?$bsGCVwG{?8# zH>DM{r~=3rXXAt(UagZ~g2f^pad5YnWy_~NYa%uJ#33^e1lKM=t{UEt%=6Tx->B@L zqe-*|4W<~sUjnazLm?W*dVd^b_Rd-;!6&wJXe}W$f_+AC7Rm;D%QJci?$s-`2Gv-# z3xVLoMun+FVl)~~WAB|0)se1*P)HVf=9=&0>j*;N;-sV-m6@43vwwGSAjGJF$R62k zqe~N_SQbp}qO%$XH|XrdlF)?2I>+F|$LHl)qc0pN7l!R}c84T2~BRzNWoQ#zkp7Mehy*7Tfh zyoG%-oaLJn>`liuK9Fw9G_FO-l7l(0#{32Ch!d#x*_iy1Dsc>$7>F|UD3v$(6y`y` zD;Ms{KoA+mpoYaaxN}NHO89^d(9{WXOC$}QU1Js(fgRQeV7B$yfH>GIag_0@+L#pB zN5QB`Rug!%)&mCs6)!YHch;>M(dzKEEL{fe1|it8W#B+nMxJaaB3K8mc1WrJRWU&i zRKe-O*Kg2c$X|GeQEdQsqqTxYygyO*)}~W{tGLj~1d-a^fk83keY1MqMQ4*>IxN1q~NKWmA!JorimqNDE?W=W7`djL4QL)~FR zaji~I%BESaslqhsbb=a0BFBY5TY+JnMvn$qzy)dNydO=~3dVNsdecq8^V&5uYx_ea zC4RA&`y^Kog!Vf5X*QvWO8Fhc;(O*}gk$qAkU{WfOP{s{ji-%0pZ@r!1-IumllX1Q zcq^{Go^^Woy5JH#yL}HEvThNP^Q3KHLa2Qmrg+x}2KP&4J}d}6nlLy2Zye4XxMXAt z+2up~gXl*Pa@gzoq3dXire}mVsY`6fbNk_+j+B~2>OUv{ZDB%CHag86%##oVRT7;w z4Mj)gTTe?nmo`v5`9TMznStp;1z?rTti*D!wh;X2&>cwnME>|0H8$|`PtlbEf%;H4 zBgh%<7!Z&PgB^Ad%jKrNCC-Cn_9Ky>a2^O^es1g_q9`dFvcr|{g{oBj#dd+sj<~EX zn@jYc+qbgi)m~-SS!lkQ)P;s}$Hx#Q4wN z>yK0ItIs>*0tdYy=e`l}fU^Q(x361R%<`Hdk#*u}QRi z%gZ8x82pmkq(&X}0DzWMujXyLFepR4)w$|_GM{q)D``sK`W+KU zl@@Tlaug>u;jsn=OBQLt1hu}9Cv7Fl#ydH-5UIc&Ml7h@Vv6yL$qEgUM3Fl%*)%Ry zQLLvE=KD_pL7wi-5lzn)MB}~i7_V&m_QKWQ4X&JkeeY+6JG2G4C9e(urXXI|CdKwV zs`|kzg#!%W4+FReZ^0e+-+CIWHXJ0$RyL<`-vS_#17xPkIET@ShqsTU?)wFJ4lHQA zCSMnX*mIY?9gBZVKVuSDe;(fL1-)vD?*89 z_?g&0MmFyqT$SIENySv&R*9XZF9;|_2(v#gu)G(KW-8~Lr@%}xg@ay*Pmr3V&@=DH z%oD>vlfbOyj_OeBWU^{bG=+@_9KsjHDVsvTxdVF`*U>sT^0RvSy~w>6%;`S-c5_7| z3>}*>KGA`>M85$AFpcI8QMrrlu*RQ+8fD|Umu(s&)C*I16qVlyn46?}rtb?s`QBY! zGZyGXxzMvPe`mQuv?#Se_HlqXAW6!)yP)0wG&IhP;7fDjT+YH72Jp7xMAsKX2UIoD ziSmnGJ6AX$0P^rngm^tVDvkL*xeNz6xAhxIrdUljjyiSR>i+bYT)t308dzQZ=}Ub2 zr<=G5Nf>`<0a{JWz!TO7Wmy~r>kB}ka6Q=^x|A8e(w%=BUu%_IeP=d~gex@iIBW5b z_&=a$9<=vmMzv2~maT4+Ue1h){B!?#%=Zu&`(5?QY51mjk$e93>l3eDa4KPAR(`&X zC*2}V)i?gudqxKC9x{7;{C0!(kMHq6XdZnX4WKbdJpO=l(;Y&)NZ8U<(%!LiLST}6 z!($)#@45ZLirb9|{sA>8JJOxY;KAqjD&(D}E+ls=?+3+qydCr}jVxa#`~}GvFsogw z$R|!$UpVkMOVB%RcT(4NJzmJ+*ge(N_a6k`@yFcX%~e~_17p6- z@N2u($Y#Z<>(rUR!_W9Ge>e!jK0W8-hZ2m|J~Wx(9`-3`32XQUPG^uyNlQkLr51F# zr&+NP#Ui8FiQRPpQ5Xm%>QCSfe%nO})p=#J47o#NTohC~kb zFM_^6n6`%z*&7xUa`($=k**rvYIrmQn@35~kYTm<_S;w3T^Jfkxqih-HJ|ex59B(J z1yiru9wCpga6>a)|B1t7uZONaNoB~PK<jY} z6xkx*?k}LztikVi=51DicmEv(Z=g48LwZq?-$i)NboQ@SLVXKT{*_YVJ97!r;$~=F zD>5LB9AqjQN9A8mkZg1pE+m_yhDt}sFJ7=YfE;fR4Ty6 z0UvqxF$qkN{nifQ+odVd?Mt%!ZB#qXpZ)j6`U35-|A0I6b#3j;>-!HN)H?GC!W}BZ z2k~a6mT*KWDQJm(KEJG9yw6U`gIG&n&TLLpQ-ysM%Y)$MCLu-7(aC5ET3ddA<)C=z z60jNawI_KvLHNLPh{Eq_479>9V4c?qO3H^#F)TSydHxhzf+cq6BV}e|CH42KwZ1OK ze9op)0Dh#?FBeK&+Myae4`b*;-Uh2sVt^H zofnG=wIolMsE=Vhu^ zy;HbMVx1~WnvtFJQC6XXScees#Dy!5Yq$H~M(&FP^)e}&7Z$o*I!14<`F{gE8+!Py z_p5qchjm~t(GlX^{jzp=Xwi%K1QV{(r*`=YI{jlTk(T&9J}Wn6`Ccr`e?Oe3MKCO- zW-6DkJwL48n?iKqt#qNYw39STWUH>tG7bJoIcQir&rCys2Avrs$~R$42*9@=oN5 zPtPiUuFqk!ucX(vo6l?hm74UfQl>Lg@V>bV;kG#!1~24RnUF*Hsk20Y<$Y>u+f|X% zKuBEd`sDZBMF`XMU-yS!(xg49FK5juVq=*S#sW&45yFBn!8KA6=?*UI_UxJw=Q(TK z$<_(~igdF6K)5gkqM&KyNHj@Qh?3Z_XUGRTKs=u z0QT2|h0I!i2r$@YTN-C3P3mU>rFvI*fnM6Y3s&YWtd!GP)$|L~n`?vg6fl+y8dq7EhlSKuosnsV})c zF4oCib6F8Te6?fC?jYqfEh)rK z3J6UX0}&}?!Rk+gkya^rYT@u@7GG5Z@r&?7_OWW5$gS1dN7Lxsz>^E@Er-`^0~?1k z8dUNwrkYzFqRlphugw#Y>QHC2%vTp{iQnwHIDyE~lC?LuyY9H-r>;N8!WuYpr4AK1;sNs<1r?|7rT>=HmF% z&mFn>gKW;GeZ8Re=DK?p{l1E4E6`fq(a7vqo6R%xMW)zby;A8S7PFFVCrA>xHKmh z7oo|vy!;rN)hwn1(sri7{Tin&3@S@b^Qv7`^o7e0_GZ@>NSreS>hmCZ zLLhsa)>%@YGDxpjTyyWr{o~>h@h+pdZ_-zrsGJg}(=~IX%4%1fL+)0e)>>%te$4p| zp9YjvP+xBJEREI_kNRR=36`vrYiD#N(~D>sx?cCKwE;nYLKymL_d3`HW{)wr(_02R z8H0CVTBI*iF-+mn0)QDmoeoGf9v(@kbkE7?OymRC=VIZbQUA^EI$efd5&#+I+@&m& zCc5)If|3piM5VF=LqVK9+>l;z8RK7goB*S(upS6KN(L}Zl-^@zj?o*P85C<01I~Mi zAoCcHazo#Lh}M>tfa~Cs@+MXNvGYYs&gM(}I%d1A1OrLG7=!RsL+&9UCJPv7Yqq>L zyJ`ZV;4yypVDb{?hyE)76p36;&4YNPG9Y*HzVjC-2>{bvpd5H|EEo#^RqA^FB%zw@ zT)HmlCl~~lmJ$Lnv@zodHo`C6un+L7WE>0~tW z6F^xBD-@1GMkKc)shFRp5b7tBQ1Quq!}U#i(u$4iRBrcX-RC-Fh#cL}~=RMsTnDL5MOWSj_wyperTO9F(mOMy5 z&SUS|gd_ZpXoDBHPs6LWC_|KaVbaP+@ z66(3c+8rpY7R?TCv-6=tbun+OI-$nVL|{6g0*3wSAS4caB0qp>_35J!-jPHUi*VGY z(jo+r`r*p0>T=Q2LD4chntdt*Mdr-uymCKF68&}9{S8UHh~2!qAn(34{xITQ_MzGQ zsvU0yqXv6+qBF;hXhmIxSJUYGuj0GN1>eR*>>5w8oNUmxw7pP0Zh5XEsYk!>uvf5h zAkt@MdP|scg5_UN+mTNn|BTfn?X}BvD^_OGYx;AooAN5X3IFYdcB83+h4yESb<+nW zV^>F?H9k7?0^=4P1+KXlXKOSoc92dHFHf`z2r!xH!*G4&^Ay$Fx+Y-VjqR_7;Bj#{ zZ2P6OnAu@G22n6{qvE=pQibUCnmnSB;5R$c=V3*)di^| z5cmxBu*iwN*>A{#Lpd@E+J1_uyYf(3gUxKHffyL?vTx)R7gl&F3%Q=XyZcm3loyG7 zk@Y6iS@sJrWjq$?+E4Q}!SBybC&SMP@bPK)0$aB2#}mSc)0#FW-iKcvjQ8c; ztLcByuhmoQa_H0vKPRQ48%-<+>_s(17<6WN!53)*8%7;lRFY0(dCJ!`Vo16Grjm8z zfp?mTcROggayV(XHGaF|ORo*W*}?zlm=lj6E4o#Bh-yj^jCN6#Edcc-RN&X8wdDHM}zAQ&m6)I6zB^TvR< zso4Fub_j)OMPoye-@$pMdA|=0@=dAvn^#G%-Tr#`H2+pLGO3dn6dRAHN9N`k%$1kw zP?_WJCNh5#Vpk_Pq-H3t)6_`$Y|s)uWq4j z_XX%u_+l2JjRXGsJa5Qad4z)k|K`yA(-Z^%k>9@{8{7TlqH)KZcluMtnA-w(*T8?glTd5@5(1z*MQgK2-{M zNq;W?le~P_h4ciI;xgjggu(h+fBhH`_PJFwL3i1|bEzrVC9nNGwSWngyrn2P$}gtF z?M+n$!bv7^#zB}9V&6mrWEMW&E zQ5#4`ROeIVn>B}@wnCu0UC z8gBwh`Ihp9IxT?ZPuoXAyXaw71v{`Jq6$fcESBJzgg4GoH2G|gr{q$qg9Z*1pQ<-y z>{`k3ZA{fbj+I|hPvL={R*Ef43n5A(65VpBEv}dRLL9@XK{Ds;)oD76g*+=bjm45wh+fxE96^`^C4S7OX zA3tgX-`uVmCtkbq-ICJa(1yIwq){SPha%fR8kKFfss_Q#N`AzyBYsyb!V^k`5H2e^ zpS`(2*B`CrR##+yi9F2a?4Bz6nx~|N7C(tgWA~*fc-e%HyJ#NfRLqMRM+PZ7NAZzhw5N}E+kzMbKj!(#B`K$PM@U* zo;6)>#mqB_6>FXk$;wJMTZwfB;K(r%Mks z=ogYejU@B+D*ioRda@@6iUFZtGW!Pt?3byW%>}fVpAOMb``_@eP%&CGA01e#6?nQC zy^3L4z+nkMCTg9Zm&OlmQn|~}``sjN$xIAm3`F|qoquuL1AUx z-?qZ0MeKtY}Jn?cmu+6-YYX9NxE**n7x|8)nthFwLIVD%m4bx6lLpnA4X z9#ytg3(?If?F)6_EG2WN5Yp6d97SI-_!-nmT@-`IrdH?SV9a0z#6Wh3OXL>?- zp86|KnUPF3=9T(w6R~LUzL{_b$!(30O&W}$Mo+%_L#H^SV6_2AQCLk25(;2q<6GLA zMJTAO6qJ66EMJDHMRX2VaEfbF@?rp3){#mdAp7-2zt}77za~MU&K7lODiV*+NNG~{ zidXJQsb1|jJbeNy!Ug&{v#2+Lg-N?QW^kSP`KG~ruFh$VK^#}LkU4`jJ75(o5jAuj zxvuo;1W-Wj8w#@&ykK4vpmEk9;3cFc?y~>1+tMUm(Q|NNgiux1vsSCuNSw3HJoHsQ zga}hKWLJyoO%&jyl`d%Athm*TeaQG=SG2uaG{_xgTXP38DD({w=u(WnlG#$d=~2Dh zCRBUxg9#nTm5lQIvDV1Y$!^od-SuyyRlg}duz^kXb!zc!V7>nhQ87hF=z3t{Y23~c z6`tDi2*J{~Zr9jX!Q{}Y1Z4Tw`0zG& z<`t-H6XBSP_m65uT}Zo31j4^%(-^9zR^WII8}*HF#ED9cK}ogHC$gOb?nKPUUlHw+pN_E`IZ7(_dUjPJQ>gT`oVa?l zM=Uj(^uDLGA|niUT=?_fnFgy?DK;wS4KfAuHelo#D4gtm^@(PBb3ToqrX|?P<~Ef} ziwctL@lrdmZ+^vUA`X{vbH#_&z< zJom%~PyTCy) z^DSt!Vqg~WuxItu{>{0wFbA&rwe&}end&DKZ^*B{5PIi3Tm8zV*O-sHZJryYvGPlj z6hdKO@ds5{EDEPBZHEMaPQ?A_3}dU|<0F&q$x__Tv^@=XX8T*(mXBfOp_KXa*CeT* z2QC!ZbkKqNh27OG!xBY!Sm4u(cXnB|SSU`K0+<~-9Soaj&?^{1duT6TpQ=;C!jx)UR-VBK|_<=QQzRqiM``~f?d3u*F zTi+ATCFbvjLvCqZXW9R|o201}yUPPIApe(r%4EQMugc2!pOfIZ04+E-RyC(gmEvo(oa$=&(zY}>8@lAXwP_&FgUR`rtqpN;l8p2f#M za9N`eNk$sW_Zx($ERrdJY2QBP>EZkn>4Hxd{hNb&$qX#mVlxi`N6e2ta*YLrP=~4I z8oez@*%|EPpy&(w%F#WZV2q@NwBf3$QN(4o9RoV4c_$ecE`X%!{zoNIIM(GKB zv@9Rz{-+0ZPgG}2E81`@lLO4e925QN2Pz}!1FEd#tlpjYqvhHdXdmZ5fn&#eDu`K% z)SVh=U{3;6gG;zBDf=bQ?7cem0pwYq}FG!0rO`Dv=l((;F_6c(cNw_J+G1(U%{jNXCvPQL8YA>WGiR zeC826g4g}2H^Yy^B904iNXCvu^%Yo_(&%7+cAvZ)hKqWCCt6ttcDKS27qzPLS74M8 zVSR@|JL>+;Q|R*E`Xh_GF+eBl)%gZFhtss)VK|RUbBJ*~Ay`2zPoV*ZBZUH#mS|C+ zdMvjmfE_aW6oAwFAH4r&Xf9%O|2t6~^l6U=@O&Rd=Lsyw1)z@0R`Ha%HaJxo9UDre zFg~^AI@q=nH$JlcBak|omdXEm9}jZi)&Rem*lo|l$18pWufL!}Jsc0F7!U0dX6pw& zR)eYDnkDr)??di$JNRKf+L*}SzZ*tK@E&WF?vB#l=<`9M3P8zAN(Vf6so^ z7vif&?vQ)2y}!?Rtlt_5V=&(uhf9T6+1(bft5*O6=z$O20T>eP|l%h84L2^1&0iUIVHP} z+@b727=2WTmk!=|(T@)bas%RueDV#LnlwAN!kK=Ho3&T3#iKg%sTNX)dA^wK)`>!f z=U;n!yNxT`na-HH1IRe){IiX)U8;_^m(jrlAws9o9GrUohXcJ8O#rO z%@kkQnPY$q!F;N-8RG6I61&f!-Mc7(^j}c z0MNTMZ~qGB0p%u8+B`g(CIDsby#fOEr&_!CZ_0*ToW_%QAc*d&dBb)lbSc@9aY(oW z@{YYAqTc~Tz%Vk2j`Hw{LT-xnv|)^`ZPQU@!DhMm8ijX_)S(a=L)zcFf5FTz>j1vYTx z7K?ZiaggSck|v;|;XJ%5CR)J$MCKsa{XSjH(`r~5&3_3^Q6U=fsnfv38Ns*y=J6gS z5T8~t-5D{T2K|3&O~0|Ssp(9vNz^~vZYHN?w)axSZ@UQbyzf})zyrdd#za_;cLA7A z*5waQ+`iI&KC$1<5{#L0T}Tz}#cSXV?&CT!)^{_1R5(4y+{Bq?Bm#Vhvf#N1s8il&?oV!$Lcro|Hla~Q28IG ztKrGAIIRv9oAtQ^3#Qpz2e)^Te%XIF-yuW{{WmyFbK)5Gihv{QjzcRvZwf!|^P~OE zUvd%#bN9vAny?RDio`OL<)_n^dB_$ zGi%OYfYN`gZL@6syzsc_Evk9@_Q2&sr8a0z<`!I$I;i@l?uXsGGNT%w&jdoi>#$h6 z_H+&S`8En|>BclPT0iw^@lOxl)IxzO{f>Fcv4TX;ahHRP<8p0~WyH+~mTZB{Lrg)l zWf!6d78Yz$rTryTiIOIy{K-`bv|nt;IMvNKyB!fd6~z(H=bBHeVJdnenw0iqJww1; zd+jK6onKPXM>gSGn>-nA@nReDW`70T5M0();lk%jZx3#8FSUvAJ04&SeLf-x2Iyt9 zVW6pSL@n#$V7Acib3^tp-V`efpw1n7H75kb!?n?pJf|gyLGFEVg=Woa(_~da^#P(5a7|O1+pqPj=Q|7-1+dp_1UcyhSxfIDxY)A9-@ma216?(aJC$ z;H3I>Vh>p^lk}uYn$OxMJ5iWt7*Ua(U#hFLJ59!n^$O&7<$|7hohg$|f) z6yT2$UDt&JRG@0BKzh3Q5drsv;0bOshjHHoAtX!-sB)g$eNN=goUX)tDIfq)efv(p zVk?`FE`x*@$xJ}r>7R2Y!?N>je$I|B#eZ)A1w2koAHvgNsQDV_^8D5^2~T4>nu&C2 zh(G|qD=E~@`!vW+=Ro$XZ9rs`bh;zoz#tTfk%EqTC$32Py!=A&#wf)}*f@vzv$Q#D zoaOnW4i$d{DpYVZCBZRpRN+aCCN7rH&+?nXq$L2+?9)PP&Rrvv4a~PGO^E_AyYZ_<9pC9c*q{}AD+jZ>f(prR}C_A|BMPUxb+Mo%qUpvPLKaru^Z-1UP zo1JrP6{Itdyv~>huj-dT?#ax&MD!I&#>x1?Rm_@rc00wPr#uLFMc2cyznd?psaU1T zzO?}hc&RXE=>4NDS;GE*$@YI(R|BTwVzaBMY?@yR&h;PHB*Ge>sV+7^-kfjTCi$Ap zHBgti3vTqB8m(8a6x3DN23()|TU+VJU5oBX5T8119%YQv(^jbJe@)Qg_P;8bf-&SN z@t*84csUMZ8~aN(|IdV`zJ3K+M3)Au_2UtSpneIIZhu3$`BM5m=?Javt6=+bTM3~ zCJY4tqmh-p(%@wA_uCR6vBv*?j(D@JuV` zv6@;s)z>FUHj~qtlI6_yDgOq&v=a>|BKZr?;(KwKJ93G{wH4}aBWuYX-^pXJ6{=eG z79UU`2T(G_lWvU|=PSFyatElp$bz!ep|$4fM^9HgRg%p2N`FZ+I%V*Qzh?oj-d*Nu z&KmL#cZNkQL3w@f9$#xBty8=oyBur`jmY;aQOH^{Qp5$|1nv1-k|I+ z*S4zmvv!)6wd$R_evB@so6?qmFU=L#TN7IwXRq6WYv5nA-miZCaW|;xxKG?Q+lAE` zGVmbPANU7@p};qiNuKw+KugxEz@3+LW|vc!fi(|@@BRfC-z}j9d^r>${@uLxQ{VjV z?PF9}FIZ$%QcOL=UHUQg(0XZYg)jhbop1&Jz%;JxV#r29Ja*KKa822g&Q%PtT}$+qRj;d))VH)x5DQMwRIO6uSu})3Q}$}fro*|6eFTI z94>y~AEA3m4o&%->a{~~CzKt2WEp}adQ3NK9{G>-|Z4(%rH6v?PsnW|U>Cr1m+gGFMd3PWFPWT75+ovZC0 z(+<(exSE=Dx!W`8y7X#zFy z`T2myLVM8qLis>y#D6nd%f}f@9@Fo_&(rR9{{9 zsL5)rO#57@oOyZ2a52jKvx=tanBvgmHOX5X(yc$afgd_b5gwl`6?b(}Jd`e+_e!YU z8!jeD!SjU3={#LaJ9X8y156og$GaHKyj}?q<^aAriqKH6?yV@T?ei2`ZQWd>%IPv| zuz7zwC75&>Zh>~ivtNCvk!XC3g6G>Mebsps<$G3*9K+;=JHnj?I!gk-c65P zy!OaRm(aN_dHIh%+**Iii%Jc;A@dR(gKeP<<&SP^DP;<=sKhi^g+71|{#|{s3fV#e zn%`{iXObSC8P`{?d(%CUP;BJ5Vq$dwL zT@fMVQ#h&{Go(1|l^1vR{dC735aXq=v`*q*Q?ybxk)nnSKWp>k=8nr(dP z>6f7yxA8B2yO8`(V&?1mTv`r#)*@Zq!rt}g9^}pg>_rHU4}F+mRlQAUOOpl%cJ~ zxo#N%R6&tGsrYL>(3v@Scu^cx)#VA4AWd*8kp9FcIP9L>o=LbiKa8P z6{sQBqGd(Pe@csn&342JnXq{+(N!45PoEboYPb{`i-FU9UhY5SVQD)HR96_d=+~7X zpRp#Cc(ZN4ah&A#QF3m>dv#WbJV76L{w!fv^I2oGyBu`y7qj+Yq5S@4TiLEFm_}%l zCLQ?htd7#M2t{b3rdw#f958MZbEMc(L~tMLR+>U5^KAqA6gjZyDmaD<5k3cWS`z1N z9QA$<&L&$)=$Vg$4N+R?ngedgb#D#|Qtf2IvQVcGV44j2RlMH=Y^XzEgln;iMJLU| zbuBVDZuK}@o-zYFia*=Eb-;8UC$c69$a+>lYv~XmB4i^X-b&adgUg#Y3q&5ki%zE0X$fzlvPI(5CO@^H^ zw-ll&^#q!pziY7ckyBjvbH$qr9op8kO%F8`cWXT0q$Izk1fBe;!hWd}4fk;kOv~4= zDBTh(FP_v=O_u!aQ9hp8oYPJ23SH^w zM9*d1_wCSQ$#(AiX`=HTLR<~1M%UW6=XJ6u_j6C~TF_1K)_RX4oPOd>Sqpa*$2uij z?>8dHtnHT+r)zO{s-^E>y^R&#s}mwbT;(ks_F+G*^N!iuoQ)qq6C;+TEsQ+0-;95Z zlm9vA@QM4hwHFx0%?Ey^UgK@=5K?9%iBpU`eVzvNhrHoLd_aa`TkiP}w(>BB|{vM-l;yTn^(O<)@AfX@Jl-TmCNy{%2By^+3^EPZJyGQqdTx zHUg;*zG&WtQbe`v_P3>cCj5H2XTF;CR`iKyxBV|W$6Yvx&@=}MIkeP+lkkC7F8T>peEtiOZB?aia>0ELKqU081{bi5*v6s*&nP9c?Zx7`UMr zAw%ydw=$SVk_}jr%{ulQUy{_idom=Pt z%eR)0@4AA~3|8>R5bFLILZ=SCk9;3lx-N6lF%z|}s9Km`xVpmU= zMx;bx7m!{Wq!n06=|&m^0i`7*p8Y-l=gt4!yqNo$JKuZHoHO_HJ*RD{uSH?yot29D z3JJu)hp^f?@~tCpz?Xh!--Rb~`s(tqj%R=OTo@GwBR`*`0v9v~U@+z$XZISdyNNIrvij%D?=1(k(1_qv2=P4UzuW z=GyqQv;_Sa+_Ua=v!`74nl$T==ZgQ7xv|vKIld@+`d8MYMXBxe*iDIIfnL|uR91In zrQ90evCE_Wpx(wj{I+B1^;)F_L4U$s+eTCdwIv$H24C*S$s6rt_8T_WT^N=kSn3sV z!61*XM%9l*Q0V1Ij*P)P3XRGPC?=;4(2Tt=??#FcSHbOB38)tJt$#~vOi~A_=L4NXZ!y# zF8QVG<)Xv%)&6mj#uf86>ugoe@+WoIY>@bhQLx^=Ph2~TqrK}x(Z*H9dF2TU{eI#N zNwT`q7RBzMci`5 z;X}bPnc*QuQ`k?z@US&6IE(A8lbh41i*+6s(dwA}e{(ty1G~j|3Dqxe98Gi(kZT3Q zRPb|u+Su}%k5+v70+kW_=>}~4n=;NLu!zJPFPvv?_48AdElv!sN1r4a9y0Plj^fl+ zT^`j%nfZ$!DEO~o=RWs2?IDtkjX7)=+awPz6a08~#hf3MY4_!=%n{$%3&&<3xBgR_ zOJq`9lx>u~N^Z<07dL%!=Pj0Cqb{vgOVm-5&eimf%!CsWJ*~^_I}j?80HH%}Hs7Bk zM4YmvFbUFZY94>%k0b!@$aXi+SC_CO8hcNm$6*jdm8EhzN}Hr}evxT`y1c2-D0!87 zmb-xo^vcaA%Z2%;=^)%PE!EO~T8%Q~_@DKyK*6MSVLKGAIE0V%x*n1Ik)be#T5n4v}2q@8J) z57%1+tlQP$J+5Dj5=Uf_UHOp-1{f}~O&hRG-$Iolh z`6-=`6IGDx?_u8E-F9_vzbATsK8Pp)QM%(f3?S}j>y3`}i6uEi%tFL`SuEBkQT@QL zz((#%;2$5-AG&QKuLF8o{;~TudOz{;>G{6D&3;|}{Pz_@L7+Wlz+T@`W$$NM&CEE|`5>=BJgZ)ys1Aq8>0R4_h7zc4HV@VvQ{sE1FII9T$^|y5FXFhz6FF_wuaW z5ERiWQ&KikIgA3YX~Co@B%#H6(FUq}?at!r_)r8O@$#ASfIwJC+~iy2$2cNq!tuW% zaL;5;^~G$2CG_LiPjJ3+uESe(PjWNTmOgZ41PS2Ah%|e(IElYa5PNN;3~^GXP_E{a zV`l0t-9Q8LP`eR~u3r>UmpLLiQXZo;SY)GI|W~t}>}5qXyc7Ua8V%!X3qLbXzOYHj{eVz8KvE zwH2TE^A~gU7P(M?^P+$O?UVmENA||$AKG_`>FMo&XDPiqR&CN4jc=waB#4BN9;Pj3 zaEwSAT<7IpkAg>xL)JR~e(b(Y5~{>A0PQW|v>LfM!~v1HC1)v(E8vEC^yh<2*C?mM z3!=teNu^XG9IO$r-p>N8~OmdkG z13ith^~unAx8(NN1fS0yBp>6ZXb>kIJ|Dx$yn}5x2|YVSk$-WF-W!^tr1fz38mkqM zO?2Rn5a3U6>&i;g8CP?33;F5BC1y&e2Zw z^*E2v$mnMjF9(u$E`J=|{~`Ee?uo*you$un-Yo|uGE2E;-ub1Qd!Kc9-=4c#aFV+d+OquxAqZ>o z{b1ZHOlPLp^y29~5g}x%Xk)P+tnD*4*~hw)71>#?g2HtXY-1^_hW561VK(64ZJuOI7!#u7zrjW05a-ye6$`*1Oh}oK*a8Qw#ipw&G+ASJ zjr)OT(p4FWZznxIh|+Tsn`cV{c>1AkrHS9`0`HDuahnDd^yrklS^s4LaETAsgiU7# zGjeN9WO)g{*u<9a+f{kKapN|=*jYRykGXdVf$FAq*oKdD2?dx}G-AgL!B|2MW!kkf z4AiH`N~N+GTL^npOA8n&Aq}swfNML7w2q1~t8tkUhx?t?`z7$RCS24&L-MdQ_c{Un zvRr2oTv97k;9YUxy;!QPDm5J3O@%KD6QC-P_A`9>hj3%wU@;5&2dWCgs0B0Ea%odz zdbj_t&1%jZl@B#N1z)S6prvu`663$VL&96viXM>f`rTZ}orcKS4Zi!@efi9f$zp7M zOb$&9b<13beKXe2%BXz+?j4s~;?j+vQ2yu9wpA6xq8fL;LgIM}6yw%FtU2O4gGH)w z8V6aWJwNCe9&v~K?a=~e*eF12&JCf?GyV}~R6;?S?o1v)WExCqG(ciPR=h$=35-FW zsj=+x^>`{5cH*s{`WE%m{#Mp-$ez4`toholn_N@qbh8SbCXbWBL3MddxlCs&zSU9> zdn>z-^cV z<0Y=I&8i-1DP7(I&y>4^+txh%!$%)c~akiENw(?^G!7@C$%Va z&WGE+BR<@qyJY-rvB%wrGz|H?+?Ov;WMm&< zScQ)C;|m;JNour+W|lS(=eIGr2G@TRe6a;rWGBmVemvUj)^8q-j;W1~zb?JLtLpl* z3O++`MlZmQ}M)=y+ z!-ou)L-_%(Vz7b*ox_L#-BUJ@bV2agY%`Qgd71S|-XyerE+op{#1VXYW3(_)TmnkR z^mZ!#zYQFf>i#x;wDkvlD+z*(OCfgy$)pnfqc%5EdZ?%Y4Vvs+Ta;Wv0xWU00U4I8 zqZ`HY`H#^6UB-b+np8XP%kDEMa|8Q(cw;APtRP-X$kuV%Ni1|&MQa33END+PAk3fL zfed3Fs`8rFv|Xqht75VkFBsbdANRpE>*;G*ku^U{kTnC63rMQ)sJB?-TVt(@d#-+03bdLKrJ`ufsRB{+nL4Pl}!XB>rDQ9DwYQh>{B4&mIemGuN^SDWe2UkYl;n4ato=l^7@> z&K{jRaMl8+mrxKBP3a=HLyNZCm_C`d#QA8^Sh$^jWkgp!Jh)^rY72f0xd-*r>xXHW ztZafPa(q88Bt);Z8s58=SS&Q-CslwFW=7DylY_=OMxh?Z{2!b1J)_QeZk5tc1y7eg z93sQ>{^_wX9C6mkU}dBmh#g=Yap;B7`6UaPUVQIj-5N1($|6mgG9OMNeUNh$#swl>jO*zBQ~6qWLDeQ;or+4Rg!wX{Q% zT5o)n3hK>n;v|f{Z|)YN)bVwF^r`>o25h#!q_3;6VL4xLrU9$)0OI}ebNVnt&dHDe z12oIrZLbws2JkG%5;vu{=#BHK9;7L8#T4oT1!*Qu>m#u1CXxnW9?)f)xAnv3xGD9; zPRQWcA^_S4rR&_sm~ZAHtE3FV76L5x?gai)@IGCC%5CCN6j{2xcHFR>aEH;I-R1JN zQ~A%(IBrTiaOf7ogk*zl_x`P;hgzw!I>Key(o+%Wof~qT(ng_{&_?ECQmQV4E!Pz8 z1{>kWz{}M+&tGA()32-)^oMkz%C<(Ps2}~b#~tr~Jql4-S|m*(f0+~2|DU2kRe0m= ztKaodW5(i()*$_#V&J~};zpHxz85aNVf(G1 zT=0QH~F9y3G{t5mV3gpL{8qFLnPW`<2~swyYc0aea!6lF}|T;gce5^?f6WhQNY z2GFji!FIVF|KeZ&UXuD>4}?Jg4y(aDq5q@1Qp3@V$>Hx$uP|f{Lkp$*R4PTo+>bX0{N4Fv;YJLxsrw%0K20|%ZZNJ?@EK#GF zVepXKjAq=s7z5>Z$_P+4Q&a$W2wMz!w~USicjO!;+~?Fkof z$IR3CMx!n4tB$@&3CtolGpEKuNu>LL87zTs%A}lrt7_AhY{Gu3eqPh8lB5wkA1Ao= zknpLvnu3tv188$Nz~uTj1}Y-j#&1av|5tctEgq^oI7ABt{Nej`20`pH4@Fl#DuEANXLAiK9^g(; zc5}lc@7qajVxNXT|4+hldOh5#g%32ZrqHFO*a4wbp*d4MkREUhg7?da<*oL>L!qYB zk3YHXfI7HgyRwHSs(=3vvi9cDE{~MHF5aG;Kc?K^Ujgpj5na^K zl4-&!!i0z`b(`40RH+)gW~5YH?|KBbD5N>lrWGlhFN53AO4{GqrHoPcLZEbC8SQtT zLAB{oe9tPx*zx>ZUxXgI_=YCBi{>h3-C)jf=DqJP-B>tS^Z_niiGj$uVevl2T9*{) zF~^Cvx!nPiW4>$FjL`%)%osuj-T7ICW;>*lt?~ovwcW7Z#o-Zwa|`62sDFx`PI%d} z{vLHM6K*XCG&!t;G#6`s>jR<7##aBb?k|Pga(pdW4JZ&q8%D$1`>renkA|KKWEFjV z54{ZXf7UTy+!wmnq2Yd)fpgpD-zCS9=5GGf#6kAJ_~<(`P)&gA)Ys0j1UmBa?W3=o zpHu+-sdu3kQ0&O2uEDY1Lc?C)RSUeO<)VudFprIgn91biTS%R~ATiA=#qNKzcik|X zot!Gz#t}KoQ>)OLG>5*t7NQXUBeMo^qc#;aO3LKqy|xGi3LJ8bntX$Itj`5P>PQt*y(iBWmX!LLS4uCt{$g%nFrB|1a~sev@?1K) z6QgJVu;kgR0q?yWybyPX{R6%V2_aR_MSz&Wn_%K=P@akWqf^~_>H{l2>dza|3_n?0 zRH)>;Xc3n*`J+ft5`^nV>D~A=1K&rtz6B5tTp}0Wjx*p=p^euR!mu%d^l0MWDwDhs zgMR942Zf(0sXlGSuKP0@{1OfJcz%C+V)lbCxhSII`3&NwW&Ek5krblv zQ%QkeEYS@T&Z!v|!=;T}mF`@Ps;XU>LMpDz>xh^<^6A@T0GU&NMs`6r0ASRTwmeq% z1KGjnswjW7$r4H5r(2Egcrcj>;VET@Q>-)(??eqy&D!9gbU>}1yFDq8(LMq>>HQT0 z{~4QBuphhOMNKoj0Y=>W=ut^P*|@n|+JreRXQYelOA{&G{$guq^6bb4TOAR;)$^Or zMZyYg_=mn&TjvIY!va`2cO3-WOD3iWv z_LXIgJL$YclAjbGy6W3l@bHU?f8Nd_-2zy!PuO48SVzT8@rI?G_}=CJ=-9va##Un; zTZjehSd1n~vOS_R#hvhw9^VObY@FL@CGoioIpY3!#xHS|BMB}3^3ME@J<+5hy*}bf z_Lci|T|^c)d$K-^*o}j5dU}<2zh!eJH#mV)%hbgdMz*v$&kEV<=6|enIa4)e@8DJ3 zMlm{q<4(G0v0Y&x+pHMllg^J8HQO{-sVv0!WaYTy1;TL{D3RdM-0ZZ}Id8FrTTE*h z7sVWrt<?vuQ*jWo-$|$kuM-@c>UTKj<&8Y9}#kA4tH!pIF#9M!R#!k&GM-Y`%&h_ z6?hMaB`0Kbvgam!Q3#@{+}%WbP0h@C{XO6~N=@(|iQ;m^&khOt&x?u4DQnS?oL%Ku X#2!tG$LkW3nXhRgbX9T6)^Gj?m!9B>LA+WHx1qcqo2~My8g9So>AORM4cMGz(y9E#K z5*#kS|9!XKt6T3>O-;?QJ~OBL>#tAsgsZ)m$HgMYdiLxYuA+jh`m<*!z|*CT@#3k5 z9xFuk=_aZ64i0T^Z~wco@u>3Q{Pc8uY`mwZr=p^w@q&Y%J+rV;l$C;eJm3Ej z?v*8i6T)T8;k%T0=|AWFk%Bw8T1AB8Co9(TTOFfv|LjN3rhUzKV_bqY*M|Ri-J7-^ z@8uikH>D;Y8Xvva3x{xrT-Zi;MeBV2-h6*SDZ+hrljm)86m=ZdQ^j@SfKyIhHvIz) zITq%tG`u9B<4@lZzb}M(D^V@E{pckZNut9cl3SH{uDU=8vS;}teW((+Mk<(+Ec2dr znG);AZ_$Eac*k$L>lJzI~qp) zO(>T!DkMyf?fjb9Pzw~hf{6&N+OGA(=CXY2bS3S4rEGd_Y}>^dlrM^z{C3U`On*{! z5L~%oj4H7cBr^~auH2Vd?PTxxHueSgAjju2man@pa4siw=i!cn2r>j+8JHxndDMK_ zX6#epfS)p)Aw?vdqY_hymiBnnPKWk1fOYh1WA+-Tx{|}Lqbw6+c6QkCB}k(;G6hVc zPI@pktgDtf!{9(w>0iV6;KG!Fe>>I4$$~OzQJ{fZ{;klFB}d0rxc~>DNc{zv3uG71 z2qRT4*$br81Q9@Mu!%t;79>W8skU%ggZLBZ&kQ=*9ra)R<)<}0l5=+PV$rMW=Iup+oI zFSP?DhC~322y0=~71RM~COWz2U*py7!%oZ5^!7~%y0i%0`f;K9&H*vJ8+ zE)dI|eC?P042@eAyfI(CLRfj{`S%o0p(MrHw$^yHOz3qX69z}?w|BJ+k`H%6ebbL0 zt8PZxP#$hp^A&1?@%u}tUpREXCJ~$J83>BV&;P;m+R?V8R2uH`{Y|_K=Cr}T&?sv8 zSmg>kU(t@~@a(q&Sk99*{TA&jRLIhZtayvMse2#LRNw-hvcpWFl9VmY75c*5r1Y_) zxxp!pN?qkb*L6r7z$0kMq4wpGR zSI8ay4Iw5$VS63AD*d-CQ^&NNfrU_6J!VuX(4k!G6Di~B&WL427E8p4bQ;KKXplf! zW%Sg9mYAFbRiWW1@b{f4@t{n{3yIw(bOFhGtQcmi1L+g~-yvPZK8kez46@RL-;K_$ zAmVk^U8ksA2(O%3I%u7JddDZEH>(u)S#}#8eR8PTN`&isEoamsJt9z_xj-w-x2x8^ z-`M1x$?OmPw^EbVmok)ijOAKp#>!ne&&J~xuDb(|2^sYe()|LUv4Um3-;AT)embcz zSBs9N*RCmw5Xi@C#{jz1$`mHWVS1qH=w8k$z@?bxHos&-ijt>EB7NI6e=)L1Lfvm4 z{3{&j9aBUY;t6jB4pQ106tR3o;fRkmW%~Fb!b~PHsS;nGXJ}0gR(yB}RqKiX#iX_C zGZYI1NUh{U0D+HVcVTN)nVro>d1u;Z25{LG7g`h~$jp@xY#td+m%aUjo1r;m%sUKH z8lPC4<#{5SdyMS=kg&+Yju^4D}kZWKL2Y zI{z7vzIz^3cKi+w+81I_!U$vd>G`$-#4`D{kVP7bid>CbqlFB!h}6`#Jp;H&*qvRH znX-3zAkN45jy!9bFyWMwGYPzBG}!+AJz_-Zt!BAgICoE)R9oM)5@2RAB!&pvCaJN) z1_Dzvl5~0u;j+>483v0Z@&u}~lD6OcN;(9`)lfYcA@nrAtgezk9@T8XdZM_JU8~AEZ4VSEg%T%i=C(}lbLMz*;Do6}Xf7a{MGOPD~1Wa#Wlhyz$ z){u7|dO|MU`Kju22doR`ot_sg$=g44I+=MqRQ6@aj}p4;zlhuzv%O#1qe%0r)5`Qr zEli~bi2^dGR%kV1U)M=f^*Z&MnUg+;$ls^qOX#dCH+S&DPH3vB!4w|+meuz=f0Jb= z7Zyr=!so_kF!6o^|%t2jN*g^fiLCUK&>9L!EVLnlsE(iHo zGuL7NgPZ&Z%d#V?`wDR6zo@9*i21ad>F=Dz`re*NTj^}5SK!s;d4LHrV;Rd)mk2`GcHVq5!}|9DZ?j5xk^_Q5n`w2*xL#%bTgAa3x9$e} zIEmE00bj{5&EHuQT{x-GwbJ(Fd&iAFIl6V@MMJ@2y7ex7_16k}s{7I&BhsG7z>6Gx z-nQ;embh2p9~$4lmAy0&)H`95fpqm$m5qx9*BX8NPM1sd{MVL2=FkdV95EI0M>z^7 zGrRud@^*5T+_d{iePW&L!k}G_sA200rgyw`whIe7KeYxOg6qaSkLM)Zzf%vpRu$K^ z+^+DnoG}?!2ox49dz6R+bWW@#5%`@7QyfRraUZORdIGO{3K%4_NFk10a|84ueY3)y z*aQM*nBx?f>8b0%jdIKBkqK`rj*9VWt4y1-?d@T3PP4xbxm^Ioyn(aaqA;V$4|b?u zijXM98P4vQdzV1yvV>ysD7pKIlkRu_^9TNVQ2X!nH8EH8s+DCax;@Sr}a=)yVz&{hpY z-q0SwJwQrUHW)NG_;Ja!UE6Sx0?qHm7jzanCI~7#qj>)98TYseY`$u`Ntuh&P%B+D zu;GH++bPw|HH9suAkU;`;a>{!XV4hl&8KC5$|HA}()!gclP@Mx9by6HeZ$R8{|eix zcZOEE(nxJGj07W+Q2lRAf?bG?VYV6Tl6OFv+z`CJ;y#PTl&f4^qPLR?4MdhKe;k3S z=MF~h{#eh>1?54kx|AZ?U{b1IbE+TSNtSBqQfF0b5vPZg(3`+gKGX&+N7hiy+J)A; z{ks1oHvKbK#iU>z(9UXG73?&kpB$)jE@>_{n02MOQj%_#i{aumZexMP?}y)7HW^f z4|0=Cy$+i`OM~>?H+Mhsxz5hXsoh%Cymu5jUbL(N0+0vBB|cHuR4kNVc|z+>S~=be z+G~ypUC&a`$i*sK8*Xy~uZzF-5kTuh>43!EmuA|x=lQ+K4H`P~*C+Y2!$T_*ub->n>YMc@KaPEut05MU~VTZyW0qSCW4rj^p-~1Kk7^xH8t;<%tU<}cfvWhnP8p&zODr9-ALvU{bG8a|&G~XRYqTZ!vg9G!9 zc%>>q>^>$#yJzQSu|>j_!#=NPEui=5zEw$PLTC2IS51g-UZvUa*}=_3l*dFN9;yg@ z>UK9XWh+`jJOCjVjmsGHdZ=InwZltMy-LL(?YB*Jf!x~?jYF#6b~zK4eA+!aZy9>j z-vpLK5W45IUzqq|L914HK2a4E7TM=#XeDlz)+PV+9`n)X+zn}{6u3CO(XeGJDM|Y& z5I3(<{!XZHp@5|2v2MV2%@0}K$a#@Dnpmg%*@61vGT6`d(o#*<+2W%GE3Nw^3cxb8 zl^RC?vC6Nu$goO`E{SRin!L^E<=%+FXi9-Hb2kJdq;JtRadyAyz6M=W+}eg zGF3Rz{H2l2j@XU&d~0)jB!eYm@X)p{<@t8LR)6b{L)S+b$n5dirkkCSt=(MPW$w(F zH?G-|U2iMNpPk3UczHk9>MYm#uPnTs$#l zyESYmDYIA8zCqQA6R6fLZWyh9?*$`eR=uBKPXZQX-B^@cqW&CIqiG-ZCy(4&Cx-77Vn7uuH+UV zuD+HjF_RH3b4uPAqGL$Z;Lh!eyd0q2 z?#pVg%fH&;cr?2GhZ&vsQ+KIr^|FkITB|eKnM(pdObcN$rwIvR#%b+=)LzCAzVW?J zADSjn+rT)+2b1Z`f*U^MDgKaF5(<{y97?nX(&ff{1nHM0+E3Vxe-U3ZAtx`F#G(u9N?8IW-zu!ymbx$SV(FVcwN{h9Ss;$PCCSMyBye6F+Agjd;jH@dweOi)d9 zSRp)%F7V^9c{D)&jreXvZqEs1D9LI_`m~pKm?8C;&Q_Ug1Y~JEb7aQq!~F{Sk}IuE z6F%{s4O}A+lBYUC)G34FCiep}9Iker6nRb0tzS;o7t6#fjBi%>0Rx{+MNGU+em5?; z4bP4V{MBHg!|RSV#To7aOl3Kq;OX+|LxTV;$rqp~rK@o!?f9Sg_n>dQPceN|E2$LB z3n%xJl8uzrI;N++wMvO$fgwf%cr5c(*5gF$%BZwsj_Ho>15NZJ>bU?k3`^R z1}CQ&zEzKY{@G+K^jmdzOR%$mo@z!uXmut!k-;t&M$T__uk{FDcJXL!TEcjmWTO|@H8iPQ9c)UrsUz|ARZiQ1;F%RDzIBtLDhqEUDD z>QK;}|4`01ayOt{_u_7M=m{HgW(@468bT>YD_cZW3dF0|51 zbjz~Xu?{Xgzu9~K^5WD;Z@oPHUh;U|8k_KQo?^@*ZZ%|E>yN_T&828La7JBH1zQHp z`N$JnFseBn=al^@k^W;sdh;o*Fg*ROiEER+yoa$jI~6~6RO@y{A8y1iKU=z#rXjiH zVYeICt#hFioZgcL8`wx2f!rsuKQn$7vS!X@_W$DEzX4eGfYEPGkQBmg7}<7kliuPC za|Q>uAG<1%9(LTe?JK@5SxK`e@t&TA+@Yf0DLhoAyHkDwwR_CmY22+EH>bA2WHo@t zoeSgk`T{AZ0g~3^lt6W%qXoTWd@u{j)*d%X$Dib4a!>#d(~*BfTek9>u^<;p=!zjm zCK21ot7=VS5)xL(+NZ_o(F{6>S5Xu_2y84D>(2%_WX9TSk!&=`14R4c4mU{^cCE@K z`(319mcYtnm>8-F)dksYdtDZ3nU%BiP%yp3e!l9|@3xtpOAC!qQ<8%9c64^<7*!~T zh?;oj?De#38gEX9(7c`Se!PTd+28jm5_b5r2J?P3izz1$cF~ciqRJnBU^YhhR$t72 zIq61?C}^xo8)M4MFS#k~6=K+KA>xd|+!F13<$e>*IGKUbT&2~6TEYs$?hccXAt2Zb zMpSGTDNqu+isem2k*j(zQJ$FObk+KPj2cm5{%4ksuKcZ-4uWN3%Cw2fKv)nd12Uw+ zAb?)lGvL9T4pt7aLVY$u(Myw^{-j9MqUt7QXnf$qgsRbAeaj+kWfzwRt)lW&qF2SZ z-89aze=d|EkW4!u1Qxvl`h;c1t{lvq!T|Yy6&7We6NU#V8=|>0?wI#kD9~tOGT3C8 zY5({aQs=ODD6*UlxOYW5?^x7d_jXFFcr|kl$zvCiZz-H)`a_?WUCRLj#?Z8KKmRR|%EupX{NGI(fAod#cdkuZ z1RCJKuYEQ4LH{bC;!GMzx6~Yr1=<;?k=vqY!OL^)*w9JA6dkff5v5I~I_crPI!X59 ze&M5)d9^%;59a-DUg9dW;$-uzcEQIT{q!!Z#6pb>{3t2|T6NOb_$~;D0|vkCIaH1* zpwh7vZu%}wu;v5xe={(S}mQ>V-n-v@2d}Yvk;w`qZMf z2esj(haq0$NLix^MsvIi6rupP>!^<4%jHy+-c?Tj&iyiep%#yCXZfOcfqd2zgeKI{ zKSxW5QYWCv^ivdFYTLzA7WTXb2TPm?=(Fy8DU`oAg?ByP&4UX?Dqf_09Qsd1 zt{)gbl%POA1*vJpJao$m#Yz&jLH?M{3+fdSK+oTfode@?jG&5O-W4bEMLsA&aXSYO zv3ekEBY@r%sp_xza&te-gw6?sRHDRzXYA9P zEb4)|j#xT`IHVDcHYCJSWU{fkp-pS-3(>&72JPR#G(TH`N-XFn(K~lesjrbR4~ASJ zbb%OJq7a2&<5-;ty|)CmX>XqQ$xyShlat5L*O!t3SjVp9sijKS*KX4hL9LFb$}yg< zy{1#Oj^kS#X|pzbwkf7Z zG`3)cD6z(W`<_(p96ylHgPpGX!P9flR|`!y+F5os_2in79g{{!x?k#og}U;B_IbiU z6uTT$K#_Qz-hRo^SumvPp?LoBp4UqFS&_=>*G7pNdlT=lg38fz;?*qPq&~?MsoXFM z=$mKr0d^!AvqTCK6w+{ko+J!xm2$4%tv$?^+=+<-e~)p9PB{G29z~>o~KFE3^`8N)f z>1X`!0O~hOhmTwjWTG($Y%D`5-KooG_9{zc9+~f&<<|uanAii~gdyU)(QP;EIU*5j z4X9CYPp|n;8=MU0079D)Kr5LXGRA-c0HI}Hl;#`s-hzrgmz%^8PLlb#cBkkryoL#; zSLcbM52wGAlxqbo8?w^nVP9m5xd~5cSs*x!=7U*k*e;-#;lD7EwxhGm+oP)qt_iqI z%rmX8ZAB_R-`v$}R55-iK!*+%CmCLBFQb`@B9!FmT9`@L$!tSMf2viZGpfcrJCsDQ z6nkW+lOEDX_pSgZY_bTBCqj z2%YCcD*!m~0h8McKPFr(TbY$tihzKLG*+0M^{@TM+Vy1asRDT-{Fk5;23b&4>aXR( zQQEeQi60g++|wDoJaJKEWM?&|vAGxt2*+?Vq8+nuSz$+57_ZGghha8W1;z%qPeLN| zRA7_hfR|YD+%?B~S7SMmhy|^cDrrs>Y_n?47^P{DaF@{aUH125FgKTD zbkX->EWqCkQ&NsVqj;=)8`bcb+Qoqe%=7ZIFCCW}1GCZ;2t1~Oj}(#~JjI29rdO6o zvCZM}-g$b|_|aEzT%U^fHQr|$AOaCwt5|Nw1Z==QRxCPpEB%8uGekINkQ1` zWM8^EZS%YI(6eR9AR1ZZeZW zSkTkU`vl6e9{N>R!^cy8RR=?z>YGkq8=?4o_ry=kO%8cMRIHfqLv_KN$)Y1ntw%gpaDB;Nq_qun5Sx@Ie{U8? zed?I-jX?gCJb9Xm%Y;Wt(n|if-ieO__Igj!cw#L(zgV?DgLn61RasQWdg}4u0x|mH zKUQ?V_rdb4Vq08(oP!^s9)ls|doL?&Jfu|M`>@HRj2eQ*iHbrILB-x}Xu8fsnrJlZ zH!e}5c6_9t|7#rv99Y+z8KpHD$J~mJVB%Mq!nK97+z280&Da;Pw>7k4+HJGH%K497 z_NF52M^d+Zth3H2!h9fm=8{X+Al(=`CMyOu4;mD68=QnCeOzHcgvrGcZT5>rQ~Q_! zg!4U&Z(0l!I)`@f!dr}TSi2J6$CCd+_|0~)zU)bDRd;bs=aRNOG8n;(BM#}eK{s3> z1Eh6msGj@sxoP%|g-)MyWGLhj6?6B}GFd?t=bN@UnQIyLE#p>xhIVy4Gw=|(+3vG|d%{IgZ9 zu}>$bl2UhvagIbeCQ}H(n3op%eotC5&?k!iEU|To?;o4k#%QI;S4!>LSvQ@zJps;( zsoHIx+UA$gu`JS(x3Q+LQQr*&ewszn0}bn7oXA5#DC)!S5E!`}77wO!_+w~SSCpcj zvTUqpnaD`ok^_^(9BSx^nX1H0JW|ok_1A21E$6wJN)PKXWb;ktCeN0w+Zy9{&qR`s zTuUFd*taQ)P+;3$*L*;6%x5%!XZD0g@)eALDw6-38i*BAICz3Z3}Z-OK!hFZMn-jG zp_YA*bYuYWC{jqnbnI{lV60>jfAYWh-ylT>W)sE$ zIspF|Pl7Z?b@N5X>*97vIq2T+n_+!q<8O=f&$1R*U)Y z_y7ETC&%h?m|pB?NX{yWdEaEbQfcQ$WKyZkZf_$ts>vb})$N4;oB(=f`bEsfoN|PS z5540HE4eq?USzu!y;2XGjw}y3OTa=0_`{fMa#q(4I@T&&r$cf^j`W2=#bQQ&+mHk= zw}IK4=vVsw)KDs)w;FV$8~vHt;wD?%43z(k{EmQ?tx6DI@(!T_c_1?ik6>y~ZRownqkDo|Jqu16%#gBy#;*HKUcB zkwI%`d_a`Nlc2=kA};CeH6j{cUQjd%w={uK_ss&F&6X>X%+ynV*#*kA)WI|i zEh~;y$(wA82M1MLGn|>17aOp9KSv@@J95j_EtR8-lhmMavFq3${7xSSH)cAxV#BC{c><3{)QZeRyU(5_4r{CQ4ymD9gr}P0a~-Ev9qac&HpUk%xFF*Hi{oC5W)RYp$S6;Mj)lc`v2B8>Hv3YYVmKT)liJlqP}9Q=^PJo36G`b{>9$ zcyvO^m^HU5mt^XhI(~k7KWtGynK+G)wS{7V4lQ4f4A8dlW|MDY0d`1uSPCmLCpg|0sbhkv($4Moeo z5RPggd2}hyi+M~469kK%d;tvjxRt}c0}|EJD)OAuxodv)#!%q6Y>f#_mP2k_x|L-L zISg&mWRNreRknqqBJ8b++w%E@PwnKaEyl*|*6)tw9nxsA3}J6jMGM#;k?wc+gVdIu)GDMnDhFEOr!X>v^^{gQziD=wwWu`j^+$+f3Q@!QYq1mH7% z@bxjokCO-7?V{SEr{UJhC#)Udf&8M(s8o29= zsgcPf;E%^^Fe`|oA%mPtb5i~3^cFb*2gjar?CP(pAdSQ_=$2BtHbR_qDSTiV!XAe$ z;adTKWsxBG_9P787a&%_jZM|hrzFm2sWxbP^>S&b!czh1pvKxFc&s6fgS$*l^NRB1 z<(4HxBzB47igsgV8KqWjANfi%d%aEAZgo$Ft318)R0jOSM7Y6GX&)fuq9z(p5y{O~ zhoE83?RnJ0T~t@MZc*lp2+ZwW)b*h`;)Ju&`Bs{gl|FF&tyX!`13xpVu10LqpC4uy z!-h2eN3S@Oo0xr8(q|u#muQQU?PiZ`+MGv5?W;`n*GfGW8ps<-2U7nI+$Wh1JWn!@ zzW}lmYHz%wmbd)Cil$a1l)gur6kNT90K?iaH4JWk{!RO!#bzCCPK^i6NTLXzXc6>y5&ee!xUlsyZs~_6n1JMA zk-m(vs8j{6c{g3>{bbM-Ru&j~Pqt@QK)Nn1XR0D}VvyxzBVRPnmqX_(Zbx#fJ?5nM zsUn|=Z8U9Gi>JE`qJn5OtaJzw;?4|?==n0w2S(OecC~wF(&sBEgQ=vAg9>KD^&z<| z6XHc!&6Gc6*<{Ay*m@;41%*0CSO|hub-hf{B!Ga4Nuz?K2+|0H_HN6QnWQrXQ=4Bw zg++nnpX0N~D|^sUoldmQI4mkz#(7GpzxA=J3PHkqQf$pGnhCU9C2)cX=b z2M*DQy1n_V72E>eHd=)99Gkx7_`UJkNYPdOgbi${3>D4*l5L2RIKWL6g@__Z?z6c~ zJUYQJCTX`}j2T=auzaEP;vWFAb*+yg4=B(bd1+ znu>_O;XX2aTG&FZ4fk3HmaAl~I&860Kv_BZCbu^x4`a+mX8Q}kxYkf+)^m*Vf}3PdI6(6s?)-n0aE|){L&NDIMo2PJa_cLwv3+?p)ZmvAVZYvb z2`oiZKqLlgcD55Aql}SxXgtTiW^Trdi+V?zL8jLayjZc`M=s!_#2h-Sr6YCY)C&|2 z#bLT=AL|5yBI7hpR(z2WDW%4R;?)g_(2?gaCDJ*Ia+j37w4Y$akCh&&n-7|{h}cCV zPCV!i--Pkri*ZSQPN%O?$%P#Bd=sLP5cw^$_TA8!a-mj5KVP zKdqPUT)Me*Ch~fLPilMsM`i7wbjmfA@(Z(AOr%3t->B4-?COd(WS?kjLdAf6W{t~E zZ3yBoBDp!ol{IJ*lmc^8Gz_cMa(uA~l#$ zKDyk;neREKf?ArcRRDg`pI2LGjY^uD!A6ekDg|NeILA@WE}SHZy!_z}1xY?f_eP^| zSxTEPG32x#xxu1NY~arQS!lq6Izh{eF?LgXEU#EVZPa#>yKtM&40LcH9#f#BmTY1w z_oEiR-<=EeRo!|S*xHMx7xfMxA`16yUj8lQ;4yN%hXyAZ$sDy9Eil3<4TGbeCnf-Y zX4MJkI7Ll;jj?F>MQl(6R@LU5Vb&8Xgj1z%38+zKHPe}4S=c|sxN82q)P%-vBFePK z;QPq0Kzo|x+Utu>&bP1v%)T1he|>e$vSlORe-qx5X7k0!Xyc4~wJcHPq zp|JM6J0M$n)IEx&e62>feMgo`Y@e?P>S6eJ*}K&3`2Ppo9l3z(wZ!xylF9Ipli48E z%m4Xh4%)WO^Tvj^%MJA*e?`nl>fJ8u3SBSUB<%x+8v#4gvejrHi)+M#<}injF1~cR zWfH|J{96XBH0Nu-}|!-SP0jy-moy2eP(Ym1AvUl>y&l2#|E zsKS+P`N#jtu7NJeBYtfO@bs}w+Hm5T${^#oDkGf(Q<|w97WFXr%~bqhOJxATBVV3v zL`}k<%}Z5F4P@N?HBUJ3UDXIHj!th+zsFFX_FA!4k%_vf2QEh9-bIHRZd=fFpMHJv znD>r zK=Kto0cp&$&RFl$zNejW_QsI5uIt&t_kXttsmHWAEP;`?Ap#zz*TRX&%3-$<$ z@>j^6dN;LRnrK2l+l@L6S5yH!{Ip>v2wnWMXh|y zly|pb3XoNw2n75YtAIl2UXG0uLw;!x5WUc=D8xXMu|7-!jOJH{KV&09Lv(#)-zEc{ zv+#-;cP~D&Y~s`5mrrjZ6V^9Qj_=Sc*ZKC`MAs!5^bh| z^dNS64}H&}aA{9F$(`oK`xOB}r(`Lpmw@3Z$!md~{BRo%OQm?jOc9@cK8aA{G0>AC zz>V~=U&_p>(GznDu=nkSX?8uw2$fi5?vR4Pw^j;fzB1KU$(NugaiR-=Lo5G>(_qaT z6tsoA)g`_UqD~r_2v);AJ$6kJsyZ=wPHC#=swV&y$BL_na;naiW}unTVM8$^j);81;C0N(>^b?%h#bZrYT}IN?^&o zART*A5Z#JYsjs(2C_Y-97UYQCJkcl)uuE%vtdElYQfkUmX!vK}+qZTjLPzhfU9c_J zQ0V)VrZ4rW4zcw)aCcX?BV;YW$lk;k0^h`!C5fQRG~*en+8-;(7B$fL{k*wCmMc7I zBa6m&BBCi6*lLMW$I4xM{RHm_(?qAQLgwj}sJ~P*>1Z1Stq#47lsE7>FsEMA#ExcQ zYVFo$>E%$$EnkG^0A5J`WFTnvJ(6?%u3T1Bo9N^B_i2W~3A2RYiabVs{=&jwW;W(p zI_seC8}A_8wPh8r;825HocbV8R?ZsBVNsIuFT>&~6{$`Y&2_lddt|Y9Tnd_ecq%-Q ze8z^PIz3Bb)3>0P5(Ql@S^FtcgNbFB?lX1d?E7}D$Ehs0q-gM1UH(!w&@(K|Cp3Nj z^I6KDVfc9}!S*0Hb9)X>*f7U`_PC`f}BpRq&a_-b4roSNqaT|!0MoN!sY>F!&N zij~|qKJN&glU+JnJM_3i626?LU@sO{^X$|XuIWLhH~oaIyPt4Q!i#0%)sojL*%m!rtbG#U-Nm8ba%;;HbN%KRA?;CUyn& z_yqaTWNQaC(=&C9gVU9R4y{ZM;B=Lki$`e~2cJ}Vj>onul#3COAdHlq% z$zIX4ITR?gNInWg`uC*kiPU&E`~qk~_X@MV=_!?5{lz@rvFn@-1h2)3n!j)T0T**s zDccneA(c^<8rhbKY&4N3k0DTc@zWYHe6F8Ty`X?39k#-khIU^YeBbY|`?-+p*ZXV7 zO6&FeNFac3P>XkLNGC@ROzaNzw^a0q8F1b_dSPM_1MWTX-VK&4U$BeQZn5s1qy~5 zYja(cn>WP>0rO<0SKtCI>%r|SI|zAt_03t z6pYA5jH1-K*c1rNk`NU~`f^3KvaX9(#saS6lMNnt(5+eQ;t*1?8$r{tt+4mhi1mH> z<@gia%uscLe;nVVMSQ*e6vwFQfWMpVK1j6!qP*6Qm2Q!SeR-Pb=6 zSiWG5dxed-&8<7}9oz6$f{fqw`1tRdweya6#1ge$q0zQ&>PHd90W_+LNF5u@QSK>k z-mSZn&kXDPJOM(BpKtv`>+2u&2@%LOW#PSlZMmij{4-q}dJVTZ!u;RJxmr&(lGNb^ zeaw$2tQl+mB#@gAkXB+vWarc3jTNA4@T~-FaLmx>!;Y=Yt=DKQ%HQfv7K=|{MU)17 zpYoG3UciGZT#X7kKx*8K=wwSTAz44GNY}>>G$S!-&1PJ=ZdNfQWS*&Xc zY!fa70CN*d5537X7wupuONAiz1yGZWzv?-rOeR+aLATk?#dnDbc`u@@DI3u} z)`0h1|5XL03%h42l zzc9BjS=jZ3fVl0B?=Epjemv^6dz8#MN}(Q zGP$gCR&$aa4C?;7;1q#MvX!`x?_gOz-?84(=wX&nhQ1e`mkF42kWwRhjr6H>WW)6r zQwDNI6Nds54b*)qdBAP0s!$_wjx!N;m$)~})x+ccTI7onnr|=QdS)IwdiSnpxXXMA zPa%=#4kMD8B25k{XZ_i5AnC^c_{IAaEQjp4AnP(NR*9J;z<;_R9}jjilX9NPf4l4R zz%Tk8Xj{xTq1!iIt2)2~?<^zeB@xkWKeZq?U z$P%^FXpXsXm*?jC2pk6yOT57Wcl07%)`FVmZ#QA)5cf1U*2e6{o_#)u+{>@J3OpgL z@Js$C;=_}TG-M_7ma;-L50fNiJ1VO)-1Rwb)*1J;HH~y<{lpBbZA$l3c4hTQu5n9o z+c*I7WVR(~L=W_d|F?b6ZP}UAqzn~#3w30J!=wQ9EpkONUIVKJ{v~N3&Md2n44NDs zua5UtSqoD)Pq<%Hrh(>xG$}v2)FylQbBjFg(f5mnc$pY)i$KuhJ@ZHIGNWl@s}Mlf zjb^Ff)06Er%Z^aaxlx0Of;Bz`N*O|fev5AfGIS=tDHcr&ssuTW4a;;;cB+LaMy?sK zH}{1~IRX2TEXWyd{cwB!$ijTG+}Pv|df7T!#(ng65Ol zz6^ly@%AYv@kv`WAkwO9GNKv{bquS%LcipoITf3Ozv9bx@v+Q9%uy;gC|$GSwi4lx z1U0($V$|k0oC>`Kpor~C5bcqOS6~;d#2&kdx0X2i@G*zM@b96nkF5Rd6HV%Tn_08| zG&Hm!A=l+I|KuOgHV@(fM5oBB4IK94S08YkMZ4>sj4L|Oo4K^P9Y(?DwUe;VH^~gBr>|Yuqi?Ze6^j``D8rmQE z@yj0FTxJG&6r6qlu93jEH0Od?Q`S-R&*MB-fyxr{Sj6Zy*3U)_HsS{1ve%3&pR_VC zA(d?EAIZ#c`qc;F8@ookmueZF`M&VTH;IX2j3RRb|B~5l({pB7Nq|DO4-* z$o~{;gvGz))C&S-@-~l##R3_h2t-lN%z9#+19CZ7=X+C!nX#kEZ@_=f|pJ( z&%x3)aEE$aM^8*zu6Kg|S6Am9m((Bs`?7MDrh+pU<^U(|oT*`M1F@V9%)R&4EKS2b zbKyWxFwsm)&9qDrHO0MCbLGm+nQ7ML+wb1TecbyW58%KbpYwjbUeDJ#kI!N4eEpuy zoxoW1(DD-33+hwHjkT_&8xZ5o6sqbg9g%kCA9FVMMC!|qKn9{W_>^#CD_1Gzo})j7 z7^o6>GuG^m0Ec^&OV?lFMh=^@q8L|TSD#d-eG0a%&6kG7atYzzCZBmH0~>nt{T5uH z6vQE{-J8Pavst>7<=-)`Q?`ri%$-Y;uhJbEqI}scD!7Q835q~yr@6I(1U}8<{Lm{npj6s4Ead-+*ie4@3c0#)tq|$ zQ}s5t-IK!}ce_gLTSDj*=T`mm869)j+izoC|HS?{fnYdoe`vdxAIS~u>HH!WLDco8 zxq>cC<{qZwy?06LXY*1}>#?Jtsv&&HN$&N4eW{L*;SM9vs7Ko1I0gL>%q;R2g5`ynH|;Vz%Nv0f$Kr|ge(i;;5Dpxn_l)GAf;e(>t!yxT*hg~m z9FWW~VBAu>?RAjT`uDoTPAgB{{LXlZFBdQ;1pbx1)X42VdlB+7Hsp}ox9&N13<;U= zoC(%=^S9VsN9D(!`swHgQ*vz(q>2_zFRVV&#Us8{Ntfywbs6bG+iYEC#<|y)?K7RG z#S4SS>Le;=RH<*4sy*j^avI0pp05Ob$UM^}O|CX%Fcf#GCeOaed2%a=ROd#x4(ggqW4P>uxw+~!T7>M1)|6EOM61DBY8oK8)(JbXviar=^` zuBF3Yu{dFaL>j+E;@2<>3ksL#?RGk0Tjgq2K7w>VebAe~aFgf)1%B;fIRh_c$dm2b&0>Kq)qPv$O zww{uZ|1GusovmvGesVn<3%7daw1oa;es}8gVyRNKDU3m z`rj1FMYPglAuVzJ7xz*!TPjGTeB0Bxd=;XgBJC_u2aX9q{&*SKN?{{Qcb-->)NDG6 zttQ6&jhmBRfQ~sH(*EQkWZ0IO^IlKTgtZQ+xzNWE%xs-7ufZo_-Dhmx@JU=e#0Nzi z+hpRA3+6vh8xHrJ#J>*fLD;D{iKk>(jDakKKBYGdDdjAA=Cm9aUTdtL*?L#k<}W$O z!NeR-%tdpyU-&t*q+>?9N)f9(_u}Y11F>l^D_Hhg}J=5K+?8^Q4X0ug-nH4yo^tO&6EK}FQ!_{~alUZl& zA#WaefiWpHiXiDG?Pe-R?RY^Q}7HPuoZrgVyoWpr4 zhU|B}{5~O<>zPfBj4TcFryp?>$U&*tjjU98Qxc<~{Frf^ ztMh|RkWZ8`gF0zu%aM+IXzl1YehJ6f(lJ^IQLfqjX$ZP!|Sk6Hc z+P+lgLN7GHftM00dJ!R#fNb4AtPM*CS)$xhS^x z3xzM<_QV5Hh%lofrmfm<{Sn4y$ z&&fJU^~+68oAis7YdjH7+7{?H#zR+dPeRXwBh*uB@&OlueY3+>&K8$ipZCewcsL=s zGM%Yej@log^|ya)DnVXwcCOz)Y z;>durbB2JU5#Db}J*dxM7~0v0TuUJ`j`**YI>Z4|-tg@y zmw_~IuhRAVshEtrD&89MuhrhpJ1Y3N7iUc*yZ|`03`wMO1Uzrz9*Gil-mo^zn9$lT zszxr2e!Z`#S)(Ctbm=}ou}ju)GK3=n@2bZLemece^;b9QgcS&dz7{gB_J8Iip6IKD z*gpee%D{K$sOe@4wa4l`N#s?Ms`cJYJ)_()D=lo(3kvjyDaQwg$d#4 zf=1GSaS_5V_j})K)_3D#-YNCpM&F;v0`aDI$2p8QFC1^`Lg?lA-PBbELWaav8(eXO z54uNJe{^$wiA7)(2SK{|a5wLGX1#qQB52p9LU~6C^@48VR8YqdouK|~%UlZCIk)20 z!RfiTOlS6Rr`v?O){u?j!%K=Lm1fMN0Y2~y6#`)lm!P6z!uhd2#o**dRu`XEs$ifbfns~t1a;;H3*;XwVifS1t&J)zBKj=pQhQHo`#WX%02|&y$GN=ak z$Dt)vsd)H>Y)#UqElFViyJ(IBR$I%V;T}Og!GpgBq=8&4pcqW@RZu zM}9iVQkq#PA&oAih+s_5&$e=YkDDbXQe@(6CAZ~{2L`>N4g3oc^|E@uVse2mG|&RQ z_y@fe@HzT(%4RE~6n3wa0d}!)ZOx7xGW>n|bY?bd@l>pPxrLBOXC}1mNdk~xWK9)r zKpp>0>Zu(vyOz38W29vWe;-m|R+ZqHJ@eiS);B+6=OA>lp?O#t-uJIj0JgqAEx55R zBBqCCgTw!LIX|Juy<0Ddsc_zCjR{hZu+(z4@!mute-e(|*NZ%R&-=_xKdvRx|NWYe zs?}_u|4W#zPyOyzUwYnnZ z{gyC|iq^?*rUP7)i72tk`bZx$aMrdOuq-!!m&@mr8JMYiIZgu(!M`YR5lM38lIBCHF$gxw;HCtw#6-PXLr;w3gJ;d+JNO( zlIlYy3A_nIHnA+l2CI=3AkM;M#ZK9TBFCCdW8FZ zgQJZzBmWDf&MdUTlX@PCg6jsrS}rhli= z+k$0XX@RyfgX$*2;^rE6)?A$GhupHU*;J*+~qku0We|0LE7 zrtm8SMt5V6C~;?LMbG|EcuDuzwv{oV*Rz9?U;yKo@;st#}<2@8%dM*rZ|dywjvj_o5oH_iw} zxFCx3u`Z((OQC%Rl|XQC7nCcW_4ZXct`1C5`&-9_X$ctdb*k>2bzc*Y+?oI49xEhO zukZK<=27CSNjDJL{<)PLY%m>Y`1<-1)17T0xxv3awVn-yPC1hArY}hUiEnHD>!B5K z83;(39t}NqLLs}(-kj8|mw`bB%K<{y&9s6wi6j0|5#UVjAPJ+`sQVk*lld2mM~Ubu zQ8Kk1%hD=s>W({(EJnYX;Bn(j1eVeYW<{|3>Pg7)RoJNS)phU%B~hd#F$=T&vx=@? zm~1ZN96_=D2Kgk>*(44_+)oCd32EPPA#U)|g6F;-z${~VyaE(+gG^=4*I>V_VJN_w zq=B3(yIz@Oq}_g*z3!ZPp#D(m5bV+zj4kMp6fK`t%Ci-Z>O*$6eJJb@ez8liGr4){ zd9stbKu__H$^tmKcn0!W1mZNH6BL9r#bfK4xgvO15B)KZC(=8>THZ5x>CDuGaN`nE z$(GBZI<5U`4$Bi&?3^9}kS9CM;8^!1S2_ckM`h$MwVdGv6Y=^6Wh#jZcl>EsWoKq! zX}eCGn%=r!$zV9>VU$t$XsW^`^ZT+rh{a$#_K;KE>lQR;Av3dmg5@{NT?0loPJAWT zYqNU_U5oL>>r8#Ih$!0zQ*O^)b^M%zc(@^YD*OEN^qH!8&Llds7IBe!P5cigt14IT zYbq$#6h$1u2nx^?k;%=eQ9NM&t8o*C{3(^QyQyNB;bci7SIwAEf+IiGLqAAT?>Z}j zUxBM?7oAFEdh5I>#d*P%e{jx-YKf^ynW4)-of%}d9rCxO-W8Vpmo?S0p#$KMjT@Eh zs;^`Rs}NsGKkB~46S(`eQY$<(o~GEjTcKyL3ogVXinP%V^)`HGtjDv^K4tTHwbJ)`JL%p4VJOB?awCrZYvwz}@j@AgidV8QQv9 zB8&KA)|OhnX57=Bu??W|Sgtpf?f6BJzC2OHSA|CeJtooY0>0B?2K$qT#xr?*L)uYv zZ>)b}T#b187MZLRWo?tH%3|-+@Ur6=UAFPSdHAWWKqrQ;VqN>13DjuE5dSMA6CI%C zw`CvbEh6lV5sZ2l@Nj5UdsC9)xtbgKKQ2oU8NuO} zX!sfN)-UNs(<~p99(Hq*7Dj%=q93Ew^@<03DjgcGwziG2rAjG&@8!VY^TbDg`DJG1 z)VKK(Dwdcq&d?kHuQfr3{(|IzNYSm6yV&Tz0TsyB7ghXe74|gxnJdM9F2%+Hq8PrU zV6dBF7CF-kf==U0#_0>g2%D$OMra~kp|-Rk@33fwE&k|oIEI4(Jd8AUp$C}GL_Mem zcI4`Q^R3KOm!HQj-`>{g?NcAn^vjxG>`R2iO zTL<^6QLtgVQKS3<7DKklZ$!gupr@|uL|%5bXpa7*OE}E?%V-<4n}UYKM6kBTlO!#S zAXys61FD$dwT<{KVrq35I&5bVWu6b|yp_Am3+(WWe}4DUQDLQXR_+bge5>(m8cfBaXgLF+S+y$GkP6odR(9(<)G(Mf%6+X*XXP9FM@w0w^x;axs0I zOW-sZCfJvWF3~9ix$id=%U(x!eLP=F$crRiw=9A^?c((^fY`2*cy}u{B1s$xbp4vy z-CZ(m_h;@>V)HN<=L>I>vYom8UhH@7th)H#|00S|O1HS!<`ZCo+GvY0gqij|Quu9u zH6Kd#10Xu-vgC|1AW)#^D(}eo9v-6O7gHQ-)M>@;DIM5WLi^ZeOZDWy(2Xq3tkh%i zkzc(iG+9pgfs}a38(cR%7{Q*b|I8pZjyKUO9=%JuIh`j^GWjwcE=xg8Ca#7cX+KJr zbji$?q&()AXyK9l(3fv#u$)WaprS5$FL8LnB%>v<_VTNeakp~0;6FvIpYoV_SQ2dc z@l!4~rNAwRf(M#FDq$?UIJ+HCztX*`3`XUoTrrlEV+o{V`^&c+T!hBRje?4js6l}Y z%^H<9A~2?dc8Tk-SJzLay)QN-p5eY~PAyNZymCzF>z2Yx9&?|(yG%yEv6Z-zu*4b0 zg*2rL%#&q?nqQ24pWa?}Hur+MIRX%SL%x@-PvL+r22VGO1I1j2-KyDlb*x{Gmw9Gj zo(R=3T^&v9HZoee>T4_m-)|lb2P;r3-SL7l1B*LLiRI@^g^S_rK{j?(L)|$RJQ30K z4D{WB_T?aVQD0?}bXwc+z}3cbR%(SKDqZR?$14=AudQPmm`?(MTtJlMs(-zEIrs+{4nI4yMeY@ z>Tn0d#xyYRns}d#=;Uu$^_L=BgrEJ%x;?9QePz_g+$Wdj?-*^I2?l#i~K z)ZtBC@&UN5*xn$J5)UP-SNJT~MhYzba$VXUNG*A)rA9ALOT2^Ed%?&>zpi#%3etD zBl@x^cUxs{t0cX=W|fKZ3Nhgg2hQ&f!7@=D@3eWIC4CCfu1JGcNHSz{|M3*p};XV>90 z>B)4P81x9=t1k%PQ-^F_$EM}Syvm}A#Ex5XiHUBbLltgXddxxeauoG` zd^fTJxP-_0`vt2U4k8Q1|bM1dV=N_bb3U zx`)I4%<{P16fb2bk9a+R721tKm?D2`n!yw>P6P0?GL>z0$1}7X@bEc~r%08a@u3ZE zpF_q;+mb}1SIY=H#a;{7Er*;#7~=ecm#+~0s;%nDsr8s?XbPRyEx4bEe8BsXsb|Q# zK`}Tp_%U45R4Tb*`JN6AyZug(qIeyB)8T0b;NU8GnV-N|a`x93e!L{z>!SZ;{+|n}-*1K`Yfsx$X2onF^=@DLaV%=iyYomY7u!3z*pv<>Jr(aPa{^ zye?s{R@a+CbZwA+J1I+Ff~<-9L4UxdhyM^bdsruI#V_Xo&6g|Py3G1`BKwe9w2 zZsHaIC?%5lQn#~hpYvjvHx6ZHQD3+-2feX>bBEvn5+>W=}#= z(f-nVc%Bl;l=(aNPTTIHJs}!0(l5Ozzs#keZsdrZeuA2T69+L#apw7kr$93}r%4{W z=<-i@pC_$^kkS{6WDAo+3mj#{<#saByk?%D;aV|&^)dZ||BEF?{|}ZRcGCXClBIps<3Evz&OOg> zvW5{1ekI5wSTppUW8AzpPB|})zwnL9KziLzYM}AK7moh{FMg!-LVoI7E5Wh)*TUK{ zuY&*bGo;kM{!-c7YgG|ctShzLs<>s@AABF!M&FDnUF=h z)>r>SZ3cGH&1S^Q=LwH9tBQ|`qjmi!l(kBTj6e<`!?{ZKY|B&FK%VcR<7x{Zud4P! zo#QEI1+v+%ZV>d-&ZE}?k@hd#?-nYc8~VLNgX>tCwkm9)H9PR&YWYA|9GN?Q^K+EvI&BhL7l>9|{e-W$P1e`DHFD&g~~}7bBE|%9e*b zq5iZR^Rm#GpBR}=o&b@re6HC<6fn^bh zd`JlX*vSiAmCmDXF)9Pb-i}B+ue-Lo`AXxv&-_TOIcqhocK2%6IK}2yTyWpTq!#rY z1fVQHWKtPy>p=SPk6Zfn{|~p^FitO`U%t3DaS72GCG2W!(VrMN-hXQ~b@CiBt?c_BwA3t`qK77=XlCL4PsbFr9>E{^ z-1cXL5Si6*N|}JN>);kidK$Q-^fN$VBC}n z7zeT~2bjOiKnuw8=|MK0q3uIN_QSGnk(6sjo|_D*mj|8cd!GD2PIv)Oj|08A1avYG zcA?`WMyo!tJQE{KMrUMl0(D~aV54hpS`Lo@t;$?`PL{3xh&akLvJ{;9$W78a8*4_A zhA~WieB5M<)^6qYl?(oLk-mjcA2ykLUB8DA+iT)jr)7-T6lhtTs@ z$oNBp;sldlI%=B90id*0k9nWKTB)w}WzaU(xhw&za1{mw>Fj@`%=>}P<-r2jzs~JT_dE9WZ%38_RgGvL-?Rc zH?1(M*Uy*&V=s@KbFx`bU~J1XX7z_uA93e4#~9ld)W(( z_|@*SrE03<2_|#M4x-{~H>Sd9Jo5>0#a)o!MO7y3RZrQWdh};ve8FAxlgrk`k6S}O zANtCE`iu;CBt)Z%5Sn=vqGNi)!LQt~g^lEQ1D>{^u{E7Eo9%{gIc8Mm{Yae6u9PEj zwPIG#x;P7Du^eFuckkEv?kNVG`kxCoqLAn}#O}YA$Ob+C-@|UdQz(HlazUMoHZKBR zP=;GI|KpnYA{WU!Pdy$s7q=T!-fldsTu{Y_domd`pEeQ`G1c4NVNu^p*77!>v>$s< zOsplX`!@>VRmG40W^O=F!VSqWJ`poO1HIp#mQeORFQ1m-Hd;40&y-JlTg<@!#5QMf z)h^kmr7OIw2MF$ssikgv{RN-=vCYB$K8~K5sd*KnS7Wk6JCOQ{ZXOXiWA;sk+&J4g x_kUkz0>~#n|Fr&4HKJ{7=Ow2!YqArAF7O+#3s%mhJ&ERw5zPEXjo$so{|i$kmJt8| literal 0 HcmV?d00001 diff --git a/Documentation~/zh/tutorial01.md b/Documentation~/zh/tutorial01.md index 0c2b382e..9c83fa1e 100644 --- a/Documentation~/zh/tutorial01.md +++ b/Documentation~/zh/tutorial01.md @@ -6,84 +6,124 @@ slug: /tutorial01 # 教程:5分钟上手 XCharts 3.0 -> 注:本教程适用XCharts 3.x版本,2.x版本请看 [教程:5分钟上手XCharts 2.0](https://github.com/XCharts-Team/XCharts/blob/2.0/Doc/教程:5分钟上手XCharts.md) +> Note:本教程仅适用XCharts 3.x版本,2.x版本请看 [教程:5分钟上手XCharts 2.0](https://github.com/XCharts-Team/XCharts/blob/2.0/Doc/教程:5分钟上手XCharts.md) -## 使用 XCharts 前需要掌握什么 +## XCharts的前提条件 -- 会简单使用Unity -- 了解UGUI,会使用UGUI -- 了解Unity的MonoBehavior脚本用法,知道怎么挂脚本,用代码操作脚本 +XCharts是一个Unity图表插件,目前只能在Unity平台使用。 -## 获取和导入 XCharts +使用XCharts前,你需要: -XCharts可通过以下任意一种方式导入到项目: +- 掌握Unity的基本用法。 +- 掌握UGUI制作UI的基本用法。 +- 了解Unity的MonoBehavior脚本用法,知道怎么挂脚本和用代码操作脚本。 -- 直接将XCharts源码到项目 +如果你刚接触Unity,建议先学习Unity相关的基础教程再使用XCharts。 - 下载好XCharts源码后,直接将XCharts目录拷贝到Unity项目工程的Assets目录下。 +## XCharts的获取和导入 -- 通过`Assets/Import Package`导入XCharts +XCharts主要通过Github来维护更新和发布,可以到Github主页进行下载获取源码和Pacakge,Github主页:https://github.com/XCharts-Team。 - 下载好XCharts的.unitypackage文件后,打开Unity,菜单栏 Assets-->Import Package-->选中.unitypackage导入即可开始使用XCharts。 +对于无Github访问条件的用户,可以访问[【国内镜像】](https://gitee.com/monitor1394/unity-ugui-XCharts)进行下载。国内镜像的版本更新可能会相对滞后。 -- 通过`Package Manager`导入XCharts +XCharts可通过以下任意一种方式导入到你的项目: - 对于Unity 2018.3以上版本,可通过 Package Manager来导入XCharts,打开Package Manager后,通过 `Add package form git URL...`,输入XCharts3.0的GitHub URL: `https://github.com/XCharts-Team/XCharts.git#3.0` 稍等片刻后即可使用XCharts。 +### 直接将XCharts源码拷贝到项目 - 也可以直接将package加入到`manifest.json`文件:打开`Packages`目录下的`manifest.json`文件,在`dependencies`下加入: +下载好XCharts源码后,直接将XCharts目录拷贝到Unity项目工程的Assets目录下。编译通过后即可使用。 - ``` json - "com.monitor1394.xcharts": "https://github.com/XCharts-Team/XCharts.git#3.0", - ``` +### 通过Import Package导入XCharts - 如需更新`XCharts`,删除`manifest.json`文件(部分Unity版本可能是packages-lock.json文件)的`lock`下的`com.monitor1394.xcharts`相关内容即会重新下载编译。 +下载好XCharts的.unitypackage文件后,打开Unity,菜单栏 Assets-->Import Package-->选中下载好的.unitypackage进行导入。导入完成并通过编译后即可开始使用XCharts。 -- 建议先导入XCharts的守护程序(非必须) +### 通过Package Manager导入XCharts - 守护程序[XCharts-Daemon](https://github.com/XCharts-Team/XCharts-Daemon)可以确保更新时编译正常,当本地开启TextMeshPro或NewInputSystem时将会非常有用。将XCharts-Daemon导入项目后,在更新XCharts时守护程序会自动根据本地TMP等的开启情况刷新asmdef,确保编译正常,不用手动去解决,方便CI-CD等自动化流程执行。 +对于2018.3以上的Unity版本,可通过Package Manager来导入XCharts,打开Package Manager后,通过 `Add package form git URL...`,输入XCharts的GitHub URL: `https://github.com/XCharts-Team/XCharts.git` 编译通过后即可使用XCharts。 -## 添加一个简单图表 +对于部分Unity版本,也可以直接将package加入到`manifest.json`文件:打开`Packages`目录下的`manifest.json`文件,在`dependencies`下加入: -在`Hierarchy`视图下右键`UI->XCharts->LineChart`或菜单栏`GameObject`下拉选择`XCharts->LineChart`,即可快速创建一个默认的折线图出来: +>"com.monitor1394.xcharts": "https://github.com/XCharts-Team/XCharts.git", + +如需更新`XCharts`,删除`manifest.json`文件(部分Unity版本可能是packages-lock.json文件)的`lock`下的`com.monitor1394.xcharts`相关内容即会重新下载编译。 + +### 建议导入XCharts的守护程序 + +守护程序[XCharts-Daemon](https://github.com/XCharts-Team/XCharts-Daemon)可以确保更新时编译正常,当本地开启TextMeshPro或NewInputSystem时将会非常有用。将XCharts-Daemon导入项目后,在更新XCharts时守护程序会自动根据本地TMP等的开启情况刷新XCharts的asmdef,确保编译正常,不用手动去解决,方便CI/CD等自动化流程执行。 + +XCharts-Daemon的导入方式可参考刚才的XCharts导入方式。可以通过源码或Package的方式导入项目,XCharts-Daemon的Github URL:https://github.com/XCharts-Team/XCharts-Daemon.git + +## XCharts的基本使用 + +导入XCharts并编译通过后,Unity编辑器的菜单栏会显示XCharts,这时可以开始使用XCharts了。 + +>Note:Unity的菜单栏出现XCharts菜单时才表示XCharts可用。 + +### 添加一个简单图表 + +在`Hierarchy`视图下右键`UI->XCharts->LineChart`或菜单栏`XCharts`下拉选择`LineChart`,即可快速创建一个默认的折线图出来: ![linechart1](img/tutorial01_linechart1.png) -## 添加多个Seire +如需在某个节点下创建图表,可以选中节点右键`UI->XCharts->LineChart`即可在节点下创建图表。 + +### 修改图表数据 + +刚创建的图表,它的数据可以在Inspector视图面板上进行修改。 + +对于X轴数据,可通过:`XAxis->Data`展开后进行增删和修改: + +![op_axisdata](img/tutorial01_axisdata.png) + +对于Serie数据,可通过:`Serie->Data`展开后进行增删和修改: + +![op_seriedata](img/tutorial01_seriedata.png) + +Serie支持多维数据,一般折线图只用到二维数据:第一维表示X轴类目数据的编号,第二维表示对应的数值。 + +### 添加多个Seire 在`Inspector`视图,找到`LineChart`的面板,通过`Add Serie`按钮,可以添加第二条`Line`折线: ![op_addserie](img/tutorial01_addserie.png) ![linechart2](img/tutorial01_linechart2.png) -## 添加其他组件 +>Note:Serie通过`Add Serie`按钮添加。可添加不同类型的Serie。[XCharts有哪些Serie?](https://xcharts-team.github.io/docs/configuration#serie-系列) + +### 添加其他主组件 默认图表没有`Legend`,需要`Legend`组件可通过`Add Component`按钮添加: ![op_addcomponent](img/tutorial01_addcomponent.png) -## 添加Serie组件 +>Note:主组件通过`Add Component`按钮添加。[XCharts有哪些主组件?](https://xcharts-team.github.io/docs/configuration/#maincomponent-主组件) -Serie只自带了几个常见的组件,其他组件按需额外添加。比如,需要给折线图区域填充颜色,可单独给`Serie`添加`AreaStyle`组件: +### 添加Serie组件 + +Serie只自带了几个常见的组件,其他组件用到时需额外添加。比如,需要给折线图进行区域填充颜色,可单独给`Serie`添加`AreaStyle`组件: ![op_addseriecomponent](img/tutorial01_addseriecomponent.png) ![linechart3](img/tutorial01_linechart3.png) -## 添加SerieData组件 +>Note:Serie组件通过Serie右边的按钮添加。[XCharts有哪些Serie组件?](https://xcharts-team.github.io/docs/configuration/#iseriecomponent-可添加到serie的组件) -如果需要个性化定制每个数据项的配置,可以单独给每个`SerieData`添加`Component`。比如我们给折线图的第二个数据单独显示`Label`: +### 添加SerieData组件 + +如果需要个性化定制每个数据项的配置,可以单独给每个`SerieData`添加组件。比如我们给折线图的第二个数据单独显示`Label`: ![op_addseriedatacomponent](img/tutorial01_addseriedatacomponent.png) ![linechart4](img/tutorial01_linechart4.png) -## 更多组件和配置参数 +>Note:SerieData组件通过展开SerieData后Component右边的按钮添加。[XCharts有哪些SerieData组件?](https://xcharts-team.github.io/docs/configuration/#iseriedatacomponent-可添加到seriedata的组件) -XCharts经过不断的迭代优化,目前已有多达几十种的主组件和子组件,每个组件有几个至几十个不等的可配置参数,以支持各种灵活而复杂的功能。 +### 更多组件和配置参数 -首次使用XCharts,可在 `Inspector` 视图添加各种图表,给图表添加或调整里面组件,`Game` 视图会实时反馈调整后的效果,以熟悉各种组件的使用。各个组件的详细参数说明可查阅[XCharts配置项手册](configuration.md)。 +XCharts经过不断的迭代优化,目前已有多达几十种的主组件和子组件,每个组件有几个到几十个的可配置参数,用来支持多样化的功能。 -## 如何快速调整参数 +首次使用XCharts,建议亲自去测试下各个图表各个组件的实际效果。`Inspector` 视图可以直接添加各种图表,各种组件以及调整各个配置参数,`Game` 视图会实时反馈调整后的效果。各个组件的详细参数说明可查阅[XCharts配置项手册](configuration.md)。 -`XCharts`是配置和数据来驱动的。想要什么效果,只需要去调整对应组件下的配置参数就可以,不需要去改`Hierarchy`视图下的节点,因为那些节点是由`XCharts`内部根据配置和数据生成的,即使改了也会在刷新时还原回来。 +### 如何快速调整参数 + +XCharts是数据和参数驱动的。想要什么效果,只需要去调整对应组件下的配置参数就可以,不能去改`Hierarchy`视图下的节点,因为那些节点是由XCharts内部根据配置和数据生成的,即使改了也会在刷新时被还原掉。 如何快速定位你想要改的效果所对应的组件,这就需要对组件有一定的了解。比如我们想要让X轴的轴线末端显示箭头,如何定位?第一步,X轴定位到`XAxis0`;第二步,轴线定位到`AxisLine`;最后,再去看`AxisLine`组件下有没有这样的参数可以实现这个效果,对于不太确定的参数可以查阅[XCharts配置项手册](configuration.md)。 @@ -93,9 +133,9 @@ XCharts经过不断的迭代优化,目前已有多达几十种的主组件和 2. 如果`Serie`的`ItemStyle`配置有非`0000`颜色值,则优先用这个颜色值。 3. 否则颜色值取自主题`Theme`的`Color Palette`。 -通常颜色值为0000时表示用主题默认颜色,配置为0或null时表示用主题默认配置。 +>Note:通常颜色值为0000时表示用主题默认颜色;其他参数为0或null时表示用主题默认配置;设置颜色时注意透明度。 -## 用代码添加折线图 +### 用代码添加折线图 给`gameObject`挂上`LineChart`脚本: @@ -143,13 +183,21 @@ var yAxis = chart.EnsureChartComponent(); yAxis.type = Axis.AxisType.Value; ``` -清空默认数据,添加`Line`类型的`Serie`用于接收数据: +清空所有默认数据(包含Serie),添加`Line`类型的`Serie`用于接收数据: ```csharp chart.RemoveData(); chart.AddSerie("line"); ``` +如果Serie是固定的,建议只是清空数据,不用把Serie也清掉: + +```csharp +chart.ClearData(); +``` + +这样可以提前在UI上设置好Serie的配置参数。 + 添加10个数据: ```csharp @@ -164,30 +212,26 @@ for (int i = 0; i < 10; i++) ![tutorial01_linechart_simple](img/tutorial01_linechart_simple.png) -如果一个Chart里面有多个系列时,则Axis的data只需要加一次,不要多个循环加重复了。记住:Axis的数据个数要和Serie的数据个数一致。 +如果一个Chart里面有多个系列时,则Axis的data只需要加一次,不要多个循环加重复了。 + +>记住:Axis的数据个数要和Serie的数据个数一致。 完整代码请查阅`Examples`:`Example13_LineSimple.cs` 你还可以用代码控制更多的参数,`Examples`下还有更多的其他例子,凡是`Inspector`上看到的可配置的参数,都可以通过代码来设置。[XCharts配置项手册](configuration.md)里面的所有参数都是可以通过代码控制的。 -另外,除非定制,建议调用`Chart`下提供的`public`接口,特别是数据相关操作部分。这些接口内部会做一些关联处理,比如刷新图表等。常见的接口有: +### 设置默认字体 -1. `chart.ClearData()`:清空图表数据(不移除Series) -2. `chart.RemoveData()`:清除图表数据(会移除所有Serie) -3. `chart.AddSerie()`:添加Serie -4. `chart.AddXAxisData()`:添加X轴数据 -5. `chart.AddData()`:添加Serie数据 -6. `chart.UpdateData()`:更新Serie数据 -7. `chart.UpdateXAxisData()`:更新X轴数据 -8. `chart.UpdateDataName()`:更新Serie数据的名字 +XCharts默认使用的是Unity默认字体`Arial`,在WebGL平台上可能无法显示中文。在将XCharts用在你的项目时,建议先设置好字体: -XCharts内部有自动刷新机制,但也是在一定条件才会触发。如果自己调用了内部组件的接口,碰到组件没有刷新,确实找不到原因的话,可以用以下两个接口强制刷新: +- 找到`XCharts/Resources/XCSetting.asset`文件,修改里面的`Font`并保存。 +- 找到`XCharts/Resources/XCTheme-Default.asset`和`XCharts/Resources/XCTheme-Default.asset`两个字体配置,点击`Sync Font from Setting`和`Sync Font to Sub Theme`按钮将字体同步到主题配置文件上。 -1. `chart.RefreshAllComponent()`:刷新图表组件,会重新初始化所有组件,不建议频繁待用。 -2. `chart.RefreshChart()`:刷新图表绘制,只刷新绘制部分,不会刷新组件文本,位置等部分。 -3. 各个组件也可以通过`SetAllDirty()`只刷新自己。 +字体设置好后,新创建的图表就会用新设置的字体了。对于旧图表,可以点击`Rebuild Chart Object`进行刷新。 -## 使用TextMeshPro +>Note:使用XCharts前建议先设置好字体;更新XCharts时注意设置的字体可能被还原的问题。 + +### 使用TextMeshPro XCharts支持TextMeshPro,但默认是不开启的,需要自己手动切换。可通过以下方式开启和关闭: @@ -206,10 +250,29 @@ XCharts支持TextMeshPro,但默认是不开启的,需要自己手动切换 `3.8.0`版本后增加[XCharts-Daemon](https://github.com/XCharts-Team/XCharts-Daemon)守护程序,将XCharts-Daemon导入项目后,在更新XCharts时守护程序会自动根据本地开启的TMP情况刷新asmdef,确保编译正常。 -## 用代码改图表参数 +## XCharts的代码控制 `Inspector`上看到的所有参数都可以用代码来修改,关键是要定位好你要改的参数是在组件上、还是Serie上、还是在具体的数据项SerieData上。 +另外,除非定制,建议调用`Chart`下提供的`public`接口,特别是数据相关和列表的操作。这些接口内部会做一些关联处理,比如刷新图表等。常见的接口有: + +1. `chart.ClearData()`:清空图表数据(不移除Series) +2. `chart.RemoveData()`:清除图表数据(会移除所有Serie) +3. `chart.AddSerie()`:添加Serie +4. `chart.AddXAxisData()`:添加X轴数据 +5. `chart.AddData()`:添加Serie数据 +6. `chart.UpdateData()`:更新Serie数据 +7. `chart.UpdateXAxisData()`:更新X轴数据 +8. `chart.UpdateDataName()`:更新Serie数据的名字 + +XCharts内部有自动刷新机制,但也是在一定条件才会触发。如果自己调用了内部组件的接口,碰到组件没有刷新,确实找不到原因的话,可以用以下两个接口强制刷新: + +1. `chart.RefreshAllComponent()`:刷新图表组件,会重新初始化所有组件,不建议频繁待用。 +2. `chart.RefreshChart()`:刷新图表绘制,只刷新绘制部分,不会刷新组件文本,位置等部分。 +3. 各个组件也可以通过`SetAllDirty()`只刷新自己。 + +>Note:用API去操作数据和各种list,而不是直接访问list进行处理 + ### 改主组件上的参数 需要先获取组件,再修改里面的参数: From 25a06afb50d23ca58faa986d8968fb570438fd11 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Mon, 30 Sep 2024 17:42:55 +0800 Subject: [PATCH 32/34] 3.11.2 --- Documentation~/en/changelog.md | 23 ++ Documentation~/en/img/tutorial01_axisdata.png | Bin 0 -> 23064 bytes .../en/img/tutorial01_seriedata.png | Bin 0 -> 26370 bytes Documentation~/en/tutorial01.md | 241 +++++++++++------- Documentation~/zh/changelog.md | 14 + Documentation~/zh/tutorial01.md | 8 +- Runtime/Internal/XChartsMgr.cs | 4 +- package.json | 4 +- 8 files changed, 196 insertions(+), 98 deletions(-) create mode 100644 Documentation~/en/img/tutorial01_axisdata.png create mode 100644 Documentation~/en/img/tutorial01_seriedata.png diff --git a/Documentation~/en/changelog.md b/Documentation~/en/changelog.md index 96050ed5..aa270236 100644 --- a/Documentation~/en/changelog.md +++ b/Documentation~/en/changelog.md @@ -2,6 +2,7 @@ # 更新日志 [master](#master) +[v3.12.0](#v3120) [v3.11.2](#v3112) [v3.11.1](#v3111) [v3.11.0](#v3110) @@ -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` diff --git a/Documentation~/en/img/tutorial01_axisdata.png b/Documentation~/en/img/tutorial01_axisdata.png new file mode 100644 index 0000000000000000000000000000000000000000..8c4910aff32ac672f731a2d7ca7ff94646cfc131 GIT binary patch literal 23064 zcmZ^~byOQ))HU4Vt_f1CP$YP9ZPDP8;7$ppXp6fQEetNjHMo1Rq9wRH6ljY(g(5Bb z@_XLz`Tl#eR@O}Jx_9QznX}J6ci)ppn1&)D-ZQ)>Po5AeE6Hm;d4dK!e*JOKA6vp+ z6)-#=pfEKZXm4+CZEfB5_I6o$#n8}DPiJRKOKVb6(qsF~%uGgR*2SMcy1KfUn3z#f zQ4es$yLa!ryu2QCtsbQH#U&)RK4;7Zgl}Hf)jwVk$4yH^yWrt}J_~&vv?WiT82Tv7 z%jkGLJ^cJMsep?hJT>ucJPX0-?}xyH)Q?8*+pnsQSEtOpzjK6t#MAuYM?m;0ik0fw z^+CqI=W88*zmM(U?n}3sTmG|hWYvn)A0tg3LHV<)Phy1-#DPgY}~zoBZ0|=)e2Y{c6_~ z>KYV~%K&7c@#_kvUtd5%{(gBvdWG1QpSfyHU_{PB5q(+t9&_>Z`xxNgsT8aNJ%vAf z@J4^lJ(y^6H;N_4OD39HZFj~IPxlHwWUxdqD(Lr$=NR-yd5b2Yc<8J+-4q=nGS?ih z8j6&QDbVi}gYLHg?^CITB>Yflz7n1ryAg8ai?rtJEog(j7Q2kfnMrJz8hO(@iP=(z zH0S3I!)}ZqsgjQ3mxfgnM9M@7=`+tyiB+>5WUx|XE3W@OF;YHP4c}4s?kCCmRroCu z-@8Z)?p8J^Swn!3OVCl$Fw0OqzLS6GtbCReX$Cs*jKv4uP#T-mF+rXApqz)1;C+l~ zqRMt%Q@%fl0^SM$nTBj(!aVI0h274`o{D0a_m;QH!Q7}gBkDP$5J1%XO2I z!S$#Q3RBG6x7XFXezVtHyx%slfk0&^N;t^00o9`CRMwL-ItB4g;s|CFY8m$SUpM?@^PZEYV&cP6n%Az z>EE3DE`}eM6+?~Lmir7)PDI{32iaSpv+@Qm#Hs>LROFAGBAbUWZ&X*kpn&2O*@! zAX=BI7@S^4{*GD}_onDJI6ht76FR1Kb!k-$kjvR z!1&`2Yl{v!fwbq7+aKE>|C|U{tZuoSD6b!)7x4W&NwsT#A49~g zU8C1VJnyQm(S!cF?;b=4iou*CZLqNw30*3V0xi4Hq2t=^2Mm5R8U590t}xu_W!L$=HmmLAmRE2I3EKd~-0 z4I~5K;c0(u;g!{pieIfx#~myu<>Zjz0B?JLGgxxW=zF4&)7LjPG02DiZT zC5EzP>OL?uegWA-;lsR;I0+E9(h81eMlp2;dqH$;q)Yf3$#^;BItZcJW2j%q)t*|k z&BXDhy7Xp>0t%5i1EGZF;cB#6i5WbG`=y$)Ouf=|U9klak7CHP@v$E(SWwqEM5hd2 zQL@0C3~E;8fq)-Cro*E(rv@oq067MLc+g`9K_pkIL46RBy;ITcM*$o{7 z=a(`V6|ZHU<%q{3e{=`i zFo~;;GJXa__2GrRWZSiQX|ztZ)uodBsl6_2yvkN(JL#5=SeY4|8YH5r7C^S!3OG!G zMh-9|5iol*lQb&B=UeZgaXMW}`K9v1(OX@wy}k0p&B2lQXqCl!n94JxbeerQzrEyboL%BEMGQv_5Er zpeAYJS3wFv3cpzh-1Y1J2PPdX^2>p{R%l+58?U7Y1Ognp={=x2M{?$bsGCVwG{?8# zH>DM{r~=3rXXAt(UagZ~g2f^pad5YnWy_~NYa%uJ#33^e1lKM=t{UEt%=6Tx->B@L zqe-*|4W<~sUjnazLm?W*dVd^b_Rd-;!6&wJXe}W$f_+AC7Rm;D%QJci?$s-`2Gv-# z3xVLoMun+FVl)~~WAB|0)se1*P)HVf=9=&0>j*;N;-sV-m6@43vwwGSAjGJF$R62k zqe~N_SQbp}qO%$XH|XrdlF)?2I>+F|$LHl)qc0pN7l!R}c84T2~BRzNWoQ#zkp7Mehy*7Tfh zyoG%-oaLJn>`liuK9Fw9G_FO-l7l(0#{32Ch!d#x*_iy1Dsc>$7>F|UD3v$(6y`y` zD;Ms{KoA+mpoYaaxN}NHO89^d(9{WXOC$}QU1Js(fgRQeV7B$yfH>GIag_0@+L#pB zN5QB`Rug!%)&mCs6)!YHch;>M(dzKEEL{fe1|it8W#B+nMxJaaB3K8mc1WrJRWU&i zRKe-O*Kg2c$X|GeQEdQsqqTxYygyO*)}~W{tGLj~1d-a^fk83keY1MqMQ4*>IxN1q~NKWmA!JorimqNDE?W=W7`djL4QL)~FR zaji~I%BESaslqhsbb=a0BFBY5TY+JnMvn$qzy)dNydO=~3dVNsdecq8^V&5uYx_ea zC4RA&`y^Kog!Vf5X*QvWO8Fhc;(O*}gk$qAkU{WfOP{s{ji-%0pZ@r!1-IumllX1Q zcq^{Go^^Woy5JH#yL}HEvThNP^Q3KHLa2Qmrg+x}2KP&4J}d}6nlLy2Zye4XxMXAt z+2up~gXl*Pa@gzoq3dXire}mVsY`6fbNk_+j+B~2>OUv{ZDB%CHag86%##oVRT7;w z4Mj)gTTe?nmo`v5`9TMznStp;1z?rTti*D!wh;X2&>cwnME>|0H8$|`PtlbEf%;H4 zBgh%<7!Z&PgB^Ad%jKrNCC-Cn_9Ky>a2^O^es1g_q9`dFvcr|{g{oBj#dd+sj<~EX zn@jYc+qbgi)m~-SS!lkQ)P;s}$Hx#Q4wN z>yK0ItIs>*0tdYy=e`l}fU^Q(x361R%<`Hdk#*u}QRi z%gZ8x82pmkq(&X}0DzWMujXyLFepR4)w$|_GM{q)D``sK`W+KU zl@@Tlaug>u;jsn=OBQLt1hu}9Cv7Fl#ydH-5UIc&Ml7h@Vv6yL$qEgUM3Fl%*)%Ry zQLLvE=KD_pL7wi-5lzn)MB}~i7_V&m_QKWQ4X&JkeeY+6JG2G4C9e(urXXI|CdKwV zs`|kzg#!%W4+FReZ^0e+-+CIWHXJ0$RyL<`-vS_#17xPkIET@ShqsTU?)wFJ4lHQA zCSMnX*mIY?9gBZVKVuSDe;(fL1-)vD?*89 z_?g&0MmFyqT$SIENySv&R*9XZF9;|_2(v#gu)G(KW-8~Lr@%}xg@ay*Pmr3V&@=DH z%oD>vlfbOyj_OeBWU^{bG=+@_9KsjHDVsvTxdVF`*U>sT^0RvSy~w>6%;`S-c5_7| z3>}*>KGA`>M85$AFpcI8QMrrlu*RQ+8fD|Umu(s&)C*I16qVlyn46?}rtb?s`QBY! zGZyGXxzMvPe`mQuv?#Se_HlqXAW6!)yP)0wG&IhP;7fDjT+YH72Jp7xMAsKX2UIoD ziSmnGJ6AX$0P^rngm^tVDvkL*xeNz6xAhxIrdUljjyiSR>i+bYT)t308dzQZ=}Ub2 zr<=G5Nf>`<0a{JWz!TO7Wmy~r>kB}ka6Q=^x|A8e(w%=BUu%_IeP=d~gex@iIBW5b z_&=a$9<=vmMzv2~maT4+Ue1h){B!?#%=Zu&`(5?QY51mjk$e93>l3eDa4KPAR(`&X zC*2}V)i?gudqxKC9x{7;{C0!(kMHq6XdZnX4WKbdJpO=l(;Y&)NZ8U<(%!LiLST}6 z!($)#@45ZLirb9|{sA>8JJOxY;KAqjD&(D}E+ls=?+3+qydCr}jVxa#`~}GvFsogw z$R|!$UpVkMOVB%RcT(4NJzmJ+*ge(N_a6k`@yFcX%~e~_17p6- z@N2u($Y#Z<>(rUR!_W9Ge>e!jK0W8-hZ2m|J~Wx(9`-3`32XQUPG^uyNlQkLr51F# zr&+NP#Ui8FiQRPpQ5Xm%>QCSfe%nO})p=#J47o#NTohC~kb zFM_^6n6`%z*&7xUa`($=k**rvYIrmQn@35~kYTm<_S;w3T^Jfkxqih-HJ|ex59B(J z1yiru9wCpga6>a)|B1t7uZONaNoB~PK<jY} z6xkx*?k}LztikVi=51DicmEv(Z=g48LwZq?-$i)NboQ@SLVXKT{*_YVJ97!r;$~=F zD>5LB9AqjQN9A8mkZg1pE+m_yhDt}sFJ7=YfE;fR4Ty6 z0UvqxF$qkN{nifQ+odVd?Mt%!ZB#qXpZ)j6`U35-|A0I6b#3j;>-!HN)H?GC!W}BZ z2k~a6mT*KWDQJm(KEJG9yw6U`gIG&n&TLLpQ-ysM%Y)$MCLu-7(aC5ET3ddA<)C=z z60jNawI_KvLHNLPh{Eq_479>9V4c?qO3H^#F)TSydHxhzf+cq6BV}e|CH42KwZ1OK ze9op)0Dh#?FBeK&+Myae4`b*;-Uh2sVt^H zofnG=wIolMsE=Vhu^ zy;HbMVx1~WnvtFJQC6XXScees#Dy!5Yq$H~M(&FP^)e}&7Z$o*I!14<`F{gE8+!Py z_p5qchjm~t(GlX^{jzp=Xwi%K1QV{(r*`=YI{jlTk(T&9J}Wn6`Ccr`e?Oe3MKCO- zW-6DkJwL48n?iKqt#qNYw39STWUH>tG7bJoIcQir&rCys2Avrs$~R$42*9@=oN5 zPtPiUuFqk!ucX(vo6l?hm74UfQl>Lg@V>bV;kG#!1~24RnUF*Hsk20Y<$Y>u+f|X% zKuBEd`sDZBMF`XMU-yS!(xg49FK5juVq=*S#sW&45yFBn!8KA6=?*UI_UxJw=Q(TK z$<_(~igdF6K)5gkqM&KyNHj@Qh?3Z_XUGRTKs=u z0QT2|h0I!i2r$@YTN-C3P3mU>rFvI*fnM6Y3s&YWtd!GP)$|L~n`?vg6fl+y8dq7EhlSKuosnsV})c zF4oCib6F8Te6?fC?jYqfEh)rK z3J6UX0}&}?!Rk+gkya^rYT@u@7GG5Z@r&?7_OWW5$gS1dN7Lxsz>^E@Er-`^0~?1k z8dUNwrkYzFqRlphugw#Y>QHC2%vTp{iQnwHIDyE~lC?LuyY9H-r>;N8!WuYpr4AK1;sNs<1r?|7rT>=HmF% z&mFn>gKW;GeZ8Re=DK?p{l1E4E6`fq(a7vqo6R%xMW)zby;A8S7PFFVCrA>xHKmh z7oo|vy!;rN)hwn1(sri7{Tin&3@S@b^Qv7`^o7e0_GZ@>NSreS>hmCZ zLLhsa)>%@YGDxpjTyyWr{o~>h@h+pdZ_-zrsGJg}(=~IX%4%1fL+)0e)>>%te$4p| zp9YjvP+xBJEREI_kNRR=36`vrYiD#N(~D>sx?cCKwE;nYLKymL_d3`HW{)wr(_02R z8H0CVTBI*iF-+mn0)QDmoeoGf9v(@kbkE7?OymRC=VIZbQUA^EI$efd5&#+I+@&m& zCc5)If|3piM5VF=LqVK9+>l;z8RK7goB*S(upS6KN(L}Zl-^@zj?o*P85C<01I~Mi zAoCcHazo#Lh}M>tfa~Cs@+MXNvGYYs&gM(}I%d1A1OrLG7=!RsL+&9UCJPv7Yqq>L zyJ`ZV;4yypVDb{?hyE)76p36;&4YNPG9Y*HzVjC-2>{bvpd5H|EEo#^RqA^FB%zw@ zT)HmlCl~~lmJ$Lnv@zodHo`C6un+L7WE>0~tW z6F^xBD-@1GMkKc)shFRp5b7tBQ1Quq!}U#i(u$4iRBrcX-RC-Fh#cL}~=RMsTnDL5MOWSj_wyperTO9F(mOMy5 z&SUS|gd_ZpXoDBHPs6LWC_|KaVbaP+@ z66(3c+8rpY7R?TCv-6=tbun+OI-$nVL|{6g0*3wSAS4caB0qp>_35J!-jPHUi*VGY z(jo+r`r*p0>T=Q2LD4chntdt*Mdr-uymCKF68&}9{S8UHh~2!qAn(34{xITQ_MzGQ zsvU0yqXv6+qBF;hXhmIxSJUYGuj0GN1>eR*>>5w8oNUmxw7pP0Zh5XEsYk!>uvf5h zAkt@MdP|scg5_UN+mTNn|BTfn?X}BvD^_OGYx;AooAN5X3IFYdcB83+h4yESb<+nW zV^>F?H9k7?0^=4P1+KXlXKOSoc92dHFHf`z2r!xH!*G4&^Ay$Fx+Y-VjqR_7;Bj#{ zZ2P6OnAu@G22n6{qvE=pQibUCnmnSB;5R$c=V3*)di^| z5cmxBu*iwN*>A{#Lpd@E+J1_uyYf(3gUxKHffyL?vTx)R7gl&F3%Q=XyZcm3loyG7 zk@Y6iS@sJrWjq$?+E4Q}!SBybC&SMP@bPK)0$aB2#}mSc)0#FW-iKcvjQ8c; ztLcByuhmoQa_H0vKPRQ48%-<+>_s(17<6WN!53)*8%7;lRFY0(dCJ!`Vo16Grjm8z zfp?mTcROggayV(XHGaF|ORo*W*}?zlm=lj6E4o#Bh-yj^jCN6#Edcc-RN&X8wdDHM}zAQ&m6)I6zB^TvR< zso4Fub_j)OMPoye-@$pMdA|=0@=dAvn^#G%-Tr#`H2+pLGO3dn6dRAHN9N`k%$1kw zP?_WJCNh5#Vpk_Pq-H3t)6_`$Y|s)uWq4j z_XX%u_+l2JjRXGsJa5Qad4z)k|K`yA(-Z^%k>9@{8{7TlqH)KZcluMtnA-w(*T8?glTd5@5(1z*MQgK2-{M zNq;W?le~P_h4ciI;xgjggu(h+fBhH`_PJFwL3i1|bEzrVC9nNGwSWngyrn2P$}gtF z?M+n$!bv7^#zB}9V&6mrWEMW&E zQ5#4`ROeIVn>B}@wnCu0UC z8gBwh`Ihp9IxT?ZPuoXAyXaw71v{`Jq6$fcESBJzgg4GoH2G|gr{q$qg9Z*1pQ<-y z>{`k3ZA{fbj+I|hPvL={R*Ef43n5A(65VpBEv}dRLL9@XK{Ds;)oD76g*+=bjm45wh+fxE96^`^C4S7OX zA3tgX-`uVmCtkbq-ICJa(1yIwq){SPha%fR8kKFfss_Q#N`AzyBYsyb!V^k`5H2e^ zpS`(2*B`CrR##+yi9F2a?4Bz6nx~|N7C(tgWA~*fc-e%HyJ#NfRLqMRM+PZ7NAZzhw5N}E+kzMbKj!(#B`K$PM@U* zo;6)>#mqB_6>FXk$;wJMTZwfB;K(r%Mks z=ogYejU@B+D*ioRda@@6iUFZtGW!Pt?3byW%>}fVpAOMb``_@eP%&CGA01e#6?nQC zy^3L4z+nkMCTg9Zm&OlmQn|~}``sjN$xIAm3`F|qoquuL1AUx z-?qZ0MeKtY}Jn?cmu+6-YYX9NxE**n7x|8)nthFwLIVD%m4bx6lLpnA4X z9#ytg3(?If?F)6_EG2WN5Yp6d97SI-_!-nmT@-`IrdH?SV9a0z#6Wh3OXL>?- zp86|KnUPF3=9T(w6R~LUzL{_b$!(30O&W}$Mo+%_L#H^SV6_2AQCLk25(;2q<6GLA zMJTAO6qJ66EMJDHMRX2VaEfbF@?rp3){#mdAp7-2zt}77za~MU&K7lODiV*+NNG~{ zidXJQsb1|jJbeNy!Ug&{v#2+Lg-N?QW^kSP`KG~ruFh$VK^#}LkU4`jJ75(o5jAuj zxvuo;1W-Wj8w#@&ykK4vpmEk9;3cFc?y~>1+tMUm(Q|NNgiux1vsSCuNSw3HJoHsQ zga}hKWLJyoO%&jyl`d%Athm*TeaQG=SG2uaG{_xgTXP38DD({w=u(WnlG#$d=~2Dh zCRBUxg9#nTm5lQIvDV1Y$!^od-SuyyRlg}duz^kXb!zc!V7>nhQ87hF=z3t{Y23~c z6`tDi2*J{~Zr9jX!Q{}Y1Z4Tw`0zG& z<`t-H6XBSP_m65uT}Zo31j4^%(-^9zR^WII8}*HF#ED9cK}ogHC$gOb?nKPUUlHw+pN_E`IZ7(_dUjPJQ>gT`oVa?l zM=Uj(^uDLGA|niUT=?_fnFgy?DK;wS4KfAuHelo#D4gtm^@(PBb3ToqrX|?P<~Ef} ziwctL@lrdmZ+^vUA`X{vbH#_&z< zJom%~PyTCy) z^DSt!Vqg~WuxItu{>{0wFbA&rwe&}end&DKZ^*B{5PIi3Tm8zV*O-sHZJryYvGPlj z6hdKO@ds5{EDEPBZHEMaPQ?A_3}dU|<0F&q$x__Tv^@=XX8T*(mXBfOp_KXa*CeT* z2QC!ZbkKqNh27OG!xBY!Sm4u(cXnB|SSU`K0+<~-9Soaj&?^{1duT6TpQ=;C!jx)UR-VBK|_<=QQzRqiM``~f?d3u*F zTi+ATCFbvjLvCqZXW9R|o201}yUPPIApe(r%4EQMugc2!pOfIZ04+E-RyC(gmEvo(oa$=&(zY}>8@lAXwP_&FgUR`rtqpN;l8p2f#M za9N`eNk$sW_Zx($ERrdJY2QBP>EZkn>4Hxd{hNb&$qX#mVlxi`N6e2ta*YLrP=~4I z8oez@*%|EPpy&(w%F#WZV2q@NwBf3$QN(4o9RoV4c_$ecE`X%!{zoNIIM(GKB zv@9Rz{-+0ZPgG}2E81`@lLO4e925QN2Pz}!1FEd#tlpjYqvhHdXdmZ5fn&#eDu`K% z)SVh=U{3;6gG;zBDf=bQ?7cem0pwYq}FG!0rO`Dv=l((;F_6c(cNw_J+G1(U%{jNXCvPQL8YA>WGiR zeC826g4g}2H^Yy^B904iNXCvu^%Yo_(&%7+cAvZ)hKqWCCt6ttcDKS27qzPLS74M8 zVSR@|JL>+;Q|R*E`Xh_GF+eBl)%gZFhtss)VK|RUbBJ*~Ay`2zPoV*ZBZUH#mS|C+ zdMvjmfE_aW6oAwFAH4r&Xf9%O|2t6~^l6U=@O&Rd=Lsyw1)z@0R`Ha%HaJxo9UDre zFg~^AI@q=nH$JlcBak|omdXEm9}jZi)&Rem*lo|l$18pWufL!}Jsc0F7!U0dX6pw& zR)eYDnkDr)??di$JNRKf+L*}SzZ*tK@E&WF?vB#l=<`9M3P8zAN(Vf6so^ z7vif&?vQ)2y}!?Rtlt_5V=&(uhf9T6+1(bft5*O6=z$O20T>eP|l%h84L2^1&0iUIVHP} z+@b727=2WTmk!=|(T@)bas%RueDV#LnlwAN!kK=Ho3&T3#iKg%sTNX)dA^wK)`>!f z=U;n!yNxT`na-HH1IRe){IiX)U8;_^m(jrlAws9o9GrUohXcJ8O#rO z%@kkQnPY$q!F;N-8RG6I61&f!-Mc7(^j}c z0MNTMZ~qGB0p%u8+B`g(CIDsby#fOEr&_!CZ_0*ToW_%QAc*d&dBb)lbSc@9aY(oW z@{YYAqTc~Tz%Vk2j`Hw{LT-xnv|)^`ZPQU@!DhMm8ijX_)S(a=L)zcFf5FTz>j1vYTx z7K?ZiaggSck|v;|;XJ%5CR)J$MCKsa{XSjH(`r~5&3_3^Q6U=fsnfv38Ns*y=J6gS z5T8~t-5D{T2K|3&O~0|Ssp(9vNz^~vZYHN?w)axSZ@UQbyzf})zyrdd#za_;cLA7A z*5waQ+`iI&KC$1<5{#L0T}Tz}#cSXV?&CT!)^{_1R5(4y+{Bq?Bm#Vhvf#N1s8il&?oV!$Lcro|Hla~Q28IG ztKrGAIIRv9oAtQ^3#Qpz2e)^Te%XIF-yuW{{WmyFbK)5Gihv{QjzcRvZwf!|^P~OE zUvd%#bN9vAny?RDio`OL<)_n^dB_$ zGi%OYfYN`gZL@6syzsc_Evk9@_Q2&sr8a0z<`!I$I;i@l?uXsGGNT%w&jdoi>#$h6 z_H+&S`8En|>BclPT0iw^@lOxl)IxzO{f>Fcv4TX;ahHRP<8p0~WyH+~mTZB{Lrg)l zWf!6d78Yz$rTryTiIOIy{K-`bv|nt;IMvNKyB!fd6~z(H=bBHeVJdnenw0iqJww1; zd+jK6onKPXM>gSGn>-nA@nReDW`70T5M0();lk%jZx3#8FSUvAJ04&SeLf-x2Iyt9 zVW6pSL@n#$V7Acib3^tp-V`efpw1n7H75kb!?n?pJf|gyLGFEVg=Woa(_~da^#P(5a7|O1+pqPj=Q|7-1+dp_1UcyhSxfIDxY)A9-@ma216?(aJC$ z;H3I>Vh>p^lk}uYn$OxMJ5iWt7*Ua(U#hFLJ59!n^$O&7<$|7hohg$|f) z6yT2$UDt&JRG@0BKzh3Q5drsv;0bOshjHHoAtX!-sB)g$eNN=goUX)tDIfq)efv(p zVk?`FE`x*@$xJ}r>7R2Y!?N>je$I|B#eZ)A1w2koAHvgNsQDV_^8D5^2~T4>nu&C2 zh(G|qD=E~@`!vW+=Ro$XZ9rs`bh;zoz#tTfk%EqTC$32Py!=A&#wf)}*f@vzv$Q#D zoaOnW4i$d{DpYVZCBZRpRN+aCCN7rH&+?nXq$L2+?9)PP&Rrvv4a~PGO^E_AyYZ_<9pC9c*q{}AD+jZ>f(prR}C_A|BMPUxb+Mo%qUpvPLKaru^Z-1UP zo1JrP6{Itdyv~>huj-dT?#ax&MD!I&#>x1?Rm_@rc00wPr#uLFMc2cyznd?psaU1T zzO?}hc&RXE=>4NDS;GE*$@YI(R|BTwVzaBMY?@yR&h;PHB*Ge>sV+7^-kfjTCi$Ap zHBgti3vTqB8m(8a6x3DN23()|TU+VJU5oBX5T8119%YQv(^jbJe@)Qg_P;8bf-&SN z@t*84csUMZ8~aN(|IdV`zJ3K+M3)Au_2UtSpneIIZhu3$`BM5m=?Javt6=+bTM3~ zCJY4tqmh-p(%@wA_uCR6vBv*?j(D@JuV` zv6@;s)z>FUHj~qtlI6_yDgOq&v=a>|BKZr?;(KwKJ93G{wH4}aBWuYX-^pXJ6{=eG z79UU`2T(G_lWvU|=PSFyatElp$bz!ep|$4fM^9HgRg%p2N`FZ+I%V*Qzh?oj-d*Nu z&KmL#cZNkQL3w@f9$#xBty8=oyBur`jmY;aQOH^{Qp5$|1nv1-k|I+ z*S4zmvv!)6wd$R_evB@so6?qmFU=L#TN7IwXRq6WYv5nA-miZCaW|;xxKG?Q+lAE` zGVmbPANU7@p};qiNuKw+KugxEz@3+LW|vc!fi(|@@BRfC-z}j9d^r>${@uLxQ{VjV z?PF9}FIZ$%QcOL=UHUQg(0XZYg)jhbop1&Jz%;JxV#r29Ja*KKa822g&Q%PtT}$+qRj;d))VH)x5DQMwRIO6uSu})3Q}$}fro*|6eFTI z94>y~AEA3m4o&%->a{~~CzKt2WEp}adQ3NK9{G>-|Z4(%rH6v?PsnW|U>Cr1m+gGFMd3PWFPWT75+ovZC0 z(+<(exSE=Dx!W`8y7X#zFy z`T2myLVM8qLis>y#D6nd%f}f@9@Fo_&(rR9{{9 zsL5)rO#57@oOyZ2a52jKvx=tanBvgmHOX5X(yc$afgd_b5gwl`6?b(}Jd`e+_e!YU z8!jeD!SjU3={#LaJ9X8y156og$GaHKyj}?q<^aAriqKH6?yV@T?ei2`ZQWd>%IPv| zuz7zwC75&>Zh>~ivtNCvk!XC3g6G>Mebsps<$G3*9K+;=JHnj?I!gk-c65P zy!OaRm(aN_dHIh%+**Iii%Jc;A@dR(gKeP<<&SP^DP;<=sKhi^g+71|{#|{s3fV#e zn%`{iXObSC8P`{?d(%CUP;BJ5Vq$dwL zT@fMVQ#h&{Go(1|l^1vR{dC735aXq=v`*q*Q?ybxk)nnSKWp>k=8nr(dP z>6f7yxA8B2yO8`(V&?1mTv`r#)*@Zq!rt}g9^}pg>_rHU4}F+mRlQAUOOpl%cJ~ zxo#N%R6&tGsrYL>(3v@Scu^cx)#VA4AWd*8kp9FcIP9L>o=LbiKa8P z6{sQBqGd(Pe@csn&342JnXq{+(N!45PoEboYPb{`i-FU9UhY5SVQD)HR96_d=+~7X zpRp#Cc(ZN4ah&A#QF3m>dv#WbJV76L{w!fv^I2oGyBu`y7qj+Yq5S@4TiLEFm_}%l zCLQ?htd7#M2t{b3rdw#f958MZbEMc(L~tMLR+>U5^KAqA6gjZyDmaD<5k3cWS`z1N z9QA$<&L&$)=$Vg$4N+R?ngedgb#D#|Qtf2IvQVcGV44j2RlMH=Y^XzEgln;iMJLU| zbuBVDZuK}@o-zYFia*=Eb-;8UC$c69$a+>lYv~XmB4i^X-b&adgUg#Y3q&5ki%zE0X$fzlvPI(5CO@^H^ zw-ll&^#q!pziY7ckyBjvbH$qr9op8kO%F8`cWXT0q$Izk1fBe;!hWd}4fk;kOv~4= zDBTh(FP_v=O_u!aQ9hp8oYPJ23SH^w zM9*d1_wCSQ$#(AiX`=HTLR<~1M%UW6=XJ6u_j6C~TF_1K)_RX4oPOd>Sqpa*$2uij z?>8dHtnHT+r)zO{s-^E>y^R&#s}mwbT;(ks_F+G*^N!iuoQ)qq6C;+TEsQ+0-;95Z zlm9vA@QM4hwHFx0%?Ey^UgK@=5K?9%iBpU`eVzvNhrHoLd_aa`TkiP}w(>BB|{vM-l;yTn^(O<)@AfX@Jl-TmCNy{%2By^+3^EPZJyGQqdTx zHUg;*zG&WtQbe`v_P3>cCj5H2XTF;CR`iKyxBV|W$6Yvx&@=}MIkeP+lkkC7F8T>peEtiOZB?aia>0ELKqU081{bi5*v6s*&nP9c?Zx7`UMr zAw%ydw=$SVk_}jr%{ulQUy{_idom=Pt z%eR)0@4AA~3|8>R5bFLILZ=SCk9;3lx-N6lF%z|}s9Km`xVpmU= zMx;bx7m!{Wq!n06=|&m^0i`7*p8Y-l=gt4!yqNo$JKuZHoHO_HJ*RD{uSH?yot29D z3JJu)hp^f?@~tCpz?Xh!--Rb~`s(tqj%R=OTo@GwBR`*`0v9v~U@+z$XZISdyNNIrvij%D?=1(k(1_qv2=P4UzuW z=GyqQv;_Sa+_Ua=v!`74nl$T==ZgQ7xv|vKIld@+`d8MYMXBxe*iDIIfnL|uR91In zrQ90evCE_Wpx(wj{I+B1^;)F_L4U$s+eTCdwIv$H24C*S$s6rt_8T_WT^N=kSn3sV z!61*XM%9l*Q0V1Ij*P)P3XRGPC?=;4(2Tt=??#FcSHbOB38)tJt$#~vOi~A_=L4NXZ!y# zF8QVG<)Xv%)&6mj#uf86>ugoe@+WoIY>@bhQLx^=Ph2~TqrK}x(Z*H9dF2TU{eI#N zNwT`q7RBzMci`5 z;X}bPnc*QuQ`k?z@US&6IE(A8lbh41i*+6s(dwA}e{(ty1G~j|3Dqxe98Gi(kZT3Q zRPb|u+Su}%k5+v70+kW_=>}~4n=;NLu!zJPFPvv?_48AdElv!sN1r4a9y0Plj^fl+ zT^`j%nfZ$!DEO~o=RWs2?IDtkjX7)=+awPz6a08~#hf3MY4_!=%n{$%3&&<3xBgR_ zOJq`9lx>u~N^Z<07dL%!=Pj0Cqb{vgOVm-5&eimf%!CsWJ*~^_I}j?80HH%}Hs7Bk zM4YmvFbUFZY94>%k0b!@$aXi+SC_CO8hcNm$6*jdm8EhzN}Hr}evxT`y1c2-D0!87 zmb-xo^vcaA%Z2%;=^)%PE!EO~T8%Q~_@DKyK*6MSVLKGAIE0V%x*n1Ik)be#T5n4v}2q@8J) z57%1+tlQP$J+5Dj5=Uf_UHOp-1{f}~O&hRG-$Iolh z`6-=`6IGDx?_u8E-F9_vzbATsK8Pp)QM%(f3?S}j>y3`}i6uEi%tFL`SuEBkQT@QL zz((#%;2$5-AG&QKuLF8o{;~TudOz{;>G{6D&3;|}{Pz_@L7+Wlz+T@`W$$NM&CEE|`5>=BJgZ)ys1Aq8>0R4_h7zc4HV@VvQ{sE1FII9T$^|y5FXFhz6FF_wuaW z5ERiWQ&KikIgA3YX~Co@B%#H6(FUq}?at!r_)r8O@$#ASfIwJC+~iy2$2cNq!tuW% zaL;5;^~G$2CG_LiPjJ3+uESe(PjWNTmOgZ41PS2Ah%|e(IElYa5PNN;3~^GXP_E{a zV`l0t-9Q8LP`eR~u3r>UmpLLiQXZo;SY)GI|W~t}>}5qXyc7Ua8V%!X3qLbXzOYHj{eVz8KvE zwH2TE^A~gU7P(M?^P+$O?UVmENA||$AKG_`>FMo&XDPiqR&CN4jc=waB#4BN9;Pj3 zaEwSAT<7IpkAg>xL)JR~e(b(Y5~{>A0PQW|v>LfM!~v1HC1)v(E8vEC^yh<2*C?mM z3!=teNu^XG9IO$r-p>N8~OmdkG z13ith^~unAx8(NN1fS0yBp>6ZXb>kIJ|Dx$yn}5x2|YVSk$-WF-W!^tr1fz38mkqM zO?2Rn5a3U6>&i;g8CP?33;F5BC1y&e2Zw z^*E2v$mnMjF9(u$E`J=|{~`Ee?uo*you$un-Yo|uGE2E;-ub1Qd!Kc9-=4c#aFV+d+OquxAqZ>o z{b1ZHOlPLp^y29~5g}x%Xk)P+tnD*4*~hw)71>#?g2HtXY-1^_hW561VK(64ZJuOI7!#u7zrjW05a-ye6$`*1Oh}oK*a8Qw#ipw&G+ASJ zjr)OT(p4FWZznxIh|+Tsn`cV{c>1AkrHS9`0`HDuahnDd^yrklS^s4LaETAsgiU7# zGjeN9WO)g{*u<9a+f{kKapN|=*jYRykGXdVf$FAq*oKdD2?dx}G-AgL!B|2MW!kkf z4AiH`N~N+GTL^npOA8n&Aq}swfNML7w2q1~t8tkUhx?t?`z7$RCS24&L-MdQ_c{Un zvRr2oTv97k;9YUxy;!QPDm5J3O@%KD6QC-P_A`9>hj3%wU@;5&2dWCgs0B0Ea%odz zdbj_t&1%jZl@B#N1z)S6prvu`663$VL&96viXM>f`rTZ}orcKS4Zi!@efi9f$zp7M zOb$&9b<13beKXe2%BXz+?j4s~;?j+vQ2yu9wpA6xq8fL;LgIM}6yw%FtU2O4gGH)w z8V6aWJwNCe9&v~K?a=~e*eF12&JCf?GyV}~R6;?S?o1v)WExCqG(ciPR=h$=35-FW zsj=+x^>`{5cH*s{`WE%m{#Mp-$ez4`toholn_N@qbh8SbCXbWBL3MddxlCs&zSU9> zdn>z-^cV z<0Y=I&8i-1DP7(I&y>4^+txh%!$%)c~akiENw(?^G!7@C$%Va z&WGE+BR<@qyJY-rvB%wrGz|H?+?Ov;WMm&< zScQ)C;|m;JNour+W|lS(=eIGr2G@TRe6a;rWGBmVemvUj)^8q-j;W1~zb?JLtLpl* z3O++`MlZmQ}M)=y+ z!-ou)L-_%(Vz7b*ox_L#-BUJ@bV2agY%`Qgd71S|-XyerE+op{#1VXYW3(_)TmnkR z^mZ!#zYQFf>i#x;wDkvlD+z*(OCfgy$)pnfqc%5EdZ?%Y4Vvs+Ta;Wv0xWU00U4I8 zqZ`HY`H#^6UB-b+np8XP%kDEMa|8Q(cw;APtRP-X$kuV%Ni1|&MQa33END+PAk3fL zfed3Fs`8rFv|Xqht75VkFBsbdANRpE>*;G*ku^U{kTnC63rMQ)sJB?-TVt(@d#-+03bdLKrJ`ufsRB{+nL4Pl}!XB>rDQ9DwYQh>{B4&mIemGuN^SDWe2UkYl;n4ato=l^7@> z&K{jRaMl8+mrxKBP3a=HLyNZCm_C`d#QA8^Sh$^jWkgp!Jh)^rY72f0xd-*r>xXHW ztZafPa(q88Bt);Z8s58=SS&Q-CslwFW=7DylY_=OMxh?Z{2!b1J)_QeZk5tc1y7eg z93sQ>{^_wX9C6mkU}dBmh#g=Yap;B7`6UaPUVQIj-5N1($|6mgG9OMNeUNh$#swl>jO*zBQ~6qWLDeQ;or+4Rg!wX{Q% zT5o)n3hK>n;v|f{Z|)YN)bVwF^r`>o25h#!q_3;6VL4xLrU9$)0OI}ebNVnt&dHDe z12oIrZLbws2JkG%5;vu{=#BHK9;7L8#T4oT1!*Qu>m#u1CXxnW9?)f)xAnv3xGD9; zPRQWcA^_S4rR&_sm~ZAHtE3FV76L5x?gai)@IGCC%5CCN6j{2xcHFR>aEH;I-R1JN zQ~A%(IBrTiaOf7ogk*zl_x`P;hgzw!I>Key(o+%Wof~qT(ng_{&_?ECQmQV4E!Pz8 z1{>kWz{}M+&tGA()32-)^oMkz%C<(Ps2}~b#~tr~Jql4-S|m*(f0+~2|DU2kRe0m= ztKaodW5(i()*$_#V&J~};zpHxz85aNVf(G1 zT=0QH~F9y3G{t5mV3gpL{8qFLnPW`<2~swyYc0aea!6lF}|T;gce5^?f6WhQNY z2GFji!FIVF|KeZ&UXuD>4}?Jg4y(aDq5q@1Qp3@V$>Hx$uP|f{Lkp$*R4PTo+>bX0{N4Fv;YJLxsrw%0K20|%ZZNJ?@EK#GF zVepXKjAq=s7z5>Z$_P+4Q&a$W2wMz!w~USicjO!;+~?Fkof z$IR3CMx!n4tB$@&3CtolGpEKuNu>LL87zTs%A}lrt7_AhY{Gu3eqPh8lB5wkA1Ao= zknpLvnu3tv188$Nz~uTj1}Y-j#&1av|5tctEgq^oI7ABt{Nej`20`pH4@Fl#DuEANXLAiK9^g(; zc5}lc@7qajVxNXT|4+hldOh5#g%32ZrqHFO*a4wbp*d4MkREUhg7?da<*oL>L!qYB zk3YHXfI7HgyRwHSs(=3vvi9cDE{~MHF5aG;Kc?K^Ujgpj5na^K zl4-&!!i0z`b(`40RH+)gW~5YH?|KBbD5N>lrWGlhFN53AO4{GqrHoPcLZEbC8SQtT zLAB{oe9tPx*zx>ZUxXgI_=YCBi{>h3-C)jf=DqJP-B>tS^Z_niiGj$uVevl2T9*{) zF~^Cvx!nPiW4>$FjL`%)%osuj-T7ICW;>*lt?~ovwcW7Z#o-Zwa|`62sDFx`PI%d} z{vLHM6K*XCG&!t;G#6`s>jR<7##aBb?k|Pga(pdW4JZ&q8%D$1`>renkA|KKWEFjV z54{ZXf7UTy+!wmnq2Yd)fpgpD-zCS9=5GGf#6kAJ_~<(`P)&gA)Ys0j1UmBa?W3=o zpHu+-sdu3kQ0&O2uEDY1Lc?C)RSUeO<)VudFprIgn91biTS%R~ATiA=#qNKzcik|X zot!Gz#t}KoQ>)OLG>5*t7NQXUBeMo^qc#;aO3LKqy|xGi3LJ8bntX$Itj`5P>PQt*y(iBWmX!LLS4uCt{$g%nFrB|1a~sev@?1K) z6QgJVu;kgR0q?yWybyPX{R6%V2_aR_MSz&Wn_%K=P@akWqf^~_>H{l2>dza|3_n?0 zRH)>;Xc3n*`J+ft5`^nV>D~A=1K&rtz6B5tTp}0Wjx*p=p^euR!mu%d^l0MWDwDhs zgMR942Zf(0sXlGSuKP0@{1OfJcz%C+V)lbCxhSII`3&NwW&Ek5krblv zQ%QkeEYS@T&Z!v|!=;T}mF`@Ps;XU>LMpDz>xh^<^6A@T0GU&NMs`6r0ASRTwmeq% z1KGjnswjW7$r4H5r(2Egcrcj>;VET@Q>-)(??eqy&D!9gbU>}1yFDq8(LMq>>HQT0 z{~4QBuphhOMNKoj0Y=>W=ut^P*|@n|+JreRXQYelOA{&G{$guq^6bb4TOAR;)$^Or zMZyYg_=mn&TjvIY!va`2cO3-WOD3iWv z_LXIgJL$YclAjbGy6W3l@bHU?f8Nd_-2zy!PuO48SVzT8@rI?G_}=CJ=-9va##Un; zTZjehSd1n~vOS_R#hvhw9^VObY@FL@CGoioIpY3!#xHS|BMB}3^3ME@J<+5hy*}bf z_Lci|T|^c)d$K-^*o}j5dU}<2zh!eJH#mV)%hbgdMz*v$&kEV<=6|enIa4)e@8DJ3 zMlm{q<4(G0v0Y&x+pHMllg^J8HQO{-sVv0!WaYTy1;TL{D3RdM-0ZZ}Id8FrTTE*h z7sVWrt<?vuQ*jWo-$|$kuM-@c>UTKj<&8Y9}#kA4tH!pIF#9M!R#!k&GM-Y`%&h_ z6?hMaB`0Kbvgam!Q3#@{+}%WbP0h@C{XO6~N=@(|iQ;m^&khOt&x?u4DQnS?oL%Ku X#2!tG$LkW3nXhRgbX9T6)^Gj?m!9B>LA+WHx1qcqo2~My8g9So>AORM4cMGz(y9E#K z5*#kS|9!XKt6T3>O-;?QJ~OBL>#tAsgsZ)m$HgMYdiLxYuA+jh`m<*!z|*CT@#3k5 z9xFuk=_aZ64i0T^Z~wco@u>3Q{Pc8uY`mwZr=p^w@q&Y%J+rV;l$C;eJm3Ej z?v*8i6T)T8;k%T0=|AWFk%Bw8T1AB8Co9(TTOFfv|LjN3rhUzKV_bqY*M|Ri-J7-^ z@8uikH>D;Y8Xvva3x{xrT-Zi;MeBV2-h6*SDZ+hrljm)86m=ZdQ^j@SfKyIhHvIz) zITq%tG`u9B<4@lZzb}M(D^V@E{pckZNut9cl3SH{uDU=8vS;}teW((+Mk<(+Ec2dr znG);AZ_$Eac*k$L>lJzI~qp) zO(>T!DkMyf?fjb9Pzw~hf{6&N+OGA(=CXY2bS3S4rEGd_Y}>^dlrM^z{C3U`On*{! z5L~%oj4H7cBr^~auH2Vd?PTxxHueSgAjju2man@pa4siw=i!cn2r>j+8JHxndDMK_ zX6#epfS)p)Aw?vdqY_hymiBnnPKWk1fOYh1WA+-Tx{|}Lqbw6+c6QkCB}k(;G6hVc zPI@pktgDtf!{9(w>0iV6;KG!Fe>>I4$$~OzQJ{fZ{;klFB}d0rxc~>DNc{zv3uG71 z2qRT4*$br81Q9@Mu!%t;79>W8skU%ggZLBZ&kQ=*9ra)R<)<}0l5=+PV$rMW=Iup+oI zFSP?DhC~322y0=~71RM~COWz2U*py7!%oZ5^!7~%y0i%0`f;K9&H*vJ8+ zE)dI|eC?P042@eAyfI(CLRfj{`S%o0p(MrHw$^yHOz3qX69z}?w|BJ+k`H%6ebbL0 zt8PZxP#$hp^A&1?@%u}tUpREXCJ~$J83>BV&;P;m+R?V8R2uH`{Y|_K=Cr}T&?sv8 zSmg>kU(t@~@a(q&Sk99*{TA&jRLIhZtayvMse2#LRNw-hvcpWFl9VmY75c*5r1Y_) zxxp!pN?qkb*L6r7z$0kMq4wpGR zSI8ay4Iw5$VS63AD*d-CQ^&NNfrU_6J!VuX(4k!G6Di~B&WL427E8p4bQ;KKXplf! zW%Sg9mYAFbRiWW1@b{f4@t{n{3yIw(bOFhGtQcmi1L+g~-yvPZK8kez46@RL-;K_$ zAmVk^U8ksA2(O%3I%u7JddDZEH>(u)S#}#8eR8PTN`&isEoamsJt9z_xj-w-x2x8^ z-`M1x$?OmPw^EbVmok)ijOAKp#>!ne&&J~xuDb(|2^sYe()|LUv4Um3-;AT)embcz zSBs9N*RCmw5Xi@C#{jz1$`mHWVS1qH=w8k$z@?bxHos&-ijt>EB7NI6e=)L1Lfvm4 z{3{&j9aBUY;t6jB4pQ106tR3o;fRkmW%~Fb!b~PHsS;nGXJ}0gR(yB}RqKiX#iX_C zGZYI1NUh{U0D+HVcVTN)nVro>d1u;Z25{LG7g`h~$jp@xY#td+m%aUjo1r;m%sUKH z8lPC4<#{5SdyMS=kg&+Yju^4D}kZWKL2Y zI{z7vzIz^3cKi+w+81I_!U$vd>G`$-#4`D{kVP7bid>CbqlFB!h}6`#Jp;H&*qvRH znX-3zAkN45jy!9bFyWMwGYPzBG}!+AJz_-Zt!BAgICoE)R9oM)5@2RAB!&pvCaJN) z1_Dzvl5~0u;j+>483v0Z@&u}~lD6OcN;(9`)lfYcA@nrAtgezk9@T8XdZM_JU8~AEZ4VSEg%T%i=C(}lbLMz*;Do6}Xf7a{MGOPD~1Wa#Wlhyz$ z){u7|dO|MU`Kju22doR`ot_sg$=g44I+=MqRQ6@aj}p4;zlhuzv%O#1qe%0r)5`Qr zEli~bi2^dGR%kV1U)M=f^*Z&MnUg+;$ls^qOX#dCH+S&DPH3vB!4w|+meuz=f0Jb= z7Zyr=!so_kF!6o^|%t2jN*g^fiLCUK&>9L!EVLnlsE(iHo zGuL7NgPZ&Z%d#V?`wDR6zo@9*i21ad>F=Dz`re*NTj^}5SK!s;d4LHrV;Rd)mk2`GcHVq5!}|9DZ?j5xk^_Q5n`w2*xL#%bTgAa3x9$e} zIEmE00bj{5&EHuQT{x-GwbJ(Fd&iAFIl6V@MMJ@2y7ex7_16k}s{7I&BhsG7z>6Gx z-nQ;embh2p9~$4lmAy0&)H`95fpqm$m5qx9*BX8NPM1sd{MVL2=FkdV95EI0M>z^7 zGrRud@^*5T+_d{iePW&L!k}G_sA200rgyw`whIe7KeYxOg6qaSkLM)Zzf%vpRu$K^ z+^+DnoG}?!2ox49dz6R+bWW@#5%`@7QyfRraUZORdIGO{3K%4_NFk10a|84ueY3)y z*aQM*nBx?f>8b0%jdIKBkqK`rj*9VWt4y1-?d@T3PP4xbxm^Ioyn(aaqA;V$4|b?u zijXM98P4vQdzV1yvV>ysD7pKIlkRu_^9TNVQ2X!nH8EH8s+DCax;@Sr}a=)yVz&{hpY z-q0SwJwQrUHW)NG_;Ja!UE6Sx0?qHm7jzanCI~7#qj>)98TYseY`$u`Ntuh&P%B+D zu;GH++bPw|HH9suAkU;`;a>{!XV4hl&8KC5$|HA}()!gclP@Mx9by6HeZ$R8{|eix zcZOEE(nxJGj07W+Q2lRAf?bG?VYV6Tl6OFv+z`CJ;y#PTl&f4^qPLR?4MdhKe;k3S z=MF~h{#eh>1?54kx|AZ?U{b1IbE+TSNtSBqQfF0b5vPZg(3`+gKGX&+N7hiy+J)A; z{ks1oHvKbK#iU>z(9UXG73?&kpB$)jE@>_{n02MOQj%_#i{aumZexMP?}y)7HW^f z4|0=Cy$+i`OM~>?H+Mhsxz5hXsoh%Cymu5jUbL(N0+0vBB|cHuR4kNVc|z+>S~=be z+G~ypUC&a`$i*sK8*Xy~uZzF-5kTuh>43!EmuA|x=lQ+K4H`P~*C+Y2!$T_*ub->n>YMc@KaPEut05MU~VTZyW0qSCW4rj^p-~1Kk7^xH8t;<%tU<}cfvWhnP8p&zODr9-ALvU{bG8a|&G~XRYqTZ!vg9G!9 zc%>>q>^>$#yJzQSu|>j_!#=NPEui=5zEw$PLTC2IS51g-UZvUa*}=_3l*dFN9;yg@ z>UK9XWh+`jJOCjVjmsGHdZ=InwZltMy-LL(?YB*Jf!x~?jYF#6b~zK4eA+!aZy9>j z-vpLK5W45IUzqq|L914HK2a4E7TM=#XeDlz)+PV+9`n)X+zn}{6u3CO(XeGJDM|Y& z5I3(<{!XZHp@5|2v2MV2%@0}K$a#@Dnpmg%*@61vGT6`d(o#*<+2W%GE3Nw^3cxb8 zl^RC?vC6Nu$goO`E{SRin!L^E<=%+FXi9-Hb2kJdq;JtRadyAyz6M=W+}eg zGF3Rz{H2l2j@XU&d~0)jB!eYm@X)p{<@t8LR)6b{L)S+b$n5dirkkCSt=(MPW$w(F zH?G-|U2iMNpPk3UczHk9>MYm#uPnTs$#l zyESYmDYIA8zCqQA6R6fLZWyh9?*$`eR=uBKPXZQX-B^@cqW&CIqiG-ZCy(4&Cx-77Vn7uuH+UV zuD+HjF_RH3b4uPAqGL$Z;Lh!eyd0q2 z?#pVg%fH&;cr?2GhZ&vsQ+KIr^|FkITB|eKnM(pdObcN$rwIvR#%b+=)LzCAzVW?J zADSjn+rT)+2b1Z`f*U^MDgKaF5(<{y97?nX(&ff{1nHM0+E3Vxe-U3ZAtx`F#G(u9N?8IW-zu!ymbx$SV(FVcwN{h9Ss;$PCCSMyBye6F+Agjd;jH@dweOi)d9 zSRp)%F7V^9c{D)&jreXvZqEs1D9LI_`m~pKm?8C;&Q_Ug1Y~JEb7aQq!~F{Sk}IuE z6F%{s4O}A+lBYUC)G34FCiep}9Iker6nRb0tzS;o7t6#fjBi%>0Rx{+MNGU+em5?; z4bP4V{MBHg!|RSV#To7aOl3Kq;OX+|LxTV;$rqp~rK@o!?f9Sg_n>dQPceN|E2$LB z3n%xJl8uzrI;N++wMvO$fgwf%cr5c(*5gF$%BZwsj_Ho>15NZJ>bU?k3`^R z1}CQ&zEzKY{@G+K^jmdzOR%$mo@z!uXmut!k-;t&M$T__uk{FDcJXL!TEcjmWTO|@H8iPQ9c)UrsUz|ARZiQ1;F%RDzIBtLDhqEUDD z>QK;}|4`01ayOt{_u_7M=m{HgW(@468bT>YD_cZW3dF0|51 zbjz~Xu?{Xgzu9~K^5WD;Z@oPHUh;U|8k_KQo?^@*ZZ%|E>yN_T&828La7JBH1zQHp z`N$JnFseBn=al^@k^W;sdh;o*Fg*ROiEER+yoa$jI~6~6RO@y{A8y1iKU=z#rXjiH zVYeICt#hFioZgcL8`wx2f!rsuKQn$7vS!X@_W$DEzX4eGfYEPGkQBmg7}<7kliuPC za|Q>uAG<1%9(LTe?JK@5SxK`e@t&TA+@Yf0DLhoAyHkDwwR_CmY22+EH>bA2WHo@t zoeSgk`T{AZ0g~3^lt6W%qXoTWd@u{j)*d%X$Dib4a!>#d(~*BfTek9>u^<;p=!zjm zCK21ot7=VS5)xL(+NZ_o(F{6>S5Xu_2y84D>(2%_WX9TSk!&=`14R4c4mU{^cCE@K z`(319mcYtnm>8-F)dksYdtDZ3nU%BiP%yp3e!l9|@3xtpOAC!qQ<8%9c64^<7*!~T zh?;oj?De#38gEX9(7c`Se!PTd+28jm5_b5r2J?P3izz1$cF~ciqRJnBU^YhhR$t72 zIq61?C}^xo8)M4MFS#k~6=K+KA>xd|+!F13<$e>*IGKUbT&2~6TEYs$?hccXAt2Zb zMpSGTDNqu+isem2k*j(zQJ$FObk+KPj2cm5{%4ksuKcZ-4uWN3%Cw2fKv)nd12Uw+ zAb?)lGvL9T4pt7aLVY$u(Myw^{-j9MqUt7QXnf$qgsRbAeaj+kWfzwRt)lW&qF2SZ z-89aze=d|EkW4!u1Qxvl`h;c1t{lvq!T|Yy6&7We6NU#V8=|>0?wI#kD9~tOGT3C8 zY5({aQs=ODD6*UlxOYW5?^x7d_jXFFcr|kl$zvCiZz-H)`a_?WUCRLj#?Z8KKmRR|%EupX{NGI(fAod#cdkuZ z1RCJKuYEQ4LH{bC;!GMzx6~Yr1=<;?k=vqY!OL^)*w9JA6dkff5v5I~I_crPI!X59 ze&M5)d9^%;59a-DUg9dW;$-uzcEQIT{q!!Z#6pb>{3t2|T6NOb_$~;D0|vkCIaH1* zpwh7vZu%}wu;v5xe={(S}mQ>V-n-v@2d}Yvk;w`qZMf z2esj(haq0$NLix^MsvIi6rupP>!^<4%jHy+-c?Tj&iyiep%#yCXZfOcfqd2zgeKI{ zKSxW5QYWCv^ivdFYTLzA7WTXb2TPm?=(Fy8DU`oAg?ByP&4UX?Dqf_09Qsd1 zt{)gbl%POA1*vJpJao$m#Yz&jLH?M{3+fdSK+oTfode@?jG&5O-W4bEMLsA&aXSYO zv3ekEBY@r%sp_xza&te-gw6?sRHDRzXYA9P zEb4)|j#xT`IHVDcHYCJSWU{fkp-pS-3(>&72JPR#G(TH`N-XFn(K~lesjrbR4~ASJ zbb%OJq7a2&<5-;ty|)CmX>XqQ$xyShlat5L*O!t3SjVp9sijKS*KX4hL9LFb$}yg< zy{1#Oj^kS#X|pzbwkf7Z zG`3)cD6z(W`<_(p96ylHgPpGX!P9flR|`!y+F5os_2in79g{{!x?k#og}U;B_IbiU z6uTT$K#_Qz-hRo^SumvPp?LoBp4UqFS&_=>*G7pNdlT=lg38fz;?*qPq&~?MsoXFM z=$mKr0d^!AvqTCK6w+{ko+J!xm2$4%tv$?^+=+<-e~)p9PB{G29z~>o~KFE3^`8N)f z>1X`!0O~hOhmTwjWTG($Y%D`5-KooG_9{zc9+~f&<<|uanAii~gdyU)(QP;EIU*5j z4X9CYPp|n;8=MU0079D)Kr5LXGRA-c0HI}Hl;#`s-hzrgmz%^8PLlb#cBkkryoL#; zSLcbM52wGAlxqbo8?w^nVP9m5xd~5cSs*x!=7U*k*e;-#;lD7EwxhGm+oP)qt_iqI z%rmX8ZAB_R-`v$}R55-iK!*+%CmCLBFQb`@B9!FmT9`@L$!tSMf2viZGpfcrJCsDQ z6nkW+lOEDX_pSgZY_bTBCqj z2%YCcD*!m~0h8McKPFr(TbY$tihzKLG*+0M^{@TM+Vy1asRDT-{Fk5;23b&4>aXR( zQQEeQi60g++|wDoJaJKEWM?&|vAGxt2*+?Vq8+nuSz$+57_ZGghha8W1;z%qPeLN| zRA7_hfR|YD+%?B~S7SMmhy|^cDrrs>Y_n?47^P{DaF@{aUH125FgKTD zbkX->EWqCkQ&NsVqj;=)8`bcb+Qoqe%=7ZIFCCW}1GCZ;2t1~Oj}(#~JjI29rdO6o zvCZM}-g$b|_|aEzT%U^fHQr|$AOaCwt5|Nw1Z==QRxCPpEB%8uGekINkQ1` zWM8^EZS%YI(6eR9AR1ZZeZW zSkTkU`vl6e9{N>R!^cy8RR=?z>YGkq8=?4o_ry=kO%8cMRIHfqLv_KN$)Y1ntw%gpaDB;Nq_qun5Sx@Ie{U8? zed?I-jX?gCJb9Xm%Y;Wt(n|if-ieO__Igj!cw#L(zgV?DgLn61RasQWdg}4u0x|mH zKUQ?V_rdb4Vq08(oP!^s9)ls|doL?&Jfu|M`>@HRj2eQ*iHbrILB-x}Xu8fsnrJlZ zH!e}5c6_9t|7#rv99Y+z8KpHD$J~mJVB%Mq!nK97+z280&Da;Pw>7k4+HJGH%K497 z_NF52M^d+Zth3H2!h9fm=8{X+Al(=`CMyOu4;mD68=QnCeOzHcgvrGcZT5>rQ~Q_! zg!4U&Z(0l!I)`@f!dr}TSi2J6$CCd+_|0~)zU)bDRd;bs=aRNOG8n;(BM#}eK{s3> z1Eh6msGj@sxoP%|g-)MyWGLhj6?6B}GFd?t=bN@UnQIyLE#p>xhIVy4Gw=|(+3vG|d%{IgZ9 zu}>$bl2UhvagIbeCQ}H(n3op%eotC5&?k!iEU|To?;o4k#%QI;S4!>LSvQ@zJps;( zsoHIx+UA$gu`JS(x3Q+LQQr*&ewszn0}bn7oXA5#DC)!S5E!`}77wO!_+w~SSCpcj zvTUqpnaD`ok^_^(9BSx^nX1H0JW|ok_1A21E$6wJN)PKXWb;ktCeN0w+Zy9{&qR`s zTuUFd*taQ)P+;3$*L*;6%x5%!XZD0g@)eALDw6-38i*BAICz3Z3}Z-OK!hFZMn-jG zp_YA*bYuYWC{jqnbnI{lV60>jfAYWh-ylT>W)sE$ zIspF|Pl7Z?b@N5X>*97vIq2T+n_+!q<8O=f&$1R*U)Y z_y7ETC&%h?m|pB?NX{yWdEaEbQfcQ$WKyZkZf_$ts>vb})$N4;oB(=f`bEsfoN|PS z5540HE4eq?USzu!y;2XGjw}y3OTa=0_`{fMa#q(4I@T&&r$cf^j`W2=#bQQ&+mHk= zw}IK4=vVsw)KDs)w;FV$8~vHt;wD?%43z(k{EmQ?tx6DI@(!T_c_1?ik6>y~ZRownqkDo|Jqu16%#gBy#;*HKUcB zkwI%`d_a`Nlc2=kA};CeH6j{cUQjd%w={uK_ss&F&6X>X%+ynV*#*kA)WI|i zEh~;y$(wA82M1MLGn|>17aOp9KSv@@J95j_EtR8-lhmMavFq3${7xSSH)cAxV#BC{c><3{)QZeRyU(5_4r{CQ4ymD9gr}P0a~-Ev9qac&HpUk%xFF*Hi{oC5W)RYp$S6;Mj)lc`v2B8>Hv3YYVmKT)liJlqP}9Q=^PJo36G`b{>9$ zcyvO^m^HU5mt^XhI(~k7KWtGynK+G)wS{7V4lQ4f4A8dlW|MDY0d`1uSPCmLCpg|0sbhkv($4Moeo z5RPggd2}hyi+M~469kK%d;tvjxRt}c0}|EJD)OAuxodv)#!%q6Y>f#_mP2k_x|L-L zISg&mWRNreRknqqBJ8b++w%E@PwnKaEyl*|*6)tw9nxsA3}J6jMGM#;k?wc+gVdIu)GDMnDhFEOr!X>v^^{gQziD=wwWu`j^+$+f3Q@!QYq1mH7% z@bxjokCO-7?V{SEr{UJhC#)Udf&8M(s8o29= zsgcPf;E%^^Fe`|oA%mPtb5i~3^cFb*2gjar?CP(pAdSQ_=$2BtHbR_qDSTiV!XAe$ z;adTKWsxBG_9P787a&%_jZM|hrzFm2sWxbP^>S&b!czh1pvKxFc&s6fgS$*l^NRB1 z<(4HxBzB47igsgV8KqWjANfi%d%aEAZgo$Ft318)R0jOSM7Y6GX&)fuq9z(p5y{O~ zhoE83?RnJ0T~t@MZc*lp2+ZwW)b*h`;)Ju&`Bs{gl|FF&tyX!`13xpVu10LqpC4uy z!-h2eN3S@Oo0xr8(q|u#muQQU?PiZ`+MGv5?W;`n*GfGW8ps<-2U7nI+$Wh1JWn!@ zzW}lmYHz%wmbd)Cil$a1l)gur6kNT90K?iaH4JWk{!RO!#bzCCPK^i6NTLXzXc6>y5&ee!xUlsyZs~_6n1JMA zk-m(vs8j{6c{g3>{bbM-Ru&j~Pqt@QK)Nn1XR0D}VvyxzBVRPnmqX_(Zbx#fJ?5nM zsUn|=Z8U9Gi>JE`qJn5OtaJzw;?4|?==n0w2S(OecC~wF(&sBEgQ=vAg9>KD^&z<| z6XHc!&6Gc6*<{Ay*m@;41%*0CSO|hub-hf{B!Ga4Nuz?K2+|0H_HN6QnWQrXQ=4Bw zg++nnpX0N~D|^sUoldmQI4mkz#(7GpzxA=J3PHkqQf$pGnhCU9C2)cX=b z2M*DQy1n_V72E>eHd=)99Gkx7_`UJkNYPdOgbi${3>D4*l5L2RIKWL6g@__Z?z6c~ zJUYQJCTX`}j2T=auzaEP;vWFAb*+yg4=B(bd1+ znu>_O;XX2aTG&FZ4fk3HmaAl~I&860Kv_BZCbu^x4`a+mX8Q}kxYkf+)^m*Vf}3PdI6(6s?)-n0aE|){L&NDIMo2PJa_cLwv3+?p)ZmvAVZYvb z2`oiZKqLlgcD55Aql}SxXgtTiW^Trdi+V?zL8jLayjZc`M=s!_#2h-Sr6YCY)C&|2 z#bLT=AL|5yBI7hpR(z2WDW%4R;?)g_(2?gaCDJ*Ia+j37w4Y$akCh&&n-7|{h}cCV zPCV!i--Pkri*ZSQPN%O?$%P#Bd=sLP5cw^$_TA8!a-mj5KVP zKdqPUT)Me*Ch~fLPilMsM`i7wbjmfA@(Z(AOr%3t->B4-?COd(WS?kjLdAf6W{t~E zZ3yBoBDp!ol{IJ*lmc^8Gz_cMa(uA~l#$ zKDyk;neREKf?ArcRRDg`pI2LGjY^uD!A6ekDg|NeILA@WE}SHZy!_z}1xY?f_eP^| zSxTEPG32x#xxu1NY~arQS!lq6Izh{eF?LgXEU#EVZPa#>yKtM&40LcH9#f#BmTY1w z_oEiR-<=EeRo!|S*xHMx7xfMxA`16yUj8lQ;4yN%hXyAZ$sDy9Eil3<4TGbeCnf-Y zX4MJkI7Ll;jj?F>MQl(6R@LU5Vb&8Xgj1z%38+zKHPe}4S=c|sxN82q)P%-vBFePK z;QPq0Kzo|x+Utu>&bP1v%)T1he|>e$vSlORe-qx5X7k0!Xyc4~wJcHPq zp|JM6J0M$n)IEx&e62>feMgo`Y@e?P>S6eJ*}K&3`2Ppo9l3z(wZ!xylF9Ipli48E z%m4Xh4%)WO^Tvj^%MJA*e?`nl>fJ8u3SBSUB<%x+8v#4gvejrHi)+M#<}injF1~cR zWfH|J{96XBH0Nu-}|!-SP0jy-moy2eP(Ym1AvUl>y&l2#|E zsKS+P`N#jtu7NJeBYtfO@bs}w+Hm5T${^#oDkGf(Q<|w97WFXr%~bqhOJxATBVV3v zL`}k<%}Z5F4P@N?HBUJ3UDXIHj!th+zsFFX_FA!4k%_vf2QEh9-bIHRZd=fFpMHJv znD>r zK=Kto0cp&$&RFl$zNejW_QsI5uIt&t_kXttsmHWAEP;`?Ap#zz*TRX&%3-$<$ z@>j^6dN;LRnrK2l+l@L6S5yH!{Ip>v2wnWMXh|y zly|pb3XoNw2n75YtAIl2UXG0uLw;!x5WUc=D8xXMu|7-!jOJH{KV&09Lv(#)-zEc{ zv+#-;cP~D&Y~s`5mrrjZ6V^9Qj_=Sc*ZKC`MAs!5^bh| z^dNS64}H&}aA{9F$(`oK`xOB}r(`Lpmw@3Z$!md~{BRo%OQm?jOc9@cK8aA{G0>AC zz>V~=U&_p>(GznDu=nkSX?8uw2$fi5?vR4Pw^j;fzB1KU$(NugaiR-=Lo5G>(_qaT z6tsoA)g`_UqD~r_2v);AJ$6kJsyZ=wPHC#=swV&y$BL_na;naiW}unTVM8$^j);81;C0N(>^b?%h#bZrYT}IN?^&o zART*A5Z#JYsjs(2C_Y-97UYQCJkcl)uuE%vtdElYQfkUmX!vK}+qZTjLPzhfU9c_J zQ0V)VrZ4rW4zcw)aCcX?BV;YW$lk;k0^h`!C5fQRG~*en+8-;(7B$fL{k*wCmMc7I zBa6m&BBCi6*lLMW$I4xM{RHm_(?qAQLgwj}sJ~P*>1Z1Stq#47lsE7>FsEMA#ExcQ zYVFo$>E%$$EnkG^0A5J`WFTnvJ(6?%u3T1Bo9N^B_i2W~3A2RYiabVs{=&jwW;W(p zI_seC8}A_8wPh8r;825HocbV8R?ZsBVNsIuFT>&~6{$`Y&2_lddt|Y9Tnd_ecq%-Q ze8z^PIz3Bb)3>0P5(Ql@S^FtcgNbFB?lX1d?E7}D$Ehs0q-gM1UH(!w&@(K|Cp3Nj z^I6KDVfc9}!S*0Hb9)X>*f7U`_PC`f}BpRq&a_-b4roSNqaT|!0MoN!sY>F!&N zij~|qKJN&glU+JnJM_3i626?LU@sO{^X$|XuIWLhH~oaIyPt4Q!i#0%)sojL*%m!rtbG#U-Nm8ba%;;HbN%KRA?;CUyn& z_yqaTWNQaC(=&C9gVU9R4y{ZM;B=Lki$`e~2cJ}Vj>onul#3COAdHlq% z$zIX4ITR?gNInWg`uC*kiPU&E`~qk~_X@MV=_!?5{lz@rvFn@-1h2)3n!j)T0T**s zDccneA(c^<8rhbKY&4N3k0DTc@zWYHe6F8Ty`X?39k#-khIU^YeBbY|`?-+p*ZXV7 zO6&FeNFac3P>XkLNGC@ROzaNzw^a0q8F1b_dSPM_1MWTX-VK&4U$BeQZn5s1qy~5 zYja(cn>WP>0rO<0SKtCI>%r|SI|zAt_03t z6pYA5jH1-K*c1rNk`NU~`f^3KvaX9(#saS6lMNnt(5+eQ;t*1?8$r{tt+4mhi1mH> z<@gia%uscLe;nVVMSQ*e6vwFQfWMpVK1j6!qP*6Qm2Q!SeR-Pb=6 zSiWG5dxed-&8<7}9oz6$f{fqw`1tRdweya6#1ge$q0zQ&>PHd90W_+LNF5u@QSK>k z-mSZn&kXDPJOM(BpKtv`>+2u&2@%LOW#PSlZMmij{4-q}dJVTZ!u;RJxmr&(lGNb^ zeaw$2tQl+mB#@gAkXB+vWarc3jTNA4@T~-FaLmx>!;Y=Yt=DKQ%HQfv7K=|{MU)17 zpYoG3UciGZT#X7kKx*8K=wwSTAz44GNY}>>G$S!-&1PJ=ZdNfQWS*&Xc zY!fa70CN*d5537X7wupuONAiz1yGZWzv?-rOeR+aLATk?#dnDbc`u@@DI3u} z)`0h1|5XL03%h42l zzc9BjS=jZ3fVl0B?=Epjemv^6dz8#MN}(Q zGP$gCR&$aa4C?;7;1q#MvX!`x?_gOz-?84(=wX&nhQ1e`mkF42kWwRhjr6H>WW)6r zQwDNI6Nds54b*)qdBAP0s!$_wjx!N;m$)~})x+ccTI7onnr|=QdS)IwdiSnpxXXMA zPa%=#4kMD8B25k{XZ_i5AnC^c_{IAaEQjp4AnP(NR*9J;z<;_R9}jjilX9NPf4l4R zz%Tk8Xj{xTq1!iIt2)2~?<^zeB@xkWKeZq?U z$P%^FXpXsXm*?jC2pk6yOT57Wcl07%)`FVmZ#QA)5cf1U*2e6{o_#)u+{>@J3OpgL z@Js$C;=_}TG-M_7ma;-L50fNiJ1VO)-1Rwb)*1J;HH~y<{lpBbZA$l3c4hTQu5n9o z+c*I7WVR(~L=W_d|F?b6ZP}UAqzn~#3w30J!=wQ9EpkONUIVKJ{v~N3&Md2n44NDs zua5UtSqoD)Pq<%Hrh(>xG$}v2)FylQbBjFg(f5mnc$pY)i$KuhJ@ZHIGNWl@s}Mlf zjb^Ff)06Er%Z^aaxlx0Of;Bz`N*O|fev5AfGIS=tDHcr&ssuTW4a;;;cB+LaMy?sK zH}{1~IRX2TEXWyd{cwB!$ijTG+}Pv|df7T!#(ng65Ol zz6^ly@%AYv@kv`WAkwO9GNKv{bquS%LcipoITf3Ozv9bx@v+Q9%uy;gC|$GSwi4lx z1U0($V$|k0oC>`Kpor~C5bcqOS6~;d#2&kdx0X2i@G*zM@b96nkF5Rd6HV%Tn_08| zG&Hm!A=l+I|KuOgHV@(fM5oBB4IK94S08YkMZ4>sj4L|Oo4K^P9Y(?DwUe;VH^~gBr>|Yuqi?Ze6^j``D8rmQE z@yj0FTxJG&6r6qlu93jEH0Od?Q`S-R&*MB-fyxr{Sj6Zy*3U)_HsS{1ve%3&pR_VC zA(d?EAIZ#c`qc;F8@ookmueZF`M&VTH;IX2j3RRb|B~5l({pB7Nq|DO4-* z$o~{;gvGz))C&S-@-~l##R3_h2t-lN%z9#+19CZ7=X+C!nX#kEZ@_=f|pJ( z&%x3)aEE$aM^8*zu6Kg|S6Am9m((Bs`?7MDrh+pU<^U(|oT*`M1F@V9%)R&4EKS2b zbKyWxFwsm)&9qDrHO0MCbLGm+nQ7ML+wb1TecbyW58%KbpYwjbUeDJ#kI!N4eEpuy zoxoW1(DD-33+hwHjkT_&8xZ5o6sqbg9g%kCA9FVMMC!|qKn9{W_>^#CD_1Gzo})j7 z7^o6>GuG^m0Ec^&OV?lFMh=^@q8L|TSD#d-eG0a%&6kG7atYzzCZBmH0~>nt{T5uH z6vQE{-J8Pavst>7<=-)`Q?`ri%$-Y;uhJbEqI}scD!7Q835q~yr@6I(1U}8<{Lm{npj6s4Ead-+*ie4@3c0#)tq|$ zQ}s5t-IK!}ce_gLTSDj*=T`mm869)j+izoC|HS?{fnYdoe`vdxAIS~u>HH!WLDco8 zxq>cC<{qZwy?06LXY*1}>#?Jtsv&&HN$&N4eW{L*;SM9vs7Ko1I0gL>%q;R2g5`ynH|;Vz%Nv0f$Kr|ge(i;;5Dpxn_l)GAf;e(>t!yxT*hg~m z9FWW~VBAu>?RAjT`uDoTPAgB{{LXlZFBdQ;1pbx1)X42VdlB+7Hsp}ox9&N13<;U= zoC(%=^S9VsN9D(!`swHgQ*vz(q>2_zFRVV&#Us8{Ntfywbs6bG+iYEC#<|y)?K7RG z#S4SS>Le;=RH<*4sy*j^avI0pp05Ob$UM^}O|CX%Fcf#GCeOaed2%a=ROd#x4(ggqW4P>uxw+~!T7>M1)|6EOM61DBY8oK8)(JbXviar=^` zuBF3Yu{dFaL>j+E;@2<>3ksL#?RGk0Tjgq2K7w>VebAe~aFgf)1%B;fIRh_c$dm2b&0>Kq)qPv$O zww{uZ|1GusovmvGesVn<3%7daw1oa;es}8gVyRNKDU3m z`rj1FMYPglAuVzJ7xz*!TPjGTeB0Bxd=;XgBJC_u2aX9q{&*SKN?{{Qcb-->)NDG6 zttQ6&jhmBRfQ~sH(*EQkWZ0IO^IlKTgtZQ+xzNWE%xs-7ufZo_-Dhmx@JU=e#0Nzi z+hpRA3+6vh8xHrJ#J>*fLD;D{iKk>(jDakKKBYGdDdjAA=Cm9aUTdtL*?L#k<}W$O z!NeR-%tdpyU-&t*q+>?9N)f9(_u}Y11F>l^D_Hhg}J=5K+?8^Q4X0ug-nH4yo^tO&6EK}FQ!_{~alUZl& zA#WaefiWpHiXiDG?Pe-R?RY^Q}7HPuoZrgVyoWpr4 zhU|B}{5~O<>zPfBj4TcFryp?>$U&*tjjU98Qxc<~{Frf^ ztMh|RkWZ8`gF0zu%aM+IXzl1YehJ6f(lJ^IQLfqjX$ZP!|Sk6Hc z+P+lgLN7GHftM00dJ!R#fNb4AtPM*CS)$xhS^x z3xzM<_QV5Hh%lofrmfm<{Sn4y$ z&&fJU^~+68oAis7YdjH7+7{?H#zR+dPeRXwBh*uB@&OlueY3+>&K8$ipZCewcsL=s zGM%Yej@log^|ya)DnVXwcCOz)Y z;>durbB2JU5#Db}J*dxM7~0v0TuUJ`j`**YI>Z4|-tg@y zmw_~IuhRAVshEtrD&89MuhrhpJ1Y3N7iUc*yZ|`03`wMO1Uzrz9*Gil-mo^zn9$lT zszxr2e!Z`#S)(Ctbm=}ou}ju)GK3=n@2bZLemece^;b9QgcS&dz7{gB_J8Iip6IKD z*gpee%D{K$sOe@4wa4l`N#s?Ms`cJYJ)_()D=lo(3kvjyDaQwg$d#4 zf=1GSaS_5V_j})K)_3D#-YNCpM&F;v0`aDI$2p8QFC1^`Lg?lA-PBbELWaav8(eXO z54uNJe{^$wiA7)(2SK{|a5wLGX1#qQB52p9LU~6C^@48VR8YqdouK|~%UlZCIk)20 z!RfiTOlS6Rr`v?O){u?j!%K=Lm1fMN0Y2~y6#`)lm!P6z!uhd2#o**dRu`XEs$ifbfns~t1a;;H3*;XwVifS1t&J)zBKj=pQhQHo`#WX%02|&y$GN=ak z$Dt)vsd)H>Y)#UqElFViyJ(IBR$I%V;T}Og!GpgBq=8&4pcqW@RZu zM}9iVQkq#PA&oAih+s_5&$e=YkDDbXQe@(6CAZ~{2L`>N4g3oc^|E@uVse2mG|&RQ z_y@fe@HzT(%4RE~6n3wa0d}!)ZOx7xGW>n|bY?bd@l>pPxrLBOXC}1mNdk~xWK9)r zKpp>0>Zu(vyOz38W29vWe;-m|R+ZqHJ@eiS);B+6=OA>lp?O#t-uJIj0JgqAEx55R zBBqCCgTw!LIX|Juy<0Ddsc_zCjR{hZu+(z4@!mute-e(|*NZ%R&-=_xKdvRx|NWYe zs?}_u|4W#zPyOyzUwYnnZ z{gyC|iq^?*rUP7)i72tk`bZx$aMrdOuq-!!m&@mr8JMYiIZgu(!M`YR5lM38lIBCHF$gxw;HCtw#6-PXLr;w3gJ;d+JNO( zlIlYy3A_nIHnA+l2CI=3AkM;M#ZK9TBFCCdW8FZ zgQJZzBmWDf&MdUTlX@PCg6jsrS}rhli= z+k$0XX@RyfgX$*2;^rE6)?A$GhupHU*;J*+~qku0We|0LE7 zrtm8SMt5V6C~;?LMbG|EcuDuzwv{oV*Rz9?U;yKo@;st#}<2@8%dM*rZ|dywjvj_o5oH_iw} zxFCx3u`Z((OQC%Rl|XQC7nCcW_4ZXct`1C5`&-9_X$ctdb*k>2bzc*Y+?oI49xEhO zukZK<=27CSNjDJL{<)PLY%m>Y`1<-1)17T0xxv3awVn-yPC1hArY}hUiEnHD>!B5K z83;(39t}NqLLs}(-kj8|mw`bB%K<{y&9s6wi6j0|5#UVjAPJ+`sQVk*lld2mM~Ubu zQ8Kk1%hD=s>W({(EJnYX;Bn(j1eVeYW<{|3>Pg7)RoJNS)phU%B~hd#F$=T&vx=@? zm~1ZN96_=D2Kgk>*(44_+)oCd32EPPA#U)|g6F;-z${~VyaE(+gG^=4*I>V_VJN_w zq=B3(yIz@Oq}_g*z3!ZPp#D(m5bV+zj4kMp6fK`t%Ci-Z>O*$6eJJb@ez8liGr4){ zd9stbKu__H$^tmKcn0!W1mZNH6BL9r#bfK4xgvO15B)KZC(=8>THZ5x>CDuGaN`nE z$(GBZI<5U`4$Bi&?3^9}kS9CM;8^!1S2_ckM`h$MwVdGv6Y=^6Wh#jZcl>EsWoKq! zX}eCGn%=r!$zV9>VU$t$XsW^`^ZT+rh{a$#_K;KE>lQR;Av3dmg5@{NT?0loPJAWT zYqNU_U5oL>>r8#Ih$!0zQ*O^)b^M%zc(@^YD*OEN^qH!8&Llds7IBe!P5cigt14IT zYbq$#6h$1u2nx^?k;%=eQ9NM&t8o*C{3(^QyQyNB;bci7SIwAEf+IiGLqAAT?>Z}j zUxBM?7oAFEdh5I>#d*P%e{jx-YKf^ynW4)-of%}d9rCxO-W8Vpmo?S0p#$KMjT@Eh zs;^`Rs}NsGKkB~46S(`eQY$<(o~GEjTcKyL3ogVXinP%V^)`HGtjDv^K4tTHwbJ)`JL%p4VJOB?awCrZYvwz}@j@AgidV8QQv9 zB8&KA)|OhnX57=Bu??W|Sgtpf?f6BJzC2OHSA|CeJtooY0>0B?2K$qT#xr?*L)uYv zZ>)b}T#b187MZLRWo?tH%3|-+@Ur6=UAFPSdHAWWKqrQ;VqN>13DjuE5dSMA6CI%C zw`CvbEh6lV5sZ2l@Nj5UdsC9)xtbgKKQ2oU8NuO} zX!sfN)-UNs(<~p99(Hq*7Dj%=q93Ew^@<03DjgcGwziG2rAjG&@8!VY^TbDg`DJG1 z)VKK(Dwdcq&d?kHuQfr3{(|IzNYSm6yV&Tz0TsyB7ghXe74|gxnJdM9F2%+Hq8PrU zV6dBF7CF-kf==U0#_0>g2%D$OMra~kp|-Rk@33fwE&k|oIEI4(Jd8AUp$C}GL_Mem zcI4`Q^R3KOm!HQj-`>{g?NcAn^vjxG>`R2iO zTL<^6QLtgVQKS3<7DKklZ$!gupr@|uL|%5bXpa7*OE}E?%V-<4n}UYKM6kBTlO!#S zAXys61FD$dwT<{KVrq35I&5bVWu6b|yp_Am3+(WWe}4DUQDLQXR_+bge5>(m8cfBaXgLF+S+y$GkP6odR(9(<)G(Mf%6+X*XXP9FM@w0w^x;axs0I zOW-sZCfJvWF3~9ix$id=%U(x!eLP=F$crRiw=9A^?c((^fY`2*cy}u{B1s$xbp4vy z-CZ(m_h;@>V)HN<=L>I>vYom8UhH@7th)H#|00S|O1HS!<`ZCo+GvY0gqij|Quu9u zH6Kd#10Xu-vgC|1AW)#^D(}eo9v-6O7gHQ-)M>@;DIM5WLi^ZeOZDWy(2Xq3tkh%i zkzc(iG+9pgfs}a38(cR%7{Q*b|I8pZjyKUO9=%JuIh`j^GWjwcE=xg8Ca#7cX+KJr zbji$?q&()AXyK9l(3fv#u$)WaprS5$FL8LnB%>v<_VTNeakp~0;6FvIpYoV_SQ2dc z@l!4~rNAwRf(M#FDq$?UIJ+HCztX*`3`XUoTrrlEV+o{V`^&c+T!hBRje?4js6l}Y z%^H<9A~2?dc8Tk-SJzLay)QN-p5eY~PAyNZymCzF>z2Yx9&?|(yG%yEv6Z-zu*4b0 zg*2rL%#&q?nqQ24pWa?}Hur+MIRX%SL%x@-PvL+r22VGO1I1j2-KyDlb*x{Gmw9Gj zo(R=3T^&v9HZoee>T4_m-)|lb2P;r3-SL7l1B*LLiRI@^g^S_rK{j?(L)|$RJQ30K z4D{WB_T?aVQD0?}bXwc+z}3cbR%(SKDqZR?$14=AudQPmm`?(MTtJlMs(-zEIrs+{4nI4yMeY@ z>Tn0d#xyYRns}d#=;Uu$^_L=BgrEJ%x;?9QePz_g+$Wdj?-*^I2?l#i~K z)ZtBC@&UN5*xn$J5)UP-SNJT~MhYzba$VXUNG*A)rA9ALOT2^Ed%?&>zpi#%3etD zBl@x^cUxs{t0cX=W|fKZ3Nhgg2hQ&f!7@=D@3eWIC4CCfu1JGcNHSz{|M3*p};XV>90 z>B)4P81x9=t1k%PQ-^F_$EM}Syvm}A#Ex5XiHUBbLltgXddxxeauoG` zd^fTJxP-_0`vt2U4k8Q1|bM1dV=N_bb3U zx`)I4%<{P16fb2bk9a+R721tKm?D2`n!yw>P6P0?GL>z0$1}7X@bEc~r%08a@u3ZE zpF_q;+mb}1SIY=H#a;{7Er*;#7~=ecm#+~0s;%nDsr8s?XbPRyEx4bEe8BsXsb|Q# zK`}Tp_%U45R4Tb*`JN6AyZug(qIeyB)8T0b;NU8GnV-N|a`x93e!L{z>!SZ;{+|n}-*1K`Yfsx$X2onF^=@DLaV%=iyYomY7u!3z*pv<>Jr(aPa{^ zye?s{R@a+CbZwA+J1I+Ff~<-9L4UxdhyM^bdsruI#V_Xo&6g|Py3G1`BKwe9w2 zZsHaIC?%5lQn#~hpYvjvHx6ZHQD3+-2feX>bBEvn5+>W=}#= z(f-nVc%Bl;l=(aNPTTIHJs}!0(l5Ozzs#keZsdrZeuA2T69+L#apw7kr$93}r%4{W z=<-i@pC_$^kkS{6WDAo+3mj#{<#saByk?%D;aV|&^)dZ||BEF?{|}ZRcGCXClBIps<3Evz&OOg> zvW5{1ekI5wSTppUW8AzpPB|})zwnL9KziLzYM}AK7moh{FMg!-LVoI7E5Wh)*TUK{ zuY&*bGo;kM{!-c7YgG|ctShzLs<>s@AABF!M&FDnUF=h z)>r>SZ3cGH&1S^Q=LwH9tBQ|`qjmi!l(kBTj6e<`!?{ZKY|B&FK%VcR<7x{Zud4P! zo#QEI1+v+%ZV>d-&ZE}?k@hd#?-nYc8~VLNgX>tCwkm9)H9PR&YWYA|9GN?Q^K+EvI&BhL7l>9|{e-W$P1e`DHFD&g~~}7bBE|%9e*b zq5iZR^Rm#GpBR}=o&b@re6HC<6fn^bh zd`JlX*vSiAmCmDXF)9Pb-i}B+ue-Lo`AXxv&-_TOIcqhocK2%6IK}2yTyWpTq!#rY z1fVQHWKtPy>p=SPk6Zfn{|~p^FitO`U%t3DaS72GCG2W!(VrMN-hXQ~b@CiBt?c_BwA3t`qK77=XlCL4PsbFr9>E{^ z-1cXL5Si6*N|}JN>);kidK$Q-^fN$VBC}n z7zeT~2bjOiKnuw8=|MK0q3uIN_QSGnk(6sjo|_D*mj|8cd!GD2PIv)Oj|08A1avYG zcA?`WMyo!tJQE{KMrUMl0(D~aV54hpS`Lo@t;$?`PL{3xh&akLvJ{;9$W78a8*4_A zhA~WieB5M<)^6qYl?(oLk-mjcA2ykLUB8DA+iT)jr)7-T6lhtTs@ z$oNBp;sldlI%=B90id*0k9nWKTB)w}WzaU(xhw&za1{mw>Fj@`%=>}P<-r2jzs~JT_dE9WZ%38_RgGvL-?Rc zH?1(M*Uy*&V=s@KbFx`bU~J1XX7z_uA93e4#~9ld)W(( z_|@*SrE03<2_|#M4x-{~H>Sd9Jo5>0#a)o!MO7y3RZrQWdh};ve8FAxlgrk`k6S}O zANtCE`iu;CBt)Z%5Sn=vqGNi)!LQt~g^lEQ1D>{^u{E7Eo9%{gIc8Mm{Yae6u9PEj zwPIG#x;P7Du^eFuckkEv?kNVG`kxCoqLAn}#O}YA$Ob+C-@|UdQz(HlazUMoHZKBR zP=;GI|KpnYA{WU!Pdy$s7q=T!-fldsTu{Y_domd`pEeQ`G1c4NVNu^p*77!>v>$s< zOsplX`!@>VRmG40W^O=F!VSqWJ`poO1HIp#mQeORFQ1m-Hd;40&y-JlTg<@!#5QMf z)h^kmr7OIw2MF$ssikgv{RN-=vCYB$K8~K5sd*KnS7Wk6JCOQ{ZXOXiWA;sk+&J4g x_kUkz0>~#n|Fr&4HKJ{7=Ow2!YqArAF7O+#3s%mhJ&ERw5zPEXjo$so{|i$kmJt8| literal 0 HcmV?d00001 diff --git a/Documentation~/en/tutorial01.md b/Documentation~/en/tutorial01.md index 9dd66ef8..782f33b5 100644 --- a/Documentation~/en/tutorial01.md +++ b/Documentation~/en/tutorial01.md @@ -1,103 +1,143 @@ --- -title: Introductory tutorial: Get started with XCharts 3.0 in 5 minutes +title: Tutorial: Getting Started with XCharts 3.0 in 5 Minutes sidebar_position: 11 slug: /tutorial01 --- -# Tutorial: Get started with XCharts 3.0 in 5 minutes +# Tutorial: Getting Started with XCharts 3.0 in 5 Minutes -> Note: This tutorial is for XCharts 3.x version only -## What do I need to know before using XCharts +> Note: This tutorial is only applicable to the XCharts 3.x version. For the 2.x version, please refer to [Tutorial: Mastering XCharts 2.0](https://github.com/XCharts-Team/XCharts/blob/2.0/Doc/Tutorial%3A5-Minute-Start-to-XCharts.md) -- Have used Unity, know the basic operation of Unity. -- Understand UGUI and can use UGUI. -- Understand MonoBehavior script usage in Unity, know how to hang scripts, manipulate scripts with code. +## Prerequisites for XCharts -## Get and import XCharts +XCharts is a Unity chart plugin, currently only available for use on the Unity platform. -XCharts can be imported into a project in any of the following ways: +Before using XCharts, you need to: -- Source XCharts directly into the project +- Have a basic understanding of how to use Unity. +- Understand the basic usage of UGUI for making UI. +- Know how to use Unity's MonoBehavior scripts, how to attach scripts, and how to manipulate scripts with code. - After downloading the XCharts source code, copy the XCharts directory directly to the Assets directory of the Unity project. +If you are new to Unity, it is recommended to learn some basic Unity tutorials before using XCharts. -- Import XCharts through `Assets/Import Package` +## Obtaining and Importing XCharts - After downloading the.unitypackage file for XCharts, open Unity and go to the menu bar Assets--> Import Package--> Select.unitypackage import to start using XCharts. +XCharts is primarily maintained and released through Github. You can download the source code and Package from the [Github Homepage](https://github.com/XCharts-Team). -- Import XCharts through the Package Manager +XCharts can be imported into your project in any of the following ways: - For Unity 2018.3 and later, XCharts can be imported through the Package Manager. After opening the Package Manager, run the `Add package form git URL...`, input XCharts dead simple URL: ` https://github.com/XCharts-Team/XCharts.git use XCharts after ` wait a moment. +### Copying the XCharts Source Code Directly into the Project - You can also add the package directly to the manifest.json file: Open the manifest.json file in the Packages directory and add it under dependencies: +After downloading the XCharts source code, simply copy the XCharts directory into the Assets directory of your Unity project. Once compiled, it is ready to use. - ``` json - "com.monitor1394.xcharts" : "https://github.com/XCharts-Team/XCharts.git", - ``` +### Importing XCharts through Import Package - To update XCharts, remove com.monitor1394.xcharts from the manifest.json file under lock (some versions of Unity may be packages-lock.json) and re-download and compile. +After downloading the .unitypackage file of XCharts, open Unity, go to the menu bar Assets-->Import Package-->select the downloaded .unitypackage to import. After the import is complete and compiled, you can start using XCharts. -- Recommended daemon into XCharts (not required) +### Importing XCharts through Package Manager - [XCharts Daemon](https://github.com/XCharts-Team/XCharts-Daemon) can ensure update compilation is normal, when the local open TextMeshPro or NewInputSystem would be very useful. After importing Xchart-daemon into a project, when updating XCharts, the Daemon will automatically refresh asmdef according to the status of local TMP, etc., to ensure normal compilation and facilitate the execution of automated processes such as CI-CD. +For Unity versions above 2018.3, you can import XCharts through the Package Manager. Open the Package Manager, then use `Add package from git URL...`, enter the GitHub URL of XCharts: `https://github.com/XCharts-Team/XCharts.git`. After compiling, you can use XCharts. -## Add a simple chart +For some Unity versions, you can also directly add the package to the `manifest.json` file: Open the `manifest.json` file under the `Packages` directory, and add the following under `dependencies`: -Right-click in `Hierarchy` view or menu bar `GameObject` drop down and select `XCharts->LineChart`, can quickly create a default line chart out: +>"com.monitor1394.xcharts": "https://github.com/XCharts-Team/XCharts.git", + +If you need to update `XCharts`, delete the relevant content of `com.monitor1394.xcharts` under the `lock` of the `manifest.json` file (some Unity versions may be the packages-lock.json file), and it will re-download and compile. + +### Recommended Import of XCharts Daemon + +The daemon [XCharts-Daemon](https://github.com/XCharts-Team/XCharts-Daemon) ensures that the compilation is normal when updating. It is very useful when TextMeshPro or NewInputSystem is turned on locally. After importing XCharts-Daemon into the project, the daemon will automatically refresh XCharts' asmdef according to the local situation of TMP when updating XCharts, ensuring that the compilation is normal without manual intervention, which is convenient for automated processes such as CI/CD. + +The import method of XCharts-Daemon can refer to the previous import method of XCharts. It can be imported into the project through source code or Package. The GitHub URL of XCharts-Daemon: https://github.com/XCharts-Team/XCharts-Daemon.git + +## Basic Usage of XCharts + +After importing XCharts and compiling, the XCharts menu will appear in the Unity editor's menu bar, and you can start using XCharts. + +>Note: The XCharts menu in the Unity menu bar indicates that XCharts is available. + +### Adding a Simple Chart + +In the `Hierarchy` view, right-click `UI->XCharts->LineChart` or select `LineChart` from the menu bar `XCharts` to quickly create a default line chart: ![linechart1](img/tutorial01_linechart1.png) -## Add multiple Seire +If you need to create a chart under a certain node, you can select the node and right-click `UI->XCharts->LineChart` to create a chart under the node. -In the Inspector view, locate LineChart's panel, and with the `Add Serie` button, you can add a second Line line: +### Modifying Chart Data + +For the newly created chart, its data can be modified on the Inspector panel. + +For X-axis data, you can add, delete, and modify by expanding: `XAxis->Data`: + +![op_axisdata](img/tutorial01_axisdata.png) + +For Serie data, you can add, delete, and modify by expanding: `Serie->Data`: + +![op_seriedata](img/tutorial01_seriedata.png) + +Serie supports multi-dimensional data, and generally, a line chart only uses two-dimensional data: the first dimension represents the ID of the X-axis category data, and the second dimension represents the corresponding value. + +### Adding Multiple Series + +In the `Inspector` view, find the `LineChart` panel, and click the `Add Serie` button to add a second `Line` line: ![op_addserie](img/tutorial01_addserie.png) ![linechart2](img/tutorial01_linechart2.png) -## Add other components +>Note: Series are added through the `Add Serie` button. Different types of Series can be added. [What kinds of Series does XCharts have?](https://xcharts-team.github.io/docs/configuration#serie-系列) -The default chart does not have a `Legend`, and a `Legend` Component can be added via the `Add Component` button: +### Adding Other Main Components + +By default, the chart does not have a `Legend`. If you need a `Legend` component, you can add it through the `Add Component` button: ![op_addcomponent](img/tutorial01_addcomponent.png) -## Add Serie components +>Note: Main components are added through the `Add Component` button. [What main components does XCharts have?](https://xcharts-team.github.io/docs/configuration/#maincomponent-主组件) -Serie comes with only a few common components, and others are added as needed. For example, if you need to fill a line chart area with color, you can add a separate `AreaStyle` component to Serie: +### Adding Serie Components + +Serie only comes with a few common components, and other components need to be added when used. For example, if you need to fill the area color for the line chart, you can add an `AreaStyle` component to `Serie` separately: ![op_addseriecomponent](img/tutorial01_addseriecomponent.png) ![linechart3](img/tutorial01_linechart3.png) -## Add the SerieData component +>Note: Serie components are added through the button on the right side of Serie. [What components can be added to Serie in XCharts?](https://xcharts-team.github.io/docs/configuration/#iseriecomponent-可添加到serie的组件) -If you need to personalize the configuration of each data item, you can add a Component to each SerieData separately. For example, we give the second data of the line chart a separate display `Label`: +### Adding SerieData Components + +If you need to customize the configuration of each data item individually, you can add components to each `SerieData` separately. For example, we can display `Label` for the second data of the line chart individually: ![op_addseriedatacomponent](img/tutorial01_addseriedatacomponent.png) ![linechart4](img/tutorial01_linechart4.png) -## More components and configuration parameters +>Note: SerieData components are added through the button on the right side of SerieData after expanding. [What components can be added to SerieData in XCharts?](https://xcharts-team.github.io/docs/configuration/#iseriedatacomponent-可添加到seriedata的组件) -XCharts has been iteratively optimized and now has dozens of main and sub-components, each with a few to dozens of configurable parameters to support a variety of flexible and complex functions. +### More Components and Configuration Parameters -Using XCharts for the first time, you can add various charts in the `Inspector` view, add or adjust the components in the chart, and the `Game` view gives real-time feedback on the effects of adjustments to familiarize yourself with the use of various components. Detailed parameter descriptions of each component can be found in the [XCharts Configuration](Configuration.md). +XCharts has been continuously iterated and optimized, and now has dozens of main components and sub-components, each with several to dozens of configurable parameters to support a variety of functions. -## How to adjust parameters quickly +When using XCharts for the first time, it is recommended to personally test the actual effects of each chart, each component. The `Inspector` view can directly add various charts, components, and adjust various configuration parameters, and the `Game` view will provide real-time feedback on the adjustments. A detailed description of each component's parameters can be found in the [XCharts Configuration Manual](configuration.md). -XCharts is configuration and data driven. Want what effect, only need to adjust the configuration parameters under the corresponding component can be, do not need to change the nodes under the `Hierarchy` view, because those nodes are generated by the `XCharts` internal according to the configuration and data, even if changed will be restored in the refresh. +### How to Quickly Adjust Parameters -How to quickly locate the component corresponding to the effect you want to change requires a certain understanding of the component. For example, if we want to show an arrow at the end of the X-axis, how do we position it? First, position the X-axis to `XAxis0`; Second, locate the axis to `AxisLine`; Finally, check to see if there are any parameters in the AxisLine component that can achieve this effect, and check [XCharts configuration](Configuration.md) for uncertain parameters. +XCharts is driven by data and parameters. To achieve the desired effect, simply adjust the configuration parameters under the corresponding component. Do not modify the nodes under the `Hierarchy` view, as those nodes are generated by XCharts internally based on configuration and data, and will be restored upon refresh. -`XCharts` provides a full range of parameter configuration from the global` Theme `, series` Serie `, and single data item `SerieData`. The priority in descending order is: `SerieData` -> `Serie` -> `Theme`. Take the color of `ItemStyle` for example: +To quickly locate the component corresponding to the effect you want to change, you need to have a certain understanding of the components. For example, we want to display an arrow at the end of the X-axis line. How to locate it? The first step, the X-axis is located at `XAxis0`; the second step, the axis line is located at `AxisLine`; finally, check if there is such a parameter under the `AxisLine` component to achieve this effect. If you are not sure about the parameters, you can refer to the [XCharts Configuration Manual](configuration.md). -1. If the `ItemStyle` of `SerieData` has a color value other than `0000`, this color value is preferred. -2. If the ItemStyle of `Serie` is configured with a color value other than `0000`, this color value takes precedence. -3. Otherwise, the Color value is taken from the Color Palette of the Theme. +`XCharts` provides comprehensive parameter configuration from the global `Theme`, series `Serie`, and individual data items `SerieData`. The priority order from high to low is: `SerieData`->`Serie`->`Theme`. Take the color of `ItemStyle` as + an example: -Usually, `0000` indicates the theme default color, and 0 or null indicates the theme default. +1. If the `ItemStyle` of `SerieData` has a color value other than `0000`, this color value is used first. +2. If the `ItemStyle` of `Serie` has a color value other than `0000`, this color value is used. +3. Otherwise, the color value is taken from the `Color Palette` of the theme `Theme`. -## Add line charts with code +>Note: The color value is usually `0000` when using the default color of the theme; other parameters are `0` or null when using the default configuration of the theme; pay attention to transparency when setting colors. -Attach the `LineChart` script to the gameObject: +### Adding a Line Chart with Code + +Attach the `LineChart` script to `gameObject`: ```csharp var chart = gameObject.GetComponent(); @@ -108,10 +148,10 @@ if (chart == null) } ``` -Resize: +Adjust the size: ```csharp -chart.SetSize(580, 300);//代码动态设置尺寸,或直接操作chart.rectTransform,或直接在Inspector上改 +chart.SetSize(580, 300);//Dynamically set the size with code, or directly operate chart.rectTransform, or directly change it in the Inspector ``` Set the title: @@ -121,7 +161,7 @@ var title = chart.EnsureChartComponent(); title.text = "Simple Line"; ``` -Set whether prompt boxes and legends are displayed: +Set whether to display the tooltip and legend: ```csharp var tooltip = chart.EnsureChartComponent<Tooltip>(); @@ -131,7 +171,7 @@ var legend = chart.EnsureChartComponent<Legend>(); legend.show = false; ``` -Set axes: +Set the coordinate axis: ```csharp var xAxis = chart.EnsureChartComponent<XAxis>(); @@ -143,14 +183,22 @@ var yAxis = chart.EnsureChartComponent<YAxis>(); yAxis.type = Axis.AxisType.Value; ``` -Clear default data and add `Line` type `Serie` for receiving data: +Clear all default data (including Series), add a `Line` type `Serie` to receive data: ```csharp chart.RemoveData(); chart.AddSerie<Line>("line"); ``` -Add 10 data: +If the Serie is fixed, it is recommended to only clear the data, not to remove the Serie: + +```csharp +chart.ClearData(); +``` + +This way, you can set the configuration parameters of Serie in the UI in advance. + +Add 10 data points: ```csharp for (int i = 0; i < 10; i++) @@ -160,59 +208,74 @@ for (int i = 0; i < 10; i++) } ``` -So a simple line chart comes out: +Now, a simple line chart is ready: ![tutorial01_linechart_simple](img/tutorial01_linechart_simple.png) -If there are multiple series in a Chart, the data of Axis only needs to be added once, rather than repeated in multiple cycles. Remember: the number of data in Axis should be the same as the number in Serie. +If there are multiple series in a Chart, the data of Axis only needs to be added once, and should not be repeated in multiple loops. -See `Examples`: `Example13_LineSimple.cs` for the complete code +>Remember: The number of Axis data should be consistent with the number of Serie data. -You can also use code to control more parameters, there are more Examples under `Examples`, all the configurable parameters seen in the `Inspector` can be set by code. All parameters in [XCharts configuration](Configuration.md) can be controlled by code. +For the complete code, please refer to `Examples`: `Example13_LineSimple.cs` -In addition, unless customized, it is recommended to call the `public` interface provided under `Chart`, especially in the data-related operations section. These interfaces do some associated processing inside, such as refreshing charts. Common interfaces are: +You can also control more parameters with code. There are more examples in `Examples`. All parameters that can be configured in the `Inspector` can be set with code. All parameters in the [XCharts Configuration Manual](configuration.md) can be controlled by code. -1. `Chart.ClearData()` : Clear chart data (without removing Series) -2. `Chart.RemoveData()` : Clear chart data (will remove all Serie) -3. `chart.AddSerie()` : AddSerie -4. `chart.AddXAxisData()` : Add X-axis data -5. `chart.AddData()` : Adds Serie data -6. `chart.UpdateData()` : Updates Serie data -7. `chart.UpdateXAxisData()` : Updates the X-axis data -8. `chart.UpdateDataName()` : Updates the Serie data name +### Setting the Default Font -XCharts has an automatic refresh mechanism inside, but it only triggers under certain conditions. If you call the interface of the internal component, encounter the component did not refresh, and indeed can not find the reason, you can use the following two interfaces to force refresh: +The default font used by XCharts is Unity's default font `Arial`, which may not display Chinese characters on the WebGL platform. When using XCharts in your project, it is recommended to set the font first: -1. `chart.RefreshAllComponent()` : refresh chart component, to initialize all of the components, often is not recommended. -2. `chart.RefreshChart()` : refreshes the chart drawing, only the drawing part is refreshed, and the component text, position, etc., is not refreshed. -3. Individual components can also refresh only themselves by `SetAllDirty()`. +- Find the `XCharts/Resources/XCSetting.asset` resource and modify the `Font` inside and save. +- Find the `XCharts/Resources/XCTheme-Default.asset` and `XCharts/Resources/XCTheme-Dark.asset` font configurations, and click the `Sync Font from Setting` and `Sync Font to Sub Theme` buttons to synchronize the font to the theme configuration files. -## Use TextMeshPro +After the font is set, newly created charts will use the newly set font. For old charts, you can click the `Rebuild Chart Object` button to refresh. -XCharts supports TextMeshPro, but it is disabled by default and needs to be switched manually. It can be turned on and off in the following ways: +>Note: It is recommended to set the font before using XCharts; when updating XCharts, pay attention to the potential restoration of the set font. + +### Using TextMeshPro + +XCharts supports TextMeshPro, but it is not enabled by default and needs to be switched on manually. It can be turned on and off in the following ways: ![textmeshpro1](img/tutorial01_textmeshpro.png) -After opening, you need to set the global font used by TextMeshPro, or you can set it separately in the Theme: +After turning it on, you need to set the global font to be used by TextMeshPro, and it can also be set individually in the Theme: ![textmeshpro-font](img/tutorial01_textmeshpro_font.png) -It is recommended to plan whether to use TextMeshPro at the beginning of the project and set the font. When switching TMP with many existing charts, some charts may not refresh automatically. You can manually click the `Rebuild Chart Object` button to rebuild the chart, which can be initialized normally. +It is recommended to plan whether to use TextMeshPro at the beginning of the project and set the font accordingly. When switching to TMP in a project with many charts, some charts may not refresh automatically, and you can manually click the `Rebuild Chart Object` button to rebuild the chart, which will initialize normally. -When updating XCharts for TMP projects, you may encounter problems with missing TMP references and failing to compile. These problems can be solved in one of two ways: +If you have enabled TMP in your project, you may encounter compilation failures due to lost TMP references when updating XCharts. This can be solved in the following two ways: -1. Find `XCharts.Runtime.asmdef` and `XCharts.Editor.asmdef` and manually add references to `TextMeshPro` -2. Remove the `dUI_TextMeshPro` macro for Scripting Define Symbols in PlayerSetting +1. Find `XCharts.Runtime.asmdef` and `XCharts.Editor.asmdef`, and manually add references to `TextMeshPro`. +2. Remove the `dUI_TextMeshPro` macro from the `Scripting Define Symbols` in `PlayerSetting`. -Version `3.8.0` after adding daemon[XCharts - Daemon](https://github.com/XCharts-Team/XCharts-Daemon), will be XCharts-Daemon import project, When updating XCharts, the daemon automatically refreshes the asmdef based on the locally enabled TMP to ensure proper compilation. +After the `3.8.0` version, the [XCharts-Daemon](https://github.com/XCharts-Team/XCharts-Daemon) daemon was added. After importing XCharts-Daemon into the project, the daemon will automatically refresh the asmdef based on the local situation of the enabled TMP when updating XCharts, ensuring normal compilation. -## Change chart parameters with code +## XCharts Code Control -All parameters seen on Inspector can be modified with code, the key is to identify whether the parameters you want to change are on the component, on the Serie, or on the specific data item SerieData. +All parameters seen in the `Inspector` can be modified with code. The key is to locate the parameter you want to change, whether it is on the component, the Serie, or the specific data item SerieData. -### Change the parameters on the main component +In addition, unless customized, it is recommended to call the `public` interfaces provided under `Chart`, especially for data-related and list operations. These interfaces will do some associated processing internally, such as refreshing the chart. Common interfaces include: -You need to obtain the component first, and then modify the parameters in it: +1. `chart.ClearData()`: Clear chart data (does not remove Series) +2. `chart.RemoveData()`: Clear chart data (will remove all Series) +3. `chart.AddSerie()`: Add Serie +4. `chart.AddXAxisData()`: Add X-axis data +5. `chart.AddData()`: Add Serie data +6. `chart.UpdateData()`: Update Serie data +7. `chart.UpdateXAxisData()`: Update X-axis data +8. `chart.UpdateDataName()`: Update the name of Serie data + +XCharts has an automatic refresh mechanism, but it is also triggered under certain conditions. If you have called the internal component interfaces and encountered components that have not been refreshed, and you cannot find the reason, you can use the following two interfaces to force a refresh: + +1. `chart.RefreshAllComponent()`: Refresh chart components, which will re-initialize all components. It is not recommended to use it frequently. +2. `chart.RefreshChart()`: Refresh chart rendering, which only refreshes the rendering part and will not refresh component text, position, etc. +3. Each component can also refresh itself by calling `SetAllDirty()`. + +>Note: Use APIs to manipulate data and various lists, not directly access the list for processing. + +### Changing Parameters on Main Components + +You need to obtain the component first, then modify its parameters: ```csharp var title = chart.EnsureChartComponent<Title>(); @@ -225,11 +288,11 @@ xAxis.boundaryGap = true; xAxis.type = Axis.AxisType.Category; ``` -> Note: When the earlier version does not have the EnsureChartComponent() interface, GetOrAddChartComponent() is used. +> Note: In older versions without the `EnsureChartComponent()` interface, use `GetOrAddChartComponent()` -### Change Serie parameters +### Changing Serie Parameters -For newly added Serie: +For newly added Series: ```csharp var serie = chart.AddSerie<Pie>(); @@ -241,7 +304,7 @@ serie.animation.dataChangeEnable = true; serie.roundCap = true; ``` -For existing Serie: +For existing Series: ```csharp var serie = chart.GetSerie<Pie>(); @@ -253,7 +316,7 @@ serie.animation.dataChangeEnable = true; serie.roundCap = true; ``` -Add additional components to Serie: +Adding additional components to Serie: ```csharp serie.EnsureComponent<AreaStyle>(); @@ -262,14 +325,14 @@ var label = serie1.EnsureComponent<LabelStyle>(); label.offset = new Vector3(0,20,0); ``` -### Change the parameter on the data item SerieData +### Changing Parameters on Data Item SerieData ```csharp var serieData = chart.AddData(0, 20); -//var serieData = serie.GetSerieData(0); //从已有数据中获取 +//var serieData = serie.GetSerieData(0); //To get from existing data serieData.radius = 10; -var itemStyle = serieData.EnsureComponent<ItemStyle>(); //给数据项添加ItemStyle组件 +var itemStyle = serieData.EnsureComponent<ItemStyle>(); //Add ItemStyle component to the data item itemStyle.color = Color.blue; -``` \ No newline at end of file +``` diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 4c634e2e..ae226da8 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -6,6 +6,7 @@ slug: /changelog # 更新日志 [master](#master) +[v3.12.0](#v3120) [v3.11.2](#v3112) [v3.11.1](#v3111) [v3.11.0](#v3110) @@ -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`文档显示样式 diff --git a/Documentation~/zh/tutorial01.md b/Documentation~/zh/tutorial01.md index 9c83fa1e..0eb4eb4b 100644 --- a/Documentation~/zh/tutorial01.md +++ b/Documentation~/zh/tutorial01.md @@ -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可通过以下任意一种方式导入到你的项目: @@ -60,7 +58,7 @@ XCharts-Daemon的导入方式可参考刚才的XCharts导入方式。可以通 ### 添加一个简单图表 -在`Hierarchy`视图下右键`UI->XCharts->LineChart`或菜单栏`XCharts`下拉选择`LineChart`,即可快速创建一个默认的折线图出来: +在`Hierarchy`视图下右键`UI->XCharts->LineChart`或菜单栏`XCharts`下拉选择`LineChart`,即可快速创建一个默认的折线图: ![linechart1](img/tutorial01_linechart1.png) @@ -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`进行刷新。 diff --git a/Runtime/Internal/XChartsMgr.cs b/Runtime/Internal/XChartsMgr.cs index 5890346f..3f4a9c70 100644 --- a/Runtime/Internal/XChartsMgr.cs +++ b/Runtime/Internal/XChartsMgr.cs @@ -21,8 +21,8 @@ namespace XCharts.Runtime [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>(); diff --git a/package.json b/package.json index 5e13d2b8..f2957ae5 100644 --- a/package.json +++ b/package.json @@ -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": [ From 8c1dc44e1ecf90c4b6dc084e18bdde04ccb4ea1b Mon Sep 17 00:00:00 2001 From: monitor1394 <monitor1394@gmail.com> Date: Mon, 30 Sep 2024 18:04:46 +0800 Subject: [PATCH 33/34] 3.11.2 --- Documentation~/en/api.md | 5 +++++ Documentation~/zh/api.md | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Documentation~/en/api.md b/Documentation~/en/api.md index e6d20502..7759c74e 100644 --- a/Documentation~/en/api.md +++ b/Documentation~/en/api.md @@ -7869,6 +7869,11 @@ public static void GetStackSeries(List<Serie> series, ref Dictionary<in public static bool IsAnyClipSerie(List<Serie> series) 是否有需裁剪的serie。 +### SeriesHelper.IsAnyColorByDataSerie + +public static bool IsAnyColorByDataSerie(List<Serie> series) +check if series has any serie which is color by data. + ### SeriesHelper.IsLegalLegendName public static bool IsLegalLegendName(string name) diff --git a/Documentation~/zh/api.md b/Documentation~/zh/api.md index 12876bd3..8e4e2458 100644 --- a/Documentation~/zh/api.md +++ b/Documentation~/zh/api.md @@ -7869,6 +7869,11 @@ public static void GetStackSeries(List<Serie> series, ref Dictionary<in public static bool IsAnyClipSerie(List<Serie> series) 是否有需裁剪的serie。 +### SeriesHelper.IsAnyColorByDataSerie + +public static bool IsAnyColorByDataSerie(List<Serie> series) +是否有任何一个系列是按数据颜色的。 + ### SeriesHelper.IsLegalLegendName public static bool IsLegalLegendName(string name) From ad3a8f9ad87d0bf1ec85ca74c491e0ba62c0eb1c Mon Sep 17 00:00:00 2001 From: monitor1394 <monitor1394@gmail.com> Date: Mon, 30 Sep 2024 18:12:57 +0800 Subject: [PATCH 34/34] 3.12.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f2957ae5..7aa27dcf 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "XCharts", "author": "monitor1394", "license": "MIT", - "version": "3.11.2", + "version": "3.12.0", "date": "20240930", "checkdate": "20240930", "unity": "2018.3",