svg based bar chart with encoded color