SVG images on detail pages have duplicate id attributes to the divs

We shouldn't have duplicate id attributes on elements in the DOM.

e.g.

<div id="bw_month" class="graph">

and

<svg height="342" width="550" xmlns="http://www.w3.org/2000/svg" version="1.1" id="bw_month">

Selecting Low priority for now, as this doesn't seem to be causing breakage, but it might be dangerous in browsers I haven't tested and this may need to be increased.