FusionCharts Support

Members
  • Content count

    2,097
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by FusionCharts Support

  1. Using FusionCharts with VB.NET on Windows Forms

    Hi, Here goes a simple example of FusionCharts in C# Windows Application. THe compiled exe is present in Compiled folder. Its in asp.net 2.0. So please use ,net 2.0 framework. [i have used the latest flash player from Adobe's site.] NOTE : You may face problem whlle adding the cox control in windows form.(its a known issue in VS2005) Trick : Add Shockwave Flash COM component in toolbox. Then copy the 2 dll files (AxInterop.ShockwaveFlashObjects.dll and Interop.ShockwaveFlashObjects.dll) in ObjDebug folder. Now try adding the flash control from toolbox to ur form. IT will work. FusionChartsCSv01.zip
  2. Example (Code) for Charts using AJAX

    Hi, Here is a sample example with AJAX (using ASP and Access at the backend).. in ASPAjaxSample folder. This example first extracts data from database and calculates the total output of 3 factories..this is plain ASP.Then it renders a pie chart. Now the ajax part...when on clicks on a pie it calls a a javascript function. The intension is to load a chart with details of production of that particular factory. AJAX part : the javasctipt calls ajax to send request to an asp page FactoryData.asp which returns an XML for the detailed chart. Then that detailed chart (column 2d) will load below the pie chart. ON clicking on another slice the ajax call will again reload the detailed chart with different data.... Samples_asp.AJAX.zip
  3. Using FusionCharts with VB.NET on Windows Forms

    Hi, IF the flash objects's name is FC then.. in C# : To set XML path use : FC.setVariable("dataURL","xmlfilename.xml"); to set data XML use : FC.setVaraible("dataXML",strXML); in VB : To set XML path use : FC.setVariable("dataURL","xmlfilename.xml") to set data XML use : FC.setVaraible("dataXML",strXML)
  4. ASP.NET Ajax UpdatePanel

    Hi everybody, Please stop fighting over the issue of implementing FusionCharts on ASP.NET AJAX...because fighting only leads us away from being codicated...from real challange of development. What i have figured out trying to implement FusionCharts in ASP.NET as well as AJAX that the only thing that is hampering the implementation is the mal-treatment of FlashObjects inside <FORMS> (which should be present in ASP.NET pages eventually for UpdatePanel controls)... From JavaScript's (as AJAX is 80-90% JavaScript)point of view in IE ids inside <form>s are not declared as window[id] but as document.forms[index][id]....hence poor IE cant recognize the obejct .... you may refer to the documentation and way outs (where there's a will there's a way) published by Adobe regarding this... http://kb.adobe.com/selfservice/viewContent.do?externalId=kb400730&sliceId=1 TIP 1: If one is using registerWithJS, after rendering a chart one must use this : if(!document.embeds[chartId]) window[chartId]=document.getElementById(chartId); //or else document.forms[formName/formIndex][chartId] Using all resouces i have easily, simply and successfully implemented FusionCharts in ASP.NET AJAX and can change chart data using setDataXML/setDataURL... oh! 1 thing i missed ... i have modified getChartFromId in FusionCharts.js thus : infosoftglobal.FusionChartsUtil.getChartObject = function(id) { // if (window.document[id]) { // return window.document[id]; // } if (navigator.appName.indexOf("Microsoft Internet")==-1) { if (document.embeds && document.embeds[id]) return document.embeds[id]; } else { return document.getElementById(id); } } this worked in IE 6/7, Firefox, Opera 9...i have no more browsers installed but will surely check in Safari soon..
  5. Regarding the issue of form tag

    Hi, try removing the nested <form></form> once..and you will see that the button is working.... I fgure out that you might be using this as suggested by Adobe's http://www.adobe.com/go/kb400730, but trust me you can use the other way around... registering after the chart is rendered: <script language="java script"> if(!document.embeds[chartId]) window[chartId]=document.getElementById(chartId); //or else document.forms[formName/formIndex][chartId] </script> You may need to modify the FusionCharts.js 's a code part : infosoftglobal.FusionChartsUtil.getChartObject = function(id) { // if (window.document[id]) { // return window.document[id]; // } if (navigator.appName.indexOf("Microsoft Internet")==-1) { if (document.embeds && document.embeds[id]) return document.embeds[id]; } else { return document.getElementById(id); } } This works...
  6. hi all, FusionCharts is fully compatible with ASP.NET irrespective of <FORM> tag. Adobe has already declared that in IE there is some problem connecting Flash component (externalinterface) with HTML's Javascript if put inside FORM. But where there's a will there's a way. http://www.adobe.com/go/kb400730 I have developed some samples (using ASP.NET 2.0 VB/C# and ASP.NET 2.0 AJAX too) of FusionCharts similar to all the Basic samples given in FusionCharts package where there is option to identify chart and chage data dynamically using setDataURL and setDataXML. Actually i have done no extra thing, but just changed the language from ASP to VB and C#. If you are somehow facing problems identifying the chart add one javascript after the chat is rendered..(this is recommended by Adobe).. if(!document.embeds[chartId]) window[chartId]=document.getElementById(chartId); //or else document.forms[formName/formIndex][chartId] This will help you to identify the chart... You can chage the getChartFromId() in FusionCharts.js too... infosoftglobal.FusionChartsUtil.getChartObject = function(id) { // if (window.document[id]) { // return window.document[id]; // } if (navigator.appName.indexOf("Microsoft Internet")==-1) { if (document.embeds && document.embeds[id]) return document.embeds[id]; } else { return document.getElementById(id); } } this worked in IE 6/7, Firefox, Opera 9...i have no morebrowsers installed but will surely check in Safari soon..
  7. Dynamic Y Axis setting

    Hi, can try using setAdaptiveYMin='1'...
  8. chart error`

    Hi, Thanks buddy. Your R&D will be helpful to a immence number of FusionCharts users.
  9. Fusion Charts and FileMaker Server

    Hi, Thanks for all your R&D. It would be an immense help to all FusionChats clients who aspire to put FusionCharts in FileMaker server. Thanks again. Can you please put here a detailed process flow of all the step that you toiled through to highly benefit all our FileMaker friends.
  10. "getChartFromID is not defined"

    Hi, YOu can try using AJAX (getting data from URL) to retrieve the XML in a javascript variable. Then use setDataXML() method to reload the chart data from that variable. Remember to set animation='0' i.e. off if you are feeling that the you need less delay. This process may take the same delay but it wont erase the chart and go for a long retrieving data prompt. Because data will be retrieved by AJAX and not chart. In that time the old chart willl remain in display. When you get the data in js variable you set it to the chart and the char refreshes the data in a swish......
  11. "getChartFromID is not defined"

    Hi, I hope the browser error prompt was right . There is no method called getChartFromID . The function's name is getChartFromId(). The D makes the difference. moreover use escape() function instead of unescape() to encode the URL. function updateChart(year) { var strURL = "graph_scatter-data.php?selectedID=1510&selectedYear=" + year + "&xaxis="; strURL = escape(strURL); var chartObj = getChartFromId("ChartId"); chartObj.setDataURL(strURL); }
  12. Fusion Charts and FileMaker Server

    hi, most probably there is some problem with the path as you correctly figured out. Can you please locate the server path where FusionCharts.html and other .js and .swf files are residing and set that to the web viewer. You may need to edit the FusionCharts Library.fp7 file's InitializeFusionCharts script and GetFusionChartsFilePath script to assign that server path so that the right path get accessed by the client. Hope then the chart will show up.
  13. Query MYSQL, return chart - HELP

    Hi, Most probably you are right. can you please let us see the XML that's getting concatenated in $strXML? YOu can add this to ge the XML in a textarea and copy this in a txt file and attach to this post so that it can be clearly analyzed. echo "<textarea rows='50' cols='30'>$strXML</textarea>"; Thanks
  14. Problem with window.location.hash in link attribute

    hi, try with document.location.hash
  15. GANTT CHART

    hi, try creating a php function that will return a color string from a list of colors (array)...say of size 40. Now as per your needs add color from this function to your tasks and legends. Hope your PHP programmer will be able to handle it.
  16. GANTT CHART

    hi, find the attached XML and try running it. I have put color to each [task] and for each lagend used [legend] element. Put near the edn of the XML. (Also added legend style.) Data.xml
  17. Tooltip: how to show percentage?

    Hi, Yes that's it.
  18. hi, i am afraid i could not get your query. But if you are interested with entities of the map you can access them using the method you used -getEntityList(). for example : var test = window['mapId'].getEntityList(); This will return an array whose first element is null. The entity definitions start from element 2/index 1. till end. for(var i=1;i<test.length;i++) Each element of the array is another associative array. Hence to get various details you can use the following . alert(test.id); //Internal id of entity alert(test.value); //value of entity alert(test.lName); //Long Name of entity alert(test.sName); //short Name of entity alert(test.tooText); //Entity tooltext Others are, alpha, color,displayValue,mc.
  19. setDataURL method does not refresh data

    Hi, for setDataURL in JavaScript please try the sample given in the post :http://www.fusioncharts.com/forum/Topic1675-47-2.aspx#bm2429
  20. StackedColumn2D chart not publishing correctly

    Hi, try the trick. You need to edit the following lines : 1. import com.fusioncharts.core.charts.StackedColumn2D; make it import com.fusioncharts.core.charts.StackedColumn2DChart; 2. Likewise , var Chart:StackedColumn2D = new StackedColumn2D(chartContainerMC, 1, 340, 164, 20, 15, false, "EN", "noScale"); will be var Chart:StackedColumn2DChart = new StackedColumn2DChart(chartContainerMC, 1, 340, 164, 20, 15, false, "EN", "noScale"); Hope, things will work out now. IF you have any problem like this, you can open the related .as file and see the class name defined in it and use it while importing and defining.
  21. Multiple Charts on same page

    hi, To render multiple charts in the same page .... [ This is exclusively for ASP.NET C# though the same technique can be used in any server side technology with some minor tweaks] What you can do is : 1. In the main page you render multiple charts using renderChart() function a umber of times. 2. For each render you use dataURL method and pass the dataURL to a server side page...say dataGen.aspx with some additional parameters to get sepcific XML as dataURL XML from that page. e.g. using InfoSoftGlobal; String dataURL1=Server.UrlEncode("Datagen.aspx?viewType=monthwise"); response.write(FusionCharts.RenderChart("{SWF}",dataURL1,"",chartID,"400",300",false,false); String dataURL2=Server.UrlEncode("Datagen.aspx?viewType=factorywise"); Response.write(FusionCharts.RenderChart("{SWF}",dataURL2,"",chartID,"400",300",false,false); 3. Now you build your Datagen.aspx code in a way to mine data from database according to viewType request passed to it, create relevent XML (in a string, say, strXML) and setting Response.contentType="text/xml" return the XML string : Response.write(strXML);
  22. Can USA map transistion smoothly to a state map?

    You can see the JS Drill down demo http://www.fusioncharts.com/maps/Demos/AJAX/Index.html. This has US map with each state clicked opens the state in the same page zooming out of the US map in separate window like box. You can modify the demo to fit your needs.
  23. Problem in loading maps and charts via AJAX and PHP

    AJAX does not need page refresh. All you need to change in the whole code (FusionMapsUSDemo.js) is the getData() function. Put your AJAX codes frm here and build your XML here only. The other things will remain same.
  24. Problem in loading maps and charts via AJAX and PHP

    this.entities is an array that stores all the entity ids and names of the loaded map. we extract this array calling a fucntion of the map movie itself. this is alias of the class. search and find this.entities in others parts of the javascript and somewhere you will find how its extracting the entities.
  25. Links on Cylinder Charts

    try using clickURL='{LINK}' attribute in element which makes your cylinder chart a hotspot which when clicked will load the desired URL.