fix #1 for the barchart by moving the code that sets the color column
below the code that creates the visualizations.