Problem in Axes Increment

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Sky Zapper
Newbie
Newbie
Posts: 5
Joined: Fri Jul 02, 2004 4:00 am

Problem in Axes Increment

Post by Sky Zapper » Thu Feb 09, 2006 5:34 am

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.

SteveP
Advanced
Posts: 132
Joined: Sun Sep 07, 2003 4:00 am

Post by SteveP » Thu Feb 09, 2006 3:46 pm

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

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 Feb 09, 2006 3:59 pm

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;
		}
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

Sky Zapper
Newbie
Newbie
Posts: 5
Joined: Fri Jul 02, 2004 4:00 am

Post by Sky Zapper » Tue Feb 28, 2006 1:02 pm

:( 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;
		}

Post Reply