Skip to content
Plotly templates

Cohort Retention Heatmap (Plotly)

Monthly logo retention by signup cohort as a triangular heatmap, showing each new cohort holding better than the last.

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    {
      "type": "heatmap",
      "z": [
        [100, 68, 54, 47, 43, 40],
        [100, 71, 58, 51, 47, null],
        [100, 74, 62, 55, null, null],
        [100, 77, 66, null, null, null],
        [100, 79, null, null, null, null],
        [100, null, null, null, null, null]
      ],
      "x": ["Month 0", "Month 1", "Month 2", "Month 3", "Month 4", "Month 5"],
      "y": ["Jan cohort", "Feb cohort", "Mar cohort", "Apr cohort", "May cohort", "Jun cohort"],
      "colorscale": "YlGnBu",
      "reversescale": true,
      "zmin": 0,
      "zmax": 100,
      "colorbar": {"title": "% retained"},
      "hoverongaps": false
    }
  ],
  "layout": {
    "title": "Logo retention by signup cohort (percent)",
    "yaxis": {"autorange": "reversed"},
    "xaxis": {"side": "top"}
  }
}