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(); + } } }