switch to using div for outer graph element