Sign in to follow this  
swim

Iphone And Php

Recommended Posts

I have built a web page that includes a Fusion Chart that plots from a MySQL database using the data string method. I cannot get the chart does not show up on a iphone though. I tried to call FusionCharts._fallbackJSChartWhenNotFlash(); in the head, but it did not work. If I am using PHP, is it possible to make make it show up on a iphone? Any help will be greatly appreciated. Thanks.

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

Welcome to FusionCharts Forum! smile.gif

 

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 achieved by calling FC_SetRenderer function in PHP before you render your chart. Using this function you need to set the current chart renderer to javascript.

The code snippet below shows how you can achieve this:

 

FC_SetRenderer( "javascript" );

.........

echo renderChart("../../FusionCharts/Column2D.swf", "Data/Data.xml", "", "chart1", 600, 300, false, true); 

 

Hope this helps.smile.gif

 

 

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