18 lines
585 B
JavaScript
18 lines
585 B
JavaScript
var dataset = new recline.Model.Dataset({
|
|
url: 'http://data.london.gov.uk/datafiles/transport/tfl_passengers.csv',
|
|
// optional rows parameter specifies how many rows to retrieve - default is a 1000
|
|
// rows: 5000
|
|
backend: 'dataproxy'
|
|
});
|
|
|
|
// async again as we fetch via AJAX behind the scenes
|
|
// once data is fetched it will be stored in a local MemoryStore so further querying will not involve the DataProxy
|
|
dataset.fetch();
|
|
|
|
// For demonstrations purposes display the data in a grid
|
|
var grid = new recline.View.Grid({
|
|
model: dataset
|
|
});
|
|
$('#my-dataproxy').append(grid.el);
|
|
|