Fast Line series TreatNull not showing the expected result.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
vijay
Newbie
Newbie
Posts: 42
Joined: Thu Jul 31, 2008 12:00 am
Contact:

Fast Line series TreatNull not showing the expected result.

Post by vijay » Mon Dec 29, 2008 5:00 am

I have a fast line series. When i set
series.TreatNulls = TreatNullsStyle.DoNotPaint;
at some nullpoints it is drawing a line to the '0' value.
That is, at some null values the fast line series is treating null values like TreatNullsStyle.Ignore;

Thanks,
Vijay

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 Jan 05, 2009 8:31 am

Hi Vijay,

Could you please send us a simple example project we can run "as-is" to reproduce the problem here? You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
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

vijay
Newbie
Newbie
Posts: 42
Joined: Thu Jul 31, 2008 12:00 am
Contact:

Post by vijay » Wed Jan 07, 2009 9:45 am

I have uploaded a sample application.
1."this.fastLineSeries.TreatNulls = TreatNullsStyle.DoNotPaint;" Did u see the vertical lines to '0'., i didn't undesrtand why it draws a line to 0 in continuous intervals.
2.I could see one more problem, The complete geometry of the series is changing in addition of each new points.

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

Post by Narcís » Wed Jan 07, 2009 12:56 pm

Hi vijay,

Thanks for the example project. We could be reproduce the issue here (TF02013687), narrowed it to the code below and fixed it for the next maintenance release. I've checked it works fine with your example project too. The problem here is setting DrawAllPoints = false with TreatNulls property. In the meantime you should avoid using this combination.

Code: Select all

		public Form1()
		{
			InitializeComponent();
			InitializeChart();
		}

		private Steema.TeeChart.Styles.FastLine fastLineSeries;

		private void InitializeChart()
		{
			this.tChart1.Axes.Left.SetMinMax(0, 100);

			this.fastLineSeries = new Steema.TeeChart.Styles.FastLine(this.tChart1.Chart);
			this.fastLineSeries.DrawAllPoints = false;
			this.fastLineSeries.TreatNulls = Steema.TeeChart.Styles.TreatNullsStyle.DoNotPaint;

			this.CreateArrays();
			this.fastLineSeries.Add(xValues, yValues);
		}

		Nullable<double>[] xValues, yValues;
		int length = 2000;
		private void CreateArrays()
		{
			xValues = new Nullable<double>[length];
			yValues = new Nullable<double>[length];

			Random rnd = new Random();

			for (int i = 0; i < length; i++)
			{
				xValues[i] = i;
				if (i % 20 == 0)
				{
					yValues[i] = null;
				}
				else
				{
					yValues[i] = rnd.Next(50, 70);
				}
			}
		}
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

vijay
Newbie
Newbie
Posts: 42
Joined: Thu Jul 31, 2008 12:00 am
Contact:

Post by vijay » Thu Jan 08, 2009 6:58 am

I applied a downsampling function by setting DrawAllpoints = true; There also the same issue is happening.Will you please check it ?

Thanks,
Vijay.

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

Post by Narcís » Thu Jan 08, 2009 9:33 am

Hi Vijay,

Thanks for reporting. I could reproduce the issue here and added it (TF02013692) to the defect list to be fixed for next 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

Post Reply