modularised bar chart