Skip to content

Instantly share code, notes, and snippets.

@jstcki
jstcki / README.md
Last active October 6, 2017 15:43
Sorting the Grid
@jstcki
jstcki / README.md
Last active December 18, 2015 02:19
Filtering the Grid
@jstcki
jstcki / README.md
Last active December 12, 2017 21:22
Filtering the Grid 2

Filtering items in a grid layout with a fixed amount of columns and rows.

@jstcki
jstcki / README.md
Last active December 20, 2015 21:48
Animating Flowers
@jstcki
jstcki / README.md
Last active December 1, 2018 13:34
Swiss Topography
@jstcki
jstcki / README.md
Last active September 11, 2020 17:16
Swiss Municipality Coordinates

Extract and list Swiss municipality coordinates from TopoJSON.

@jstcki
jstcki / README.md
Last active May 25, 2021 11:36
Swiss Cantons and Municipalities with React
@jstcki
jstcki / README.md
Last active August 29, 2015 13:56
Transitions with D3

Avoid restarting running transitions by either starting one just on the .enter() selection or by using selection.filter() to only select elements which are not in transit yet.

Alternative implementations combining D3 with React and React TransitionGroup.

@jstcki
jstcki / README.md
Last active April 12, 2017 13:24
Transitions with React and D3 I
@jstcki
jstcki / README.md
Last active April 12, 2017 13:24
Transitions with React and D3 II

Using D3 in a React TransitionGroup to transition elements. D3 is used purely for transitions, not for data joins. The distinction between entering and exiting elements is handled by the TransitionGroup component. See the React documentation for further information.

Alternative implementations only with D3 and using React without addons.

Note: This implementation is around 30% slower in processing 1000 circles than the other two.