Since Mike is upgrading to d3.v5, a lot of old examples that works for d3.v3 is already gone. I'll just put this here in case anyone somehow need it.
I use this slider at my work here : http://scienic-data.com/normalized-stacked-barchart-browser-usage-statistic-full/