Skip to content

Filter by click on diagram #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
{:dev {:extra-paths ["notebooks"]
:extra-deps {com.github.seancorfield/next.jdbc {:mvn/version "1.3.925"}
com.github.seancorfield/honeysql {:mvn/version "2.6.1126"}
org.xerial/sqlite-jdbc {:mvn/version "3.34.0"}}}}}
org.xerial/sqlite-jdbc {:mvn/version "3.34.0"}
scicloj/tablecloth {:mvn/version "7.029.2"}}}}}
19 changes: 13 additions & 6 deletions notebooks/table_stats.clj
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,33 @@
(clerk/clear-cache!))

;; ## Research
;; - [ ] Check out Observable data call (SQL example)

;; - [x] Check out Observable data table cell (SQL example)
;; - [ ] Protocol/API to provide your own `:stats` rather than letting the table viewer calculate them
;; - [ ] API to provide your own `:schema,` such that clerk doesn't have to normalize all the data
;; - [ ] API to provide your own `:schema` such that clerk doesn't have to normalize all the data
;; - [ ] check out how this would work with table cloth large columnar data sets
;; - [ ] don't know how skipping normalization buys us anything since you need to transpose the data anyway when sending it to the client to render it as a table, so what problem are we solving again?, see `table-cloth` branch
;; - [ ] skip mapcat stuff
;; - [ ] take 1000 like with clerk tableviewer
;; - [ ] should work with infinite seqs in map-of-seq

;; - [ ] also with datomic qseq in ductile

;; ## Concrete stuff to work on
;; - [ ] Make filters work client side (check Obserable for example)
;; - [ ] By clicking on diagram
;; - [ ] Or by selecting values from column
;; - [x] By clicking on diagram
;; - [x] How to preserve state over multiple `:render-fn`, perhaps via `:render-opts`? No, by `inspect-children`
;; - [ ] By clicking on filter, new values should be fetched, according to filter
;; - [ ] Or by selecting values from column (see Observable Data Table Cell)
;; - [ ] Scrubbing
;; - [ ] export filter code to be used as clerk option

(def my-data
[{:category :foo :value 10}
{:category :bar :value 20}
{:category :foo :value 10}
{:category :bar :value 15}
{:category :bar :value 22}
{:value 12}])
{:category :baz :value 12}])

(clerk/table my-data)

Expand Down
Loading