Page 1 of 2

How can i display the chart in mobile app using fusioncharts?

Posted: Tue Sep 24, 2013 8:56 am
by Priyanka Bembalkar

I want to display the chart(bar chart/pie chart etc..) in mobile app by using fusioncharts.


How can i display the chart in mobile app using fusioncharts?

Posted: Tue Sep 24, 2013 9:01 am
by Priyanka Bembalkar

Which component should be taken for the chart?


How can i display the chart in mobile app using fusioncharts?

Posted: Tue Sep 24, 2013 9:04 am
by Priyanka Bembalkar

Which component should be taken for the chart?
I have the javascript as follows :
Image


How can i display the chart in mobile app using fusioncharts?

Posted: Tue Sep 24, 2013 9:57 am
by Maryna Brodina

Hello! It's not a good idea to use flash, it's not supported on all devices. Please take a look at this plugin http://www.jqplot.com/, it's easy to work with.


How can i display the chart in mobile app using fusioncharts?

Posted: Wed Sep 25, 2013 4:15 am
by Swarnam Ramnarayanan

Hey Priya,

FusionCharts Suite supports rendering of charts using HTML5 component.

PCs, Macs, iPads, iPhones or Android devices, FusionCharts Suite XT brings the same delight to all of them. It works with all your web and mobile applications that are rendered within a browser, including even IE6.

The code you have posted will be able to render the charts in mobile app. Please ensure the FusionCharts.HC.js, FusionCharts.HC.Charts.js and jquery.min.js are present in the same folder as FusionCharts.js.


How can i display the chart in mobile app using fusioncharts?

Posted: Wed Sep 25, 2013 4:54 am
by Priyanka

Hello Swarnam,
I have added the above mentioned .js files from app setting/external resources.
But on which component the chart should be rendered? Is it possible without any component?


How can i display the chart in mobile app using fusioncharts?

Posted: Wed Sep 25, 2013 11:02 am
by Swarnam Ramnarayanan

Hi Priya,

If you have the required JavaScript files within your application, the above code you have attached will render the Column 3D chart in JavaScript mode.

Are you talking about the SWF component? If yes, SWF files are not required.


How can i display the chart in mobile app using fusioncharts?

Posted: Wed Sep 25, 2013 12:14 pm
by Priyanka

Hello,
I have created a chart using the above code and it runs on the browser.The same, i want to do it in appery's mobile app. So, what are the steps to render the chart in mobile app?Which component should be taken for the chart?

Can you please explain it with example?


How can i display the chart in mobile app using fusioncharts?

Posted: Wed Sep 25, 2013 9:18 pm
by Kateryna Grynko

Hi Priyanka,

You need HTML Panel component.

In App settings connect the source code of external libraries as external resources or copy their code as JS/CSS-asset.

Follow the documentation of the selected library on a call of its parts. Appery("html_panel_name") returns a Panel jQuery object that can be passed to the selected library.


How can i display the chart in mobile app using fusioncharts?

Posted: Thu Sep 26, 2013 8:24 am
by Priyanka

Hello Katya!
I have the code to plot a graph :

Image

Then, I have to add jquery.min.js, jquery.jqplot.min.js and jquery.jqplot.css from app setting and in 'Edit HTML' panel write the function of jplot, and instead of chartdiv i have to use Appery("html_panel_name"), right?

Code: Select all

             I have implemented the above mentioned steps, its not working.  

And i have set the HTML panel as 'div' and on Page Load Event Run JavaScript as mentioned above and rendered the chart to that div name.....this is also not working.
I think i m not getting the right track. Please, help me...

Thanks.