Skip to content

Instantly share code, notes, and snippets.

@fkostadinov
Created June 12, 2014 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fkostadinov/e53988824502e7b1b8e3 to your computer and use it in GitHub Desktop.
Save fkostadinov/e53988824502e7b1b8e3 to your computer and use it in GitHub Desktop.
Foo data

README is empty

one two three four
10 20 30 40
11 21 31 41
{
"name": "Foo data",
"state": "active",
"created": "2014-06-12T08:38:36.166Z",
"sources": [
{}
],
"profiles": {
"dataexplorer": "0.9"
},
"scripts": [
{
"id": "main.js",
"path": "main.js"
}
],
"views": [
{
"id": "grid",
"label": "Grid",
"type": "SlickGrid",
"state": {
"gridOptions": {
"editable": true,
"enabledAddRow": true,
"enabledDelRow": true,
"enableReOrderRow": true,
"autoEdit": false,
"enableCellNavigation": true
}
}
},
{
"id": "graph",
"label": "Graph",
"type": "Graph"
},
{
"id": "map",
"label": "Map",
"type": "Map"
}
],
"id": "dataexplorer-920779",
"resources": [
{
"backend": "csv",
"path": "current.csv",
"schema": {
"fields": [
{
"id": "one",
"label": "one",
"type": "string",
"format": null,
"is_derived": false
},
{
"id": "two",
"label": "two",
"type": "string",
"format": null,
"is_derived": false
},
{
"id": "three",
"label": "three",
"type": "string",
"format": null,
"is_derived": false
},
{
"id": "four",
"label": "four",
"type": "string",
"format": null,
"is_derived": false
}
]
}
},
{
"backend": "csv",
"path": "original.csv",
"id": "undefined-original",
"schema": {
"fields": [
{
"id": "one",
"label": "one",
"type": "string",
"format": null,
"is_derived": false
},
{
"id": "two",
"label": "two",
"type": "string",
"format": null,
"is_derived": false
},
{
"id": "three",
"label": "three",
"type": "string",
"format": null,
"is_derived": false
},
{
"id": "four",
"label": "four",
"type": "string",
"format": null,
"is_derived": false
}
]
}
}
]
}
loadDataset("current", function (error, dataset) {
// error will be null unless there is an error
// dataset is a Recline memory store (http://reclinejs.com//docs/src/backend.memory.html).
console.log(dataset);
});
10 20 30 40
11 21 31 41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment