Fixing issue #4

Fixing issue #4 - allowing bar charts to be dynamically updated.