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.

Cerca de 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.

Os dados que você precisa

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 exemplo
YearWind and solarCoal
20102.344.8
20113.042.1
20123.637.4
20134.338.9
20145.038.5
Anotações

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.

Os passos

O caminho exato no PlotSet, de um modelo em branco até o gráfico finalizado.

  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.

    O seletor de modelos do PlotSet: as categorias de gráficos listadas à esquerda, a grade Bar Charts aberta e o card do modelo Bar Chart mostrando o botão Select.
    Todo guia começa aqui. Escolha a categoria e depois o modelo: a grade é a mesma, seja qual for o tipo de gráfico que você quer.
  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.

    A visualização de dados do editor do PlotSet: uma planilha com as colunas Name, Value e Region preenchidas com números de províncias canadenses, ao lado do painel Data, que oferece envio de CSV, Magic Import e sincronização com o Google Sheet.
    A visualização de dados, aqui em um projeto de gráfico de barras. Envie um CSV, extraia os números de uma imagem com o Magic Import ou sincronize um Google Sheet. O painel é idêntico para todos os 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.

    O painel Data do PlotSet com os vínculos de colunas em destaque: Label/time apontando para a coluna A, Values para a coluna B e Filter/color para a coluna C, com o botão Auto Binding logo abaixo.
    Os vínculos definem qual coluna vira o rótulo, qual fornece os valores e qual comanda a cor. O Auto Binding tenta adivinhá-los a partir dos seus cabeçalhos, então confira o resultado em vez de dar como certo.
  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.

    O editor do PlotSet na aba Preview: um gráfico do tipo Draw the Line Chart já finalizado na área de edição e, na lateral direita, o painel de configurações contornado em vermelho.
    A aba Preview de um gráfico do tipo Draw the Line Chart. Todos os controles de estilo ficam no painel contornado em vermelho: aparência, cabeçalho, rodapé e as opções específicas desse tipo de gráfico. Cada grupo fica em sua própria aba.
  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.

    A barra de ferramentas do editor do PlotSet com o botão Share em destaque, ao lado do botão Export.
    É pelo Share que um gráfico finalizado vira um link público e um código de incorporação.

Comece pelo modelo de Draw the Line Chart com dados de exemplo já carregados, depois substitua-os pelos seus.

Abrir o modelo

Publique, incorpore ou exporte

A reta final é igual para todo tipo de gráfico: o Share transforma o gráfico em um link público interativo e em um código de incorporação; o Export gera um arquivo estático.

Share: link público e código de incorporação

Ativar o código de incorporação e o link público é o que publica o gráfico. O link pode ser enviado com segurança para qualquer pessoa, e o código de incorporação entra em qualquer página como um iframe que mantém a interatividade e os tooltips ao passar o mouse. Edite o gráfico depois e clique em Recreate para levar essas mudanças aos dois.

A barra de ferramentas do editor do PlotSet com o botão Share em destaque, ao lado do botão Export.
É pelo Share que um gráfico finalizado vira um link público e um código de incorporação.
A janela Share do PlotSet: a chave que ativa o código de incorporação e o link público, os botões Link, Embed, Facebook, Reddit, Twitter, LinkedIn e Email, e o link público do gráfico com um botão Copy.
Ative o código de incorporação e o link público, depois copie o link ou pegue o iframe. O Recreate leva as edições seguintes a todo mundo que já tem o link.

Export: SVG, PNG ou JPG

O Export grava uma cópia estática no tamanho que você precisar. O SVG continua nítido em qualquer escala e ainda pode ser editado em uma ferramenta de design; PNG e JPG são as escolhas seguras para slides e documentos. É o multiplicador de escala que garante uma imagem nítida em uma tela retina.

A barra de ferramentas do editor do PlotSet com o botão Export em destaque.
O Export é o caminho para gerar um arquivo estático para um slide ou um relatório.
A janela Export chart do PlotSet: um seletor de escala em 2x, campos de largura e altura definidos como 1000 por 600 e o menu de formatos aberto com SVG, PNG e JPG.
O SVG continua nítido em qualquer tamanho e editável em uma ferramenta de design; PNG e JPG são as escolhas seguras para uma apresentação. Defina a escala antes de exportar para que a imagem fique nítida em uma tela retina.

Dicas de estilo para um 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.

Erros comuns ao fazer um 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.

Saiba mais sobre o Draw the Line Chart

Não tem certeza se o Draw the Line Chart é a escolha certa? Veja o que é, quando usar e quando evitar.

Sobre o Draw the Line Chart

Draw the Line Chart: perguntas frequentes

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

Crie seu Draw the Line Chart agora

Grátis para começar com mais de 300 modelos. Sem cartão de crédito.