implemented Stacked bar chart
adapted bar template for require.js