Q:

How to represent complex and hybrid data

I have a quite complicated question.
I'm looking for a javascript or PHP script that can take about any data (arrays, mysql queries ...) and make a table / pivot table / chart of it.
to be simple, I want an app that is able to take any data and represent it as we ask.
For example take content rated by a user.
I want to be able to make a graph of the number of person that rated 1,2,3,4 or 5.
I want to make a table with the number of users that rated in july and in august.
I want to get the contents that were the most rated.
I want to get the users that voted the most.
I know I could could code each of these graphs, but I want to make something that any user can use. and make his own representations.
Is there something like that out there ?
If not in php / javascript, maybe in another language on another platform ?
Thanks in advance

A:

I don't know of anything out of the box, but at least some of your work has been done for you:
For example, you could build a simple PHP function that would dump the given input as an HTML table. Then, with that HTML table, deploy a couple of jQuery plugins to sort the table (DataTables) and to create graphs from tabular data (graphTable).
Obviously, the more robust you want your system to be, the more upfront effort it will take.

