Ayan Pal

Moderators
  • Content count

    106
  • Joined

  • Last visited

Posts posted by Ayan Pal


  1. Hi  Olslewfoot,

    To customize the legend you have to set the particular legend-attribute with it's value in the chart tag of your xml.

    to know the list of legend-attribute you may refer to the link http://www.fusioncharts.com/Docs/Contents/ChartSS/Combi2DDY.html  [Legend Properties]

    e.g.

    <chart .... legendBgColor="FFFFFF" ... >

    But the legend key's color are inherited from the corresponding dataset color. so to define color for any legend key you have to set the color for the corresponding dataset.

    e.g.

    <dataset .... color="FF00FF" ..>

    To check these in your xml you may print the returned xml[string] of your G2YM_xml() function.

    If still the problem exist please send the generated xml as a zip file.


  2. Hi Eagene,

    In scatter chart x axis value is required in 2 place

     1.category tag.

      if you didn't give the x axis value in any category tag the category will not be shown in the chart.

    2. set tag

      if you didn't give the x axis value in any set tag the tag will be shown at 0 x position.

    labels are not explicitly required at any place.

    you may refer to the link http://www.fusioncharts.com/Docs/Contents/ChartSS/Scatter.html


  3. Hi bobotime,

     

     

     

    Welcome to Fusioncharts Forum:)

     

     

     

    If you don't want to use the PHP Class then you would have to manually build the XML from your database query end-results.

     

     

     

    You can go through the docs [Guide for Web Developers=>Using With PHP]

     

     

     

    However, most of the examples are for Single-series.

     

     

     

    You have to build your Multi-series Charts xml for your chart using the same way.

     

     

     

    For the Multi-Series Charts XML structure, you may go through the docs [Chart XML API=>Multi-Series Charts]

     

     

     

    I hope this helps. :w00t:


  4. Hi DonkDC,

     

     

     

    please go through the following link.

     

    http://www.fusioncharts.com/Docs/Contents/PHPClassAPI/Functions.html [Array Handling Functions]

     

     

     

    hope this will help you.

     

     

     

    if you are using a Multi-Series/Stacked/Combination Charts then

     

    do as the docs says.

     

    for single Series chart your array will be looks like

     

     

     

    //Add Category labels

     

    $arrData[0][0]="Week 1;link=http://www.FusionCharts.com";

     

    $arrData[1][0]="Week 2;link=http://www.FusionCharts.com";

     

    $arrData[2][0]="Week 3;link=http://www.FusionCharts.com";

     

    $arrData[3][0]="Week 4;link=http://www.FusionCharts.com";

     

     

     

    //Add chart Data

     

    $arrData[0][1]="100";

     

    $arrData[1][1]="200";

     

    $arrData[2][1]="300";

     

    $arrData[3][1]="400";

     

     

     

    $FC->addChartDataFromArray($arrData);

     

     

     

    for single Series chart any set attribute can be added with the label separated by ";"


  5. HI steveddei,

     

    i have Figured out a solution.

     

     

     

    build a javascript 2D array using php which contain all the data needed to rendered the chart(i.e. xml,swf file, html div/span id where the perticular chart will be rendered ,width,height and other conditions).

     

     

     

    then page onload call a function (let say ABC()) which will pop the array(if not empty) and build the chart on basis of the array data.

     

     

     

    and also FC_Rendered() will call the function ABC().

     

    so on page load it automatically create the first chart and after every chart rendered it will create the next chart until the array became empty


  6. Hi DonkDC,

     

     

     

    you can't save data directly into excel.

     

    because you can get only csv data which you can save as csv file and open it in exel.

     

    you can go through the bellow links for the same.

     

     

     

    1. http://www.fusioncharts.com/Docs/Contents/ExportDataSetup.html

     

    2. http://www.fusioncharts.com/Docs/Contents/ExportDataJS.html

     

     

     

    to save the chart as pdf you can refer to the bellow links

     

     

     

    3. http://www.fusioncharts.com/Docs/ and then the Exporting as Image/PDF tab


  7. Hi anirban,

     

    please change your code like this.

     

     

     

    $strLink = "link=P-detailsWin,width=400,height=300,toolbar=no,scrollbars=no, resizable=no-display_details.php%3Fparam%3D$pass_param";

     

    $FC_gen->addChartData($row_gen[0],$strLink);

     

     

     

    please refer to bellow links-

     

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

     

    http://www.fusioncharts.com/docs/Contents/PHPClassAPI/Functions.html


  8. Hi Shawn,

     

     

     

    Since you are adding 1 category

     

    # Add category names

     

    $FC->addCategory("Week 1");

     

     

     

    and 1 dataset

     

    # Create a new dataset

     

    $FC->addDataset("This Month");

     

    that's why its generating 1 column.

     

     

     

    May be you have more than 1 set on that dataset but it will show first one as it map to the given category.

     

     

     

    To solve this, you can:

     

     

     

    1. Add enough category(may be blank) to show all the set tag in that dataset(if you have more than 1 set in the dataset "This Month")

     

    2. You can use our FusionCharts PHP Class API ("FusionCharts_Gen.php") to dynamically add category and dataset from database

     

     

     

    P.s: You may refer to the attached sample ('modify this as per your database/requirement').

     

     

     

    Hope this helps you.

    BasicDBExample.zip


  9. Hi twhit67,

     

     

     

    Welcome to FusionCharts forum.:)

     

     

     

    To do so you can go through our documentation.

     

    http://www.fusioncharts.com/free/Docs

     

    or alternatively you may:

     

    > Build a page which generate chart data xml depending on the quarystring.

     

    e.g. dataurl.php?month=jan will generate xml for month january.

     

    >The drop down list's every value change will change the chart's data url using our javascript api (fusioncharts.js) .

     

     

     

    Hope this helps you.