I created points serie
Code: Select all
Steema.TeeChart.Styles.Points _seriesPoints = new Steema.TeeChart.Styles.Points();
_seriesPoints.bBrush.Color = _colSerie;
_seriesPoints.Pointer.Style = _pointerStyles;
_seriesPoints.DataSourse = myDataSet.Tables["myTable"];
_seriesPoints.YValues.DataMember = _strAxisY;
_seriesPoints.XValues.DataMember = _strAxisX;
tChart1.Series.Add(_seriesPoints);
For this I created System.Timers.Timer _tmr with _tmr.Elapsed += new System.Timers.ElapsedEventHandler(tmr_ChartProcessor);
and wrote
Code: Select all
private void tmr_ChartProcessor(object sender, EventArgs e)
{
foreach (Steema.TeeChart.Styles.Series _ser in tChart1.Series) {
if (!_ser.Visible) continue;
if (_ser.DataSource != null) _ser.CheckDataSource();
_ser.Repaint();
}
tChart1.Refresh();
}
1. Why serie on chart not change without tChart1.Refresh() ? Why _ser.Repaint() is not enough ?
2. When serie repain (may be when chart refresh) I look blinking points - how remove the blinking ?
3. Exist any way repain serie without using timer, example, for event data change in table or other ?
Thank Y