modularise bar chart css