added function to select a div to place each chart in