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.