Realtime Charting for Pocket PC: Repaint of Series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Thomas
Newbie
Newbie
Posts: 7
Joined: Mon Feb 13, 2006 12:00 am

Realtime Charting for Pocket PC: Repaint of Series

Post by Thomas » Mon Feb 20, 2006 10:27 am

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Feb 21, 2006 3:46 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Thomas
Newbie
Newbie
Posts: 7
Joined: Mon Feb 13, 2006 12:00 am

Post by Thomas » Wed Feb 22, 2006 7:59 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Feb 27, 2006 11:45 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Thomas
Newbie
Newbie
Posts: 7
Joined: Mon Feb 13, 2006 12:00 am

Post by Thomas » Mon Feb 27, 2006 12:12 pm

Hi,
that is no good message.

We would like tea chart in a big project,
under Windows CE is developed, start.
For us it is very important to know, when the
Pocket.dll realtime charting supports.
Please, write me, when a new version with this function will be available.

Best Regards
Thomas

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Feb 27, 2006 12:24 pm

Hi Thomas,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply