first functional version of the charts, only bar charts supported