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
trouble with bottom axis labels
Hi Ben,
you can use similar code to the following (which works fine here) :
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;
}
Pep Jorge
http://support.steema.com
http://support.steema.com