Hi,
First:
Is there any example code for the xamChart ? I try to use scatter XY lines...
Second:
I have to draw 1000 to 1500 points with real-time acquisition, 1 points every 50ms...I made a spline line with 1500 points: it takes 5s to redraw the chart on windows resizing !
What can I do ?Sincerely
Loïc
Please excuse my poor english, I'm french...
To improve performence RefreshEnabled property has to be used. This is a sample which creates scatter chart:
{
this.ScatterLineChart2D.RefreshEnabled = false;
DataPoint point = new DataPoint();
double sigma = 10;
double y = Math.Exp(-Math.Pow(x - mean, 2) / (2 * Math.Pow(sigma, 2))) / (sigma * Math.Sqrt(2 * Math.PI));
point.ToolTip = y;
}
// Enable the chart refreshing
Sincerely,
GoranS
thank you to have answered.
Unfortunately, that improves only one part of the problem: in my mind, the biggest concern comes from the slowness of resizing: when I resize the windows form (with real time aquisition ended, and so, no more point appended), it takes 5 to 6 secondes to redraw the chart.
I want to add a dock manager to my form: the chart will be docked into a panel, and a datagridview will be docked into anther one.Our customers resize the docked components frequently (regarding they makes analyses, or search for particular results).It is impossible to say to them "don't worry, you have only to wait for 5seconds, the chart will be redrawned..."
I do not understand why it is so slow, especially for a simple resizing without data points modification !
May be another idea ?
regards,
Hi Michael,
Please, try to use new Evaluation version of xamChart. You can download it together with new NetAdventage for WPF. Do you use 2D or 3D charts?
http://ko.infragistics.com/dotnet/netadvantage/wpf/xamchart.aspx#Overview
Thanks,GoranS
I use only 2D charts on a Scatterplot
Also the file you had me download might be the same version I already am using it seems to have the same version number on the zip
I made a new test with the .Net Advantage for WPF Vol. 2, wich is a release version.I agree entirely with Mickael: it is still painfully slow !!!!Having said that, I remember that the windows form version was also slow... To my mind, I believe that infragistics don't know how to design a fast scatter chart with lot of points...I tryed "ChartFX for WPF (beta)" from SoftwareFX, and it is great, except the price wich is very expensive...
Moreover, I had another surprise : No Pan nor zoom available in this version! I stop the tests.
On the other hand, fortunately, the ribbon is very well!