We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here's a starting point; I'll make a notebook later. We have to change this from an ad hoc function to a proper transform (facet-aware etc).
{ const positions = new Map(); return (d) => { const p = (!positions.has(d.YEAR) && positions.set(d.YEAR, []), positions.get(d.YEAR)); const start = days(d["AFSDATE"]); const end = days(d["AFEDATE"]); let height = 0; while ( p.some( (p) => p.height === height && ((p.start <= start && start <= p.end) || (p.start <= end && end <= p.end) || (start <= p.start && p.start <= end) || (start <= p.end && p.end <= end)) ) ) height++; p.push({ start, end, height }); return height; }; }
The text was updated successfully, but these errors were encountered:
duplicate of #2236
Sorry, something went wrong.
No branches or pull requests
Here's a starting point; I'll make a notebook later. We have to change this from an ad hoc function to a proper transform (facet-aware etc).
The text was updated successfully, but these errors were encountered: