Skip to main content
100%

genemapping animated

✓ Published0🌍 Public
BBrieLewis
Last edited Feb 21, 2017
Created on Feb 21, 2017

This example maps four genes from a small JSON dataset onto an animated SVG visualization. Each gene is represented by a colored rectangle whose width corresponds to its start and stop coordinates, with orientation indicated by color (purple for forward, teal for reverse) and vertical placement. The animation uses `d3.transition` to slide each gene from off-screen into its mapped position along the x-axis, with labels appearing at the midpoint of each gene. The code leverages D3 v4’s selection, data join, and attribute tweening to choreograph the entry, while gene names and positioning are derived directly from the data fields.

AI-generated description

forked from <a href='http://bl.ocks.org/BrieLewis/'>BrieLewis</a>'s block: <a href='http://bl.ocks.org/BrieLewis/449d48d082796104879597eff88468bc'>genemapping</a>

mit Licensed

Similar vizzes