Ayan Pal

Moderators
  • Content count

    106
  • Joined

  • Last visited

Posts posted by Ayan Pal


  1. 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');


  2. 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.


  3. 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

    http://localhost/2010/FusionMaps_Trial/Code/php/DB_Drill/Charts.php?Internal_Id=WY&map=FCMap_Wyoming.swf&entity_id=019

    this bold text is the supplied query_string using GET method


  4. 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


  5. 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 .


  6. 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

     


  7. 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

    http://www.fusioncharts.com/docs/Contents/JS_API.html


  8. Hi plywood,

    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.