Page 1 of 1

DateTime axis, feature or bug...

Posted: Mon Jul 03, 2006 11:32 am
by 9640767
Hello All,

I have some difficulties with labelling axis which represent Date, namely

1) I worked with bar serier
2)

bar1.Add(DateTime.Parse("01.02.2006"), 5, "bar 1");
bar1.Add(DateTime.Parse("01.03.2006"), 15, "bar 2");
bar1.Add(DateTime.Parse("01.04.2006"), 25, "bar 3");
bar1.Add(DateTime.Parse("01.05.2006"), 35, "bar 4");

tChart1.Axes.Bottom.Labels.Style = AxisLabelStyle.Value;

3) After that I started changing the width of chart and date 01.05.2006 went under the right side.

But could I fasten last date from range to the right side of chart?

Thanks.

Posted: Mon Jul 03, 2006 1:16 pm
by narcis
Hello,

This happens when the labels don't have enough space to be drawn. You can try solving this by using custom labels as shown in the All Features\Welcome !\Axes\Labels\Custom labels example at TeeChart features demo, available at TeeChart's program group.