I am drawing a bubble chart using Google Visualization and would like to add a line to the chart after it is rendered by Google. I can see the circle elements that make up the chart and address them via jQuery (for instance, to change a circle's color) and am trying to add a line element as a sibling to the circles.
After I execute
$('svg').find('circle:first').attr('fill', 'blue');
$('svg').find('circle:first').after(
"<line x1='153' y1='383' x2='381' y2='236' stroke='black' stroke-width='2'></line>"
);
The first circle turns blue, but no line appears. I can inspect the DOM and see:
<circle cx="153.6111617460369" cy="383.625" r="30" stroke="#cccccc" stroke-width="1" fill-opacity="0.8" fill="blue"></circle>
<line x1="153" y1="383" x2="381" y2="236" stroke="black" stroke-width="2"></line>
<circle cx="381.7818593144754" cy="236.68327383367495" r="19" stroke="#cccccc" stroke-width="1" fill-opacity="0.8" fill="#deb887"></circle>
Is there something I need to do beyond adding the line element to make to the svg element to cause the line to appear?