Difference between revisions of "Ortûlékian Languages"

Line 31: Line 31:
{"type": "formula", "field": "align", "expr": "'right'"},
{"type": "formula", "field": "align", "expr": "'right'"},
{"type": "formula", "field": "offset", "expr": "-10"}
{"type": "formula", "field": "offset", "expr": "-10"}
]}]
]}],


"marks":
"marks":
[{"type": "path", "from": {"data": "tree", "transform":
[{"type": "path", "from": {"data": "tree", "transform":
[{"type": "filter","test": "datum.parent"},{"type": "linkpath","sourceX": "parent.layout_y","sourceY": "parent.layout_x","targetX": "layout_y","targetY": "layout_x","shape": "cornerX"}]},
[{"type": "filter","test": "datum.parent"},{"type": "linkpath",
"sourceX": "parent.layout_y", "sourceY": "parent.layout_x", "targetX": "layout_y", "targetY": "layout_x", "shape": "cornerX"}]},


"properties": {"enter": {"path": {"field": "layout_path"}, "strokeWidth": {"value": 0.5}, "stroke": {"value": "#000000"}}}},
"properties": {"enter": {"path": {"field": "layout_path"}, "strokeWidth": {"value": 2}, "stroke": {"value": "#000000"}}}},


{"type": "text", "from": {"data": "tree", "transform":
{"type": "text", "from": {"data": "tree", "transform":
[{"type": "formula", "field": "ff_node_label", "expr": "if(datum.layout_depth == 0, 'Animals', if(datum.layout_depth == 1, datum.A, if(datum.layout_depth == 2, datum.B, if(datum.layout_depth == 3, datum.C, if(datum.layout_depth == 4, datum.D, if(datum.layout_depth == 5, datum.E, ''))))))"}]},
[{"type": "formula", "field": "ff_node_label", "expr": "if(datum.layout_depth == 0, 'Pre-Proto-Ortûlékian', if(datum.layout_depth == 1, datum.A, if(datum.layout_depth == 2, datum.B, if(datum.layout_depth == 3, datum.C, if(datum.layout_depth == 4, datum.D, if(datum.layout_depth == 5, datum.E, ''))))))"}]},


"properties": {"enter":
"properties": {"enter":
{"x": {"field": "layout_y"},"dx": {"field": "offset"}, "y": {"field": "layout_x"}, "dy": {"value": -8}, "font": {"value": "Arial"}, "fontSize": {"value": 16}, "align": {"field": "align"}, "baseline": {"value": "middle"}, "fill": {"value": "#0000ff"}, "text": {"field": "ff_node_label"}
{"x": {"field": "layout_y"}, "dx": {"field": "offset"}, "y": {"field": "layout_x"}, "dy": {"value": -8}, "font": {"value": "Arial"}, "fontSize": {"value": 16}, "align": {"field": "align"}, "baseline": {"value": "middle"}, "fill": {"value": "#0000ff"}, "text": {"field": "ff_node_label"}
}}}]}
}}}]}