From 8a4b9fd2bfbdd4074d75445a7525beb8fbc40b95 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Wed, 16 Oct 2019 13:01:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/UI/API/BaseChart_API.cs | 12 ++++++++++++ Scripts/UI/API/CoordinateChart_API.cs | 24 ++++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/Scripts/UI/API/BaseChart_API.cs b/Scripts/UI/API/BaseChart_API.cs index 3ca8b70c..d009d76e 100644 --- a/Scripts/UI/API/BaseChart_API.cs +++ b/Scripts/UI/API/BaseChart_API.cs @@ -448,5 +448,17 @@ namespace XCharts m_Series.AnimationReset(); RefreshChart(); } + + /// + /// 点击图例按钮 + /// + /// 图例按钮索引 + /// 图例按钮名称 + /// 显示还是隐藏 + public void ClickLegendButton(int legendIndex, string legendName, bool show) + { + OnLegendButtonClick(legendIndex, legendName, show); + RefreshChart(); + } } } diff --git a/Scripts/UI/API/CoordinateChart_API.cs b/Scripts/UI/API/CoordinateChart_API.cs index 7592f760..ebc9308b 100644 --- a/Scripts/UI/API/CoordinateChart_API.cs +++ b/Scripts/UI/API/CoordinateChart_API.cs @@ -55,6 +55,22 @@ namespace XCharts /// 视觉映射组件。 /// public VisualMap visualMap { get { return m_VisualMap; } } + /// + /// X轴(下) + /// + public XAxis xAxis0 { get { return m_XAxises[0]; } } + /// + /// X轴(上) + /// + public XAxis xAxis1 { get { return m_XAxises[1]; } } + /// + /// Y轴(左) + /// + public YAxis yAxis0 { get { return m_YAxises[0]; } } + /// + /// Y轴(右) + /// + public YAxis yAxis1 { get { return m_YAxises[1]; } } /// @@ -153,6 +169,14 @@ namespace XCharts } return true; } + + /// + /// 在下一帧刷新DataZoom + /// + public void RefreshDataZoom() + { + RefreshDataZoomLabel(); + } } }