-
Content count
2,097 -
Joined
-
Last visited
-
Days Won
12
Everything posted by FusionCharts Support
-
hi, You would need to maintain the constrain ratio since maps can not stretch as per width and height. The actual map size for New World map is 2150 x 1130 . Hence, you would need to follow this ratio.
-
Fusion maps - automatic refresh?
FusionCharts Support replied to kmorse's topic in Using FusionMaps XT
Hi, There can be 2 ways: In both cases you would need to use javascript window.setInterval() fucntion to automatically update map using an interval. 1. Using dataURL() method: maop.setDataURL() Pass the dataURL (an php file that generates the XML in text/xml format). Thus the map is automatically updated at client side call and at backend the php script (dtaURL) is executed to generate fresh XML from backend. 2. setDataXML method. You can use this to give smooth look to the map when it is refreshing. In this you would need to use an AJAX framework/or jsut some javascript AJAX code to fetch the XML from the same php script (discussed in point 1) and get as ajax resposeText and then set the map with the new XML using setDataXML() method. -
Dynamically update swf type and data via setDataXML
FusionCharts Support replied to Rahul Kumar's topic in Javascript Problems
Hi, Generally if you change chart and render the chart again you would need to setDataURL/setDataXML before the render() function is called. If you set it later you would need to wait for the char to load and track the loading using FC_Rendered() function and then use : function FC_Rendered(DOMId){ var x=getChartFromId(DOMId); x.setDataULR(youURL); } Note to set registerWithJS option on i.e. 1 to get chart from ID and setDataURL after that. It would be better if you follow the FusionCharts.js 's conventional rendering model while chaging chart too. var c=new FusionCharts(swf,....); c.setDataXML(...); // or c.setDataURL(..) c.render(divId); This would replace an existing chart in the div (with divId) and render a new chart (of new type) -
Dynamically update swf type and data via setDataXML
FusionCharts Support replied to Rahul Kumar's topic in Javascript Problems
Hi, Could you please follow the attached file? The example attached uses 3 text input box where you can provide a) the chart type i.e. only the chart name (e.g. pie3d/pie2d/doughnut2d etc.) chart width c) chart height Please note that this is a very basic sample and needs to be modified extensively before actual implementaiton with error trapping etc. Moreover, i am using a sample single series XML. Also note that the JavaScript chart object is kept global so that it can be accessed by all functions. ChangeChart.zip -
Changing the size of chart in runtime
FusionCharts Support replied to FusionCharts Support's topic in General usage
Hi Varoon, SO far I have grapsed from your post is that 1. You might be having small (say thumbnail sized) multiple charts 2. You would like to use a single function which would be called when you click on any of the above small charts and that particular chart would chagne in size (into a bigger chart) Now, in your current code you are hardcoding the chart class, hence, you need to write code for each small chart you place in your scene. A solution can be : 1. on click of any small chart get the class name of that chart 2. Pass that to a function where the code would be like this: function zoomChart(chartClass){ var chart3= new chartClass(chartContainer3MC, 1, 790, 650, 20, 15, false, "EN", "noScale"); chart3.setXMLData(xmlData2); chart3.render(); } Hope this would help you out. -
Hi awszxa, Thanks for the fix. Could you please share the fix with us so that the FusionCharts community can be benifited globally with this fix that you have written. Thanks again!
-
When set numberSuffix='%' the chart does not appear and instead an error appear!
FusionCharts Support replied to dataAccess's topic in Bug Reports
Hi Stuart, Yes %25 is the URL Encoded value (from UNICODE table< ASCII table) of % sign. Similarly for & it is %26. etc. -
Chart Will Not Display in IE7 With Styles
FusionCharts Support replied to Arindam's topic in General usage
Hi, Could you please send us the code (other than the XML) that you are using, the HTML, JavaScript etc. It seems that you are using same DIV id and chart ID. Could you please check those and try with separate DIV Ids and Chart IDs. Let's take this example : [div id="chartDIVId"][/div] [script type=text/java script] var myChart = new FusionCharts("/flash/AngularGauge.swf", "UNIQUE_CHART_ID", "350", "200", "0", "1"); myChart.setDataURL(dataURL); myChart.render("chartDIVId"); [/script] -
Need Help to grow Dynamic "Bar 2D Charts"
FusionCharts Support replied to Prakash's topic in Suggestions & Requests
Hi, I am afraid, FusionCharts does not provide dynamically growing bars, as of now. -
Hi, I am afraid, we have not yet implemented FusionCharts in BlackBerry. Since, FusionCharts is a client side flash based component, you would need to show the chart as flash movie once in the client browse before you can export the image of the chart.
-
Hi, I bet you wont get this display:none -> display:block issue in Internet Explorer. Most probably you are providing data usign dataXML method. This is because, in IE, an HTML Element does NOT get re-rerendered when display is set to block after hiding it once. Firefox etc. re-renders the HTML element. What's happening in this case is when a chart is rendered for the first time using FusionChats.js it actually sets an <object>...</object> (in IE) or <embed/> element in Firefox etc. where the chart SWF is embeedded as a Flash Movie. In this embedded object the first rendered chart's XML is set somewhere as a FlashVar in the <embed> node. Now you might have keep on updating the chart using setDataXML/setDataURL (updateChartXML() in FREE chart) . THIS process wont change the original HTML of the chart (<embed>) . So, once you hide the chart and and show it again the ORIGINAL html gets rendered again and you are getting the original chart. This is an issue in Firefox which we cant help change. But we have written a fix for this process: 1. Either use dataURL method or 2. Get the javaScript fix. I have posted this fox somewhere in the forum. Please have it fmo there.
-
Save graph as image using ASP?
FusionCharts Support replied to Pallav's topic in FusionCharts and ASP
Hi aguiducci, The asp code invloved in this image saving is already given in the previous posts of this thread only. Please download any of the ZIP files I have posted. That would help you save the image (please follow the instrcutions). The code provide in the Zip files show how to use the dll. The rest of image saving code or rather the image saving imvoking code (JavaScript) can be found from our Online Documentation :http://fusioncharts.com/docs/Contents/JS_saveAsImage.html -
Hi, By any change you might have sent a different JSON as the JSON parser that I uploaded in the Forum is giving this XML : Please let us have the correct so that we can fix the issue. Also let us know the Browser and plotform you are using.
-
Cannot open the downloaded Image
FusionCharts Support replied to kendo's topic in FusionCharts and JSP
Hi All, Our developer would see to this and would have the fixes done soon. -
Hi, This is possible. All you need to do is to code up your drill down function according to your needs. Since, I am not aware of which environmetn you are using, it wont be possible to comment on the coding part. But, you can always set a chart blank by updating <chart></chart> XML to it.
-
Error when calling getEntityList
FusionCharts Support replied to Earl.Bennett's topic in Using FusionMaps XT
Hi, Please make sure that you are using the registerWithJS option when re-rendering the maps. The same process is involved in the Map GUI too. Hence, you can take the cue from the code of th GUI. -
Selectively displaying countries
FusionCharts Support replied to mjpuk's topic in Using FusionMaps XT
Hi, Could you pleas try using 1 space instead of null value in sname and lname attributes? [entity internalId="01" newId="ANT" sName=" " lName=" " /] -
Save Chart as image on server side
FusionCharts Support replied to Rahul Kumar's topic in FusionCharts and PHP
Hi, FusionCharts is primarily a client side Flash Component. It takes chart data from XML passed to it. It's image saving feature, processes the image data (which is now not XML but pixel based color data) of the graph formed and send the data to a server-side script. The server side script can be modified as required to save the image at a server side folder or do any other work with the image object create by the image saving server side script. So, the chart needs to be rendered once at client side before it can be saved as image at serve side. -
HI all, Here goes a simple example using FusionCharts in ASP.NET AJAX UpdatePanel. Please try this and shoot us your valuable feedback. Read Post : http://www.fusioncharts.com/forum/FindPost2949.aspx Here is the link to downlod : http://www.fusioncharts.com/forum/Attachment147.aspx
-
Using FusionCharts with MOSS[Sharepoint] as webpart
FusionCharts Support replied to Sudheer's topic in General usage
Hi, YOu need to develop a Web part for Share Point. We are develpoing a Web Part and would release a beta version in a couple of months. -
i cant call a javaScriptFunction on a chart
FusionCharts Support replied to pablo.paz's topic in Installation and Upgrades
Hi, This is a security issue with IE that you need to dig out in IE related forums. -
'FusionCharts' is undefined -- javascript error in IE
FusionCharts Support replied to newbie@fusion's topic in Javascript Problems
Hi, It seems that the FusionCharts.js is not getting fully loaded when the process of rendering the chart is executed. FusionCharts is undeinfed error occurs only when the full class file is not loaded or not present. That it is present but not fully loaded is proved by the fact that on refresh the chart loads, as now the JS is loaded from cache quickly. -
Hi erez, Thanks for the code that you have sent. I have gone through your code and found that : You are using this code: var urlToXml = ''; urlToXml = "&dataURL="+xml; so.addParam("type", "application/x-shockwave-flash"); so.addParam("FlashVars", urlToXml); so.addParam("quality", "high"); so.addParam("menu", "true"); so.addParam("wmode", "opaque"); so.addParam("pluginurl", "http://www.macromedia.com/go/getflashplayer"); so.render(div.id); * Please note we have provided FusionCharts.js to ease implementaion, Hence, instead of so many lines of code that you use, you can try using this which would ease your coding: This would add the chartWidth, chartHeight, DOMId, registerWithJS etc. in the FlashVars automatically. Hence, you might not pain yourself to manually build the FlashVars and assign it using addParam. This might break some implementaions that FusionCharts.js does and in some cases the charts might not work properly as expected. * For special cases ofcourse you can add parameters like this in reverse way: so.addParam("menu", "false"); This always comes true, by default. So, no need to specify this. * You can use so.setTransparent(false) to set the chart opaque. But, of course, many thanks for the enhancement code the that you provided, we won't call it a bug fix though. It seems that you are using % sizes. If so, please render() the chart after the page gets loaded using window.onload or attachEvent/addEventListener etc. This would slove the issue in IE. I hope this issue does not occur in Firefox.
-
Hi, To set the background color of a chart you would need to use bgColor attribute. In case of 2D chart use 2 color values e.g. bgColor='000000,000000' and in case of 3D charts please use one color value - bgcolor='000000'.
-
Hi, I am afraid, you can not call a Java method. You would need to drilldown to a jsp file.