Skip to content

Some useful recipes

JavaScript recipes

Simple key/value JSON to table (linewise)

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

Simple key/value JSON to table (columnwise)

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

Read CSV, display content and write it to file

See csv-read-write-js.xprjson

Plotly

x-axis with time

Read xlsx file from URL and convert it to JSON