m1=model().calc().called('a').does(x=>x.a+x.b).end()// replaces column a with value of a + b
m2=model().sort().inc('a').end()// sorts on increasing a
d1=[{a:1,b:2},{a:2,b:-2}]
m2.data(m1.data(d1))
m1.add(m2).data(d1)// apply m1, then apply m2 to the result
m3=m2.add(m1)// make a new model, which is m2 followed by m1
m3.data(d1)
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.