mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-27 03:10:11 +00:00
[bug] fix multipe grid error (#210)
This commit is contained in:
@@ -423,5 +423,22 @@ namespace XCharts.Runtime
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
internal bool GetSerieGridCoordAxis(Serie serie, out Axis axis, out Axis relativedAxis)
|
||||
{
|
||||
var yAxis = GetChartComponent<YAxis>(serie.yAxisIndex);
|
||||
var isY = yAxis.IsCategory();
|
||||
if (isY)
|
||||
{
|
||||
axis = yAxis;
|
||||
relativedAxis = GetChartComponent<XAxis>(serie.xAxisIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
axis = GetChartComponent<XAxis>(serie.xAxisIndex);
|
||||
relativedAxis = yAxis;
|
||||
}
|
||||
return isY;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ namespace XCharts.Runtime
|
||||
[System.Serializable]
|
||||
public class MainComponent : IComparable
|
||||
{
|
||||
public int instanceId { get; internal set; }
|
||||
public int instanceId { get { return index; } }
|
||||
public int index { get; internal set; }
|
||||
protected bool m_VertsDirty;
|
||||
protected bool m_ComponentDirty;
|
||||
|
||||
Reference in New Issue
Block a user