drawing bar charts of success/failure