Page 1 of 1
Set Chart Title during runtime
Posted: Sun Oct 25, 2009 9:41 pm
by ringo
Hi,
Can anyone let me know how can I set the Chart title during runtime in ASP.NET C# program?
Thanks.
Set Chart Title during runtime
Posted: Mon Oct 26, 2009 7:59 am
by Edward
Hi Ringo,
Here you are:
Chart1.Legend.Title = "My New Title";
Thank you.
Set Chart Title during runtime
Posted: Mon Oct 26, 2009 9:25 pm
by ringo
Thanks Edward.
But I meant the chart title (the one appear on top), but the legend title. Btw, how to I set reference to "Chart1", it's actually my problem because I can't find a way to set the reference to the chart in report. The coding is in C# (ASP.NET).
Thanks.
Set Chart Title during runtime
Posted: Tue Oct 27, 2009 12:30 am
by Andrew
Hello,
Please use the following property:
Chart1.Title.Text = "My Title";
Chart1.Title.Visible = true;
Thank you.