Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to put JSON data in html / javascript grid table

I have the following JSON-formatted data:

    [
{
    "ID": "00:50:c2:63:10:1a",
    "start": "1349773838277760",
    "end": "1349773838277770",
    "startArea": "areaStart",
    "endArea": "areaEnd",
    "duration": "10"
},
{
    "ID": "00:50:c2:63:10:1a",
    "start": "1349773838277760",
    "end": "1349773838277780",
    "startArea": "areaStart",
    "endArea": "areaEnd",
    "duration": "20"
},
{
    "ID": "00:50:c2:63:10:1a",
    "start": "1349773838277760",
    "end": "1349773838277780",
    "startArea": "areaStart",
    "endArea": "areaEnd",
    "duration": "20"
}]

How can I display this data nicely in a html data table?

Is there a plugin for jQuery that can help me?

My basic approach is this:

http://jsfiddle.net/LKkSJ/

like image 936
mcknight Avatar asked Oct 22 '12 13:10

mcknight


2 Answers

Have a look at:

http://www.1stwebdesigner.com/css/top-jquery-chart-libraries-interactive-charts/

http://codecanyon.net/item/graphup-jquery-plugin/108025?ref=1stwebdesigner

These are solutions that are very good for these kinds of tables

like image 180
Michael Meier Avatar answered Oct 18 '22 09:10

Michael Meier


I would recommend dataTables, you can feed in a javascript array. Click here

like image 40
Andy Avatar answered Oct 18 '22 10:10

Andy