Archived

This topic is now archived and is closed to further replies.

  • 0

Charts in php

Question

Posted · Report post

Hi,

 

Is it possible to use the charts shortcode in PHP? I would like to show charts of user generated data.

 

Thanks.

Share this post


Link to post
Share on other sites

7 answers to this question

Posted · Report post

I figured it out. Thanks anyway.

Share this post


Link to post
Share on other sites

Posted · Report post

I made a little plugin. It uses the wordpress buildin ajax functionality to get the metadata from the post and display it in a google chart. Let me know if you want to have the code.

 

Cheers.

Share this post


Link to post
Share on other sites

Posted · Report post

Sorry for the short explanation.

 

I would like to show a chart on each post using the data which is stored in the custom fields of that post. Every post has different data to show (user generated). Is there a way I can use the chart option Pagelines offers? What is the best way to do this with Pagelines?

 

I was trying to do this with Google charts API, but I was running into trouble to get server side data into a client side generated chart. This code from Google is helpful, but I don't know how I can get custom fields (it needs the loop) using an ajax call.

 

Thanks

Share this post


Link to post
Share on other sites

Posted · Report post

If I am totally honest, I wouldn't really have any idea how to achieve this. However, I did do a search and found this plugin which uses custom fields apparently.

 

http://wordpress.org/extend/plugins/tally-graph/

 

If the plugin isn't for you, I would recommend contacting one of our Pros, who may be able to assist you - http://www.pagelines.com/pros/

Share this post


Link to post
Share on other sites

Posted · Report post

How did you achieve this in the end ?

Share this post


Link to post
Share on other sites

Posted · Report post

To clarify, how do you intend on incorporating both? Like, adding the shortcode inside a PHP tag?

Share this post


Link to post
Share on other sites