6f113f02 by David LaPalomento

Make sure bandwidth label is removed when simulation is re-run

Add the bandwidth class to the label so that it is removed along with the old bandwidth line.
1 parent ac180123
...@@ -329,6 +329,7 @@ ...@@ -329,6 +329,7 @@
329 .attr('d', bandwidthLine); 329 .attr('d', bandwidthLine);
330 330
331 svg.append('text') 331 svg.append('text')
332 .attr('class', 'bandwidth label')
332 .attr('transform', 'translate(' + x(x.range()[1]) + ', ' + y(data.bandwidth.slice(-1)[0].bandwidth) + ')') 333 .attr('transform', 'translate(' + x(x.range()[1]) + ', ' + y(data.bandwidth.slice(-1)[0].bandwidth) + ')')
333 .attr('dy', '1.35em') 334 .attr('dy', '1.35em')
334 .text('bandwidth'); 335 .text('bandwidth');
......