Nick Pitt
Posts: 0
Joined: Tue Feb 18, 2014 12:44 pm

Adding charts to a database

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Adding charts to a database

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

Nick Pitt
Posts: 0
Joined: Tue Feb 18, 2014 12:44 pm

Adding charts to a database

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Adding charts to a database

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.

Return to “Issues”