Користувач

< Користувач:Encyclopedia

Відмінності між версіями «Encyclopedia/А»

Рядок 2: Рядок 2:
  
 
{{Graph:Chart|width=600|height=100|xAxisTitle=X|yAxisTitle=Y
 
{{Graph:Chart|width=600|height=100|xAxisTitle=X|yAxisTitle=Y
  |type=rect|x=1,2,3,4,5,6,7,8|y=10,12,6,14,2,10,7,9}}
+
  |type=line|x=1960,1965,1969,1975,1980,1985,1995,2003,2009,2013,2015|y=25,50,46,128,243,283,399,552,897,921,1145|showValues=}}
  
 
{{Graph:Chart|width=100|height=100|type=pie|legend=Legende
 
{{Graph:Chart|width=100|height=100|type=pie|legend=Legende
Рядок 13: Рядок 13:
  
 
{{math|''&alpha;''}}
 
{{math|''&alpha;''}}
 +
 +
=== Dendrogram ===
 +
<graph>
 +
{
 +
  "width": 500,
 +
  "height": 50,
 +
  "data": [
 +
    {
 +
      "name": "tree",
 +
      "values": [
 +
        {"A": "Mammal","B": "Herbivore","C": "Cow" },
 +
        {"A": "Mammal","B": "Herbivore","C": "Goat" },
 +
        {"A": "Mammal","B": "Omnivore","C": "Human"},
 +
        {"A": "Mammal","B": "Omnivore","C": "Bat"},
 +
        {"A": "Fish","B": "Carnivore","C": "Shark"},
 +
        {"A": "Fish","B": "Carnivore","C": "Electric Eel"},
 +
        {"A": "Fish","B": "Omnivore","C": "Piranha "},
 +
        {"A": "Fish","B": "Omnivore","C": "catfish "}
 +
      ],
 +
      "transform": [
 +
        {"type": "treeify","groupby": ["A","B"]},
 +
        {
 +
          "type": "hierarchy",
 +
          "mode": "cluster",
 +
          "nodesize": [11,200]
 +
        },
 +
        {
 +
          "type": "formula",
 +
          "field": "align",
 +
          "expr": "datum.children ? 'right' : 'left'"
 +
        },
 +
        {
 +
          "type": "formula",
 +
          "field": "offset",
 +
          "expr": "datum.children ? -5 : 5"
 +
        }
 +
      ]
 +
    }
 +
  ],
 +
  "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"},
 +
          "stroke": {"value": "#ddd"}
 +
        }
 +
      }
 +
    },
 +
    {
 +
      "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, ''))))"
 +
          }
 +
        ]
 +
      },
 +
      "properties": {
 +
        "enter": {
 +
          "x": {"field": "layout_y"},
 +
          "dx": {"field": "offset"},
 +
          "y": {"field": "layout_x"},
 +
          "font": {"value": "Helvetica Neue"},
 +
          "fontSize": {"value": 10},
 +
          "align": {"field": "align"},
 +
          "baseline": {"value": "middle"},
 +
          "fill": {"value": "#000"},
 +
          "text": {"field": "ff_node_label"}
 +
        }
 +
      }
 +
    }
 +
  ]
 +
}</graph>
 +
 +
  
  
  
 
[[Категорія:Філологія]]
 
[[Категорія:Філологія]]

Версія за 17:39, 25 грудня 2017

α

Dendrogram

Увага! Опитування читачів ВУЕ. Заповнити анкету ⟶