Page 1 of 1
Chart title localization
Posted: Tue Jun 18, 2013 1:52 pm
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
Re: Chart title localization
Posted: Thu Jun 20, 2013 6:02 am
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.