use svg helper function in BarChart
use svg helper function in rest of charts