Published
Edited
Mar 9, 2021
Importers
Insert cell
Insert cell
Insert cell
Insert cell
function tableData (transitions, weeksAgo) {
const flows = transitions[transitions.length - weeksAgo]?.transitions
const prevFlows = transitions[transitions.length - weeksAgo - 1]?.transitions
const res = Object.keys(flows).map((flow, i) => {
const total = flows[flow]
const prevTotal = prevFlows[flow]
const growthRate = Math.round(((total - prevTotal) / prevTotal) * 100)
return {flow, total, prevTotal, growthRate }
})
return res
}
Insert cell
Insert cell
Insert cell
import {combinedStatesUrl, combinedTransitionsUrl} from "@protocol/pmf-endpoints-repo-based-experiment"
Insert cell
import { Table } from '@observablehq/inputs';
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