mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-26 02:40:13 +00:00
[bug] fix multipe grid error (#210)
This commit is contained in:
@@ -132,13 +132,6 @@ namespace XCharts.Runtime
|
||||
SetValueWithKInfo(s_Sb, "s-vert", vertCount);
|
||||
SetValueWithKInfo(s_Sb, "t-vert", m_Chart.m_TopPainterVertCount, false);
|
||||
|
||||
var serie0 = m_Chart.GetSerie(0);
|
||||
for (int i = 0; i < serie0.dataCount; i++)
|
||||
{
|
||||
var serieData = serie0.data[i];
|
||||
s_Sb.AppendFormat("{0}:{1}\n", i, serieData.interact.targetVaue);
|
||||
}
|
||||
|
||||
m_Label.SetText(s_Sb.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace XCharts.Runtime
|
||||
[SerializeField][Range(1, 10)] protected float m_CicleSmoothness = 2f;
|
||||
[SerializeField] protected float m_LegendIconLineWidth = 2;
|
||||
[SerializeField] private float[] m_LegendIconCornerRadius = new float[] { 0.25f, 0.25f, 0.25f, 0.25f };
|
||||
[SerializeField][Since("v3.1.0")] protected float m_AxisMaxSplitNumber = 20;
|
||||
[SerializeField][Since("v3.1.0")] protected float m_AxisMaxSplitNumber = 50;
|
||||
|
||||
public bool show { get { return m_Show; } }
|
||||
/// <summary>
|
||||
|
||||
@@ -199,6 +199,7 @@ namespace XCharts.Runtime
|
||||
private ISerieContainer GetPointerContainerAndSeries(Tooltip tooltip, List<Serie> list)
|
||||
{
|
||||
list.Clear();
|
||||
ISerieContainer target = null;
|
||||
for (int i = chart.components.Count - 1; i >= 0; i--)
|
||||
{
|
||||
var component = chart.components[i];
|
||||
@@ -230,11 +231,11 @@ namespace XCharts.Runtime
|
||||
chart.RefreshTopPainter();
|
||||
}
|
||||
}
|
||||
return container;
|
||||
target = container;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
return target;
|
||||
}
|
||||
|
||||
private void UpdateAxisPointerDataIndex(Serie serie, XAxis xAxis, YAxis yAxis, GridCoord grid, bool isTriggerAxis)
|
||||
|
||||
@@ -58,6 +58,11 @@ namespace XCharts.Runtime
|
||||
{
|
||||
m_Active = flag && tooltip.showContent;
|
||||
ChartHelper.SetActive(gameObject, m_Active);
|
||||
if (!flag)
|
||||
{
|
||||
foreach (var item in m_Items)
|
||||
item.gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void Refresh()
|
||||
|
||||
Reference in New Issue
Block a user