Sign in to follow this  
bpeterson76

Javascript Charts With Phpclass

Recommended Posts

Is there a method setup to force Javascript (not flash) based charts with the PHP Class? I see the method described in the Javascript instantiation, but not mentioned specifically for the PHP Class method. Flash is a resource hog and has compatibility issues that aren't acceptable for my site, but I can't seem to force the use of Javascript-based charts no matter what I try.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

 

Welcome to FusionCharts forum. :)

 

In case you wish to render only JavaScript based charts (and not use Flash at all), you just have to add a line of code as shown below:

 

Ref.- FusionCharts.setCurrentRenderer('javascript').

This code will ask FusionCharts renderer to skip Flash rendering and create pure JavaScript based charts.

 

For further details please refer to the link below :-

 

Ref.- http://www.fusioncharts.com/docs/FirstChart/UsingPureJS.html

 

I hope this helps. :)

Share this post


Link to post
Share on other sites

Hi!

I have the same question. You answered a wrong answer. What about forcing js-charts using the PHP class. I worked many hours to change my code from php to php class. Now I want to test js, without switching back to pure php. Will there be a phpclass method to force the browser using js???

 

Sven

 

Hi,

 

Welcome to FusionCharts forum. :)

 

In case you wish to render only JavaScript based charts (and not use Flash at all), you just have to add a line of code as shown below:

 

Ref.- FusionCharts.setCurrentRenderer('javascript').

This code will ask FusionCharts renderer to skip Flash rendering and create pure JavaScript based charts.

 

For further details please refer to the link below :-

 

Ref.- http://www.fusioncharts.com/docs/FirstChart/UsingPureJS.html

 

I hope this helps. :)

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your post.

 

FusionCharts allows you to create pure JavaScript-only charts that does not require Flash, hence enabling your chart in browsers where Flash is not supported like that of iPhone/iPad etc. This is achieve by calling setRenderer function in PHP Class before you render your chart. Using this function you need to set the current renderer to javascript.

 

 

Please find the code snippet below:

 

$FC = new FusionCharts("Column3D","600","300");

// set JavaScript renderer

$FC->setRenderer('javascript');
...

 

 

Hope this helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this