Skip to content

Instantly share code, notes, and snippets.

@emepyc
emepyc / .block
Last active September 10, 2018 08:48
iHam widget example
height: 2500
@emepyc
emepyc / README.md
Last active November 18, 2017 23:56
y axis in track

Example of vertical axis in a track

@emepyc
emepyc / README.md
Last active December 5, 2023 13:48
Limit panning/zooming in d3 v4

Example of how to use zoom.extent and zoom.translateExtent to limit panning/zooming in d3 v4. The initial state of the visualisation are centered on coordinates [500, 1500] using zoom.transform. The limits for panning/zooming are set to [0, 5000].

@emepyc
emepyc / README.md
Last active December 20, 2016 19:31
Resizable board

Example of resizable TnT Board

@emepyc
emepyc / README.md
Created November 9, 2016 12:10
Boxed genome visualisation in TnT Genome

Example of TnT Genome where the visualisation is restricted to two given coordinates using the min_coord and max_coord API methods. Zoom out until you find the given limits. These new limits are passed as Promises that are resolved when the visualisation is started. By default the lower limit is 0 and the higher limit is the length of the chromosome in display.

@emepyc
emepyc / README.md
Created September 9, 2016 14:09
displaying a subtree

Example of displaying a subtree using TnT Tree

@emepyc
emepyc / README.md
Last active September 9, 2016 13:36
PNG export of a TnT Tree
@emepyc
emepyc / README.md
Last active May 23, 2016 08:39
Non overlapping elements

Example of track with overlapping elements using TnT Board

@emepyc
emepyc / README.md
Last active August 10, 2016 16:35
Selecting subtrees

Example of how to re-root a tree on an internal node in TnT Tree. Click on an internal node to re-root the tree in that node. Click on the "Full Tree" button to get the full tree again

Built with blockbuilder.org

@emepyc
emepyc / README.md
Last active April 25, 2016 22:27
Scale bar in tree