Skip to content

Commit

Permalink
Fix x-axis slider chart being attached to first SVG element in DOM.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohns committed Oct 23, 2024
1 parent e98a3ba commit bc1810c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion d3_resources/SpectrumChartD3.js
Original file line number Diff line number Diff line change
Expand Up @@ -5504,7 +5504,9 @@ SpectrumChartD3.prototype.drawXAxisSliderChart = function() {
// Draw the elements for the slider chart
if( !self.sliderChart ) {
// G element of the slider chart
self.sliderChart = d3.select("svg").append("g")
d3.select(self.chart)

self.sliderChart = d3.select(self.chart).select("svg").append("g")
//.attr("transform", "translate(" + self.padding.leftComputed + "," + (this.chart.clientHeight - self.size.sliderChartHeight) + ")")
// .on("mousemove", self.handleMouseMoveSliderChart());
.on("touchstart", self.handleTouchStartSliderChart())
Expand Down

0 comments on commit bc1810c

Please sign in to comment.