-
Notifications
You must be signed in to change notification settings - Fork 1
Home
David Megginson edited this page Mar 9, 2019
·
1 revision
libhxl-js is a pure-JavaScript library for working with data hashtagged following the Humanitarian Exchange Language (HXL) standard. Its functionality is a subset of libhxl-python for use in browser-side implementations. The library supports the following operations:
- read data from a HXL-hashtagged data source
- perform aggregate operations on HXL data
- apply filters to HXL data (similar to SQL database commands)
Example:
hxl.load('http://example.org/dataset/csv', function (dataset) {
dataset.forEach(function (row, index) {
console.log("The value of #adm1 in this row is " + row.get('adm1'));
}
}