DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk3 min

Build a React and D3 Timeline Portfolio: Lanes, Connectors, and Resizing

See how a React-and-D3 timeline portfolio places overlapping events, distinguishes milestones from ongoing commitments, and adapts smoothly to screen resizing.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Part II of Dmitry Zhukov’s timeline-portfolio tutorial turns dated projects and commitments into a visual map: it assigns events to lanes, positions them by date, draws connectors, and animates layout changes when the screen resizes. It builds on the data and foundation from Part I; the key design choice is to let React render the interface while D3 handles visualization calculations.

How React and D3 divide the work

In this project, React owns the rendered interface and D3 supplies the visualization math. That keeps the map component concerned with displaying state while the timeline engine calculates dates, positions, lanes, and paths. React describes itself as a library for web and native user interfaces built from components; D3 describes itself as a JavaScript library for bespoke data visualization, with scales, shapes, interactions, and layouts among its capabilities. See React and D3.

As an Amazon Associate I earn from qualifying purchases.

This is one documented architecture, not evidence that the division is universally best. It is useful when you want React’s component-based interface and D3’s purpose-built visualization calculations without handing D3 ownership of the rendered interface.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How timeline events are placed without collisions

The tutorial uses a greedy, interval-aware lane assignment. For each node, the algorithm checks existing lanes to see whether there is enough horizontal time gap before the node begins. It places the node in a lane that fits; if none does, it creates another lane. As the author puts it, “we’re going to use a greedy approach in practice.”

Choose a side, then a lane

The layout can try a node’s preferred side first. If no preference settles the placement, it starts on the side with fewer lanes. This offers a straightforward way to distribute events while avoiding overlap, though a greedy choice is local: it does not establish that the resulting layout uses the fewest possible lanes in every case.

Convert date ranges to positions

Once assigned, a node’s date range becomes start and end positions along the timeline. Its lane and side determine its vertical offset from the baseline. In the coordinate system used by the tutorial, upward movement is negative and downward movement is positive. That convention matters when calculating offsets and drawing SVG elements.

Rank #2
Sale
HTML and CSS: Design and Build Websites
  • HTML CSS Design and Build Web Sites
  • Comes with secure packaging
  • It can be a gift option

Use different connectors for projects and commitments

The visual model distinguishes one-time projects from commitments that span a period, including ongoing commitments. Project nodes use a straight stem. A duration-based commitment can use a bridge or a continuous arc to show that it occupies an interval rather than a single moment. Part II implements connectors as SVG paths and styles them according to node type.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

This distinction helps readers interpret the map at a glance: the event’s dates determine its span, while the connector treatment reinforces whether it is a milestone or a continuing commitment.

Make cards readable and consistent

Cards share a width set from a common constant, and the tutorial displays formatted dates within them. A shared width gives the layout a consistent sizing input instead of scattering card measurements across the implementation. The article also discusses passing card width through a CSS custom property, which can connect the calculated layout to styling.

Card width is not merely cosmetic: it affects how much horizontal clearance a lane needs between nodes. Keep the sizing value used by the layout in step with the width presented by CSS, or the collision calculation and visible cards can disagree.

Rank #4
Sale
Web Design with HTML, CSS, JavaScript and jQuery Set
  • Brand: Wiley
  • Set of 2 Volumes
  • A handy two-book set that uniquely combines related technologies Highly visual format and accessible language makes these books highly effective learning tools Perfect for beginning web designers and front-end developers

Animate resize changes and clean up

A timeline’s positions depend on available width, so resizing the screen can require a new layout. Part II transitions from the old positions to the new ones rather than abruptly replacing them. The engine also cancels a pending animation frame when it is destroyed or unmounted, preventing scheduled animation work from outliving the component that owns it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Together, recalculation, transition, and cleanup address distinct concerns: adapt the map to the new dimensions, make the change legible, and stop outstanding work when the visualization is removed.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What this approach is—and is not

The tutorial, dated September 24, 2026, presents a specific implementation for an interactive portfolio map. Its central techniques are greedy lane placement, interval-based positioning, type-specific connectors, consistent card sizing, and animated resize handling. It does not establish through benchmarks that this algorithm or architecture is superior to alternatives; choose it when those trade-offs fit the data and visual behavior you need.

For version context, React’s official homepage showed version 19.3 and a September 9, 2026 news item, while D3’s homepage showed version 7.9.0. Those labels may change, so check the official sites when matching a project to current versions.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.