From 7ae4ea4cfd2bc06e71a23cd92d725a6b8a40d06e Mon Sep 17 00:00:00 2001 From: Zachary Sloan Date: Mon, 4 Aug 2014 19:08:17 +0000 Subject: Fixed another minor issue with the heatmap where the original curve wouldn't be removed --- wqflask/wqflask/static/new/javascript/iplotMScanone_noeff.coffee | 1 + wqflask/wqflask/static/new/javascript/iplotMScanone_noeff.js | 1 + 2 files changed, 2 insertions(+) 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 = []; -- cgit v1.2.3