Axis labels disappears

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Newbie
Newbie
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:
http://www.lowrad.net/files/diagram_screenshot.jpg


/David.

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

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) {
bar1.FillSampleValues(20);
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