Morse Code Bar Graph

I worked through the whole alphabet just for fun after adding the MorseTeacher plugin to the ninth floor in the start.fed.wiki game. The last letter, e, floated around in a second row bumping into whatever letter was tallest in the top row. It still worked, but looked very broken.

q --.- 1 7 --... 1 z --.. 2 g --. 1 0 ----- 2 9 ----. 1 8 ---.. 1 o --- 2 1 .---- 2 j .--- 5 p .--. 1 w .-- 2 l .-.. 1 r .-. 1 a .- 2 m -- 2 6 -.... 3 b -... 22 x -..- 1 d -.. 2 y -.-- 2 c -.-. 1 k -.- 2 n -. 3 2 ..--- 2 3 ...-- 15 f ..-. 5 u ..- 4 4 ....- 2 5 ..... 12 v ...- 7 h .... 3 s ... 8 i .. 8 t - 10 e . 8

Let's do the math. How much room do we need?

26 Letters 10 Numbers SUM Alphabet

10 Bar Width 1 Bar Right Margin SUM Alphabet PRODUCT Graph Width

How much room do we have?

-15 Padding Each Side 2 Sides PRODUCT Padding

420 Item Width Padding SUM Available Space

What padding would let the graph fit?

Graph Width Available Space Padding CALC (Width + Padding - Available) / 2 SUM Padding Each Side