colourline bug?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
noaksey
Newbie
Newbie
Posts: 55
Joined: Wed May 23, 2007 12:00 am

colourline bug?

Post by noaksey » Tue Mar 03, 2009 2:46 pm

Literally just noticed this and couldn't find it in the search...but if you add a colourline (with allowdrag) to the chart, and then zoom in on an area that doesn't have the colourline in it, when you zoom out the colourline changes position?

Regards,
Chris.

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

Post by Narcís » Tue Mar 03, 2009 4:01 pm

Hi Chris,

This is because the ColorLine is set to associated axis minimum or maximum value. This can be solved setting NoLimitDrag to true:

Code: Select all

			Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
			bar1.FillSampleValues();

			Steema.TeeChart.Tools.ColorLine colorLine1 = new Steema.TeeChart.Tools.ColorLine(tChart1.Chart);
			colorLine1.AllowDrag = true;
			colorLine1.NoLimitDrag = true;
			colorLine1.Axis = tChart1.Axes.Bottom;			
			colorLine1.Value = 3;
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