srividya_sharma

Need Help in displaying Arabic labels as slantLabels

Recommended Posts

Dear All,

 

 

 

I have a Single Series Column 3D Fusion Chart,The XML is attached .

 

In the chart i am having arabic labels.

 

 

 

In my XML once i removed labelDisplay='Rotate' slantLabels='1' the arabic labels are displaying.:)

 

But once i add this arabic labels are not displaying.:w00t:

 

 

 

When i check the documentation i found,labelDisplay wont be applicable for languages other than English.:)

 

 

 

I need my labels to be either in 45 degree or 90 degree.

 

 

 

Your help will be appreciated,

 

 

 

Thanks

Column3D-Label-Display.txt

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

 

 

 

In case of FusionCharts Free multi-lingual characters can be used in all the charts in FusionCharts suite. However, any rotated text on chart cannot show non-English characters. That is, if you want to use multi-lingual characters, you'll need to show horizontal x-axis labels without being rotated (using ).

 

 

 

Since, you are using FusionCharts V3, could you please try adding BOM mark to your XML and see if this helps?

 

 

 

For the XML files which are generated one-time and remains static, you can manually insert a BOM mark. This method is applicable when data is retrieved from file using the dataURL method. All you have to do is make sure the file containing the XML data contains a BOM mark or specify one if it is absent. In order to specify a BOM mark, follow these steps:

 

 

 

1. Open the file in question in a text-editor that supports UTF-8 encoding with BOM stamp (Example

Share this post


Link to post
Share on other sites

Thanks for your reply,

 

 

 

I had done this

 

 

 

response.setContentType("text/xml; charset=UTF-8");

 

String xmlChart = "My XML HERE"

 

 

 

ServletOutputStream str = response.getOutputStream();

 

str.write(new byte[]{(byte)0xEF, (byte)0xBB, (byte)0xBF});

 

str.write(xmlChart.getBytes());

 

str.flush();

 

 

 

But Still i am getting ???? kind of values.

 

 

 

Need your help,

Share this post


Link to post
Share on other sites

Hi

Can you please modify your code to add the following line:

ServletOutputStream out= response.getOutputStream(); 

OutputStreamWriter streamWriter= new OutputStreamWriter(out,"UTF-8"); 
.
.
.

Hope this helps.

Srividya :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now