Public
Edited
Jan 16, 2023
Fork of B Movies
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
BMovies = FileAttachment("latest bmovies.txt.json").json()
// BMovies = FileAttachment("b-movies.json").json() // old DB
Insert cell
Insert cell
Insert cell
Insert cell
viewof what = Inputs.table(BMovies)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
taglines = _.compact(BMovies.map( tl => tl.tagline))
Insert cell
teGenres = _.uniq(_.flatten(BMovies.map(m=> m.genres.map( g => g.name))))
Insert cell
genreCount = _.countBy(_.flatten(BMovies.map(m=> m.genres.map( g => g.name))))
Insert cell
overview = BMovies.map( tl => tl.overview)
Insert cell
Insert cell
Insert cell
production_companies = _.uniq(_.flatten(BMovies.map(m=> m.production_companies.map( g => g.name))))
Insert cell
Insert cell
Insert cell
keys = _.keysIn(BMovies[0])
Insert cell
readableNumbers = d3.format(",.2r") // used to format the million dollar costs to make them readable numbers
Insert cell
Insert cell
Insert cell
import {Plot} from "@mkfreeman/plot-tooltip"
Insert cell
import {toc} from "@nebrius/indented-toc"
Insert cell
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