calcualting bar charts and calling canvas render
commit fix to color_by
fix to color_by