Chart title localization

Stimulsoft Reports.NET discussion
Post Reply
User avatar
allo_man
Posts: 17
Joined: Sun Jun 10, 2012 6:56 am
Location: Canada

Chart title localization

Post by allo_man »

I'm trying to localize the titles (X and Y) of my charts but I just can't figure out how I can do it.

For the report itself I'm using Globalized Name for globalization, for charts I can't find that feature.

Can we set a Business Object property to the titles text?

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Chart title localization

Post by HighAley »

Hello.
allo_man wrote:I'm trying to localize the titles (X and Y) of my charts but I just can't figure out how I can do it.

For the report itself I'm using Globalized Name for globalization, for charts I can't find that feature.

Can we set a Business Object property to the titles text?
Unfortunately, it's impossible to globalize Charts now.
The Titles of the axes are static and it's impossible to set the Business Object to it.
But there is a workaround method. You could use next code in the Begin Render event of Chart:

Code: Select all

(((Stimulsoft.Report.Chart.StiAxis)(((Stimulsoft.Report.Chart.StiAxisArea)(Chart1.Area)).XAxis)).Title).Text = "YourXAxisTitle";
(((Stimulsoft.Report.Chart.StiAxis)(((Stimulsoft.Report.Chart.StiAxisArea)(Chart1.Area)).YAxis)).Title).Text = "YourYAxisTitle";
Thank you.
Post Reply