styled and completed basic div bar chart, extracted to standalone function