Page 1 of 1

Smoothing without duplication?

Posted: Fri May 01, 2009 10:48 pm
by 14047359
I've seen the smoothing samples and other posts here. I have the graph looking about the way I would like, though it seems that I have very little control over the smoothing behavior when using Area series.

But on to my main question, is there any way to smooth the data without duplicating the Series? I already have a huge overhead in extracting the initial data. I then have to iterate over the data to Add each point to the series (including filling in zeros for gaps in sparse data so stack area works correctly). Now, to get a "smooth" curve, I have to create yet another series populated from the first, and this may contain MANY data points.

So, what are my alternatives? The initial data is in a strongly typed "List" of sub-ranges, not a DataTable or even a single contiguous array/list. It could be converted to an array/list, but that seems little better than the intermediate TeeChart "Series".

Any suggestions?

Posted: Mon May 04, 2009 9:00 am
by narcis
Hi Russ,

The only alternative I can think of right now is that you set the source series as non-active (Active=false) so that it doesn't have to be plotted in the chart.

Hope this helps!

Posted: Tue May 05, 2009 4:31 pm
by 14047359
Hmmm, this may be a deal breaker.

Because of the requirement for 100% match in data points (for stacked area series), we will have 100s of thousands of data points (perhaps millions) in each of several series (up to 20 or so). Over 90% are just Y==0. We already have our data, then it's expanded (dramatically) into your series. Now, take that dramatically expanded representation and double it again just to get some "smoothing". Ouch...

With the combination of forced inclusion of zero values AND doubling everything just to get smoothing, maybe this product is not for us. I have a meeting later today. I guess they will either have to ease requirements (eliminate smoothing or reduce the allowed viewable range) or let me start reviewing other charts.

Anyway, thanks for the help...

Posted: Wed May 06, 2009 11:24 am
by narcis
Hi Russ,

I forgot that TeeChart for .NET 2009 has a new feature for smoothing series without having to create an additional series as you can see here:

Image

Full example can be found at What's New?\Welcome !\New in Series\Custom\Smoothed in the features demo available at TeeChart's program group.

You can download TeeChart for .NET 2009 fully functional evaluation version here:

http://www.steema.com/downloads/form_tch_net.html