Bearbeiten von „Felix Englisch“
Die Bearbeitung kann rückgängig gemacht werden. Bitte prüfe den Vergleich unten, um sicherzustellen, dass du dies tun möchtest, und veröffentliche dann unten deine Änderungen, um die Bearbeitung rückgängig zu machen.
Aktuelle Version | Dein Text | ||
Zeile 1: | Zeile 1: | ||
== Sommertag in der Lünepedia == | == Sommertag in der Lünepedia == | ||
[[Datei:Eugen Bracht Sommertag i d Lüneburger Heide 04.JPG|thumb|Sommerliche Grüße von Eugen Bracht]] | [[Datei:Eugen Bracht Sommertag i d Lüneburger Heide 04.JPG|thumb|Sommerliche Grüße von Eugen Bracht]] | ||
Zeile 34: | Zeile 35: | ||
:Liebe Grüße, --[[Benutzer:Felix Englisch|Felix Englisch]] ([[Benutzer Diskussion:Felix Englisch|Diskussion]]) 09:49, 11. Mär. 2021 (CET) | :Liebe Grüße, --[[Benutzer:Felix Englisch|Felix Englisch]] ([[Benutzer Diskussion:Felix Englisch|Diskussion]]) 09:49, 11. Mär. 2021 (CET) | ||
== Wahldiagramme == | |||
=== Einfaches Wahldiagramm === | |||
<graph> | |||
{ | |||
"width": 400, | |||
"height": 200, | |||
"padding": {"top": 10,"left": 30,"bottom": 30,"right": 10}, | |||
"signals": [ | |||
{ | |||
"name": "tooltip", | |||
"init": {}, | |||
"streams": [ | |||
{"type": "rect:mouseover", "expr": "datum"}, | |||
{"type": "rect:mouseout", "expr": "{}"} | |||
] | |||
} | |||
], | |||
"data": [ | |||
{ | |||
"name": "table", | |||
"values": [ | |||
{"x": "Partei1","y": 15,"c": 0}, | |||
{"x": "Partei2","y": 32,"c": 1}, | |||
{"x": "Partei3","y": 7,"c":2} | |||
] | |||
} | |||
], | |||
"scales": [ | |||
{ | |||
"name": "x", | |||
"type": "ordinal", | |||
"range": "width", | |||
"domain": {"data": "table","field": "x"} | |||
}, | |||
{ | |||
"name": "y", | |||
"type": "linear", | |||
"range": "height", | |||
"domain": {"data": "table","field": "y"}, | |||
"nice": true | |||
}, | |||
{ | |||
"name": "color", | |||
"type": "ordinal", | |||
"range": ["#000000", "#71be43", "#ec1b23"], | |||
"domain": {"data": "table", "field": "c"} | |||
} | |||
], | |||
"axes": [{"type": "x","scale": "x"},{"type": "y","scale": "y"}], | |||
"marks": [ | |||
{ | |||
"type": "rect", | |||
"from": {"data": "table"}, | |||
"properties": { | |||
"enter": { | |||
"x": {"scale": "x","field": "x"}, | |||
"width": {"scale": "x","band": true,"offset": -1}, | |||
"y": {"scale": "y","field": "y"}, | |||
"y2": {"scale": "y","value": 0}, | |||
"fill": {"scale": "color", "field": "c"} | |||
} | |||
} | |||
}, | |||
{ | |||
"type": "text", | |||
"properties": { | |||
"enter": { | |||
"align": {"value": "center"}, | |||
"fill": {"value": "#333"} | |||
}, | |||
"update": { | |||
"x": {"scale": "x", "signal": "tooltip.x"}, | |||
"dx": {"scale": "x", "band": true, "mult": 0.5}, | |||
"y": {"scale": "y", "signal": "tooltip.y", "offset": -5}, | |||
"text": {"signal": "tooltip.y"}, | |||
"fillOpacity": [ | |||
{ "test": "!tooltip._id", | |||
"value": 0 | |||
}, | |||
{"value": 1} | |||
] | |||
} | |||
} | |||
} | |||
] | |||
} | |||
</graph> | |||
== | === Vergleich Landkreis und Hansestadt === | ||
<graph> | |||
< | { | ||
"width": 400, | |||
"height": 200, | |||
"padding": {"top": 10, "left": 30, "bottom": 30, "right": 10}, | |||
"signals": [ | |||
{ | |||
"name": "tooltip", | |||
"init": {}, | |||
"streams": [ | |||
{"type": "rect:mouseover", "expr": "datum"}, | |||
{"type": "rect:mouseout", "expr": "{}"} | |||
] | |||
} | |||
], | |||
"data": [ | |||
{ | |||
"name": "table", | |||
"values": [ | |||
{"x": "A","y": 15,"c": 0, "o": 0}, | |||
{"x": "A*","y": 20,"c": 0, "o": 1}, | |||
{"x": " ","y": 20,"c": 3, "o": 1}, | |||
{"x": "B","y": 32,"c": 1, "o": 0}, | |||
{"x": "B*","y": 23,"c": 1, "o": 1}, | |||
{"x": " ","y": 20,"c": 3, "o": 1}, | |||
{"x": "C","y": 7,"c":2, "o": 0}, | |||
{"x": "C*","y": 10,"c":2, "o": 1} | |||
] | |||
} | |||
], | |||
"scales": [ | |||
{ | |||
"name": "x", | |||
"type": "ordinal", | |||
"range": "width", | |||
"domain": {"data": "table", "field": "x"} | |||
}, | |||
{ | |||
"name": "y", | |||
"type": "linear", | |||
"range": "height", | |||
"domain": {"data": "table", "field": "y"}, | |||
"nice": true | |||
}, | |||
{ | |||
"name": "color", | |||
"type": "ordinal", | |||
"range": ["#000000", "#71be43", "#ec1b23", "#ffffff"], | |||
"domain": {"data": "table", "field": "c"} | |||
}, | |||
{ | |||
"name": "opacity", | |||
"type": "ordinal", | |||
"range": ["1.0", "0.5"], | |||
"domain": {"data": "table", "field": "o"} | |||
} | |||
], | |||
"axes": [{"type": "x","scale": "x"},{"type": "y","scale": "y"}], | |||
"marks": [ | |||
{ | |||
"type": "rect", | |||
"from": {"data": "table"}, | |||
"properties": { | |||
"enter": { | |||
"x": {"scale": "x","field": "x"}, | |||
"width": {"scale": "x","band": true,"offset": -1}, | |||
"y": {"scale": "y","field": "y"}, | |||
"y2": {"scale": "y","value": 0}, | |||
"fill": {"scale": "color", "field": "c"}, | |||
"opacity": {"scale": "opacity", "field": "o"} | |||
} | |||
} | |||
}, | |||
{ | |||
"type": "text", | |||
"properties": { | |||
"enter": { | |||
"align": {"value": "center"}, | |||
"fill": {"value": "#333"} | |||
}, | |||
"update": { | |||
"x": {"scale": "x", "signal": "tooltip.x"}, | |||
"dx": {"scale": "x", "band": true, "mult": 0.5}, | |||
"y": {"scale": "y", "signal": "tooltip.y", "offset": -5}, | |||
"text": {"signal": "tooltip.y"}, | |||
"fillOpacity": [ | |||
{ "test": "!tooltip._id", | |||
"value": 0 | |||
}, | |||
{"value": 1} | |||
] | |||
} | |||
} | |||
} | |||
] | |||
} | |||
</graph> |