Page 2 of 2

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

Posted: Thu Sep 26, 2013 10:18 am
by Maryna Brodina

Hello! Please take a look here https://getsatisfaction.com/apperyio/...


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

Posted: Fri Sep 27, 2013 10:16 am
by Priyanka

Hello!

Code: Select all

   I have followed the steps  in[url=https://getsatisfaction.com/apperyio/topics/journey_recording_using_gps_tracking?page=2]https://getsatisfaction.com/apperyio/...[/url] 

But by mistake i have added jquery.js and jquery.min.js which are giving the errors now and that can not be deleted.

Errors are :

Uncaught SyntaxError: Unexpected token . jquery.jqplot.css:2
Uncaught SyntaxError: Unexpected token . jquery.jqplot.min.css:1
Uncaught SyntaxError: Unexpected token . jquery.jqplot.css:2
Uncaught TypeError: Object [object Object] has no method 'die' chart.js:144
GET [url=http:///experiments/jquery.min.map]http:///experiments/jquery.min.map[/url] 404 (Not Found) /experiments/jquery.min.map:1

And

i have written the javascript for html panel on page load event

try {
var plot = $.jqplot('plot2', [[[1, 2], [3, 5.12], [5, 13.1], [7, 33.6], [9, 85.9], [11, 219.9]]]);
} catch (ignore) {}

which also giving an error (in JSLint):
'$' was used before it was defined.
var plot = $.jqplot('plot2', [[[1, 2], [3, 5.12], [5, 13.1], [7, 33.6], [9, 85.9], [11, 219.9]]]);

Also while including jquery.jqplot.min.css file, error occurs in the console :

Uncaught SyntaxError: Unexpected token . jquery.jqplot.min.css:1

I have tried a lot, but not getting the solution.
Please, help me.


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

Posted: Fri Sep 27, 2013 11:19 am
by Maryna Brodina

Hello! JSLint doesn't show errors, you would need to check console to see errors http://docs.appery.io/documentation/d...
Also there is no need to add jquery as it's added to Appery.io. Could you clarify in more details how did you add it and why can't delete?


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

Posted: Fri Sep 27, 2013 11:48 am
by Priyanka

Hi Marina!
I have downloaded the plugin from http://www.bitbucket.org/cleonello/jq....
and saved the jquery.jqplot.js and jquery.jqplot.min.css on the server and given that address to the external resourses in app setting to add that files to app.

As given in http://www.jqplot.com/docs/files/usag...,
i have created the javascript and ran it on page load event.

I am getting the following error :
Image


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

Posted: Fri Sep 27, 2013 12:59 pm
by Maryna Brodina

You have to add pre<div id="plot2"><&#47;div>/pre into HTML Panel on 'HTML Source' tab
[quote:] saved the jquery.jqplot.js and jquery.jqplot.min.css on the server and given that address to the external resourses in app setting[/quote] it's better to create JS and CSS assets