initial bar-chart version