Public
Edited
Jan 16, 2023
Insert cell
# Web Archives User Tasks of Journalists
Insert cell
raw_data = FileAttachment("user_tasks2.csv").csv({typed: true})
Insert cell
dat = aq.from(raw_data)
Insert cell
vl.markBar()
.data(dat)
.encode(
vl.x().fieldQ("count"),
vl.y().fieldN("task").sort(vl.fieldQ('count').order('descending')).axis({titleAngle:0, titleAnchor:"start", titleAlign:"center", titlePadding:20, titleX:-20, labelFontSize:12}),
vl.row().fieldN("goal").sort(["View unavailable page","View change over time","Investigate misinformation/hacking","Other"]).header({labelAngle:0, title:null, labelAnchor:"start", labelOrient:"top", labelPadding:-20, labelFontStyle:"bold", labelFontSize:14, labelExpr:"replace(datum.value, /^(.)/, 'Goal: $1')"}),
vl.color().fieldN("goal").legend(null)
)
.resolve( {
"scale": {"y": "independent"}
})
.title({text:"Web Archives User Tasks of Journalists",fontSize:20, subtitle:" "})
.render()
Insert cell
import { aq, op } from '@uwdata/arquero'
Insert cell
import { vl } from "@vega/vega-lite-api-v5"
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more