PlotSet LogoPlotSet

How to Create a Calendar Heatmap

A step by step walkthrough for turning a sheet of dates and daily values into a published calendar heatmap in PlotSet, with one shaded square for every day.

Unos 6 minutos

One square for each day, laid out in calendar weeks and shaded by how much happened: that is what you will have. Busy weekdays, quiet weekends, seasonal swells and long gaps all show up at a glance.

Expect about six minutes. The template needs just two columns, so most of the time goes on choosing a colour theme and checking the scale.

Los datos que necesitas

One row per day with two columns: a date, and the number for that day.

CSV de ejemplo
DateCommits
2024-01-018
2024-01-026
2024-01-039
2024-01-046
2024-01-0512
Notas

Use one row per day. Days you leave out are drawn in the no-data colour.

ISO dates, such as 2024-01-05, are the safest. Anything the platform's date parser accepts will work.

The grid spans every year present in your data, with one band per year.

A day with a value of zero is not the same as a missing day. Keep zeros if they are real readings.

Los pasos

El camino exacto en PlotSet, desde una plantilla en blanco hasta el gráfico terminado.

  1. 01

    Open the Calendar Heatmap template

    From the PlotSet dashboard, start a new project and choose Calendar Heatmap from the Heatmaps category. It loads with two years of sample commits so you can see the layout straight away.

    El selector de plantillas de PlotSet: las categorías de gráficos en la columna izquierda, la cuadrícula Bar Charts abierta y la tarjeta de la plantilla Bar Chart con su botón Select visible.
    Todas las guías empiezan aquí. Elige la categoría y luego la plantilla. Es la misma cuadrícula sea cual sea el tipo de gráfico que busques.
  2. 02

    Prepare your daily data

    Put the date in the first column and the number in the second, one row per day. Remove any blank or text rows from the number column.

  3. 03

    Upload the file, or connect it live

    Import a CSV or .xlsx file from the data panel, paste rows from a spreadsheet, or connect a Google Sheet so the chart can follow your updates. The first row is read as the headers.

    La vista de datos del editor de PlotSet: una hoja de cálculo con las columnas Name, Value y Region llenas de cifras de provincias canadienses, junto al panel Data, que ofrece subida de CSV, Magic Import y sincronización con Google Sheet.
    La vista de datos, aquí en un proyecto de gráfico de barras. Sube un CSV, saca los números de una imagen con Magic Import o sincroniza una Google Sheet. El panel es el mismo en todos los tipos de gráfico.
  4. 04

    Check the column bindings

    Confirm that the date column is bound to dates and the other column to values. This is usually right automatically when the headers are clear.

    El panel de datos de PlotSet con las asignaciones de columnas resaltadas: Label/time apuntando a la columna A, Values a la columna B y Filter/color a la columna C, con el botón Auto Binding debajo.
    Las asignaciones deciden qué columna se convierte en la etiqueta, cuál aporta los valores y cuál define el color. Auto Binding las deduce de tus encabezados, así que revísalas en lugar de darlas por buenas.
  5. 05

    Choose a colour theme

    In the Color tab pick a theme for the scale, and set the colour for days with no data. Keep the no-data colour clearly different from the palest shade of the scale.

    El editor de PlotSet en la pestaña Preview: un gráfico de tipo Calendar Heatmap ya terminado en el lienzo y, a la derecha, el panel de ajustes rodeado por un recuadro rojo.
    La pestaña Preview de un gráfico de tipo Calendar Heatmap. Todos los controles de estilo están en el panel enmarcado: apariencia, encabezado, pie de página y las opciones propias de este tipo de gráfico, cada grupo en su propia pestaña.
  6. 06

    Tune the cells and labels

    In the Cells tab set the square size, corner radius and gap. In the Labels tab show or hide the month, weekday and year labels.

  7. 07

    Set the colour scale

    Leave the Scale tab on automatic, or enter a minimum and maximum so a single extreme day does not wash out the rest.

  8. 08

    Add the legend, title and source

    Style the legend ramp, then use the Header and Footer tabs for a title, a subtitle and a source line.

  9. 09

    Publish or export

    Publish for a live chart and copy the embed code from the Share dialog, or use Export for a PNG or SVG.

    La barra de herramientas del editor de PlotSet con el botón Share resaltado, justo al lado del botón Export.
    Share es lo que convierte un gráfico terminado en un enlace público y un código de incrustación.

