mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-15 21:00:11 +00:00
增加Covert XY Axis互换XY轴配置
This commit is contained in:
@@ -212,6 +212,20 @@ namespace XCharts
|
||||
return np;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 转换X轴和Y轴的配置
|
||||
/// </summary>
|
||||
/// <param name="index">坐标轴索引,0或1</param>
|
||||
public void CovertXYAxis(int index)
|
||||
{
|
||||
if (index >= 0 && index <= 1)
|
||||
{
|
||||
var tempX = m_XAxises[index].Clone();
|
||||
m_XAxises[index].Copy(m_YAxises[index]);
|
||||
m_YAxises[index].Copy(tempX);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user