Page 1 of 1

colourline bug?

Posted: Tue Mar 03, 2009 2:46 pm
by 14045263
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.

Posted: Tue Mar 03, 2009 4:01 pm
by narcis
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;