Loading external JSON data into a data table

edited December 2015 in Technical questions

Can someone give me an example of how to populate a data table from an external JSON file?

For example, I'd like to display a data table of Old Faithful eruptions:

http://public.opencpu.org/ocpu/library/datasets/data/faithful/json

I was hoping it would be as easy as:


   webix.ui({view:"datatable",
               columns: [
                   {id: "waiting", header:"Waiting", width: 80 },
                   {id: "eruptions", header:"Eruptions", width: 80 }
               ],
               url = "http://public.opencpu.org/ocpu/library/datasets/data/faithful/json",
               autowidth:true
     });

But nothing happens. Do I need to make an ajax request somehow?

Tagged:

Comments

Sign In or Register to comment.