added dynamic bars to bar chart and energy tracking