FastLine v3 TreatNulls Property vs IgnoreNulls old Property

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Aaron Peronto
Newbie
Newbie
Posts: 38
Joined: Thu Feb 01, 2007 12:00 am

FastLine v3 TreatNulls Property vs IgnoreNulls old Property

Post by Aaron Peronto » Mon Jun 25, 2007 5:43 pm

Before we upgraded to v3 of TeeChart, I used FastLine series with the setting of IgnoreNulls = false.
This allowed us to put null points in the series and they ended up displayed as holes in the chart. This was used when filtering our data.

Now with the new v3 of TeeChart there is the TreatNulls property.
How do I get the new FastLine series to behave the same way that the old FastLine did with IgnoreNulls = false?
Using any of the 3 enumerated values for the TreatNulls property, the places in the graph where there should be holes due to the null points that we added now have connecting lines bridging the gap that should have been (and used to be) created by our filtering of the data and inserting nulls.

Any description on how to get the new FastLine with TreatNulls to work the exact same way as the old FastLine with IgnoreNulls = false would be greatly appreciated.

Thanks.
Aaron

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue Jun 26, 2007 6:49 am

Hi, Aaron.

Settinng the TreatNulls property to

Code: Select all

Steema.TeeChart.Styles.TreatNullsStyle.DoNotPaint
does what exactly what IgnoreNulls = false; did in old version. When TreatNulls is set to DoNotPaint, then the null points (points with color = Color.Transparent) will be skipped and the chart will have gaps in line. This is demonstrated in new demo. Check the Welcome !\New in Series\FastLine Null points example.
Marjan Slatinek,
http://www.steema.com

LibDundas
Newbie
Newbie
Posts: 55
Joined: Fri Mar 20, 2009 12:00 am

Re:

Post by LibDundas » Wed Jul 20, 2011 7:42 pm

Marjan wrote:Hi, Aaron.

Settinng the TreatNulls property to

Code: Select all

Steema.TeeChart.Styles.TreatNullsStyle.DoNotPaint
does what exactly what IgnoreNulls = false; did in old version. When TreatNulls is set to DoNotPaint, then the null points (points with color = Color.Transparent) will be skipped and the chart will have gaps in line. This is demonstrated in new demo. Check the Welcome !\New in Series\FastLine Null points example.
Hello, thank you for this response. I have the same problem and was previously using the Skip property. I think the documentation should get updated because I understood that Skip will do the same as DoNotPaint but also ignore calculations. However, Skip still seems to connect the dots.

TeeChart Programmers Guide
Steema.TeeChart.Styles.TreatNullsStyle Enum


Public Members
DoNotPaint - Null points are not painted, but they are still used in other calculations.
Skip - Null points are skipped in drawing and calculations.
Ignore - Null points are completely ignored.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: FastLine v3 TreatNulls Property vs IgnoreNulls old Property

Post by Sandra » Fri Jul 22, 2011 9:00 am

Hello LibDundas,

I am not sure what are you refer when talk about calculations of property TreatNulls. Please can you explain exactly what you refer when talk about calculations? On the other hand, You inform yout that there are any functions that have a property IncludeNulls that allow included or not nulls to calculate the function. I have made a simple example using average function, for if you can help it:

Code: Select all

        public Form1()
        {
            InitializeComponent();
            InitializeChart();
        }
        Steema.TeeChart.Styles.Points point;
        Steema.TeeChart.Styles.Line line1;
        Steema.TeeChart.Functions.Average average1;
        private void InitializeChart()
        {
            tChart1.Aspect.View3D = false;
            point = new Steema.TeeChart.Styles.Points(tChart1.Chart);
            line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
            average1 = new Steema.TeeChart.Functions.Average();
            point.FillSampleValues();
            point.SetNull(5);
            point.SetNull(3);
            point.TreatNulls = Steema.TeeChart.Styles.TreatNullsStyle.DoNotPaint;
  
            line1.Function = average1;
            line1.DataSource = point;
            line1.Function.Period = 2;
            checkBox1.Checked= true;
        }
        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            average1.IncludeNulls = checkBox1.Checked;
        }
Thanks,
Best Regards,
Sandra Pazos / 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

LibDundas
Newbie
Newbie
Posts: 55
Joined: Fri Mar 20, 2009 12:00 am

Re: FastLine v3 TreatNulls Property vs IgnoreNulls old Property

Post by LibDundas » Fri Jul 22, 2011 1:20 pm

Hi, as per the documentation definition for the enum TreatNullsStyle as seen below:

TeeChart Programmers Guide
Steema.TeeChart.Styles.TreatNullsStyle Enum


Public Members
DoNotPaint - Null points are not painted, but they are still used in other calculations.
Skip - Null points are skipped in drawing and calculations.
Ignore - Null points are completely ignored.

Selecting Skip should ignore null points "in drawing and calculations".
Selecting DoNotPaint specifies that null points are "not painted, but still used in calculations".

I am not interested in the calculations part. I found that using Skip still paints a line (connecting the dots from that previous not-null point to the next not-null point).

I just think the document CHM file should be updated to describe the three enumerations values a bit better. Nothing serious here, probably just a language barrier.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: FastLine v3 TreatNulls Property vs IgnoreNulls old Property

Post by Sandra » Thu Jul 28, 2011 11:31 am

Hello LibDundas,

Sorry for the delay. We are revising your request and we try to give an answer asap.

Thanks,
Best Regards,
Sandra Pazos / 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

LibDundas
Newbie
Newbie
Posts: 55
Joined: Fri Mar 20, 2009 12:00 am

Re: FastLine v3 TreatNulls Property vs IgnoreNulls old Property

Post by LibDundas » Thu Jul 28, 2011 2:14 pm

Sandra wrote:Hello LibDundas,

Sorry for the delay. We are revising your request and we try to give an answer asap.

Thanks,
Hi Sandra, please do not handle this request with much priority. My purpose in this forum post was just to share misunderstanding with the documentation. If no one else seems to have this problem, then by all means, keep it the way it is. I just thought it would be helpful for everyone if the documentation explained the TreatNullsStyle Enum property better.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: FastLine v3 TreatNulls Property vs IgnoreNulls old Property

Post by Sandra » Thu Jul 28, 2011 3:02 pm

Hello LibDundas,

We consider that your are right with observation and we have decided change it, thanks. And also, I inform that we already have fixed the helpfile modification, to next maintenance releases of TeeChart.Net.

Thanks,
Best Regards,
Sandra Pazos / 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