added the code from the grouped bar chart example

TODO: change it to fit our data