Stumbled into this today over at squarebits, using MySQL to generate bar graphs:
mysql> select Name, REPEAT("#", Value/20.0+1) Graph FROM
Month;
+-----------+------------------------------------------------+
| Name | Graph
|
+-----------+------------------------------------------------+
| January | ####################
|
| February | ##############################################
|
| March | …