Skip to content

# Some useful recipes

## JavaScript recipes

### Simple key/value JSON to table (linewise)

    return [_.keys(dataNodes["vehicle"]), _.values(dataNodes["vehicle"])];

- See json-to-table-linewise-js.xprjson

### Simple key/value JSON to table (columnwise)

    return _.unzip([_.keys(dataNodes["vehicle"]), _.values(dataNodes["vehicle"])]);

- See json-to-table-columnwise-js.xprjson

### Read CSV, display content and write it to file

See csv-read-write-js.xprjson

### Plotly

#### x-axis with time

- See plotly-with-date-time-js.xprjson

### Read xlsx file from URL and convert it to JSON

- See xls-from-url-to-json-js.xprjson