Arindam

Members
  • Content count

    730
  • Joined

  • Last visited

Everything posted by Arindam

  1. accessing Data.xml under WEB-INF/xml

    Hi Jooly, In WEB-INF folder configuration files are kept. You can also keep java classes and libraries. You can create a java class which would provide a method to return xml for the chart. This might work.
  2. accessing Data.xml under WEB-INF/xml

    Hi Jooly, Could you please try putting test.jsp in the application folder or any folder which is relatively accessible by the application. String chartHTMLCode=FusionChartsCreator.createChartHTML("FusionCharts/Column3D.swf", "test.jsp", "", "myFirst", 600, 300,false);
  3. JavaScript functions as links

    Hi Darshan, Please send me the XML which is used in setDataXML. Actually when you are use javascipt function as link then that link must be url encoded then it will be work. Thanks, Arindam FusionCharts Team www.fusioncharts.com
  4. Hi, You have a program error in for loop. It seems that you are usin u intead of i. could you please try using this correct code For i = arrData.GetLowerBound(0) To arrData.GetUpperBound(0) categories.Append("<category name= '" & arrData(i, 0) & "' />") computerTotal.Append("<set value='" & arrData(i, 1) & "' />") peopleTotal.Append("<set value='" & arrData(i, 2) & "' />") Next Also could you try this trimmed but efficient code if you want too ================================================================== Public Function ComputerInventory() As String Dim xmlData As New StringBuilder() Dim categories As New StringBuilder() Dim peopleTotal As New StringBuilder() Dim computerTotal As New StringBuilder()xmlData.Append( "<chart caption='Computer Inventory' showLabes='1' >")categories.Append( "<categories>")computerTotal.Append( "<dataset seriesName='Computer Total'>")peopleTotal.Append( "<dataset seriesName='People Total'>") Dim conn As SqlConnection Dim comm As SqlCommand Dim rdr As SqlDataReader Dim connString As String = ConfigurationManager.ConnectionStrings("DPS").ConnectionStringconn = New SqlConnection(connString)comm = New SqlCommand("test", conn)conn.Open() '''' Requires SQL rdr = comm.ExecuteReader() While (rdr.Read)categories.Append( "<category name= '" & rdr("period").ToString() & "' />")computerTotal.Append( "<set value='" & rdr("comp").ToString() & "' />")peopleTotal.Append( "<set value='" & rdr("fte").ToString() & "' />") End Whilerdr.Close() conn.Close() categories.Append( "</categories>")computerTotal.Append( "</dataset>")peopleTotal.Append( "</dataset>")xmlData.Append(categories.ToString() & computerTotal.ToString() & peopleTotal.ToString()) xmlData.Append( "</chart>") Return FusionCharts.RenderChart("FusionCharts/MSColumn3D.swf", "", xmlData.ToString(), "computerinventory", "600", "300", False, False) End Function
  5. Out of memory error multiple charts

    Hi Amarendra, Please update your flash player. Thanks Arindam
  6. No data to display

    Hi, Please use category ok. See the chart XML bellow <chart caption='Week 1 Stats' palette='2' showValues='0' legendPosition='BOTTOM'> <categories> <category label='Kills' /> <category label='Assists' /> </categories> <dataset seriesName='RYGER'> <set value='33' /> <set value='40' /> </dataset> <dataset seriesName='SG Jamo'> <set value='69' /> <set value='31' /> </dataset> <dataset seriesName='snakEys'> <set value='103' /> <set value='24' /> </dataset> <dataset seriesName='Wicked Catfish'> <set value='73' /> <set value='31' /> </dataset> </chart> If any further problem on spelling please see FusionCharts Documentation http://www.fusioncharts.com/docs/ Thanks Arindam FusionCharts Team www.fusioncharts.com
  7. 2 chartts on 1 page

    <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> Hi Aboutme, Please note that you need to give unique names to DIV ids, JavaScript objects and chart objects. Also note that you need to use the XML url from the same domain as the domain of the SWF file. Follow that code : <script language="JavaScript" src="http://www.domain.com/flash/FusionCharts.js"></script> <div id="chartdiv1" align="left"> FusionCharts. </div> <script type="text/javascript"> var chart1 = new FusionCharts("http://www.domain.com/flash/x.swf", "ChartId1", "450", "220"); chart1.setDataURL("http://www.domain.com/flash/data/eurusd-mini.php"); chart1.render("chartdiv1"); </script> <div id="chartdiv2" align="left"> FusionCharts. </div> <script type="text/javascript"> var chart2 = new FusionCharts("http://www.domain.com/flash/x.swf", "ChartId2", "450", "220"); chart2.setDataURL("http://www.domain.com/flash/data/gbpusd-mini.php"); chart2.render("chartdiv2"); </script> Thanks Arindam FusionCharts Team www.fusioncharts.com
  8. Hi Ywinston, I went through your problem. I think it is path related problem. Will you give me directory structure of your website? then I can tell you what problem it is. Thanks, Arindam FusionCharts Team www.fusioncharts.com
  9. Hi Tempo, I went through your attachment. I changed your code in ajax.js . i.e && xmlhttp.status == 200 // No need that code Just need if (xmlhttp.readyState == 4) { obj.innerHTML = xmlhttp.responseText ; } Also I changed your code in graph_1.html. Here you are using ajax, that why when you call graph_1.html via ajax call and putting that response in div that time javascript was not call automatic that Ajax-example.zip
  10. No Data To Display --- but there is!

    hi, I went through your problem. When ever you use dataURL in FusionChart please first you need to encode URL. Here you are using Java Script then escape function will encode your URL. See code below var myChart = new FusionCharts("Column2D.swf", "myChartId", "900", "300", "0", "0"); // encoded url var dataUrl = escape("JavaOutputXML?openagent&database=<Computed Value>"); myChart.setDataURL(dataUrl); myChart.render("chartdiv1"); also you can do url encode for you next url var dataUrl=escape("/AnalyseUsage.nsf/JavaOutputXML?openagent&FCTime=34");
  11. Can't get Chart Object

    hi, I went through your problem. Please try the solution stated below : var newurl = '/v7/chartxml.php?'+ 'nf=' + nf + '&st='+ st + '&dt=' + dt; // please add this line for url encode newurl = escape(newurl ); // chartHistory must be with in quotes var chartObj = getChartFromId("chartHistory"); i think it will solve your problem Arindam
  12. chartToPrint ImageSave in Eval Version?

    hi, get the latest version and remember to use RegisterwithJS option.
  13. hi, you can track mouse position over map using javascript DHTML events. See our online demo for more on this.. http://www.fusioncharts.com/maps/Demos/AJAX/Index.html
  14. Image quality

    hi, Please upgrade or download the latest version 3.0.6 of FusionCharts from our site and get the new FusionChartsSave.php from that pack. Regards Arindam
  15. Fusion Charts and Cognos

    I am afarid we have not yet implemented FusionCharts in Cognos environment. But to give you some pointers on implementaion, i would say that FusionCharts needs HTML <oject>/<embed> tags . If Cognoz supprts using these tags it can be implemented very easily. FusionCharts takes it data as XML stream.
  16. unescape(strURL) is removing data

    Hi, Please use escape() function for URL encode ok. It will solve your problem <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> strURL = escape(strURL);
  17. SSGrid and links?

    please try this XML <graph caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' showValues='0' decimals='0' formatNumberScale='0' labelDisplay='Rotate'> <set label='<a href="http://FusionCharts.com" >Jan </a>' value='462' /> <set label='<a href="http://FusionCharts.com" >Feb </a>' value='857' /> <set label='<a href="http://FusionCharts.com" >Mar </a>' value='671' /> <set label='<a href="http://FusionCharts.com" >Apr </a>' value='494' /> <set label='<a href="http://FusionCharts.com" >May </a>' value='761' /> <styles> <definition> <style name='mystyle' type='font' underline='1' color="FF0000" isHTML='1' /> </definition> <application> <apply toObject='datalabels' styles='mystyle' /> </application>" </styles> </graph>
  18. Retrieve Chart Data

    Are you using the chart with in form? then use the latest FusionCharts.js
  19. why chart is not show.

    Hi, Your problem is arising due to line break with in XML string. Please do not give any line break in $strXML. Please follow that. $strXML =
  20. please use this code after return xml string its remove enter char and also remove ( " ) char from the string xmlDataYear = xmlDataYear.Replace("r", ""); xmlDataYear = xmlDataYear.Replace(""", "'"); after that you render with FusionCharts. Regards Arindam