mastodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance, open to everyone, but mainly English and French speaking.

Administered by:

Server stats:

758
active users

#graph

2 posts2 participants1 post today

I want to use the unicode (partial) block symbols (strangeweb.page/@jochie/115118) to draw graphs:

chars = [' ','▏','▎','▍','▌','▋','▊','▉','█']

The idea is that I can "scale” the horizontal bars (7/8, 6/8, 5/8, …) if/when at least one of the values gets a bit high, like this:

1️⃣ 0
2️⃣ 0
3️⃣ ▉▉▉▉▉▉▉▌ 12
4️⃣ ▉▉▉▉▉▉▉▉▏ 13
5️⃣ ▉▉ 3
6️⃣ 0

In my editor/client it’s fine, but some fonts show
U+258C “▌” as taller than the others, which is a bit annoying!

Any suggestions/alternatives?