anurag_8279 Report post Posted August 16, 2012 Hi , I am using Fusion Charts Version 3.2.2 and "javascript" as a renderer . I have replaced apostrophe in the label by " ' " but in the chart at the place of apostrophe , its is actually showing " ' " iteself. It worked well in trial version but it is having problem in full version. Share this post Link to post Share on other sites
FusionCharts Support Report post Posted August 17, 2012 Hi, Is there a possibility that the ' is getting encoded again through any of your code? Also, please let us know if you are using ASP Class or PHP Class from FusionCharts XT pack to render the chart. Share this post Link to post Share on other sites
anurag_8279 Report post Posted August 21, 2012 Hi, Actually what happening is , I am replacing apostrophe by "'" through my code and when the xml is made it is further converting the "&" into "&" so the whole replacement of apostrophe i.e. "'" is becoming "'". How can i resolve this. BTW i am using ASP class. Thanks Share this post Link to post Share on other sites
anurag_8279 Report post Posted August 24, 2012 Hi, Its a gentle reminder that you people have not responded to this issue from more then 4 days.. please respond to it.. thanks Share this post Link to post Share on other sites
FusionCharts Support Report post Posted August 24, 2012 Hi Anurag, Apologies for the delay. Is there a way, through which you can post here the part of the code where you are adding the apostrophe? Also, please please let me know if you are using FusionCharts XT Service Release 4 (the latest release)? Meanwhile, I will do some testing myself and let you know? Share this post Link to post Share on other sites
anurag_8279 Report post Posted August 24, 2012 Hi, Here is the code that asked for. set.Label = Data.Replace("'", "'") The fusion chat version i am using is "fusioncharts/3.2.3-sr3.5347". Thanks Share this post Link to post Share on other sites
FusionCharts Support Report post Posted August 24, 2012 Hi Anurag, Can you please try once using the files from the latest release - FusionCharts XT SR4 ? My quick tests with FusionCharts XT SR4 could not replicate your issue. Also, the code that you have sent is too little to understand your complete implementation scenario. Will it be possible to do a View Source from the browser and show me the generated HTML and JavaScript for this chart? You will find that the ASP Class has actually generated a <DIV> element and a <script> element that will contains JavaScript to generate chart (along with your data). Share this post Link to post Share on other sites
anurag_8279 Report post Posted August 24, 2012 Hi, I have seen the source and its is like this : <script type="text/javascript"> if (FusionCharts && FusionCharts("FacilityPopulation") ) FusionCharts("FacilityPopulation").dispose(); FusionCharts.setCurrentRenderer('javascript'); var chart_FacilityPopulation = new FusionCharts({"dataFormat" : "xml", "scaleMode" : "noScale", "renderAt" : "FacilityPopulationDiv", "id" : "FacilityPopulation", "debugMode" : "0", "lang" : "EN", "swfUrl" : "../FusionCharts/Column3D.swf", "wMode" : "opaque", "width" : "100%", "height" : "300", "registerWithJS" : "1","dataSource" : "<chart caption='' xAxisName='' yAxisName='Average Personnel Count/1,000 SF Occupied' showValues='1' showLabels='1' showLegend='0' legendPosition='' formatNumberScale='0' numberPrefix='' numberSuffix='' canvasBgColor='FFFFFF' yAxisMinValue='0' yAxisMaxValue='5'><Set Label='Buil'ding: (CH0852) 22...' Value='N/A' ToolText='Buil'ding: (CH0852) 225 West Wacker Drive' /><Set Label='Zip: 20005' Value='N/A' /><Set Label='Region: Midwestern' Value='N/A' /><TrendLines><Line startValue='3.5' endValue='3.5' color='D31445' displayValue=' ' dashed='1' dashedLen='5' dashGap='5' toolText='Industry Benchmark,3.5' thickness='2' showOnTop='1' /></TrendLines></chart>"}).render();</script> The thing is that there was an apostrophe in the word building and through our code we replaced that by "'" manually. But in "'" is further breaking down in "'" as u can see in the page source. Just want to let you know that we are using "jquery 1.7.2" and we are assuming that it could be possible that the .js files used by fusion charts are getting contradicted by our .js files that we are using. Thanks Share this post Link to post Share on other sites
FusionCharts Support Report post Posted August 24, 2012 HI Anurag, None of our ASP Class code converts & to & Our code converts & to %26 Can you please check if anything from your side is causing this? Share this post Link to post Share on other sites
anurag_8279 Report post Posted August 24, 2012 Hi, I am afraid nothing from our side is causing the conversion of "&". It is automatically getting converted to "&". Thanks Share this post Link to post Share on other sites
FusionCharts Support Report post Posted August 27, 2012 Hi Anurag, Are you getting the chart rendering code through AJAX? Share this post Link to post Share on other sites
anurag_8279 Report post Posted August 27, 2012 Hi Sudipto, No I am not using AJAX to render the charts. Share this post Link to post Share on other sites
FusionCharts Support Report post Posted August 28, 2012 Hi Anurag, Will it be possible for you to share a scaled down working project (with minimum dependency like use of database etc.) with me (attach here as a zip file) to showcase the issue? Since I am unable to replicate this at our end, I am interested to test your implementation to get the issue replicated. Share this post Link to post Share on other sites
Guest Sumedh Report post Posted September 10, 2012 Hi, HTML doesn't actually have a ' entity. A lot of browsers support it (probably because it is a part of XHTML), but "officially" it doesn't exist. So, you should use attached code. Share this post Link to post Share on other sites