Added a close button to the legend to close pie chart

@cschroed-usgs Merge this *after* merging NAWQAAN-312 since this pull request had to include that branch in here. 
I wonder if removing the div that the chart belongs to overrides anything the shutdown method may have been doing anyway. I was actually looking for an API doc exactly like this last night. Im not sure why I didn't see it!