-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
awb99
committed
Nov 7, 2024
1 parent
28a9c8b
commit 72bfb98
Showing
11 changed files
with
65 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(ns demo.env | ||
(:require | ||
[dali.store.file :refer [create-dali-file-store]])) | ||
|
||
(def env | ||
{:dali-store (create-dali-file-store | ||
{:fpath ".data/public/dali" | ||
:rpath "/r/dali"})}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(ns dali.store.file.transit | ||
(:refer-clojure :exclude [read]) | ||
(:require | ||
[dali.store.file :refer [write-file open-file]] | ||
[cquant.tmlds :refer [ds->transit-json-file transit-json-file->ds]])) | ||
|
||
(defmethod write-file "transit-json" [_ filename ds] | ||
(ds->transit-json-file ds filename)) | ||
|
||
(defmethod open-file "transit-json" [_ filename] | ||
(transit-json-file->ds filename)) | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
(ns rtable.plot.highcharts | ||
(:require | ||
[dali.spec :refer [create-dali-spec]] | ||
[dali.transform.transit :refer [save-transit]])) | ||
[dali.store.file.transit] ; side effects | ||
[dali.store :refer [write]])) | ||
|
||
(defn highstock-ds [{:keys [style class charts] | ||
(defn highstock-ds [{:keys [dali-store]} | ||
{:keys [style class charts] | ||
:or {style {:width "100%" :height "100%"} | ||
class ""}} ds] | ||
class ""}} | ||
ds] | ||
(create-dali-spec | ||
{:viewer-fn 'rtable.viewer.highcharts/highstock | ||
:transform-fn 'rtable.transform.highcharts/load-and-transform-highcharts | ||
:data {:style style | ||
:class class | ||
:charts charts | ||
:load (save-transit ds)}})) | ||
:load (write dali-store "transit-json" ds)}})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters