make bar graph template a separate file