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.
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -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'); | ... | ... |
-
Please register or sign in to post a comment