Ayan Pal
-
Content count
106 -
Joined
-
Last visited
Posts posted by Ayan Pal
-
-
Hi plywood,
When you unzip the file you get a FusionChartsFree parent folder, inside it you have to open Code then PHPClass then Includes folder to fiend the FusionCharts_Gen.php file.
-
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.
-
Hi Bam_usic,
could you please try encoding special character in dataurl.
your code may be like that--
echo renderChart("FCF_Line.swf", htmlspecialchars($strDataURL, ENT_QUOTES), "", "FactorySum", 650, 450); -
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
-
Hi JorgeV,
i am attaching a sample project build using our php class.
it is fully working.
for your sample
please make sure that
1. all paths entered in your code are refering to the correct file.
2. you have included the FusionCharts.js file properly
-
Hi Muzzs,
welcome to the fusioncharts forum:)
please check your GD library version in php.
If it is older then please upgrade it.
you may refer to the following link which discuss the GD version required for imagecreatetruecolor() which is used in our exporter.
http://www.php.net/manual/en/function.imagecreatetruecolor.php
-
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:
-
Hi DonkDC,
FusionCharts_Gen.php dose not support to add set attribute(like link,color etc.) for Multi-Series/Stacked/Combination Charts using addChartDataFromArray() right now.
but you may customize it as per your requrement.
otherwise you can build the chart using
addCategory() , addDataset() , addChartData() etc. functions where the data will be supplyed from the array
-
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 ";"
-
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
-
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
-
Hi DonkDC,
please change your code like this.
$FC->addchartData($count, "label=$type;link=_drilldown.php?type=$type");
-
Hi,
Could you please verify the following:
1. You have included FusionCharts.js in a script tag
2. FusionCharts.js is included before the renderChart is printed
3. The path of the FusionCharts.js is correct
You can also refer to the following links.
http://www.fusioncharts.com/free/docs/ (Using With PHP)
I hope this helps.
-
Hi Anirbansarkar,
"setAdaptiveYMin" is a chart tag attribute. so you have to add it in chart tag.
but here you are adding it in set tag that's why it is not working.
you may refer to the following links-->
1.http://www.fusioncharts.com/docs/ (Chart XML API)
2.http://www.fusioncharts.com/docs/Contents/PHPClassAPI/FirstChart.html
-
Hi satdev,
could you please send us the original xml generated in your code .
you may also compare it with the working xml file.
-
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
-
Hi Handyaner,
Welcome to FusionCharts forum.
As per your requirement you have to use Multi-Series Area 2D Chart(MSArea2D).
please refer to the following links-
1. http://www.fusioncharts.com/Docs/Contents/ChartSS/MSArea2D.html
2. http://www.fusioncharts.com/Docs/Contents/PHPClassAPI/Functions.html#dbhandling
hope this will help you:)
-
Hi Mohammad Salah,
welcome to fusioncharts forum.
we are looking on it.
-
Hi anirbansarkar,
as per your requirement you have to add four quarters of financial year as categories, then add latest 3 years as dataset with it's quarters as set within it.
for details you can refer to this link http://www.fusioncharts.com/docs/Contents/PHPClassAPI/Functions.html#dbhandling
hope this will help you:)
-
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.
-
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.
-
Hi thinknirmal,
please make sure that FusionCharts.js file is included.
-
Hi anirbansarkar,
could you please try this code in your function
@$strXML .= "<set label='" . escapeXML($wing_name,$forDataURL) . "' value='" . $row_tot_amt['tot_po_due'] . "' isSliced='" . $slicedOut . "' link='" . urlencode($strLink) . "' />";
-
Hi thinknirmal,
Please try using attached FusionCharts.php. Also, could you please send us your FusionCharts.php file so we may run saome tests on it?
Looking forward to your reply.
Scatter plot x axis
in General usage
Posted · Report reply
Hi Elizabeth,
Currently all charts need to specify x scale labels.
Next major release will add this feature.