problem with getting labels from ax
Posted: Wed Apr 09, 2008 7:46 am
Hi, My problem is that I can't get labels from bottom ax.
I am programing in ASP.NET using C# language.
Here is code that i have problem with
private TeeChart.TChartClass tChart2 = new TeeChart.TChartClass();
protected void Page_Load(object sender, EventArgs e)
{
tChart2.AddSeries(TeeChart.ESeriesClass.scBar);
tChart2.Series(0).Add(10, "first", 0);
tChart2.Series(0).Add(30, "second", 0);
tChart2.Series(0).Add(20, "third", 0);
//next column causes problem
Label1.Text = tChart2.Axis.Bottom.Labels.get_Item(1).Text
tChart2.Export.asNative.SaveToFile("D:\\Data\\graf.txt", true);
}
Could anyone help me, pls.
I am programing in ASP.NET using C# language.
Here is code that i have problem with
private TeeChart.TChartClass tChart2 = new TeeChart.TChartClass();
protected void Page_Load(object sender, EventArgs e)
{
tChart2.AddSeries(TeeChart.ESeriesClass.scBar);
tChart2.Series(0).Add(10, "first", 0);
tChart2.Series(0).Add(30, "second", 0);
tChart2.Series(0).Add(20, "third", 0);
//next column causes problem
Label1.Text = tChart2.Axis.Bottom.Labels.get_Item(1).Text
tChart2.Export.asNative.SaveToFile("D:\\Data\\graf.txt", true);
}
Could anyone help me, pls.