Page 1 of 1

Adding charts to a database

Posted: Wed Mar 12, 2014 12:38 pm
by Nick Pitt

Hi

Please can you help me add a chart to my page.

I have downloaded the java script and CSS files via https://sites.google.com/site/jqplot/... as mentioned in an earlier post.

I have also adding a HTML Component Edit HTML HTML Source and added this code .

I have also added javascript on a page show action of the following $.jqplot('myplot', [[[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]],

{ title:'Exponential Line',

axes:{yaxis:{min:-10, max:240}},

series:[{color:'#5FAB78'}]

Please advise what needs to be amended and what else needs to be done.

Thanks

Nick


Adding charts to a database

Posted: Wed Mar 12, 2014 12:48 pm
by Maryna Brodina

Hello! Could you clarify what exactly doesn't work?


Adding charts to a database

Posted: Wed Mar 12, 2014 1:39 pm
by Nick Pitt

The graph does not populate when loading, how can I link this to my database ?


Adding charts to a database

Posted: Wed Mar 12, 2014 3:06 pm
by Maryna Brodina

1) "graph does not populate when loading" - please check errors in console
2) "link this to my database" - on page show do request to a DB. On service success form data from response the way you need and call function of graph displaying.