Chart maker: CSV to bar, line and pie chart

Paste a table or CSV and get a bar, line, pie or donut chart you can copy as SVG or save as PNG.

loading Chart maker: CSV to bar, line and pie chart
About this tool

What is a chart maker?

A chart maker turns a small table into a picture you can drop into a slide, a report or a README. This one reads a CSV or cells pasted from a spreadsheet, and draws bars, horizontal bars, stacked bars, lines, a pie or a donut. You then copy the chart as SVG or save it as a PNG.

The rule for the table is simple. The first column holds the labels (months, products, countries). Every other column that contains numbers becomes a series. A column that is not numeric is left out, and the tool tells you which one. Numbers can be written the way people write them: 1,234.5, 1.234,5, 12%, $5, R$ 7,50 and (3) for a negative are all understood. An empty cell counts as zero.

The result is a plain, self-contained SVG: explicit colors and text, no scripts, and a title and description for screen readers. It looks the same wherever you open it. The colors come from a palette checked for people with color vision differences, with a light and a dark theme. You can show values on the chart, switch the grid and the legend, and pick a ready-made size from 600 × 400 to 1920 × 1080, including 1200 × 630 for link previews and 1080 × 1080 for a square post. The chart is drawn in your browser, and the table is never uploaded.

A pie shows one series, the first one, and the tool warns you when there were more. That is a property of the chart type, not a bug: slices are parts of a single total.

How to make a chart from a table

  1. Paste the table. The first row is the header, the first column the labels, the other columns numbers. Press the example if you want a template.
  2. Choose the chart type: bars, horizontal bars, stacked bars, lines, pie or donut.
  3. Write a title if you want one. It also becomes the accessible name of the image.
  4. Choose a light or dark theme and a size. Use a wider size for a slide and a square one for social media.
  5. Switch on "show values" to print the numbers, and adjust the grid and legend.
  6. Read any warning under the chart, such as a skipped text column or colors that repeat.
  7. Copy the SVG or save the PNG. If the PNG is too heavy for your page, shrink it with the image compressor. To tidy the table first, use CSV tools.

Examples

Online and store sales by month

Input:

Month,Online,Store
Jan,120,80
Feb,150,95
Mar,170,110
Apr,140,130
May,190,125
Jun,230,140

With "bars" you get a pair of bars per month, two series with two colors and a legend. The vertical axis runs from 0 to 250 in steps of 50, because the largest value is 230 and the tool picks round limits that contain the data. With "stacked bars", Jan becomes one bar of height 200 (120 plus 80). With "lines", the two series become two lines with a dot per month.

Numbers as people write them

Input:

Item,Price
A,"1,234.5"
B,12%
C,"R$ 7,50"
D,(3)

The tool reads 1,234.5 as 1234.5, 12% as 12, R$ 7,50 as 7.5 and (3) as -3. A negative value is drawn below the zero line in bar and line charts. In a pie it is left out, with a warning.

A column that is text

Input:

Month,Sales,Region,Cost
Jan,10,N,4
Feb,20,S,5

The labels are Jan and Feb, the series are Sales and Cost, and Region is skipped: "Column Region is not numeric and was left out." Put the labels in the first column and numbers in the others to avoid surprises.

Common mistakes

  • Expecting a pie with several series. A pie shows the first series only. For several series use stacked bars or lines.
  • Negative values in a pie. A slice cannot be negative, so those values are left out. A pie also needs at least one value above zero.
  • Too many series. There are only so many distinct colors. When there are more series than colors, the colors repeat and the tool warns you. Fewer series read better.
  • A legend that gets cut. On a small size a long legend does not fit. Choose a taller size.
  • Labels in the wrong column. If none of the columns after the first holds numbers, the tool asks you to move the labels to the first column.
  • Using a pie for trends. Time moves along a line or bars. A pie suits shares of one total.

Frequently asked questions

Is my data sent to a server?

No. The chart is drawn as SVG in your browser, and the PNG is made from that SVG on your device.

Are the colors safe for color-blind readers?

The palette was chosen and checked for color vision differences, so neighboring series stay distinguishable. It is also wise to show values, so the chart does not depend on color alone.

When should I use SVG and when PNG?

SVG stays sharp at any size and can be edited, so it suits documents and web pages. PNG suits places that do not accept SVG, such as many chat and social apps.

How do I get the numbers into the tool?

Paste them from a spreadsheet, or convert a file first with Excel to JSON or CSV tools to clean it up.

Report a problem