如何表示复杂和混合数据 [英] How to represent complex and hybrid data

查看:135
本文介绍了如何表示复杂和混合数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常复杂的问题。



我正在寻找一个可以接收任何数据的javascript或PHP脚本(数组,mysql查询...)并且做一个表/枢轴表/图表。



简单,我想要一个能够采取任何数据并且代表它的应用程序。 / p>

例如,获取用户评分的内容。



我想要创建一个数字图表评价为1,2,3,4或5的人。
我想在7月和8月份的用户数量表中创建一个表。
我想要获得最多评分的内容。
我想得到投票最多的用户。



我知道我可以为每个图形编写代码,但是我想做任何用户可以使用。并且做出自己的陈述。



有没有像那样的东西?



如果不在php / javascript可能在另一个平台上使用另一种语言?



提前感谢

解决方案

p>我不知道什么是开箱即用的,但至少有些工作已经为您完成:



例如,您可以构建一个简单的将把给定输入转储为HTML表的PHP函数。然后,使用该HTML表,部署几个jQuery插件来对表进行排序( DataTables )并创建图表从表格数据( graphTable )。



显然,您希望系统越健壮,就越需要付出努力。


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

解决方案

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.

这篇关于如何表示复杂和混合数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