mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-26 19:00:24 +00:00
[bug] fix tooltip show data error when datazoom enable (#203)
This commit is contained in:
@@ -42,6 +42,7 @@ namespace XCharts.Runtime
|
||||
public List<string> runtimeData { get { return m_RuntimeData; } }
|
||||
public List<double> labelValueList { get { return m_LabelValueList; } }
|
||||
public List<ChartLabel> labelObjectList { get { return m_AxisLabelList; } }
|
||||
public int dataZoomStartIndex;
|
||||
|
||||
internal List<string> filterData;
|
||||
internal bool lastCheckInverse;
|
||||
@@ -107,17 +108,25 @@ namespace XCharts.Runtime
|
||||
if (range > data.Count - start - 1)
|
||||
start = data.Count - range - 1;
|
||||
if (start >= 0)
|
||||
{
|
||||
dataZoomStartIndex = start;
|
||||
filterData = data.GetRange(start, range);
|
||||
}
|
||||
else
|
||||
{
|
||||
dataZoomStartIndex = 0;
|
||||
filterData = data;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
dataZoomStartIndex = 0;
|
||||
filterData = data;
|
||||
}
|
||||
}
|
||||
else if (end == 0)
|
||||
{
|
||||
dataZoomStartIndex = 0;
|
||||
filterData = m_EmptyFliter;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user