Script and SVG used to count letters and draw a graph

Type some text into the entry field and click Update to see a bar graph representing the distribution of letters used in the text. Note that upper and lower case letters are treated the same. Move the mouse over a bar to see its numerical value.

      Distribution of letters in the text
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0

Enter some text below and then click Update to refresh the graph.