Skip to content

Commit efad4e4

Browse files
Merge pull request #274 from ClojureCivitas/datomframes
datomframes change line to connect
2 parents 2d32e03 + 9cf2542 commit efad4e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/data_visualization/aog/datomframes.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ penguin-db
6767
(for [[x y color] results]
6868
[:circle {:r 2, :cx x, :cy y
6969
:fill (get color-map color "gray")}]))
70-
:line (for [[x1 y1 x2 y2] results]
71-
[:line {:x1 x1, :y1 y1, :x2 x2, :y2 y2}])))))
70+
:connect (for [[x1 y1 x2 y2] results]
71+
[:line {:x1 x1, :y1 y1, :x2 x2, :y2 y2}])))))
7272

7373
;; To specify a plot, we provide a query
7474

@@ -107,7 +107,7 @@ penguin-db
107107
[?e1 :bill_depth ?y1]
108108
[?e2 :bill_length ?x2]
109109
[?e2 :bill_depth ?y2]]}
110-
:geometry [:line]}])
110+
:geometry [:connect]}])
111111

112112
;; This small example shows that the mapping lives in the query.
113113
;; Queries can bind points and relationships between entities.

0 commit comments

Comments
 (0)