Skip to content
en

Chart generator

Builds a bar chart from your numbers as text you can copy anywhere. Enter labels and values, choose the type and bar width.

Input

Data
Chart type
30

Result

Fill in the fields – the result will appear here.

Report a problem
This will be sent with your message:
Advertisement

What a text chart is made of

A data line

One line is one bar. The «Label» field holds the bar's name, the «Value» field holds the number: London and 120. «+ Add bar» gives a new line, «Remove» deletes it.

A line without a value is skipped. A line without a label gets one from its line number. A comma in a number is read as a decimal point.

Scale

Bars are drawn from the largest number: it takes the full width, the rest take their share of it. If you choose percent, the unit is not the largest number but the total of all of them – and next to each bar is its share of that total.

Width

The slider sets how many characters the longest bar takes: from 10 to 60. A narrow chart fits in a commit message, a wide one shows the gap between close numbers better.

What the generator does not do

It does not draw a picture. The result is text made of characters, so you can paste it into a file, a message or a README, and it looks the same anywhere the font is monospaced. It also does not handle negative numbers: a bar cannot be shorter than empty.

Common questions about the chart generator

How many lines can I add?

Up to twenty. Longer sets read badly as bars – a table suits them better.

Why do labels of different lengths stay aligned?

Label length is counted in characters, not bytes. A Cyrillic or accented letter takes two bytes, so if bytes were counted, every such label would push its bar to the right. A label longer than 24 characters is shortened and marked with an ellipsis.

What if all the numbers are the same?

All bars will be the same length – the full width. This is not an error: the scale comes from the largest value, and here it matches all the others.

And if all the numbers are zero?

The chart is built, but there are no bars – zero takes zero characters. In percent mode a zero total means there is nothing to take a share of, and the page will say so.

Can I paste data from a spreadsheet?

Not in one go: each bar goes on its own line – label and value separately. A ready set goes through the API: /api/chart?data= takes label: number lines and returns the same chart.

Online chart generator – a bar chart from text

Sometimes you do not need a picture, just to see what is bigger. Compare three cities, show a split in a commit, drop a summary into a message – and do it in a second, without a chart editor and without a file you then have to keep somewhere.

How to use it

Enter a label and a value – one line per bar, «+ Add bar» gives the next one. Choose the type: bars by value show how many times one is bigger than another, bars in percent show what share each takes of the total. Use the slider to pick the width.

The chart appears under the form right away. It is plain text: you can select it and copy.

Advertisement

Report a problem

This will be sent with your message: