aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-08-30 12:34:49 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-08-30 12:34:49 +0100
commitda8893ca6b98b5db14e463d2c59db9b2f0c441fe (patch)
treeecf86a95a8fa239b98bfaf176f9a038e8c62f553 /app
parentFix typo for schema validation error (diff)
downloadAnnotateChange-da8893ca6b98b5db14e463d2c59db9b2f0c441fe.tar.gz
AnnotateChange-da8893ca6b98b5db14e463d2c59db9b2f0c441fe.zip
Rename container group in svg to avoid name clash
Diffstat (limited to 'app')
-rw-r--r--app/static/js/makeChartMulti.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/static/js/makeChartMulti.js b/app/static/js/makeChartMulti.js
index e1a7aa5..3ea0931 100644
--- a/app/static/js/makeChartMulti.js
+++ b/app/static/js/makeChartMulti.js
@@ -137,7 +137,7 @@ function baseChart(selector, data, clickFunction, annotations, annotationFunctio
// transform the data lines
for (j=0; j<numCharts; j++) {
- container.select("#line-"+j).attr("d", lineObjects[j]);
+ bigWrapper.select("#line-"+j).attr("d", lineObjects[j]);
}
// transform the points
@@ -150,7 +150,7 @@ function baseChart(selector, data, clickFunction, annotations, annotationFunctio
svg.select(".x-axis").call(axes.xAxis);
// transform the annotation lines (if any)
- annoLines = container.selectAll(".ann-line")
+ annoLines = bigWrapper.selectAll(".ann-line")
annoLines._groups[0].forEach(function(l) {
l.setAttribute("x1", axes.xScale(l.getAttribute("cp_idx")));
l.setAttribute("x2", axes.xScale(l.getAttribute("cp_idx")));
@@ -169,20 +169,20 @@ function baseChart(selector, data, clickFunction, annotations, annotationFunctio
.attr("height", height)
.attr("transform", "translate(0, 0)");
- var container = svg.append("g")
- .attr("class", "container")
+ var bigWrapper = svg.append("g")
+ .attr("class", "bigWrapper")
.attr('transform', 'translate(' + visPadding.left + ',' + visPadding.top + ')');
var ytrans = numCharts * (lineHeight + chartPadding) - chartPadding / 2;
// x axis
- container.append("g")
+ bigWrapper.append("g")
.attr("class", "x-axis")
.attr("transform", "translate(0, " + ytrans + ")")
.call(axes.xAxis);
// x axis label
- container.append("text")
+ bigWrapper.append("text")
.attr("text-anchor", "middle")
.attr("class", "axis-label")
.attr("transform", "translate(" + (width - 20) + "," +
@@ -190,7 +190,7 @@ function baseChart(selector, data, clickFunction, annotations, annotationFunctio
.text("Time");
// wrapper for zoom
- var gZoom = container.append("g").call(zoomObj);
+ var gZoom = bigWrapper.append("g").call(zoomObj);
// rectangle for the graph area
gZoom.append("rect")