gizmobench

Bar Graph Maker

Paste a label and a value on each line and get a bar graph with every bar standing on a zero baseline, round axis steps and labels taken from your data. Bars keep the order you pasted them in, negative values hang below the line, and the largest bar is picked out in the first palette colour. Download the graph as a PNG at 1200×800, 1080×1080 or 1920×1080 pixels or as an editable SVG, with nothing uploaded and no account.

Bar chart1200×800 · document or slide

Bar chart. No data yet.

Type
Size
Palette

Paste data on the left to draw a chart.

One row per line, the label first, then a comma, a tab or two spaces, then the number. A first line whose second field is not a number is read as a header and used to title the axes. Scatter plots take x, y on each line; box plots take one column of numbers, or a label followed by that series' values. The chart, the title, the size and the palette are remembered in this browser only.

Accuracy. Every mark is drawn from the numbers you paste; nothing is smoothed or estimated. Box plots use the median-of-halves quartile method and the 1.5 IQR outlier rule, both stated on the chart.

Common questions

Does the axis always start at zero?
Yes, for a bar graph it does. A bar's length is the whole message, and an axis that starts above zero makes a small difference look like a large one, so the value axis always includes zero and the bars stand on it. The other end is the next round tick above your largest value, in steps of 1, 2 or 5 times a power of ten, so 0 to 97 is marked 0, 20, 40, 60, 80, 100. If your data really needs a narrower range, the line graph follows the data's own range instead.
Can I plot negative values?
Yes. A negative bar starts at the zero line and hangs below it, drawn to the same scale as the positive bars, and the axis extends to the next round tick below your lowest value. The zero line is drawn across the plot so the two directions are easy to tell apart. A pie chart cannot take negatives, but a bar graph is built for them.
Why is one bar a different colour?
The bar with the largest absolute value takes the first colour of the palette and the rest take the second, which draws the eye to the biggest number without a legend. Switch Palette to Safe for colours that stay distinct under colour blindness. Every bar is drawn from the numbers alone; nothing is sorted, so the order across the graph is the order of your lines.
What happens to long labels?
Each bar has a slot beneath it, and a label longer than that slot is shortened with an ellipsis so it never runs into its neighbour or off the edge of the image. When the bars are too thin for a readable label, only every second, third or later label is printed, and each printed one takes the width of the slots it stands for. Wider sizes give more room: 1920×1080 fits longer labels than 1080×1080 with the same number of bars, and fewer bars per graph leave more room for each. The text description under the chart lists the first thirty labels in full and then how many more there are.
How many bars can a bar graph have?
There is no fixed limit. The bars share the plot width equally, so with dozens of bars each becomes thin and its label short. Around twenty bars still read well at 1920×1080; beyond that, consider splitting the data or using the widest size. Every bar is drawn whatever the count.

Every mark is drawn from the numbers you paste; nothing is smoothed or estimated. Box plots use the median-of-halves quartile method and the 1.5 IQR outlier rule, both stated on the chart.