Rid3 is a reagent interface to d3.

The following goes over the very basics of rid3.

Basics

:elem piece

1) Add a simple element: a rect

source

2) Add attribute to the rect (fill)

source

3) Add an element on top of another element: a circle on a rect

source

:elem-with-data piece

4) Make elements based on an array of data

source
ABC

5) Make elements based on an array of data (where the dataset is located somewhere other than the :dataset key in your ratom)

source
ABC

:container piece

6) Make a :container piece. A :container is particularly useful when you want to transform multiple elements together.

source
top right circlebottom right circle

:raw piece

7) element on top of another element ... using the :raw piece kind (roughly same as 2, but different implementation)

source