@@ 60,32 60,30 @@
:key "id",
:parentKey "parent"}
{:type "tree",
- :method {:signal "layout"},
:size
[{:signal "height"}
{:signal "width - 100"}],
:separation {:signal "separation"},
- :as ["y" "x" "depth" "children"]}]}
+ :as ["x" "y" "depth" "children"]}]}
{:name "links",
:source "path",
:transform
[{:type "treelinks"}
{:type "linkpath",
- :orient "horizontal",
:shape {:signal "links"}}]}]
:marks [{:type "path",
:from {:data "links"},
:encode
{:update
{:path {:field "path"},
- :stroke {:value "#ccc"}}}}
+ :stroke {:value "#a9a9a9"}}}}
{:type "symbol",
:from {:data "path"},
:encode
{:enter
{:size {:value 100},
- :stroke {:value "#fff"}
- :fill {:value "#000"}},
+ :stroke {:value "#663399"}
+ :strokewidth {:value 6}},
:update
{:x {:field "x"}
:y {:field "y"}}}}
@@ 94,12 92,12 @@
:encode
{:enter
{:text {:field "value"},
- :fontSize {:value 9},
+ :fontSize {:value 12},
:baseline {:value "middle"}},
:update
{:x {:field "x"},
:y {:field "y"},
- :dx {:signal "datum.children ? -7 : 7"},
+ :dx {:signal "datum.children ? -12 : 12"},
:align
{:signal
"datum.children ? 'right' : 'left'"},