syspire

Issue with RTL languages

Recommended Posts

Dear All,

 

I have a strange issue with my FusionCharts implementation.

 

I'm displaying a RTL language (Arabic).

 

When I use pie charts, everything seems to be okay, while when I use bar charts (specifically MSColumn3D.swf) then I get the words reversed.

 

So, the sentence "ABC DEFG" - for example - shows as "ABC DEFG" on pie charts, but shows as "DEFG ABC" on bar charts.

 

Any idea?

 

Thanks

Ik

Share this post


Link to post
Share on other sites

Hi,

 

Welcome to FusionCharts Forum.  :)

 

Are you seeing this problem on all browsers or is there any specific browser that you see this problem in ?

 

Also, please share your XML/JSON data that you are using along with the FusionCharts version, so that we can test it at our end.

 

Awaiting your response.

Share this post


Link to post
Share on other sites

Hello Haritha,

 

First off, thanks for following up.

 

Below are the test results.

 

Safari: all works fine
FireFox: all works fine
Chrome: "ABC DEF GHI" renders as "GHI DEF ABC"
IE: "ABC DEF GHI" renders as "DEF GHI ABC"
 
Please note that the problem happens when I use Arabic with Bar charts. Pie charts render perfectly on all browsers.
 
Not sure if I'm sharing the right code, please let me know if you need more info.
 
function renderChart(char_id,file,data, id) {
$('#chart-link-'+current_chart).removeClass('selected');
current_chart = id;
fixScroll();
$('#chart-link-'+id).addClass('selected');
var chart = new FusionCharts("<?php echo _LIVE_SITE; ?>/includes/Charts/"+file, "ChartId", "100%", "250", "0", "0");
chart.setDataURL(data+".php?chart_id="+char_id+"&<?php echo time(); ?>");    
chart.render("chartdiv");
clearInterval(intr);
}
renderChart("<?php echo $charts[0]['chart_id']; ?>", "<?php echo $charts[0]['chart_file']; ?>", "<?php echo $charts[0]['chart_type']; ?>", 0);
intr = setInterval(nextChart,10000);

Thank you

 
 
 

Share this post


Link to post
Share on other sites

Hi,

 

We are able to replicate the problem at our end. Please find the attached screenshots of IE and Firefox browsers.  We have used the below given code for testing purposes:

 

Eg,

<set label='مرحبا -* يناير' value='420000' />

 

We shall analyse more on the problem. Meanwhile, please try setting "labelDisplay" attribute to "Rotate" to avoid this problem.

 

Ref.

<chart ... labelDisplay='Rotate' ... >

 

We shall get back to you on this,shortly.

 

post-37797-0-78628700-1392699468_thumb.png

post-37797-0-67317200-1392699471_thumb.png

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