Hi,
We have a problem with dynamic data updating using TeeChart.Pocket.dll:
the chart (grid, annotations, axes) is repainted completelly by each add point call.
How can I prevent repainting of a series (old points of the series) after adding a new point?
Only new point should be painted.
Can I use TeeChart for Pocket PC to display dynamically changed data with adding of point every 0.5 s?
Regards,
T.
Realtime Charting for Pocket PC: Repaint of Series
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Thomas,
You could try setting tChar'ts AutoRepaint property to false. Set it to true when you want the chart to be drawn and after it's done set it back to false.
You could try setting tChar'ts AutoRepaint property to false. Set it to true when you want the chart to be drawn and after it's done set it back to false.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Hi,
I add all to 100ms a data point to the chart,
besides, complete chart is painted always anew.
Please, have look at my code.
/// <summary>
/// Timer add in TeeChart Compact Framework Example.
/// Value producer for the chart
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void timer1_Tick(object sender, EventArgs e)
{
timer1.Enabled = (bool)(++_dwCounter < 100);
tChart1.AutoRepaint = false;
tChart1[0].Add((double)_dwCounter, _Random.NextDouble());
tChart1.AutoRepaint = true;
tChart1.Refresh();
}
/// <summary>
/// Button add in TeeChart Compact Framework Example.
/// Start the realtime charting for my windows ce device
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button2_Click(object sender, EventArgs e)
{
tChart1.Series.Clear(true);
tChart1.Series.Add(typeof(TeeChart.Styles.FastLine));
tChart1.Legend.Visible = false;
tChart1.Aspect.View3D = false;
tChart1.Axes.Bottom.SetMinMax(0, 100);
tChart1.Axes.Left.SetMinMax(0, 1);
_dwCounter = 0;
timer1.Interval = 100;
timer1.Enabled = true;
}
Best Regards
Thomas
I add all to 100ms a data point to the chart,
besides, complete chart is painted always anew.
Please, have look at my code.
/// <summary>
/// Timer add in TeeChart Compact Framework Example.
/// Value producer for the chart
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void timer1_Tick(object sender, EventArgs e)
{
timer1.Enabled = (bool)(++_dwCounter < 100);
tChart1.AutoRepaint = false;
tChart1[0].Add((double)_dwCounter, _Random.NextDouble());
tChart1.AutoRepaint = true;
tChart1.Refresh();
}
/// <summary>
/// Button add in TeeChart Compact Framework Example.
/// Start the realtime charting for my windows ce device
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button2_Click(object sender, EventArgs e)
{
tChart1.Series.Clear(true);
tChart1.Series.Add(typeof(TeeChart.Styles.FastLine));
tChart1.Legend.Visible = false;
tChart1.Aspect.View3D = false;
tChart1.Axes.Bottom.SetMinMax(0, 100);
tChart1.Axes.Left.SetMinMax(0, 1);
_dwCounter = 0;
timer1.Interval = 100;
timer1.Enabled = true;
}
Best Regards
Thomas
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Thomas,
Thanks for the code. We have been able to reproduce it and added your request to our wish-list to be considered for inclusion in future releases.
Thanks for the code. We have been able to reproduce it and added your request to our wish-list to be considered for inclusion in future releases.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Thomas,
I'd suggest you to be aware at those forums for new releases announcements.
I'd suggest you to be aware at those forums for new releases announcements.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |