Aktionen

Benutzer

Felix Englisch: Unterschied zwischen den Versionen

Aus Lünepedia

 
(10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 89: Zeile 89:
</graph>
</graph>
Wahl zum Stadtrat der Hansestadt Lüneburg 2021 (Wahlbeteiligung 56,2 %)</div>
Wahl zum Stadtrat der Hansestadt Lüneburg 2021 (Wahlbeteiligung 56,2 %)</div>
== noch eins ==
<graph>{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "A simple pie chart with labels.",
  "data": {
    "values": [
      {"category": "a", "value": 4},
      {"category": "b", "value": 6},
      {"category": "c", "value": 10},
      {"category": "d", "value": 3},
      {"category": "e", "value": 7},
      {"category": "f", "value": 8}
    ]
  },
  "encoding": {
    "theta": {"field": "value", "type": "quantitative", "stack": true},
    "color": {"field": "category", "type": "nominal", "legend": null}
  },
  "layer": [{
    "mark": {"type": "arc", "outerRadius": 80}
  }, {
    "mark": {"type": "text", "radius": 90},
    "encoding": {
      "text": {"field": "category", "type": "nominal"}
    }
  }]
}
</graph>


== Zweites Diagramm ==
== Zweites Diagramm ==
Zeile 187: Zeile 217:
</graph>
</graph>


== Weiteres Diagramm ==
<graph>{
"version": 2,
"width": 400,
"height": 200,
"data": [
{
"name": "table",
"values": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 3
},
{
"x": 2,
"y": 4
},
{
"x": 3,
"y": 24
},
{
"x": 4,
"y": 21
},
{
"x": 5,
"y": 22
}
]
}
],
"scales": [
{
"name": "x",
"type": "linear",
"range": "width",
"zero": false,
"domain": {
"data": "table",
"field": "x"
}
},
{
"name": "y",
"type": "linear",
"range": "height",
"nice": true,
"domain": {
"data": "table",
"field": "y"
}
}
],
"axes": [
{
"type": "x",
"scale": "x"
},
{
"type": "y",
"scale": "y"
}
],
"marks": [
{
"type": "line",
"from": {
"data": "table"
},
"properties": {
"enter": {
"x": {
"scale": "x",
"field": "x"
},
"y": {
"scale": "y",
"field": "y"
},
"y2": {
"scale": "y",
"value": 0
},
"interpolate": {
"value": "monotone"
},
"stroke": {
"value": "steelblue"
},
"strokeWidth": {
"value": 3
}
}
}
}
]
}</graph>
== Testgelände ==
<graph>{
"version": 2,
"width": 400,
"height": 200,
"data": [
{
"name": "table",
"values": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 3
},
{
"x": 2,
"y": 2
},
{
"x": 3,
"y": 4
}
]
}
],
"scales": [
{
"name": "x",
"type": "linear",
"range": "width",
"zero": false,
"domain": {
"data": "table",
"field": "x"
}
},
{
"name": "y",
"type": "linear",
"range": "height",
"nice": true,
"domain": {
"data": "table",
"field": "y"
}
}
],
"axes": [
{
"type": "x",
"scale": "x"
},
{
"type": "y",
"scale": "y"
}
],
"marks": [
{
"type": "area",
"from": {
"data": "table"
},
"properties": {
"enter": {
"x": {
"scale": "x",
"field": "x"
},
"y": {
"scale": "y",
"field": "y"
},
"y2": {
"scale": "y",
"value": 0
},
"fill": {
"value": "steelblue"
},
"interpolate": {
"value": "monotone"
}
}
}
}
]
}</graph>


<graph mode=interactive>
== Tortendiagramm ==
{
<graph>
    "version": 1,
    "width": 500,
    "height": 200,
    "padding": {
        "top": 10,
        "left": 30,
        "bottom": 30,
        "right": 10
    },
    "data": [
        {
            "name": "table",
            "values": [
                {
                    "x": 0,
                    "y": 28,
                    "c": 0
                },
                {
                    "x": 0,
                    "y": 55,
                    "c": 1
                },
                {
                    "x": 1,
                    "y": 43,
                    "c": 0
                },
                {
                    "x": 1,
                    "y": 91,
                    "c": 1
                },
                {
                    "x": 2,
                    "y": 81,
                    "c": 0
                },
                {
                    "x": 2,
                    "y": 53,
                    "c": 1
                },
                {
                    "x": 3,
                    "y": 19,
                    "c": 0
                },
                {
                    "x": 3,
                    "y": 87,
                    "c": 1
                },
                {
                    "x": 4,
                    "y": 52,
                    "c": 0
                },
                {
                    "x": 4,
                    "y": 48,
                    "c": 1
                },
                {
                    "x": 5,
                    "y": 24,
                    "c": 0
                },
                {
                    "x": 5,
                    "y": 49,
                    "c": 1
                },
                {
                    "x": 6,
                    "y": 87,
                    "c": 0
                },
                {
                    "x": 6,
                    "y": 66,
                    "c": 1
                },
                {
                    "x": 7,
                    "y": 17,
                    "c": 0
                },
                {
                    "x": 7,
                    "y": 27,
                    "c": 1
                },
                {
                    "x": 8,
                    "y": 68,
                    "c": 0
                },
                {
                    "x": 8,
                    "y": 16,
                    "c": 1
                },
                {
                    "x": 9,
                    "y": 49,
                    "c": 0
                },
                {
                    "x": 9,
                    "y": 15,
                    "c": 1
                }
            ]
        },
        {
            "name": "stats",
            "source": "table",
            "transform": [
                {
                    "type": "facet",
                    "keys": [
                        "data.x"
                    ]
                },
                {
                    "type": "stats",
                    "value": "data.y"
                }
            ]
        }
    ],
    "scales": [
        {
            "name": "x",
            "type": "linear",
            "range": "width",
            "zero": false,
            "domain": {
                "data": "table",
                "field": "data.x"
            }
        },
        {
            "name": "y",
            "type": "linear",
            "range": "height",
            "nice": true,
            "domain": {
                "data": "stats",
                "field": "sum"
            }
        },
        {
            "name": "color",
            "type": "ordinal",
            "range": "category10"
        }
    ],
    "axes": [
        {
            "type": "x",
            "scale": "x"
        },
        {
            "type": "y",
            "scale": "y"
        }
    ],
    "marks": [
        {
            "type": "group",
            "from": {
                "data": "table",
                "transform": [
                    {
                        "type": "facet",
                        "keys": [
                            "data.c"
                        ]
                    },
                    {
                        "type": "stack",
                        "point": "data.x",
                        "height": "data.y"
                    }
                ]
            },
            "marks": [
                {
                    "type": "area",
                    "properties": {
                        "enter": {
                            "interpolate": {
                                "value": "monotone"
                            },
                            "x": {
                                "scale": "x",
                                "field": "data.x"
                            },
                            "y": {
                                "scale": "y",
                                "field": "y"
                            },
                            "y2": {
                                "scale": "y",
                                "field": "y2"
                            },
                            "fill": {
                                "scale": "color",
                                "field": "data.c"
                            }
                        },
                        "update": {
                            "fillOpacity": {
                                "value": 1
                            }
                        },
                        "hover": {
                            "fillOpacity": {
                                "value": 0.5
                            }
                        }
                    }
                }
            ]
        }
    ]
}
</graph>


<graph mode=interactive title="Historical Fertility Rates">
{
{
   "version": 2,
   "version": 2,
   "width": 500,
   "width": 100,
   "height": 260,
   "height": 100,
  "padding": 12,
  "background": "#edf1f7",
  "signals": [
    {
      "name": "isDragging",
      "init": false,
      "streams": [
        {"type": "@handle:mousedown","expr": "true"},
        {"type": "mouseup","expr": "false"}
      ]
    },
    {
      "name": "scaledHandlePosition",
      "streams": [
        {
          "type": "mousemove[isDragging]",
          "expr": "eventX()",
          "scale": {"name": "yearsScale","invert": true}
        }
      ]
    },
    {
      "name": "currentYear",
      "init": 2000,
      "expr": "clamp(parseInt(scaledHandlePosition),1960,2013)"
    }
  ],
   "data": [
   "data": [
     {
     {
       "name": "highlights",
       "name": "table",
       "url": "wikiraw:///Extension:Graph/Demo/RawData:FertilityByCountryHistoric-csv",
       "values": [12,23,47,6,52,19],
      "format": {"type": "csv"},
       "transform": [{"type": "pie","field": "data"}]
      "transform": [
        {
          "type": "formula",
          "field": "v",
          "expr": "parseFloat(datum[''+currentYear])"
        }
      ]
    },
    {
      "name": "countries",
      "url": "wikiraw:///Extension:Graph/Demo/RawData:WorldMap-iso3-json",
      "format": {"type": "topojson","feature": "countries"},
       "transform": [
        {
          "type": "geopath",
          "value": "data",
          "scale": 80,
          "center": [-180,125],
          "translate": [0,0],
          "projection": "equirectangular"
        },
        {
          "type": "lookup",
          "keys": ["id"],
          "on": "highlights",
          "onKey": "id",
          "as": ["zipped"],
          "default": {"v": null, "country":"No data"}
        }
      ]
     }
     }
   ],
   ],
   "scales": [
   "scales": [
     {
     {
       "name": "yearsScale",
       "name": "r",
       "type": "linear",
       "type": "sqrt",
      "zero": false,
       "domain": {"data": "table","field": "data"},
      "domain": [1960,2013],
       "range": [100,100]
      "range": "width"
    },
    {
      "name": "color",
      "type": "linear",
       "domain": {"data": "countries","field": "zipped.v"},
      "domainMin": 1,
      "zero": false,
       "range": ["#FFEDBC", "#f83600"]
     }
     }
   ],
   ],
   "marks": [
   "marks": [
     {
     {
       "name": "yearLabel",
       "type": "arc",
       "type": "text",
       "from": {"data": "table"},
       "properties": {
       "properties": {
         "enter": {
         "enter": {
           "x": {"value": 0},
           "x": {"field": {"group": "width"},"mult": 0.5},
           "y": {"value": 25},
           "y": {"field": {"group": "height"},"mult": 0.5},
           "fontSize": {"value": 32},
          "startAngle": {"field": "layout_start"},
           "fontWeight": {"value": "bold"},
          "endAngle": {"field": "layout_end"},
           "fill": {"value": "steelblue"}
           "innerRadius": {"value": 20},
           "outerRadius": {"scale": "r","field": "data"},
           "stroke": {"value": "#fff"}
         },
         },
         "update": {"text": {"signal": "currentYear"}}
         "update": {"fill": {"value": "#ccc"} },
        "hover": {"fill": {"value": "pink"} }
       }
       }
     },
     },
     {
     {
       "name": "scrollLine",
       "type": "text",
       "type": "rule",
       "from": {"data": "table"},
       "properties": {
       "properties": {
         "enter": {
         "enter": {
           "x": {"value": 0},
           "x": {"field": {"group": "width"},"mult": 0.5},
           "y": {"value": 40},
           "y": {"field": {"group": "height"},"mult": 0.5},
           "x2": {"value": 500},
          "radius": {"scale": "r","field": "data","offset": 8},
           "stroke": {"value": "#000"},
           "theta": {"field": "layout_mid"},
           "strokeWidth": {"value": 2}
           "fill": {"value": "#000"},
           "align": {"value": "center"},
          "baseline": {"value": "middle"},
          "text": {"field": "data"}
         }
         }
      }
    },
    {
      "name": "handle",
      "type": "path",
      "properties": {
        "enter": {
          "y": {"value": 40},
          "path": {"value": "m-5.5,-10l0,20l11.5,-10l-11.5,-10z"},
          "stroke": {"value": "#880"},
          "strokeWidth": {"value": 2.5}
        },
        "update": {
          "x": {"scale": "yearsScale","signal": "currentYear"},
          "fill": {"value": "#fff"}
        },
        "hover": {"fill": {"value": "#f00"}}
      }
    },
    {
      "name": "map",
      "type": "path",
      "from": {"data": "countries"},
      "properties": {
        "enter": {"path": {"field": "layout_path"}},
        "update": {
          "fill": [
            {
              "test": "datum.zipped.v !== null",
              "scale": "color",
              "field": "zipped.v"
            },
            {"value": "grey"}
          ]
        },
        "hover": {"fill": {"value": "#989898"}}
       }
       }
     }
     }
   ]
   ]
}
}
</graph>
</graph>

Aktuelle Version vom 29. November 2021, 23:59 Uhr

Willkommen auf meiner Benutzer*innenseite. Ich bin Felix, der dieses Stadtwiki von technischer Seite her konfiguriert hat. Gemeinsam mit Benutzer:Klarambolage und Benutzer:Mira haben wir Lünepedia initiiert und sind sehr gespannt, wie es sich entwickelt.

Kurz über mich: Ich studiere an der Leuphana einen Mix aus Nachhaltigkeitswissenschaften, Ökonomik und Politikwissenschaften im Rahmen des Studium Individuale. Inzwischen bin ich bereits im 6. Semester meines Bachelor-Studiums, aber habe nicht vor, Lüneburg danach einfach zu verlassen. Den Großteil meiner Zeit stecke ich in die Initiative Lebendiges Lüneburg und bin auch anderweitig politisch und klimaaktivistisch aktiv.

Spielplatz[Bearbeiten | Quelltext bearbeiten]

Überschrift

Wahl zum Stadtrat der Hansestadt Lüneburg 2021 (Wahlbeteiligung 56,2 %)

noch eins[Bearbeiten | Quelltext bearbeiten]

Zweites Diagramm[Bearbeiten | Quelltext bearbeiten]

Weiteres Diagramm[Bearbeiten | Quelltext bearbeiten]

Testgelände[Bearbeiten | Quelltext bearbeiten]

Tortendiagramm[Bearbeiten | Quelltext bearbeiten]

Cookies helfen uns bei der Bereitstellung von Lünepedia. Durch die Nutzung von Lünepedia erklärst du dich damit einverstanden, dass wir Cookies speichern.