pawajee Report post Posted July 8, 2010 I'm creating a chart which calls a JavaScript function and pass some values when a bar is clicked, the problem is it works with the english language but for other languages it corrupting the unicode string. Test it by clicking on any bar after rendering, here is the sample code: <html> <head> <title>Chart test</title> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <script language="JavaScript" type="text/javascript" src="Charts/FusionCharts.js"></script> </head> <body> <form id="Form1" method="post" name="Form1"> <script type="text/javascript"> var SampleChart; function ShowAlert(msg) { alert(msg); } setTimeout(function() { SampleChart = new FusionCharts("Charts/MSColumn3DLineDY.swf", "fcSimpleDataChartSimpleLayout10", "400", "450", "0", "1"); SampleChart.setDataXML("<chart palette='4' caption='Simple Chart' bgcolor='#FFFFFF' showBorder ='0' PYAxisName='Subject Marks' numberPrefix='' SnumberPrefix='$' formatNumberScale='0' showValues='0' decimals='0' useRoundEdges='1'><categories><category label='Asif' /></categories><dataset seriesName='????' color = 'f1f109' ><set value='61' toolText='TestToolTip: $61.00' link='j-ShowAlert-????' /></dataset><dataset seriesName='English' color ='4fc820'><set value='32' toolText='TestToolTip: $32.00' link='j-ShowAlert-????' /></dataset><dataset seriesName='Hindi' color ='f7bdc2'><set value='56' toolText='TestToolTip: 56.00' link='j-ShowAlert-???' /></dataset><dataset seriesName='Arabic' color ='eacf79'><set value='78' toolText='TestToolTip: $78.00' link='j-ShowAlert-??' /></dataset><dataset seriesName='Full Name' color ='d7a268'><set value='???? ???? ????' toolText='TestToolTip: ???? ???? ????' link='j-DrillDownWidget-fcSimpleDataChart|||Subject||FullName||StudentName||Asif' /></dataset></chart>"); SampleChart.addParam("WMode", "transparent"); SampleChart.render("SampleChart_div"); }, 1); </script> <div id="SampleChart_div">Chart. </div> </form> </body> </html> Share this post Link to post Share on other sites
Sanjukta Report post Posted July 9, 2010 Hi, For acheiving what you intend to, could you please try setting the attribute 'unescapeLinks' to '0' in <chart> element of your XML? Also, for a proper display of "Special/Multi-lingual" characters, please make sure that you are using UTF-8 encoded XML. Also, the XML file/HTML file/stream does require a BOM stamp. Hope you have already done this. SampleChart.addParam("WMode", "transparent"); Please note that this is a deprecated method. Instead you can set it as: Ref.- SampleChart.setTransparent(true); Hope this helps. Share this post Link to post Share on other sites
pawajee Report post Posted July 12, 2010 Dear Sanjukta, Thanks for you reply it works smoothly. Share this post Link to post Share on other sites
Sanjukta Report post Posted July 12, 2010 Hi, You are welcome. Glad that your issue is resolved. Happy FusionCharting! Share this post Link to post Share on other sites