Looking for system to create bar chart from dictionary have around 150 lines to put in charts.

{'test.com': Decimal('40'), 'cmi.com': Decimal('70'), 'dublin.ie': Decimal('5'), 'sfss.edu': Decimal('35'), 'computer.ie': Decimal('10')}

What have been doing is put for loop and making it image width but not working as dynamically as want it. 

```
print "<img src='line.png' width='%d'>" % email[1]

```

Any help would be great.