Minor cleanup: pass div ids to draw for stacked graphs instead of grabbing them out of global namespace.