Arindam

Members
  • Content count

    730
  • Joined

  • Last visited

Posts posted by Arindam


  1. Hi,

    You have to add <dataset> element for each series. Please follow the structure.

    i.e

    <chart ...>

      <categories  >

      <category name='cat 1'  />

      <category name='cat 2'  />

      <category name='cat 3'  />

      </categories>

      <dataset  seriesName='S1'  >

      <set value='100' label='Jan' />

      <set .... />

      <set .... />

      </dataset >

      <dataset  seriesName='S2'  >

      <set .... />

      <set .... />

      <set .... />

      </dataset >

      <dataset  seriesName='S3'  >

      <set .... />

      <set .... />

      <set .... />

      </dataset >

      <dataset  seriesName='S4'  >

      <set .... />

      <set .... />

      <set .... />

      </dataset >

    </chart>


  2. Hi,

    Please modify your code. There FusionCharts Id are same both the file. Please follow this.

     

    Change Code:

    Fus_App.jsp page

    String chartCode=createChart("../FusionCharts/MSLine.swf", "", strXml, "SLA", 745, 300, false, false);

     

    Fus_ASSP.jsp

    String chartCode2=createChart("../FusionCharts/MSLine.swf", "", strXml, "SLA1", 745, 300, false, false);

    Main_jsp

    <jsp:include page=" Fus_App.jsp" flush="false"></jsp:include>

    <jsp:include page=" Fus_ASSP.jsp " flush="false"></jsp:include>

     

    Note:

    If you intend to include the same chart jsp page (with chart) a number of times in your main page, you would need to take care of the chart id of each chart being generated thus. You would need to provide unique chart id to each of the chart. For this you might pass a querystring (that provides chart id) to the include file which in turn would place the chart id passed through the querystring when rendering the chart. Thus you would be able to generate each chart having different chart id.

    e.g.

     

    Main_jsp  Page

    <jsp:include page="sample_exe_app_fusion.jsp?chartID=ch1" flush="false"></jsp:include>

    <jsp:include page="sample_exe_asp_fusion.jsp?chartID=ch2" flush="false"></jsp:include>

     

    sample_exe_app_fusion.jsp  Page

    String chart_id=request.getParameter("chartID")

    String chartCode=createChart("../FusionCharts/MSLine.swf", "", strXml, chart_id, 745, 300, false, false);


  3. hi,

    Could you please check FusionCharts swf path? If you are using this directory structure then follow this path. FusionCharts/Column3D.swf

    For V3 Charts

    Return FusionCharts.RenderChartHTML("FusionCharts/Column3D.swf", "", xmlData.ToString(), "myNext", "600", "300", False)

    For Free Charts

    Return FusionCharts.RenderChartHTML("FusionCharts/FCF_Column3D.swf", "", xmlData.ToString(), "myNext", "600", "300", False)


  4. Hi,

    Please use <chart> attribute - plotGradientColor="" and <dataset> attribute alpha="100" . please use color code with out #.  only use color='AFD8F8'

    <chart imageSave="1" imageSaveURL="FusionChartsSave.php/w493594b122684" labelStep="3" yAxisName="Clips" caption="New Widget" showNames="1" showValues="0" plotGradientColor="" >

      <categories>

      <category label="01/2008" />

      <category label="02/2008" />

      <category label="03/2008" />

      <category label="04/2008" />

      <category label="05/2008" />

      <category label="06/2008" />

      <category label="07/2008" />

      <category label="08/2008" />

      <category label="09/2008" />

      <category label="10/2008" />

      <category label="11/2008" />

      <category label="12/2008" />

      </categories>

      <dataset seriesName="Cisco" alpha="100" color="AFD8F8" plotBorderColor="AFD8F8" renderAs="Area">

      <set value="18" link="doLinearSearch('w493594b122684','Cisco','20080101','20080131');" />

      <set value="17" link="doLinearSearch('w493594b122684','Cisco','20080201','20080229');" />

      <set value="11" link="doLinearSearch('w493594b122684','Cisco','20080301','20080331');" />

      <set value="23" link="doLinearSearch('w493594b122684','Cisco','20080401','20080430');" />

      <set value="21" link="doLinearSearch('w493594b122684','Cisco','20080501','20080531');" />

      <set value="30" link="doLinearSearch('w493594b122684','Cisco','20080601','20080630');" />

      <set value="81" link="doLinearSearch('w493594b122684','Cisco','20080701','20080731');" />

      <set value="115" link="doLinearSearch('w493594b122684','Cisco','20080801','20080831');" />

      <set value="4794" link="doLinearSearch('w493594b122684','Cisco','20080901','20080930');" />

      <set value="4086" link="doLinearSearch('w493594b122684','Cisco','20081001','20081031');" />

      <set value="0" link="doLinearSearch('w493594b122684','Cisco','20081101','20081130');" />

      <set value="0" link="doLinearSearch('w493594b122684','Cisco','20081201','20081231');" />

      </dataset>

    </chart>


  5. Hi,

    Could you please use <chart> attribute - clickURL='http://google.com'

     i.e.

    <chart ..... clickURL='http://google.com' ....... >

    clickURL String The entire chart can now act as a hotspot. Use this URL to define the hotspot link for the chart. The link can be specified in FusionCharts Link Format.

    if you want drill down example then please follow this link.

    http://www.fusioncharts.com/docs/Contents/DrillDown/Simple.html

    http://www.fusioncharts.com/docs/Contents/DrillDown/Frames.html

    http://www.fusioncharts.com/docs/Contents/DrillDown/PopUps.html

    http://www.fusioncharts.com/docs/Contents/DrillDown/ClickURL.html

    http://www.fusioncharts.com/docs/Contents/DrillDown/JavaScript.html


  6. Hi,

    Could you please use AddColors Function? for that you need to update FusionCharts_Gen.php. Please see attachment and see the sample code bellow.

    <?php

     # PHP Class

     include('classFree/FusionCharts_Gen.php');

     

     //Store Name of Products in the first column of the array

      $arrData[0][0] = "Product A";

      $arrData[1][0] = "Product B";

      $arrData[2][0] = "Product C";

      $arrData[3][0] = "Product D";

      $arrData[4][0] = "Product E";

      $arrData[5][0] = "Product F";

     

      //Store sales data in the second column of the array

      $arrData[0][1] = 567500;

      $arrData[1][1] = 815300;

      $arrData[2][1] = 556800;

      $arrData[3][1] = 734500;

      $arrData[4][1] = 676800;

      $arrData[5][1] = 648500;

     

      # Create FusionCharts PHP Class object for single series column3d chart

      $FC = new FusionCharts("Column2D","600","300");

      # Set Relative Path of chart swf file.

      $FC->setSwfPath("FreeFusionCharts/");

      # Store chart attributes in a variable

      $strParam="caption=Sales by Product;numberPrefix=$;formatNumberScale=0;decimalPrecision=0";

      # Set chart attributes

      $FC->setChartParams($strParam);

      # Add User Define Color list

      $FC->AddColors("FF0000;00FF00;0000FF;FFFF00;FF00FF;FCAAAA");

      # Call FusionCharts PHP Class Function to add data from the array

      $FC->addChartDataFromArray($arrData);

     

     print "<html>";

     print "<script language='javascript' src='JSClass/FusionCharts.js'></script>";

     print "<body><center><form name='ww' >";

     

     # Render objects to XML, Create Chart Output

     $FC->renderChart();

     print "</form></center></body>";

     print "</html>";

    ?>

    FusionCharts_Gen.zip