Set Chart Title during runtime

Stimulsoft Reports.WEB discussion
Post Reply
ringo
Posts: 23
Joined: Mon Jun 15, 2009 4:35 am

Set Chart Title during runtime

Post by ringo »

Hi,

Can anyone let me know how can I set the Chart title during runtime in ASP.NET C# program?

Thanks.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Set Chart Title during runtime

Post by Edward »

Hi Ringo,

Here you are:

Chart1.Legend.Title = "My New Title";

Thank you.
ringo
Posts: 23
Joined: Mon Jun 15, 2009 4:35 am

Set Chart Title during runtime

Post 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.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Set Chart Title during runtime

Post by Andrew »

Hello,

Please use the following property:

Chart1.Title.Text = "My Title";
Chart1.Title.Visible = true;

Thank you.
Post Reply