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
Chart title localization
Re: Chart title localization
Hello.
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:
Thank you.
Unfortunately, it's impossible to globalize Charts now.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?
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";