bar chart1 - done
brush - done
code cleanup and modularization