Page 1 of 1

Problem in Axes Increment

Posted: Thu Feb 09, 2006 5:34 am
by 8126071
I have plotted line series with bottom axis range from 0 to 2000, the increment is given automatically as 200. After this I programmatically changed from 200 to 100 by assigning to Increment field, but the change is not happening. I made the following changes:
tChart1.Axes.Bottom.Labels.Separation=0
tChart1.Axes.Bottom.Increment = 100

Is there a way to set the increment? Please let me know.

Posted: Thu Feb 09, 2006 3:46 pm
by 9333098
In the VCL version I believe the Axis Increment means the minimum increment, not that it will necesarily actually use the specified value. i.e. it might use a value greater than specified.

Steve

Posted: Thu Feb 09, 2006 3:59 pm
by narcis
Hi Lipi,

Yes, what Steve says is right. That's because labels can not overlap. One way to achieving that would be setting the labels angle to be vertical:

Code: Select all

		private void Form1_Load(object sender, System.EventArgs e)
		{
			line1.FillSampleValues(2000);
			
			tChart1.Axes.Bottom.Increment=100;
			tChart1.Axes.Bottom.Labels.Angle=90;
		}

Posted: Tue Feb 28, 2006 1:02 pm
by 8126071
:( Though I have tried the same but it did not help me. Any other suggestion would be helpful

Thanks in Advance!

Lipi
narcis wrote:Hi Lipi,

Yes, what Steve says is right. That's because labels can not overlap. One way to achieving that would be setting the labels angle to be vertical:

Code: Select all

		private void Form1_Load(object sender, System.EventArgs e)
		{
			line1.FillSampleValues(2000);
			
			tChart1.Axes.Bottom.Increment=100;
			tChart1.Axes.Bottom.Labels.Angle=90;
		}