Public
Edited
Aug 7, 2024
Insert cell
Insert cell
Plot.plot({
title: "BetterHelp remained affordable",
caption:
"BetterHelp's average revenue per user didn't significantly increase since they started reporting revenue and users. In fact, what increases there were largely happened before the November 2023 minimum price increase, and they started losing users well before either. Note that the ARPU stays below the minimum price due to a combination of within-quarter churn and BetterHelp's financial assistance programme.",
y: {
ticks: 7,
tickFormat: "$s",
grid: true,
label: "Average weekly revenue per user"
},
x: {
domain: [minDate, maxDate]
},
clip: true,
marks: [
Plot.ruleY([0]),
Plot.text(["Minimum price"], {
x: maxDate,
y: 65,
dy: -4,
fill: "black",
stroke: "white",
strokeWidth: 7,
textAnchor: "end",
lineAnchor: "bottom"
}),
Plot.line(prices, {
x: "Date",
y: "Minimum Price",
curve: "step-after",
strokeWidth: 1,
strokeDasharray: [4, 3]
}),
Plot.line(data, {
x: "Date",
y: "Average weekly revenue per user",
tip: true
}),
Plot.ruleX([new Date("2023-06-30")], {
strokeDasharray: [4, 3],
stroke: "#3a7a4b",
strokeWidth: 1,
tip: true
}),
Plot.text(["BetterHelp starts losing users"], {
x: new Date("2023-06-30"),
dx: -4,
y: 1,
fill: "#3a7a4b",
stroke: "white",
strokeWidth: 7,
rotate: -90,
textAnchor: "start",
lineAnchor: "bottom",
fontWeight: "bold"
})
]
})
Insert cell
Plot.line(wages, { x: "Date", y: "Wages", tip: true }).plot({
title: "Real wages over the same period were flat",
caption:
"It's unlikely that a decrease in U.S. median real wages really changed the affordability of BetterHelp; if anything, real wages increased.",
height: 256,
y: {
domain: [350, 400],
ticks: 3,
tickFormat: "$s",
grid: true,
label: "U.S. median real wage"
},
x: { domain: [minDate, new Date("2024-04-01")] },
clip: true
})
Insert cell
data = earnings.map(({ Date, Users, Revenue }) => ({
Date,
Users,
Revenue,
"Average weekly revenue per user": Revenue / Users / (52 / 4)
}))
Insert cell
minDate = d3.min(data, (d) => d["Date"])
Insert cell
maxDate = d3.max(data, (d) => d["Date"])
Insert cell
import { data as earnings } from "@huw/betterhelp-earnings"
Insert cell
import { data as prices } from "@huw/betterhelp-prices"
Insert cell
import { data as wages } from "@huw/us-real-wages"
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