diff options
-rw-r--r-- | wqflask/wqflask/static/new/javascript/iplotMScanone_noeff.coffee | 1 | ||||
-rw-r--r-- | wqflask/wqflask/static/new/javascript/iplotMScanone_noeff.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/wqflask/wqflask/static/new/javascript/iplotMScanone_noeff.coffee b/wqflask/wqflask/static/new/javascript/iplotMScanone_noeff.coffee index 7831b2d4..63ded023 100644 --- a/wqflask/wqflask/static/new/javascript/iplotMScanone_noeff.coffee +++ b/wqflask/wqflask/static/new/javascript/iplotMScanone_noeff.coffee @@ -87,6 +87,7 @@ iplotMScanone_noeff = (lod_data, times, chartOpts) -> # plot lod curves for selected lod column
lodchart_curves = null
plotLodCurve = (lodcolumn) ->
+ g_lodchart.selectAll("g#curves").remove()
lodchart_curves = g_lodchart.append("g").attr("id", "lodcurves")
for chr in lod_data.chrnames
lodchart_curves.append("path")
diff --git a/wqflask/wqflask/static/new/javascript/iplotMScanone_noeff.js b/wqflask/wqflask/static/new/javascript/iplotMScanone_noeff.js index 8f6787c3..90ed80d0 100644 --- a/wqflask/wqflask/static/new/javascript/iplotMScanone_noeff.js +++ b/wqflask/wqflask/static/new/javascript/iplotMScanone_noeff.js @@ -63,6 +63,7 @@ iplotMScanone_noeff = function(lod_data, times, chartOpts) { lodchart_curves = null; plotLodCurve = function(lodcolumn) { var chr, _i, _len, _ref21, _results; + g_lodchart.selectAll("g#curves").remove(); lodchart_curves = g_lodchart.append("g").attr("id", "lodcurves"); _ref21 = lod_data.chrnames; _results = []; |