Published
Edited
Oct 26, 2021
1 fork
Importers
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
ref_words = parser(ref)
Insert cell
refF = counter(word_indices, ref_words)
Insert cell
comp_words = parser(comp)
Insert cell
compF = counter(word_indices, comp_words)
Insert cell
word_indices = Object.fromEntries(words.map((d, i) => [d, i]))
Insert cell
lens = labMT.map(d => +d.happs)
Insert cell
words = labMT.map(d => d.word)
Insert cell
Insert cell
// import { labMT, shifterator, d3 } from "@andyreagan/d3-shifterator-v4"
import { labMT } from "@andyreagan/d3-shifterator-v4-preloaded"
Insert cell
import { wordshift }
with { lens as lens, words as words, refF as refF, compF as compF }
from "@andyreagan/d3-shifterator-v4"
Insert cell
import { parser, counter } from "@andyreagan/count-words"
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