Opinionated but flexible data visualization
Giving people every tool to build a dashboard is as bad as giving them none. How I think about which metrics a product should show, and which ones it should leave out.
A dashboard is read by people who can't open every case. A support manager looking at a chart of the queue won't read the 400 tickets behind it. A director comparing two engineering teams won't read their pull requests. They see a number and decide from it.
That makes the options a product gives those people a product decision, and a heavier one than it looks. Whatever a dashboard lets you sort, filter and compare by ends up shaping how the companies that use it work. If the product lets a manager rank engineers by lines committed, some manager will, and some team will start committing more lines.
Two ways to get it wrong
The first is to offer everything. Any field can be a measure, any column can be a grouping, and there are a dozen chart types to choose from. It looks generous. In practice the customer now needs an analyst, most of the possible charts answer nothing, and the product will happily draw the dangerous ones.
The second is to offer nothing. One fixed report, the same for every company. It's safe, and it fits nobody. The customer exports the data to a spreadsheet and builds the chart they wanted anyway, without any help from you.
Twelve thousand possible charts, or thirty that each answer a question
A builder where anything can be measured, grouped and drawn, next to a short list of measures and a few ways to cut them, one dot per chart.
Every option
40 fields × 25 groupings × 12 chart types
12,000
possible charts
A short list
6 measures × 5 cuts
30
charts, each with a question behind it
by team, project, priority, label or month
What I want is in between. A short list of measures we believe in, a few ways to cut them, freedom to choose goals and periods, and a way out for the data when someone needs something we don't offer.
Every metric you offer is a recommendation
A chart inside a product carries the product's authority. When a manager finds "pull requests per person" in a menu, the menu is telling them it's a reasonable way to compare people. Nobody reads it as "this exists because a customer asked for it once".
So the menu is where a product's opinion lives. If we think a metric is a bad way to compare performance, offering it as a filter or a sort order contradicts us every day, without anyone saying a word.
The usual suspects are pull requests opened, lines committed and, lately, tokens spent. Ranking engineers by how many tokens they burned is a bit pathetic, honestly. All three count activity, and all three are easy to inflate.
The best-known wording of Goodhart's law is Marilyn Strathern's. "When a measure becomes a target, it ceases to be a good measure." The number of pull requests someone opens says little by itself. Put it on a ranking and it says even less, because now people are working on the number.
Pull requests went up. Delivery didn't.
A fictional team, with both lines set to 100 in week 1. From week 7 the team is ranked by pull requests opened.
A goal that's easy to game hurts twice. It hurts the customer, who keeps deciding things based on a number that stopped meaning anything. And it hurts the product. People split their work into smaller pull requests, open tickets they close a minute later, move cards to done a day early. That's the data the product runs on. Once it fills with noise, every other chart gets worse too, and the customer concludes the product isn't that useful. They're half right.
How to decide what gets in
I ask three questions before a metric goes into a product.
- Does it describe the work, or rank the person? Cycle time describes how work flows. Pull requests per person ranks people, and it rarely tells you why one number is higher than another.
- Can it go up without the work getting better? If someone can move the number by changing how they log their work, it will move.
- Does a change in it say what to do? If the time waiting for review doubles, you know where to look. If lines committed doubles, you know nothing.
A metric that fails all three stays out. One that fails only the second can come in, as long as it never shows up alone. Andy Grove made this point in High Output Management. He paired indicators, so that a measure of quantity always comes with a measure of quality. First response time in support is a good example. An automatic "we got your message" makes it look great. Next to resolution time, it can't fool anyone.
Three questions before a metric gets in
Six metrics through the same test. A filled dot is a yes.
| Metric | Describes the work | Hard to game | Says what to do | Verdict |
|---|---|---|---|---|
| Time waiting for reviewIn | Yes | Yes | Yes | In |
| Cycle timeIn | Yes | Yes | Yes | In |
| First response timeshown next to resolution timeIn, paired | Yes | No | Yes | In, paired |
| Pull requests per personOut | No | No | No | Out |
| Lines committed per personOut | No | No | No | Out |
| Tokens spent per personOut | No | No | No | Out |
Look for the bottleneck, not the culprit
The metrics I like best describe the system a team works in. They ask where work waits, not who's slow.
The same week, asked two ways
A fictional team's last 40 issues, counted by person, and then by the days an issue spends in each stage, on average.
Who is slowest?
Issues closed per person
"Why is Eva so slow?"
Where does work wait?
Days in each stage
"How do we review sooner?"
Both views come from the same week. The ranking points at people, and the conversation it starts is defensive. The breakdown points at the review queue, and the conversation it starts is about how the team reviews. Only the second one makes next week better.
When the charts in a product keep asking the second kind of question, people notice. The product stops looking like a tool for watching them and starts looking like it has an opinion about how good work happens. People trust a product like that with their real data, and that's the data every chart depends on.
How it's shown is part of the opinion
The person reading a dashboard can't see the context, so the screen has to bring it. These are the rules I try to follow.
- Every number says what it counts. Cycle time comes with "from started to done, median of the last four weeks".
- Every number has something to compare with, a goal or last month or both.
- Every number opens to the cases behind it. If a chart says 14 tickets waited more than a day, one click shows those 14 tickets.
- The default view is the one we'd recommend, because most people never change it.
- Charts start from the team. Going deeper leads to the work, not to a ranking of people.
Flexible where it's safe
Opinionated doesn't mean rigid. People should be able to choose the period, the team, the project and their own goals. They shouldn't be able to turn any column into a leaderboard.
Linear Insights is a good example of the balance. Its measures are a short list, all about issues moving through the work: issue count, effort, cycle time, triage time, lead time and issue age. Whatever else a team wants to count can leave the product, as a CSV, to Google Sheets, or to a data warehouse through Fivetran or Airbyte.
The opinion lives in the screens everyone opens. The flexibility lives at the edges, where whoever needs something different can take the data and own the analysis.
What it changed in our products
Two of our products have data visualization now, Kyria and LID, and these decisions shaped both.
Kyria is where support teams handle their customers' requests. Its dashboards describe the operation as a whole: volume, response times, tickets by priority. They're there to show where requests pile up and how long they wait, so a support lead can fix the queue instead of chasing a person.
LID is a CRM, and sales is the one area where a number per person is part of the job. Salespeople have quotas, and pretending otherwise would be naive. What we decided is that every metric and every dashboard in LID is tied to a goal. A number without a goal is a number nobody knows what to do with.
That's also where Goodhart's law bites hardest. If the goal is calls made, you get calls. So the goals have to be the ones that matter in the customer's business, like revenue closed or deals won. Activity, meaning calls, meetings and proposals, works better as the road to those goals than as a goal of its own.
Every number on the board starts from the goal
A fictional sales team on day 21 of 30. Meetings, proposals and deals show up as the road to the goal, with targets that come from it.
Goal · November
Close R$ 500k in new deals
Day 21 of 30
R$ 327k
closed of R$ 500k
R$ 23k behind pace
What feeds the goal
Where each one should be by day 21
Sometimes the answer is no
Some requests deserve a no, even knowing the customer will be unhappy for a while.
Saying no well takes more than refusing. Ask what decision they're trying to make. Usually it's something like "I think the team is slow" or "I don't know who needs help". There's almost always a better metric for that question, and if there isn't, the request deserves to be taken seriously. If they still want the other number, the data is theirs to export.
Pleasing a customer today can cost them a year of decisions made on a bad number. A product with an opinion it can explain does more for them than one that does whatever it's asked.
Every metric a product offers is a recommendation. Offer only the ones you would defend.