srikanth964
Members-
Content count
9 -
Joined
-
Last visited
Everything posted by srikanth964
-
Hi, I downloaded the Fusionmaps XT Beta recently and wanted to use JSON data to render the map. I saw the FusionMaps XT Beta supports Json Data. Is there any sample that shows how to use JSON data with the map?
-
Hi Swarnam, Thanks for your quick reply. I do not still understand how you are using the JSON data on the map. I still see that the example uses setDataXML method to set the data to the map. All the examples only show the JSON data but there is no code sample that explains how to set the JSON data. What is the method I need to use to set the JSON data or JSON URL.
-
Hi, I updated to 3.2.1 and the showAboutMenuItem is not working. When I right click on the chart nothing happens. Can you please help me with this. I even tried it with the samples that come with the download of the Enterprise version. Below is the xml I modified for the sample. <chart caption='Airline Delay Causes' showPercentageInLabel='1' showValues='0' showLabels='0' showLegend='1' showAboutMenuItem='1'> <set value='14.94' label='Weather' color='429EAD'/> <set value='19.17' label='Volume' color='4249AD'/> <set value='7.14' label='Closed Runway' color='AD42A2'/> <set value='7.75' label='Others' color='D4AC31'/> </chart> Note: I checked this in different browsers and it is working in IE 8, Mozilla, Safari. But I am having issues with Google Chrome. The Chrome version I have is 19.0.1084.52 m
-
Hello, I wanted to check with you if the encodeDataXML method has been removed from the FusionCharts.js. I used this before and now when I updated js file I get the below javascript error, Uncaught TypeError: Object [object Object] has no method 'encodeDataXML'. What advise do you give me to have it back.
-
Chart Not Rendering In Html5 Mode While It Works In Flash Mode.
srikanth964 posted a topic in XML Issue
Hello, I am using the below code to display the chart. The chart works absolutely well if I render it in flash. But if I uncomment the line FusionCharts.setCurrentRenderer('JavaScript'); to render it in HTML 5 I get the message no data to display. Can some one help me what is that that causing this. Thanks for your help in advance. <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Chart</title> <script type="text/javascript" src="FusionCharts.js"></script> </head> <body> <div id="chartContainer">FusionCharts will load here</div> <script type="text/javascript"> //FusionCharts.setCurrentRenderer('JavaScript'); var myChart = new FusionCharts("Column3D.swf", "myChartId", "800", "600", "0", "1"); myChart.setDataXML('<?xml version="1.0" encoding="UTF-8" ?>' + "<chart caption='Caption' subcaption='Sub Caption' xAxisName='X-Title' yAxisName='Y-Title' use3DLighting='1' showPercentageValues='0' animation='1' ><set label='CARRYING AND EXHIBITING DRIVER'S LICENSE ON DEMAND' value='2' link='?indexName=pastatepolice&templateName=default&searchQuery=driver&searchType=1&q=driver+FilterOffense%3A%22CARRYING+AND+EXHIBITING+DRIVER%27S+LICENSE+ON+DEMAND%22'/><set label='DUTY OF DRIVER IN EMERGENCY RESPONSE AREAS' value='1' link='?indexName=pastatepolice&templateName=default&searchQuery=driver&searchType=1&q=driver+FilterOffense%3A%22DUTY+OF+DRIVER+IN+EMERGENCY+RESPONSE+AREAS%22'/><set label='DUTY OF DRIVER ON APPROACH OF EMERGENCY VEHICLE' value='1' link='?indexName=pastatepolice&templateName=default&searchQuery=driver&searchType=1&q=driver+FilterOffense%3A%22DUTY+OF+DRIVER+ON+APPROACH+OF+EMERGENCY+VEHICLE%22'/><set label='PERSONS INELIGIBLE FOR LICENSING; LICENSE ISSUANCE TO MINORS; JUNIOR DRIVER'S LICENSE ' value='1' link='?indexName=pastatepolice&templateName=default&searchQuery=driver&searchType=1&q=driver+FilterOffense%3A%22PERSONS+INELIGIBLE+FOR+LICENSING%3B+LICENSE+ISSUANCE+TO+MINORS%3B+JUNIOR+DRIVER%27S+LICENSE+%22'/></chart>"); myChart.render("chartContainer"); </script> </body> </html> test.html -
Thanks Basundhara. I figured it out but want to confirm with others. We had this step before and because the new js handles it internally it got encoded twice and we ran into issues. But I think we are fine now. I had issue with the XML where the chart renders fine in flash mode but does not in HTML 5 mode. I created a new post on the forum. If you can look into it that would be great.
-
HTML Encoded "<" sign throws error
srikanth964 replied to catalysis's topic in FusionCharts and ASP.NET
Hello Basundhara, Please find the attached html to see exactly what we are using. This would not work if there is a "<" or "%3C" in the string. If I replace the"<" or "%3C" with "<" it works but we might not be able to use "<" on the serverside decoding. Can you try it in the test lab and see if some thing can be done to fix this. Thanks, Srikanth -
HTML Encoded "<" sign throws error
srikanth964 replied to catalysis's topic in FusionCharts and ASP.NET
Hello Madhumita, You are right. The ">" symbol or its encoded value does not throw any error. But the "<" symbol or "%3C" will throw a invalid XML message when you use the setDataXML method. If we use the setDataURL it works fine. But "<" throws error when used with setDataXML. We are having issues with this. If you can work with your team to see how this can be avoided without replacing the character that would be fantastic. Srikanth