Axis labels disappears

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Posts: 1
Joined: Fri Nov 15, 2002 12:00 am

Axis labels disappears

Post by » Sun Nov 09, 2003 4:12 pm

Hello. When I'm shrinking my chart's width some of the X axis labels disappears. Is it possible to prevent?

Screenshot of the problem:


Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia

Post by Christopher » Mon Nov 10, 2003 10:42 am

Hi David,

You can minimalise this effect by using code similar to the following:

private void Form1_Load(object sender, System.EventArgs e) {
tChart1.Axes.Bottom.Automatic = false;
tChart1.Axes.Bottom.Increment = 2;
tChart1.Axes.Bottom.Labels.Separation = 0;
tChart1.Axes.Bottom.SetMinMax(bar1.XValues.Minimum, bar1.XValues.Maximum);
tChart1.Dock = System.Windows.Forms.DockStyle.Fill;

Christopher Ireland
Steema Support

Post Reply