|
|
|
Junior Member
      
Group: Forum Members
Last Login: 1/10/2008 6:04:09 AM
Posts: 22,
Visits: 33
|
|
Hi there,
are there any examples of charts using AJAX for generating graphs without the need of reloading the whole page? If possible with the used code? I am not a big Javascript/AJAX programmer, so I would like to reuse some code to achieve that...
Thanks for any help!
Stef
____________________________________________________________________
Lean Back and Relax - Enjoy some Nature Photography
Appetite for Global Data? UNEP GEO Data Portal
____________________________________________________________________
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117,
Visits: 498
|
|
Yes - we've a lot of examples in our documentation at www.fusioncharts.com/docs > Guide for Web Developers > FusionCharts and JavaScript.
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 1/10/2008 6:04:09 AM
Posts: 22,
Visits: 33
|
|
Pallav (10/5/2007) Yes - we've a lot of examples in our documentation at www.fusioncharts.com/docs > Guide for Web Developers > FusionCharts and JavaScript.
But these are not AJAX examples, no? Just normal Javascript ones. There is no direct Javascript interaction with the server, as I can see it... Please correct me if I am wrong.
____________________________________________________________________
Lean Back and Relax - Enjoy some Nature Photography
Appetite for Global Data? UNEP GEO Data Portal
____________________________________________________________________
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: 2 days ago @ 2:58:00 AM
Posts: 811,
Visits: 1,289
|
|
Hi,
Here is a sample example with AJAX (using ASP and Access at the backend).. in \ASP\AjaxSample\ folder.
This example first extracts data from database and calculates the total output of 3 factories..this is plain ASP.Then it renders a pie chart. Now the ajax part...when on clicks on a pie it calls a a javascript function. The intension is to load a chart with details of production of that particular factory.
AJAX part : the javasctipt calls ajax to send request to an asp page FactoryData.asp which returns an XML for the detailed chart. Then that detailed chart (column 2d) will load below the pie chart. ON clicking on another slice the ajax call will again reload the detailed chart with different data....
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 6/28/2008 11:37:07 AM
Posts: 11,
Visits: 37
|
|
| I wish there was simpler example of AJAX integration with FusionCharts. I am in the same boat as the original poster, I am not a professional web developer. An example using AJAX and PHP such as where a user simply clicks on one of three text links and one of three corresponding charts is rendered into a chart container without the page refreshing would be very helpful as a very basic but highly useful example of AJAX, PHP and FusionCharts. I can't use JS-only because eventually I want to have far more than 3 possible charts, so I need to generate the FusionCharts XML dynamically. I just can't seem to put it all together: AJAX, PHP and FusionCharts. Looking at ASP examples is like looking at Mandarin to me. If anyone happens to have a simpler example of AJAX, PHP and FusionCharts in action I would much appreciate it.
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: 2 days ago @ 2:58:00 AM
Posts: 811,
Visits: 1,289
|
|
| hi, This can be achieved using AJAX. But, may be, that would confuse you more. YOu can just use simple JS to imlpement this. I am saying this because you have no need to use AJAX backbone to fetch XML for the chart. FusionCharts' charts has the capability to dynamically fetch XML data from a server side script or any XML source without page refresh. You just need to specify the datURL path from where the XML is to be fetched.
Still, you can provide us the structure (i mean a more details) of the application AJAX+PHP+FusionCharts and we can try providing you the solution.
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 6/28/2008 11:37:07 AM
Posts: 11,
Visits: 37
|
|
Sudipto Choudhury (1/10/2008)
hi, FusionCharts' charts has the capability to dynamically fetch XML data from a server side script or any XML source without page refresh. You just need to specify the datURL path from where the XML is to be fetched.
Oh. Interesting. Okay, I need to educate myself some more (read more of the documentation). I'll come back and post the additional information you suggested if I can't figure it out. Thanks for the reply Sudipto - very helpful. - Andrew
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 6/24/2008 5:05:10 PM
Posts: 2,
Visits: 32
|
|
| hi ! (My English is very bad... sorry) i `ve a problem using ajax. i`m developing a proyect using PEAR, SMARTY, PHP, FUSIONCHARTS and now .... my boss say me "ok, let`s include ajax" ... I`ve been searching for any information and don`t find nothing. please just need some pages, or tutorias, or something to help me. PD: Already I have seen the main pages of PEAR, SMARTY, PHP, FUSIONCHARTS, but they don`t give me "instructions" to how combinate ajax with the another tecnologies. Regards.
! We all are ignorant ยก... the problem is not all ignore the same things ...
|
|
|
| | |