renamed barchart.py to barchart
fixed an improper raise.
refactored _size_for_line method to avoid param which was a local variable.