Arindam

Members
  • Content count

    730
  • Joined

  • Last visited

Everything posted by Arindam

  1. Adding a Text Overlay

    Hi, You can use caption and subCaption chart label attribute. ie <chart caption="Buyer's Market" subCaption="Seller's Market" >
  2. XML structure inside setDataXML

    Hi Yossi, Due to javascript programming when you provide xml data by setDataXML method then XML data must be in a single line without any Crt or tabs. If data comes from direct XML file i.e data.xml that time data will be in normal xml style. Please see the example. var strXML="<graph xAxisName='' yAxisName='' caption='' subCaption='' decimalPrecision='0' rotateNames='1' numDivLines='3' numberPrefix='' showValues='0' formatNumberScale='0'>"; strXML += "<categories>"; strXML += "<category name=''/>"; strXML += "</categories>"; strXML += "<dataset seriesName='Risk Range' color='FF0000' showValues='0'>" strXML += "<set value='100' />"; strXML += "</dataset>"; strXML += "</graph>"; setDataXML(strXML);
  3. Hi Rahul,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> 404 error mean file not found on that location, please check file relative path from your calling page.
  4. Hi Toshiyuki Saito, Please build the XML again in the "sorted" event and re-render the chart. You can call createchart() [where this XML building and re-rendering of chart occurs] from GridView1_Sorted event. In createchart() please read data from grid view control object rather than the datasource. Please see the code below for createChart() which you might use and modify in our application. ---------------------------------------------------------------------- Protected Sub GridView1_Sorted(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.Sorted End Sub------------------------------------------------------------------------- Public Sub CreateChart() Dim strXML As New StringBuilder()strXML.Append( "<chart>") Dim i As Integer For i = 0 To GridView1.Rows.Count - 1 "<set value='" & GridView1.Rows(i).Cells(1).Text & "' label='" & GridView1.Rows(i).Cells(0).Text & "' />") NextstrXML.Append( "</chart>")Literal1.Text = FusionCharts.RenderChart( "FusionCharts/Column2D.swf", "", strXML.ToString(), "ChartID", "350", "300", False, False) End Sub
  5. Hi mmcled, Due to invalid XML data, could you please try ones after removing "_" character from xml?
  6. encoding issue

    Hi bkark, Could you please set default ParamDelimiter ";" to ":" or other delimiter. After that use addCategory("%26apos;"). Please see the code $FC->setParamDelimiter(":"); $FC->addCategory("%26apos;"); $FC->setParamDelimiter(";");
  7. SQL - PHP Multi-Series Chart.

    Hi, For Multi-series charts the XML structure is a bit different from single series XML. Hence, would you need to design the process of fetching data from database as per the XML structure. Could you please refer to the MS XML structure from : http://fusioncharts.com/docs/Contents/MultiSeries.html. Please also refer to the code that we provide below which might suit you needs. Please note that since we do not know what value might be there in status field you might need to modify the code as per the value in it. MS_Test.php.txt Data.xml.txt
  8. Hi ramkmr, First of all tell you that trail version chart and paid version chart are same, but in trail Version Company water mark will shown. Chart xml coming from asp page, its ok. Please run html page from with in web server. Also keep Fusioncharts swf file and js file with in web server. Please see documentation http://www.fusioncharts.com/docs
  9. Hi ramkmr, In the html page you are using physical path. It
  10. Passing variable in the URL

    Hi Jenny, Please use escapes for URL encode. It will solve your problem. var myChart = new FusionCharts("Charts/Gantt.swf", "myChartId", "1000", "100", "0", "0"); // url encode var strURL = escape("index_chart.php?id=1&subId=2"); myChart.setDataURL(strURL);
  11. Schema Files for Fusion Charts

    Here is the XSD file for V3 Single Series FusionCharts V3Single.zip
  12. Schema (XSD) files for the charts?

    Here is the XSD file for V3 Single Series FusionCharts V3Single.zip
  13. problem in XML % character

    hi khushi, For ( & ), you can use %26 or %26amp;
  14. please use this string link = "javascript:updateStats(%26apos;" + stage + "%26apos;)";
  15. problem in XML % character

    Please use %25 for %
  16. problem with line chart

    Hi shay, Please use multi series line chart [FCF_MSLine.swf] chart for that type of XML.
  17. Fusion charts with jsp

    Hi, I think it will work this way. Please see attachment. try11.zip
  18. Hi musicman, Please use with in method on script section , after that call it. public void CallFusionChart(){ string strDataURL3;strDataURL3 = "admissiondata.aspx";Response.Write( FusionCharts.RenderChart("FusionCharts/FCF_StackedColumn3D.swf", strDataURL3, "", "Admissions3", "425", "300", false, false));} and call it <% CallFusionChart(); %>
  19. Hi musicman, I went through your problem. Your XML generation is ok. are you calling this page via dataURL method? e.g string dataURL = Server.UrlEncode("ChartXML.aspx"); Literal1.Text = FusionCharts.RenderChart("FusionCharts/FCF_MSColumn2D.swf", dataURL, "", "Chart1", "400", "400", false, false); If it does not work please send us the code.
  20. Hi karn, Please use .net framework 1.1 dll file. I am sending you as attachment that InfoSoftGlobal.zip
  21. Hi Gurmeet, Due to swf Cache your problem was occurring. So please clear your swf cache. Please use this way, I thing this will help you for solve this problem. echo renderChart("Code/FusionCharts/FCF_MSLine.swf?noCache=1", "", $strXML1, "sales1", 600, 350,false,false); echo renderChart("Code/FusionCharts/FCF_MSLine.swf?noCache=2", "", $strXML1, "sales2", 600, 350,false,false);
  22. Please, help me debugging this one

    Hi gbiondo, In multiple FusionCharts, Render Charts need different <div> and different chart id. Please modify your code as per given code. <? for($i=1;$i<11;$i++){ ?> <div id="<?="chart$i"?>div"></div> <script type="text/javascript"> var <?="chart$i"?> = new FusionCharts("Charts/FCF_MSLine.swf", "<?="chart$i"?>", "600", "350"); <?="chart$i"?>.setDataURL("<?=$f?>"); <?="chart$i"?>.render("<?="chart$i"?>div"); </script> <? } ?>
  23. Need help graphing a query

    Hi musicman, I went through your program, please do this way I thing it will work for you DbConn oRs; string strQuery; string strXML; strXML = "<graph caption='Number of Trouble Tickets' subCaption='By Day' decimalPrecision='0' showNames='1' formatNumberScale='0'>"; strQuery = "select CONVERT(VARCHAR(11),tkt_time,106) AS cTime, count(tkt_id) as TotTickets from ticket group by CONVERT(VARCHAR(11),tkt_time,106) order by CONVERT(VARCHAR(11),tkt_time,106) desc "; oRs = new DbConn(strQuery); //Iterate through each Record while (oRs.ReadData.Read()){strXML += "<set name='" + oRs.ReadData["cTime"].ToString() + "' value='" + oRs.ReadData["TotTickets"].ToString() + "' />";} oRs.ReadData.Close(); strXML += "</graph>";Response.ContentType = "text/xml";Response.Write(strXML);
  24. Hi Kevin Urra, I went through your program. Will you please do this way, I think it will work for you. please use asp:Literal control <% @ Page Language="VB" %><% @ Import Namespace="InfoSoftGlobal" %>< script runat="server"> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Dim strXML As String = ""strXML = strXML & "<chart lowerLimit='0' upperLimit='100' lowerLimitDisplay='Bad' upperLimitDisplay='Good' gaugeStartAngle='180' gaugeEndAngle='0' palette='1' numberSuffix='%25' tickValueDistance='20' showValue='1'>"strXML = strXML & "<colorRange>"strXML = strXML & "<color minValue='0' maxValue='75' code='FF654F'/>"strXML = strXML & "<color minValue='75' maxValue='90' code='F6BD0F'/>"strXML = strXML & "<color minValue='90' maxValue='100' code='8BBA00'/>"strXML = strXML & "</colorRange>"strXML = strXML & "<dials>"strXML = strXML & "<dial value='92' rearExtension='10'/>"strXML = strXML & "</dials>"strXML = strXML & "</chart>"Literal1.Text = FusionCharts.RenderChartHTML( "../FusionCharts/AngularGauge.swf", "", strXML, "myNext", "600", "300", False) End Sub</ script>< html>< head>< title>FusionCharts Free - Simple Column 3D Chart using dataXML method</title> < style type="text/css"><! --body { font-family: Arial, Helvetica, sans-serif; font-size: 12px;} --> </ style></ head>< body>< center> <form id="form1" runat="server"> <div><% 'FusionCharts Will Render with in Literal Control %> <asp:Literal ID="Literal1" runat="server"></asp:Literal> </div> </form>< br><br>< a href='../NoChart.html' target="_blank">Unable to see the chart above?</a>< br><h5><a href="index.aspx">« Back to list of examples</a></h5></ center></ body></ html>
  25. FusionCharts Inside GridView

    Hi Prithvi, Here is a sample we have developed using fusioncharts within ASP.Net Gridview Control. Please see the attachment bellow gridviewFC.zip