PlotSet LogoPlotSet

How to Create a Pie Chart

A step by step walkthrough for turning a spreadsheet into a published pie chart in PlotSet, from shaping the sheet and rolling up the long tail to exporting or embedding the finished chart.

Cerca de 6 minutos

Swap in your own numbers instead of the sample data the template loads with, and here's how to create a pie chart in PlotSet from a label column, a value column, and a total the slices actually add up to. You will upload the sheet, roll any long tail of small categories into a named group, order the slices so the biggest lands first, and publish something you can embed or hand off as an image.

With a clean two column sheet of five or six categories, this takes about six minutes end to end. Add a few more if your source is a wider report you need to trim down first, or if you are deciding what to do with a dozen tiny categories that do not deserve their own slice.

Os dados que você precisa

Two columns, one row per category: the label first, the number second. The numbers should sum to one meaningful total, and there should be no more than six or seven rows by the time you upload.

CSV de exemplo
ServiceMonthly Spend ($)
Compute4200
Storage1350
Database980
Networking610
Support340
Anotações

The value column needs to be a plain number, not a pre-formatted percentage string like "38%". PlotSet calculates the percentage from the raw values, so let it do that math.

If your source report has fifteen or twenty rows, decide the cutoff in the spreadsheet first. Sum everything below it into one row labelled "Other" rather than uploading all of it and grouping later.

One header row only. A totals row at the bottom gets read as its own slice, usually the largest one, and it will swallow the rest of the circle.

Negative numbers and zeros do not have a sensible angle in a pie. Filter zero rows out and rethink the chart type if any value is negative.

Os passos

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

  1. 01

    Choose the Pie Chart template

    From the PlotSet dashboard, start a new project and choose the Pie Chart template. It loads with sample data already bound to it, so you can see the two column shape it expects before you bring in your own file.

    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

    Shape your sheet into a label and a value column

    Put the category name in the first column and its number in the second, one row per category. If the source is a pivot table or a finance export, strip out subtotal rows before you get near PlotSet.

  3. 03

    Roll the long tail into Other, before uploading

    If you are looking at more than six or seven categories, sum the smallest ones into a single row labelled "Other" in the spreadsheet itself. Doing this before upload keeps your source file honest about what the chart is actually showing.

  4. 04

    Upload your file or connect a sheet

    Use the data panel to import a CSV or .xlsx file, paste rows straight from a spreadsheet, or connect a Google Sheet if the underlying numbers change on a schedule and you want the chart to pick that up.

    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.
  5. 05

    Map the label and value columns

    Confirm which column feeds the slice labels and which feeds the angles. PlotSet usually gets this right when your headers are clear, but check it manually if the sheet has extra columns it might have guessed at.

    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.
  6. 06

    Sort the slices and turn on percentage labels

    Order slices largest to smallest starting at twelve o'clock, unless the categories carry their own order (age bands, survey scale). Then switch on percentage labels for every slice: angles alone are not precise enough for a reader to compare, the numbers are.

  7. 07

    Set a colour per slice and drop the legend if you can

    Give each slice its own distinct colour rather than shades of one hue, which read as ranked when they are not. With five slices or fewer, label each one directly on the chart and remove the legend entirely: it saves the reader a lookup.

    O editor do PlotSet na aba Preview: um gráfico do tipo Pie 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 Pie 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.
  8. 08

    Publish, embed or export the finished chart

    Publish for a live, interactive chart with hover tooltips and a shareable link, grab the embed code for a page, or export a PNG, SVG or PDF if you need a static image for a deck.

Comece pelo modelo de Pie 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 Pie Chart

Label slices directly, skip the legend under six categories

A legend forces the reader to look away from the circle, find a colour, then look back. Direct labels on or beside each slice remove that round trip entirely, and PlotSet fits them cleanly up to about five or six slices.

Start at twelve o'clock, go clockwise, biggest first

This is the reading convention people already know, so use it rather than fighting it. The moment the largest slice starts anywhere else, readers spend a second just orienting themselves before they get to the data.

Name the Other slice in the title or a caption

"Other" on its own tells the reader nothing about what got grouped. A short caption, "Other includes eleven regions under 2% each", turns a vague catch-all into an honest summary.

Keep the palette flat, no gradients or 3D shading

A gradient or a tilted 3D slice implies an extra dimension of meaning that is not there, and it distorts the angle a flat pie relies on to be read correctly. One flat colour per slice is the whole job.

Erros comuns ao fazer um Pie Chart

The slices do not add up to a sensible whole

This usually means a filter or a date range excluded some rows before upload, so the circle claims completeness it does not have. Check the raw row count in PlotSet's data table against your source sheet and reconcile the difference before publishing.

Colours jump around every time you resort

If colour is assigned by row position rather than by category name, resorting the slices reshuffles the palette too. Assign colours to the category labels themselves in the style panel, not to whatever sits in row three at the time.

Too many thin, unlabeled slivers around the edge

A raw export with twenty countries or product SKUs produces a dozen slices too thin to carry a label. Go back to the spreadsheet, not the chart settings, and collapse everything under your cutoff into one Other row.

Saiba mais sobre o Pie Chart

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

Sobre o Pie Chart

Pie Chart: perguntas frequentes

Two columns and one header row: a category label in the first column, one plain number per category in the second. CSV and .xlsx both work, and the numbers should be raw values, not pre-formatted percentages, since PlotSet calculates the share itself.

Crie seu Pie Chart agora

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