Skip to content

Commit bc1810c

Browse files
committed
Fix x-axis slider chart being attached to first SVG element in DOM.
1 parent e98a3ba commit bc1810c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

d3_resources/SpectrumChartD3.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5504,7 +5504,9 @@ SpectrumChartD3.prototype.drawXAxisSliderChart = function() {
55045504
// Draw the elements for the slider chart
55055505
if( !self.sliderChart ) {
55065506
// G element of the slider chart
5507-
self.sliderChart = d3.select("svg").append("g")
5507+
d3.select(self.chart)
5508+
5509+
self.sliderChart = d3.select(self.chart).select("svg").append("g")
55085510
//.attr("transform", "translate(" + self.padding.leftComputed + "," + (this.chart.clientHeight - self.size.sliderChartHeight) + ")")
55095511
// .on("mousemove", self.handleMouseMoveSliderChart());
55105512
.on("touchstart", self.handleTouchStartSliderChart())

0 commit comments

Comments
 (0)