I have two charts (ChartA, ChartB) setup exactly the same with a CursorTool on both charts. Moving the cursor on one Chart updates the Series data on the other Chart.
The odd behavior is that when moving the cursor on ChartA the cursor redraws very quickly but the Series data displayed in ChartB doesn't seem to redraw until the cursor in ChartA almost stops moving.
Also when moving the Cursor in ChartB the cursor redraws very slowly while the Series data in ChartA redraws very quickly.
I tried the FastCursor setting with poor results.
Any thoughts??
Code: Select all
//This is ChartA - Cursor.OnChange event which updates the Series in ChartB (tChartTrend)
void SCursor_Change(object sender, Steema.TeeChart.Tools.CursorChangeEventArgs e)
{
if (DataList.Count < e.XValue) return;
if (TrendIndex == (int)e.XValue) return;
TrendIndex = (int)e.XValue;
tChartTrend.Series[0].Clear();
tChartTrend.Series[0].Add(XAxis, DataList[TrendIndex].ToArray());
}
//This is ChartB - Cursor.OnChange event which updates the Series in ChartA (tChartSpectral)
void TCursor_Change(object sender, Steema.TeeChart.Tools.CursorChangeEventArgs e)
{
if (DataList.Count < e.XValue) return;
if (e.XValue <= 0) return;
if (SpectralIndex == (int)e.XValue) return;
SpectralIndex = (int)e.XValue;
tChartSpectral.Series[0].Clear();
tChartSpectral.Series[0].Add(XAxis, DataList[SpectralIndex].ToArray());
}