Page 1 of 1

Axis labels disappears

Posted: Sun Nov 09, 2003 4:12 pm
by 8121796
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.

Posted: Mon Nov 10, 2003 10:42 am
by Chris
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