- go to the web editor: https://code.cognitory.com/
- create a namespace
- add a
println
- add app-view
- require reagent, define render, call render
-
create
dbratom w/:active-year -
create
active-yearreaction -
create
slider-viewshowing@active-year -
add
slider-viewtoapp-view -
create
set-active-year!transaction -
add
:inputtoslider-vieww/:valueand:on-change
- use
h/get-datato fetch and pprint data - initialize
:datato[] - create
set-data!transaction - create
datareaction - create
table-vieww/ loop over@data - add
table-viewtoapp-view
- create
active-year-datareaction - use
@active-year-datainstead of@dataintable-view
- create
graph-viewdepending on@dataand@active-year-data - add
graph-viewtoapp-view
Suggested extensions:
- click on table column to sort it
- hover over table row or graph circle -> highlight corresponding graph circle / table row