Hello,
but instead with the zoom being applied to the y-axis.
I think I am close as I can get the Y-axis itself to redraw and transition appropriately, but redrawing the lines isn't working.
I suspect the issue is with this code:
svg.selectAll('.path')
.data(data)
.enter()
.append('path')
.attr('d', function (d) {
return line(d.values);
})
.attr('class', 'path')
.attr('clip-path', "url(#clip)")
.attr('stroke', function (d) {
return d.color;
});
it works when drawing the chart with lines initially but doesn't seem to work in the onSliderChange handler
complete code is here:
Thank you! :)
-William