Empieza con la plantilla de Calendar Heatmap, que ya trae datos de ejemplo cargados, y sustitúyelos por los tuyos.

Abrir la plantilla

Publícalo, incrústalo o expórtalo

El último tramo es igual en todos los tipos de gráfico: Share convierte el gráfico en un enlace público en vivo y un código de incrustación, y Export lo guarda como un archivo estático.

Share: enlace público y código de incrustación

Al activar el código de incrustación y el enlace público, el gráfico queda publicado. El enlace se lo puedes enviar a cualquiera sin problema, y el código de incrustación se coloca en cualquier página como un iframe que conserva los tooltips al pasar el cursor y toda la interactividad. Si editas el gráfico más adelante, haz clic en Recreate para llevar esos cambios a ambos.

La barra de herramientas del editor de PlotSet con el botón Share resaltado, justo al lado del botón Export.
Share es lo que convierte un gráfico terminado en un enlace público y un código de incrustación.
El diálogo Share de PlotSet: el interruptor que activa el código de incrustación y el enlace público, los botones Link, Embed, Facebook, Reddit, Twitter, LinkedIn y Email, y el enlace público del gráfico con un botón Copy.
Activa el código de incrustación y el enlace público, y después copia el enlace o llévate el iframe. Recreate envía las ediciones posteriores a todos los que ya lo tengan.

Export: SVG, PNG o JPG

Export guarda una copia estática en el tamaño que necesites. El SVG se mantiene nítido a cualquier escala y se puede seguir editando en una herramienta de diseño; PNG y JPG son la opción segura para diapositivas y documentos. El multiplicador de escala es lo que te da una imagen nítida en una pantalla retina.

La barra de herramientas del editor de PlotSet con el botón Export resaltado.
Export es el camino hacia un archivo estático para una diapositiva o un informe.
El diálogo Export chart de PlotSet: un selector de escala en 2x, los campos de ancho y alto fijados en 1000 por 600, y el menú de formato abierto con SVG, PNG y JPG.
El SVG se mantiene nítido a cualquier tamaño y se puede seguir editando en una herramienta de diseño; PNG y JPG son la apuesta segura para una presentación. Ajusta la escala antes de exportar para que la imagen se vea nítida en una pantalla retina.

Consejos de estilo para un Calendar Heatmap

Start with a single year

One year gives the largest squares and the clearest reading of the weekly rhythm.

Cap the scale

If one day dwarfs the rest, set a custom maximum and say so in the footer.

Keep real zeros

A quiet day is a fact. Only leave a day out when you truly have no reading.

Use the tooltip

Hovering a square shows its date and value, so you do not need to print numbers on every cell.

Errores comunes al hacer un Calendar Heatmap

The grid is empty

Dates probably failed to parse. Use ISO dates and check the date column is bound correctly.

Everything looks the same shade

An outlier is stretching the scale. Set a custom maximum in the Scale tab.

The squares are tiny

Too many years are crowding the grid. Trim the data to the span you need.

Missing days look like low days

Make the no-data colour clearly different from the low end of the scale.

Aprende más sobre el Calendar Heatmap

¿No estás seguro de que el Calendar Heatmap sea la opción correcta? Descubre qué es, cuándo usarlo y cuándo no.

Sobre el Calendar Heatmap

Calendar Heatmap: preguntas frecuentes

A date column and a numeric value column, with one row per day.

Crea tu Calendar Heatmap ahora

Gratis para empezar con más de 300 plantillas. No se necesita tarjeta de crédito.