-
Notifications
You must be signed in to change notification settings - Fork 236
Open
Description
I'm trying to implement and infinite scroll in event drops.
so far, I have the implementation using a button. This button adds the extra data and redraw the chart (after drawing I'm scrolling the page to the previous scroll position)
`
const doc = document.documentElement;
const top = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
const data = [
...repositories,
...newData
]
d3
.select('#eventdrops-demo')
.data([data])
.call(chart);
window.scrollTo(0, top);
`
this works fine, but I was wondering if I can create a vertical panning to emulate the same functionality?
Metadata
Metadata
Assignees
Labels
No labels