implementation of multidimensional bar chart