How does chocolate bars raise your heart rate?

there is sugar in chocolate and the more suger you take in the more oxygen ur body requires to pump blood round body andd it need s oxygen to have energy and energy is brecause of the chocolate .. the sugar in it ! (( im smart )))