trouble with bottom axis labels

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
charlesw
Newbie
Newbie
Posts: 14
Joined: Sun Mar 09, 2003 5:00 am
Location: ithaca, ny

trouble with bottom axis labels

Post by charlesw » Thu Apr 15, 2004 2:41 pm

I have been having a h___ of a time customizing a teechart the way I want. Can someone help me?

I am filling a chart with two point series - dates on the X axis, doubles on the Y. I fill the labels with other pertinant information that is displayed in the marks. The left axis is working great, but the bottom axis either displays nothing, or shows _all_ the label information but not the dates!.
Setting various properties of the Axes.Bottom.Labels is not doing it.

So I want to show the dates on the bottom axes. If I can't get values to show then can I get a single series' labels to show? (not all series)?

Thanks in advance,
Ben Smith

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Apr 15, 2004 2:57 pm

Hi Ben,

you can use similar code to the following (which works fine here) :

Code: Select all

private void Form1_Load(object sender, System.EventArgs e)
{
Random rnd = new Random();
DateTime now = DateTime.Today;
for(int i = 0; i < 20; ++i) 
{
points1.Add(now, rnd.Next(100),"lab1"+i, Color.Red);
points2.Add(now, rnd.Next(100),"lab2"+i, Color.Blue);
now = now.AddDays(1);
}
points1.XValues.DateTime = true;
points2.XValues.DateTime = true;
points1.Marks.Visible = true;
points2.Marks.Visible = true;
tChart1.Axes.Bottom.Labels.Style = Steema.TeeChart.AxisLabelStyle.Value;
}

Post Reply