Add tooltip to stacked bar graph and refactored code so both line and stacked bar graph only use one div for the tooltip