Published
Edited
Jul 15, 2020
Fork of Table
Importers
Insert cell
Insert cell
table([
{first_name: 'John', last_name: 'Doe'},
{first_name: 'Martin', last_name: 'Smith'}
])
Insert cell
Insert cell
table(
fetch(json_url).then(d => d.json())
)
Insert cell
Insert cell
viewof data = table(
fetch(json_url).then(d => d.json())
)
Insert cell
data
Insert cell
Insert cell
table(
fetch(json_url).then(d => d.json()),
{
nully: () => '<span style="color: red">No data</span>',
limit: 500,
enableFilter: false,
enableCSVDownload: true,
columns: [{
key: 'key',
name: 'Station ID',
sortBy: (a, b, key, order) => 0,
render: val => `<a href="https://google.com/?q=${val}" target="_blank">${val}</a>`
},
'last1hrf',
'rainfall',
'rainfallmsg',
{
key: 'rfstationstatus',
name: 'RF Status'
}]
}
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
defaultSort = (a, b, key, order) => a[key] > b[key] ? order : b[key] > a[key] ? -order : 0
Insert cell
Insert cell
CSV = require('json2csv@4.0.0').then(a => a.parse)
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more