marmelab / marmelab/EventDrops
allow vertical panning for infinite scroll
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.3k
- Forks
- 233
- PR merge metrics
- No merged PRs in 30d
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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start with the chart invocation on #eventdrops-demo and the button-driven data redraw and scroll-position flow described in the issue; determine the intended vertical-panning behavior and what observable interaction would count as complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- d3js, javascript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100