PlotSet LogoPlotSet

How to Create a Draw the Line Chart

A step by step walkthrough for building a line chart that asks readers to draw the rest of the trend, then reveals the real line with a score, in PlotSet.

Unos 7 minutos

A line chart that stops partway and lets the reader draw the rest is what you will have. When they submit, the real line is revealed and their guess is scored.

Expect about seven minutes. Most of it goes on choosing where the line stops and writing the feedback.

Los datos que necesitas

A first column for the x axis, such as years, then one column per line. Some columns are guessed by the reader, and others can stay fixed as context.

CSV de ejemplo
YearWind and solarCoal
20102.344.8
20113.042.1
20123.637.4
20134.338.9
20145.038.5
Notas

The x column can be text, numbers or dates, with one row per point.

Each guessed column becomes a line the reader has to draw. Fixed columns are always drawn in full.

At least one row must remain after the drawing point, or the chart becomes a plain finished line chart.

All lines share one vertical axis, so keep them on a similar scale.

Los pasos

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

  1. 01

    Open the Draw the Line template

    From the PlotSet dashboard, start a new project and choose Draw the Line Chart from the Line and Area category. It loads with a sample of US coal and wind and solar share.

    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

    Add your data

    Import a CSV or .xlsx file, paste rows from a spreadsheet, or connect a Google Sheet. Put the x values in the first column and one line per column after it.

    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.
  3. 03

    Check the column bindings

    Choose which columns the reader will guess and which stay fixed. The x axis column is the label.

    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.
  4. 04

    Set where drawing starts

    In the Drawing tab choose what share of each line is shown before the reader takes over. Pick a point that leaves the next move uncertain.

    El editor de PlotSet en la pestaña Preview: un gráfico de tipo Draw the Line Chart 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 Draw the Line Chart. 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.
  5. 05

    Choose how the reveal plays

    In the same tab, pick whether the real line wipes, fades or draws itself in, and whether guesses snap to steps.

  6. 06

    Write the prompt and the feedback

    The Prompt and Score messages tabs hold the instruction, the submit button text and four tiers of feedback, with a token for the size of the gap.

  7. 07

    Style the lines and axes

    Use the Color, Lines, X axis, Y axis and Legend tabs to set the look. The Y axis tab controls the baseline and headroom.

  8. 08

    Publish and embed

    Publish for a live chart and copy the embed code from the Share dialog. Play it through yourself once, including the reveal, before you share it.

    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 Draw the Line Chart, 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 Draw the Line Chart

Stop before the interesting part

Cut the visible line just before the turn, so the reader has a real decision to make.

Write feedback with a voice

Tailor the four score messages to your story rather than keeping the generic text.

Add a fixed context line

A second line that is always visible gives the reader something to reason from.

Keep keyboard mode on

It adds a slider per point, so readers without a mouse can still play.

Errores comunes al hacer un Draw the Line Chart

There is nothing to draw

The drawing point is at or near the end of the data. Lower the share of the line that is shown.

One line is squashed flat

The lines are on very different scales and share one axis. Set a custom axis range or use similar units.

The tooltip does not show the hidden values

This is by design. Values on the hidden stretch only appear after the reveal, so hovering cannot leak the answer.

The PNG shows the wrong stage

A static export captures whatever stage the chart is in. Reveal the line before you export.

Aprende más sobre el Draw the Line Chart

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

Sobre el Draw the Line Chart

Draw the Line Chart: preguntas frecuentes

Yes. Bind several columns as guessed lines, and the reader draws each in turn.

Crea tu Draw the Line Chart ahora

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