Page 1 of 1

Realtime Charting for Pocket PC: Repaint of Series

Posted: Mon Feb 20, 2006 10:27 am
by 9640279
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.

Posted: Tue Feb 21, 2006 3:46 pm
by narcis
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.

Posted: Wed Feb 22, 2006 7:59 am
by 9640279
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

Posted: Mon Feb 27, 2006 11:45 am
by narcis
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.

Posted: Mon Feb 27, 2006 12:12 pm
by 9640279
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

Posted: Mon Feb 27, 2006 12:24 pm
by narcis
Hi Thomas,

I'd suggest you to be aware at those forums for new releases announcements.