Ayan Pal
-
Content count
106 -
Joined
-
Last visited
Posts posted by Ayan Pal
-
-
Hi DannyR,
Thanks for your post.
you are right. our JS fall-back always use two yaxis where for single axis chart second axis is ignored. so to change any configuration in JS chart you have to use axis as you maintained.
But For your issue you can upgrade to our latest release V3.2.1 to support yaxismax and min value for JS chart also
-
Hi Jlewis,
Thank you for your post.
This is a known issue, which is already fixed and will be effected in our next release.
If you are interested to try our latest development beta please mail us at [email protected] citing this forum post . please also mention your order-id.
-
Hi Isemaan,
Thanks for testing beta.
1 - baseFont, and Styles are not working. Unable to control the font size on the displayed text on the chart.2 - Stack charts and other complex charts not working. Can you kindly advise the chart types that are supported?
3 - when loading, the chart displays message "Data Parsing Error" then opens correctly.
4 - could we hide the button that is displayed on the chart allowing its export? or maybe control its size?
1- styles are not supported till now.
2- all charts except Single Series Grid Component , Multi-series Stacked Column 2D + Line Dual Y Axis & Multi-series Stacked Column 2D are supported.
for all features please mail us to get the latest FusionCHarts.js and highcharts.js
3- could you please send us a working sample for that
4- you can add exportShowMenuItem='0' attribute in your xml's charts tag to hide this button.
or refer to the bellow code to resize the button
var chartObj1 = new FusionCharts('Charts/Column2D.swf', 'chart-1', '100%', '400', '0', '1'); chartObj1.setXMLData(''); //set js chart configuration for export button chartObj1._overrideJSChartConfiguration({ exporting:{ buttons:{ exportButton:{ width: 10, height: 10, symbolSize:7, symbolX : 5, symbolY : 5 } } } }); chartObj1.render('chartspan');
-
-
Hi sychowaves,
In renderChart() function you have to pass the proper formatted xml string or address of a xml file for the chart's data. here you are generating a xml string from database. please make sure the generated string is proper for the MSLine chart. to verify it you may echo the string inside a textarea . in your code you are generating xml for singleseries chart neither dataset nor categories/category are there.
please make sure the following things.
1. xml format is correct for a multy series chart. I.e. structured like the posted xml in your first post
in that error you will see an "invalid xml" or "no data to display" message
2. check the swf location corresponding to your page
3. FusionCharts.php file's location is also correct.
-
Hi Ravi,Please check that the path of FusionCharts.js is correct relative to your page .
<script language='javascript' src='/opt/FONapache2/htdocs/inform/application/FusionCharts_Enterprise/JSClass/FusionCharts.js'></script>if correct then please verify that your page successfully loaded the js file
-
Hi Min,
In IE flash can't reade data if browser didn't cache it. for https bydefault server set header not to cache it.
So to do so, set the following headers for your XML Data provider page:
Cache-Control: cache, must-revalidate
Pragma: public,
you may refer to the link:
-
Hi Uman, to see this examples please do the below steps
1 add dummy sql data [provided in the download package ( folder name -'db')]
2 configure DBConn.php as per your settings for database
3 set charts' paths in all the three pages as per your local folders
3 open default.php then click on a map area which will open detailed.php with a supplied query_string
4 again click on a map area on detailed.php which will open chart.php with a supplied query_string
below is an example of the chart.php with query_string
this bold text is the supplied query_string using GET method
-
Hi Uman,
please check that you have passed values as Internal_Id and entity_id to the page using GET or POST methode
-
Hi sandalvincci,
your code may be like this:
$strXML .= "<set name='" . $ors['location'] . "' value='" . $ors2 . "' link='JavaScript:myJS(" . $ors['location'] . ")'/>";now every time you click on the pie slice it will call javascript function myJS with the name of the set as an argument
now define the myJS function as per your job you want to do using this function
-
Hi Toddz70,
Please change your code like this:
$datasetParamArray=array("parentYAxis=S");////// delimeter seperated parameters for the dataset don't use (") for parameter values
$FC->addDatasetsFromDatabase($result2, "Year","My_Value",$datasetParamArray); //this dataset will render as secondary y-axis
-
Hi,
you can see the attachment for the updated FusionCharts_Gen.php which support widgets also.
read the ref. for parameters structure of the added/modified functions.
** this is under development so please test explicitly .
-
Hi Muzzs,
You can try the customize php class[attached];
and 1 more thing inspite of use
-
Hi jsabah,
It is not possible to capture chart image in a different size.
You can modify(resize) the image after it is generated.
-
HI Buzz Brown,
Change the line of code
$datasetParamArray=["renderAs=Line'];to
$datasetParamArray= array("renderAs='Line'"); -
Hi Twhit67,
chart_Bar2D1.setDataXML("");This shows your code is not generating xml string.
Using bellow code you may generate a textarea containing the xml string
echo "<textarea rows="5" cols="50">".$FC->getXML()."</textarea>";getXML returns the generated xml string.So if the textarea is blank then your code is not generating xml properly.
Few more things.
Here you are using bar2d chart, which is a single series chart. so it dose not support the category tag.
For details please see the link: http://fusioncharts.com/docs [Chart XML API]
And please add data for the chart so that the generated xml work properly.If use any database related FusionCharts php class methode [like addDataFromDatabase()] in your code then modify the functions in the class file so that it can support Postgresql .
-
Hi Twhit67,
I have few doubts in your code.
$link = connectToDB();as you are connecting database manually so you don't need this line.
$FC->addCategoryFromDatabase($result, "table data");as you are retrieving the data as "a" so your code would be like
$FC->addCategoryFromDatabase($result, "a");
and you can echo the generated xml from getXML() method.
this will ensure you that your modifications are working fine and generating correct xml
-
Hi Jalfling,
Our php class currently support only mysql and oracal officially.
But you can modify the class to support your database.
You may refer to the link http://www.fusioncharts.com/docs/Contents/PHPClassAPI/Functions.html addDatasetsFromDatabase() to know how it works
-
Hi John,
In your xml you did not set the color at dataset.
as i told previously.
please define color at dataset to define color for corrosponding legend key. other wise the default color will be shown.
-
Hi turtle_frog,
If you want to change the xml only then you can use our setDataXML() or setDataURL() method.
But if you want to change the chart type and other properties then you can use ajax and php class.
but beware of two things.
1.ajax resopons must be text type.
2.call method renderChart(true) to render the chart in ajax called page.
for details you may go through the links http://www.fusioncharts.com/docs/Contents/PHPClassAPI/Functions.html#rendering
-
Hi Plywood,
Your code should be like that
$FC = new FusionCharts("Line","600","300");
for the list of name for the charts you please go through the link http://www.fusioncharts.com/free/docs/Contents/PHPClassAPI/FirstChart.html
-
Hi Twhit67,
Our PHP class doesn't officially support postgres database directly.
In that case you may retrieve the results and add them using addChartData() function.
you may refer to this link http://www.fusioncharts.com/docs/Contents/PHPClassAPI/Functions.html#chsfunction
-
The special characters shown in your page are actually written in your page at the starting, but these characters are generally invisible in IDEs. please open the page in any good text editor like(notepad++) then remove the special characters. please check the same for your all included pages also.Hi plywood,
-
Hi plywood,
I checked your link.It shows that the path of the "FusionCharts.js" in not correct. To check it you may see the page Source and click on the js file link.
Html5 Fallback Not Working Correctly For Pie Charts
in General usage
Posted · Report reply
Hi Peter,
Thanks for our post.
We are unable to produce the issue, as yet.
Please find attached a working sample of pie of 100*100 pixel size which works at a lower size as well. If your issue persists/remains, please send us a basic sample/ live-link of the issue.
JSSmall.zip