Taxonomy: Difference between revisions
From wikiluntti
Line 213: | Line 213: | ||
"type": "formula", | "type": "formula", | ||
"field": "ff_node_label", | "field": "ff_node_label", | ||
"expr": "if(datum.layout_depth == 0, 'Kantasienet', 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 , '')))))" | "expr": "if(datum.layout_depth == 0, 'Kantasienet', 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 , ''))))))" | ||
} | } | ||
] | ] |
Revision as of 11:04, 15 June 2021
Eliökunta
Vain muutama suku/ kaari on kirjoitettu tähän.
<graph> {
"width": 1024, "height": 150, "background": "#ffffff", "data": [ { "name": "tree", "values": [ {"A": "Bakteerit","B": "Aktinobakteerit"}, {"A": "Bakteerit","B": "Bakteroidit" }, {"A": "Bakteerit","B": "Syanobakteerit" }, {"A": "Bakteerit","B": "Firmikuutit" }, {"A": "Bakteerit","B": "Proteobakteerit" }, {"A": "Alkueliöt (protoktistit)" }, {"A": "Sienet","B": "Kotelosienet","C": "Rihmastolliset kotelosienet" }, {"A": "Sienet","B": "Kotelosienet","C": "Aitohiivat" }, {"A": "Sienet","B": "Kotelosienet","C": "Taphrinomycotina" }, {"A": "Sienet","B": "Kantasienet","C": "Avokantaiset" }, {"A": "Sienet","B": "Kantasienet","C": "Ruostesienet" }, {"A": "Sienet","B": "Kantasienet","C": "Nokisienet" }, {"A": "Sienet","B": "Piiskasiimasienet","C": "Chytridiomycetes" }, {"A": "Sienet","B": "Piiskasiimasienet","C": "Mesochytriomycetes" }, {"A": "Sienet","B": "Piiskasiimasienet","C": "Monoblepharidomycetes" }, {"A": "Sienet","B": "Piiskasiimasienet","C": "Hyaloraphidiomycetes" }, {"A": "Sienet","B": "Piiskasiimasienet","C": "Sanchytriomycetes" }, {"A": "Sienet","B": "Pötsisienet","C": "Anaeromyces" }, {"A": "Sienet","B": "Pötsisienet","C": "Buwchfawromyces" }, {"A": "Sienet","B": "Pötsisienet","C": "Caecomyces" }, {"A": "Sienet","B": "Pötsisienet","C": "Cyllamyces" }, {"A": "Sienet","B": "Pötsisienet","C": "Neocallimastix" }, {"A": "Sienet","B": "Pötsisienet","C": "Oontomyces" }, {"A": "Sienet","B": "Pötsisienet","C": "Orpinomyces" }, {"A": "Sienet","B": "Pötsisienet","C": "Pecoramyces" }, {"A": "Sienet","B": "Pötsisienet","C": "Piromyces" }, {"A": "Sienet","B": "Itusienet","C": "Physodermatomycetes" }, {"A": "Sienet","B": "Itusienet","C": "Blastocladiomycetes" }, {"A": "Sienet","B": "Harppuunasienet","C": "" }, {"A": "Kasvit","B": "Versokasvit","C": "Sammalet" }, {"A": "Kasvit","B": "Versokasvit","C": "Polysporangiophyta" }, {"A": "Kasvit","B": "Versokasvit","C": "Putkilokasvit" }, {"A": "Kasvit","B": "Vihreät kasvit","C": "Varsinaset viherlevät" }, {"A": "Kasvit","B": "Vihreät kasvit","C": "Näkinpartaislevät" }, {"A": "Kasvit","B": "Vihreät kasvit","C": "Streptophytina" }, {"A": "Kasvit","B": "Archeaplastida","C": "Viherlevät" }, {"A": "Kasvit","B": "Archeaplastida","C": "Punalevät" }, {"A": "Kasvit","B": "Archeaplastida","C": "Glaukofyytit" }, {"A": "Eläimet","B": "Sienieläimet","C": "" }, {"A": "Eläimet","B": "Monisoluiset","C": "Polttiaiseläimet" }, {"A": "Eläimet","B": "Monisoluiset","C": "Kampamaneetti" }, {"A": "Eläimet","B": "Monisoluiset","C": "Laakkoeläimet" }, {"A": "Eläimet","B": "Monisoluiset","C": "Kaksikylkiset" }, ], "transform": [ { "type": "treeify", "groupby": ["A","B"] }, { "type": "hierarchy", "mode": "cluster", "nodesize": [20,100] }, { "type": "formula", "field": "align", "expr": "'right'" }, { "type": "formula", "field": "offset", "expr": "-10" } ] } ], "marks": [ { "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" } ] }, "properties": { "enter": { "path": {"field": "layout_path"}, "strokeWidth": {"value": 2}, "stroke": {"value": "#000000"} } } }, { "type": "text", "from": { "data": "tree", "transform": [ { "type": "formula", "field": "ff_node_label", "expr": "if(datum.layout_depth == 0, 'Eliökunta', if(datum.layout_depth == 1, datum.A, if(datum.layout_depth == 2, datum.B, if(datum.layout_depth == 3, datum.C, ))))" } ] }, "properties": { "enter": { "x": {"field": "layout_y"}, "dx": {"field": "offset"}, "y": {"field": "layout_x"}, "dy": {"value": -8}, "font": {"value": "Arial"}, "fontSize": {"value": 12}, "align": {"field": "align"}, "baseline": {"value": "middle"}, "fill": {"value": "#0000ff"}, "text": {"field": "ff_node_label"} } } } ]
} </graph>
Sienet
Lisätään sienten kuntaan tuttuja sieniä.
Kantasienet
<graph> {
"width": 1024, "height": 150, "background": "#ffffff", "data": [ { "name": "tree", "values": [ {"A": "Sienet","B": "Kotelosienet","C": "Rihmastolliset kotelosienet", "D": "aaa", "E": "bbb" }, {"A": "Sienet","B": "Piiskasiimasienet","C": "Chytridiomycetes", "D": "aaa", "E": "bbb" }, {"A": "Sienet","B": "Piiskasiimasienet","C": "Mesochytriomycetes", "D": "aaa", "E": "bbb" }, {"A": "Sienet","B": "Pötsisienet","C": "Anaeromyces", "D": "aaa", "E": "bbb" }, {"A": "Sienet","B": "Pötsisienet","C": "Buwchfawromyces", "D": "aaa", "E": "bbb" }, {"A": "Sienet","B": "Itusienet","C": "Physodermatomycetes", "D": "aaa", "E": "bbb" }, {"A": "Sienet","B": "Itusienet","C": "Blastocladiomycetes", "D": "aaa", "E": "bbb" }, ], "transform": [ { "type": "treeify", "groupby": ["A","B","C","D"] }, { "type": "hierarchy", "mode": "cluster", "nodesize": [20,100] }, { "type": "formula", "field": "align", "expr": "'right'" }, { "type": "formula", "field": "offset", "expr": "-10" } ] } ], "marks": [ { "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" } ] }, "properties": { "enter": { "path": {"field": "layout_path"}, "strokeWidth": {"value": 2}, "stroke": {"value": "#000000"} } } }, { "type": "text", "from": { "data": "tree", "transform": [ { "type": "formula", "field": "ff_node_label", "expr": "if(datum.layout_depth == 0, 'Kantasienet', 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": { "x": {"field": "layout_y"}, "dx": {"field": "offset"}, "y": {"field": "layout_x"}, "dy": {"value": -8}, "font": {"value": "Arial"}, "fontSize": {"value": 12}, "align": {"field": "align"}, "baseline": {"value": "middle"}, "fill": {"value": "#0000ff"}, "text": {"field": "ff_node_label"} } } } ]
} </graph>
Kotelosienet
<graph> {
"width": 1024, "height": 150, "background": "#ffffff", "data": [ { "name": "tree", "values": [ {"A": "Sienet","B": "Kotelosienet","C": "Rihmastolliset kotelosienet" }, {"A": "Sienet","B": "Kotelosienet","C": "Aitohiivat" }, {"A": "Sienet","B": "Kotelosienet","C": "Taphrinomycotina" }, {"A": "Sienet","B": "Kantasienet","C": "Avokantaiset" }, {"A": "Sienet","B": "Kantasienet","C": "Ruostesienet" }, {"A": "Sienet","B": "Kantasienet","C": "Nokisienet" }, {"A": "Sienet","B": "Piiskasiimasienet","C": "Chytridiomycetes" }, {"A": "Sienet","B": "Piiskasiimasienet","C": "Mesochytriomycetes" }, {"A": "Sienet","B": "Piiskasiimasienet","C": "Monoblepharidomycetes" }, {"A": "Sienet","B": "Piiskasiimasienet","C": "Hyaloraphidiomycetes" }, {"A": "Sienet","B": "Piiskasiimasienet","C": "Sanchytriomycetes" }, {"A": "Sienet","B": "Pötsisienet","C": "Anaeromyces" }, {"A": "Sienet","B": "Pötsisienet","C": "Buwchfawromyces" }, {"A": "Sienet","B": "Pötsisienet","C": "Caecomyces" }, {"A": "Sienet","B": "Pötsisienet","C": "Cyllamyces" }, {"A": "Sienet","B": "Pötsisienet","C": "Neocallimastix" }, {"A": "Sienet","B": "Pötsisienet","C": "Oontomyces" }, {"A": "Sienet","B": "Pötsisienet","C": "Orpinomyces" }, {"A": "Sienet","B": "Pötsisienet","C": "Pecoramyces" }, {"A": "Sienet","B": "Pötsisienet","C": "Piromyces" }, {"A": "Sienet","B": "Itusienet","C": "Physodermatomycetes" }, {"A": "Sienet","B": "Itusienet","C": "Blastocladiomycetes" }, {"A": "Sienet","B": "Harppuunasienet","C": "" }, ], "transform": [ { "type": "treeify", "groupby": ["A","B"] }, { "type": "hierarchy", "mode": "cluster", "nodesize": [20,100] }, { "type": "formula", "field": "align", "expr": "'right'" }, { "type": "formula", "field": "offset", "expr": "-10" } ] } ], "marks": [ { "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" } ] }, "properties": { "enter": { "path": {"field": "layout_path"}, "strokeWidth": {"value": 2}, "stroke": {"value": "#000000"} } } }, { "type": "text", "from": { "data": "tree", "transform": [ { "type": "formula", "field": "ff_node_label", "expr": "if(datum.layout_depth == 0, 'Eliökunta', if(datum.layout_depth == 1, datum.A, if(datum.layout_depth == 2, datum.B, if(datum.layout_depth == 3, datum.C, ))))" } ] }, "properties": { "enter": { "x": {"field": "layout_y"}, "dx": {"field": "offset"}, "y": {"field": "layout_x"}, "dy": {"value": -8}, "font": {"value": "Arial"}, "fontSize": {"value": 12}, "align": {"field": "align"}, "baseline": {"value": "middle"}, "fill": {"value": "#0000ff"}, "text": {"field": "ff_node_label"} } } } ]
} </graph>