-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgattungen.html
35 lines (33 loc) · 10.5 KB
/
gattungen.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html>
<head>
<style>
.error {
color: red;
}
</style>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm//vega@5"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm//[email protected]"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm//vega-embed@6"></script>
</head>
<body>
<div id="vis"></div>
<script>
(function(vegaEmbed) {
var spec = {"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}}, "layer": [{"mark": "bar", "encoding": {"tooltip": [{"type": "nominal", "field": "ts", "title": "Gattung"}, {"type": "quantitative", "field": "title", "title": "Anzahl Datens\u00e4tze"}], "x": {"type": "quantitative", "field": "title", "title": "Datens\u00e4tze"}, "y": {"type": "nominal", "field": "ts", "sort": "-x", "title": "Gattung"}}, "transform": [{"window": [{"op": "rank", "field": "title", "as": "rank"}], "sort": [{"field": "title", "order": "descending"}]}, {"filter": "(datum.rank < 35)"}]}, {"mark": {"type": "text", "align": "left", "baseline": "middle", "dx": 3}, "encoding": {"text": {"type": "quantitative", "field": "title"}, "tooltip": [{"type": "nominal", "field": "ts", "title": "Gattung"}, {"type": "quantitative", "field": "title", "title": "Anzahl Datens\u00e4tze"}], "x": {"type": "quantitative", "field": "title", "title": "Datens\u00e4tze"}, "y": {"type": "nominal", "field": "ts", "sort": "-x", "title": "Gattung"}}, "transform": [{"window": [{"op": "rank", "field": "title", "as": "rank"}], "sort": [{"field": "title", "order": "descending"}]}, {"filter": "(datum.rank < 35)"}]}], "data": {"name": "data-dbf5ced06b89a970d2733da399fa920a"}, "$schema": "https://vega.github.io/schema/vega-lite/v4.8.1.json", "datasets": {"data-dbf5ced06b89a970d2733da399fa920a": [{"ts": "Abschrift", "title": 3, "ts-idn": 3}, {"ts": "Abzug", "title": 1, "ts-idn": 1}, {"ts": "Akzidenz", "title": 17, "ts-idn": 17}, {"ts": "Alphabet", "title": 2, "ts-idn": 2}, {"ts": "Anschrift", "title": 3, "ts-idn": 3}, {"ts": "Anweisung", "title": 1, "ts-idn": 1}, {"ts": "Anzeige", "title": 49, "ts-idn": 49}, {"ts": "Aufsatz", "title": 1, "ts-idn": 1}, {"ts": "Aufsteller", "title": 4, "ts-idn": 4}, {"ts": "Auktionskatalog", "title": 1, "ts-idn": 1}, {"ts": "Ausleihe", "title": 1, "ts-idn": 1}, {"ts": "Ausstellungsplakat", "title": 5, "ts-idn": 5}, {"ts": "Ausweis", "title": 3, "ts-idn": 3}, {"ts": "Beilage", "title": 6, "ts-idn": 6}, {"ts": "Beispielsammlung", "title": 1, "ts-idn": 1}, {"ts": "Beschilderung", "title": 3, "ts-idn": 3}, {"ts": "Bestellschein", "title": 12, "ts-idn": 12}, {"ts": "Bildliche Darstellung", "title": 1, "ts-idn": 1}, {"ts": "Bildplatte", "title": 3, "ts-idn": 3}, {"ts": "Brief", "title": 3, "ts-idn": 3}, {"ts": "Briefbogen", "title": 115, "ts-idn": 115}, {"ts": "Briefkopf", "title": 17, "ts-idn": 17}, {"ts": "Briefpapier", "title": 35, "ts-idn": 35}, {"ts": "Briefumschlag", "title": 29, "ts-idn": 29}, {"ts": "Broschur", "title": 6, "ts-idn": 6}, {"ts": "Broschu\u0308re", "title": 9, "ts-idn": 9}, {"ts": "Buch", "title": 14, "ts-idn": 14}, {"ts": "Bucheinband", "title": 143, "ts-idn": 143}, {"ts": "Buchkunst", "title": 6, "ts-idn": 6}, {"ts": "Buchru\u0308cken", "title": 23, "ts-idn": 23}, {"ts": "Buchtitel", "title": 8, "ts-idn": 8}, {"ts": "Collage", "title": 1, "ts-idn": 1}, {"ts": "Corporate Design", "title": 2, "ts-idn": 2}, {"ts": "Dia", "title": 3, "ts-idn": 3}, {"ts": "Diplom", "title": 1, "ts-idn": 1}, {"ts": "Dokument", "title": 3, "ts-idn": 3}, {"ts": "Druckbogen", "title": 4, "ts-idn": 4}, {"ts": "Druckschrift", "title": 66, "ts-idn": 66}, {"ts": "Druckwerk", "title": 34, "ts-idn": 34}, {"ts": "Durchschreibpapier", "title": 1, "ts-idn": 1}, {"ts": "Einbanddecke", "title": 2, "ts-idn": 2}, {"ts": "Einladungskarte", "title": 5, "ts-idn": 5}, {"ts": "Eintrittskarte", "title": 2, "ts-idn": 2}, {"ts": "Empfehlungskarte", "title": 21, "ts-idn": 21}, {"ts": "Entwurf", "title": 28, "ts-idn": 28}, {"ts": "Entwurfszeichnung", "title": 2, "ts-idn": 2}, {"ts": "Ernennung", "title": 2, "ts-idn": 2}, {"ts": "Etikett", "title": 3, "ts-idn": 3}, {"ts": "Exlibris", "title": 38, "ts-idn": 38}, {"ts": "Fahne", "title": 6, "ts-idn": 6}, {"ts": "Faltblatt", "title": 5, "ts-idn": 5}, {"ts": "Festschrift", "title": 1, "ts-idn": 1}, {"ts": "Filmplakat", "title": 17, "ts-idn": 17}, {"ts": "Filmprogramm", "title": 1, "ts-idn": 1}, {"ts": "Firmenzeichen", "title": 59, "ts-idn": 59}, {"ts": "Formular", "title": 27, "ts-idn": 27}, {"ts": "Fotogramm", "title": 1, "ts-idn": 1}, {"ts": "Fotokopie", "title": 2, "ts-idn": 2}, {"ts": "Gebrauchsgrafik", "title": 29, "ts-idn": 29}, {"ts": "Gedenkblatt", "title": 1, "ts-idn": 1}, {"ts": "Gema\u0308lde", "title": 1, "ts-idn": 1}, {"ts": "Gescha\u0308ftskarte", "title": 3, "ts-idn": 3}, {"ts": "Gescha\u0308ftsunterlage", "title": 2, "ts-idn": 2}, {"ts": "Glu\u0308ckwunsch", "title": 3, "ts-idn": 3}, {"ts": "Glu\u0308ckwunschkarte", "title": 30, "ts-idn": 30}, {"ts": "Grabinschrift", "title": 3, "ts-idn": 3}, {"ts": "Graphisches Symbol", "title": 3, "ts-idn": 3}, {"ts": "Gru\u00dfkarte", "title": 3, "ts-idn": 3}, {"ts": "Handschrift", "title": 1, "ts-idn": 1}, {"ts": "Handzettel", "title": 21, "ts-idn": 21}, {"ts": "Hausordnung", "title": 1, "ts-idn": 1}, {"ts": "Heft", "title": 8, "ts-idn": 8}, {"ts": "Heiratsanzeige", "title": 1, "ts-idn": 1}, {"ts": "Holzschnitt", "title": 4, "ts-idn": 4}, {"ts": "Illustration", "title": 106, "ts-idn": 106}, {"ts": "Informationsmaterial", "title": 1, "ts-idn": 1}, {"ts": "Initiale", "title": 6, "ts-idn": 6}, {"ts": "Kalender", "title": 14, "ts-idn": 14}, {"ts": "Kalligraphie", "title": 6, "ts-idn": 6}, {"ts": "Kartei", "title": 1, "ts-idn": 1}, {"ts": "Klischee", "title": 22, "ts-idn": 22}, {"ts": "Kontaktkopie", "title": 1, "ts-idn": 1}, {"ts": "Kopie", "title": 2, "ts-idn": 2}, {"ts": "Kunstdruck", "title": 1, "ts-idn": 1}, {"ts": "Kursive", "title": 1, "ts-idn": 1}, {"ts": "Ku\u0308nstlerbuch", "title": 8, "ts-idn": 8}, {"ts": "Layout", "title": 7, "ts-idn": 7}, {"ts": "Lichtsatz", "title": 1, "ts-idn": 1}, {"ts": "Liste", "title": 1, "ts-idn": 1}, {"ts": "Manuskript", "title": 2, "ts-idn": 2}, {"ts": "Mappe", "title": 1, "ts-idn": 1}, {"ts": "Marke", "title": 3, "ts-idn": 3}, {"ts": "Matrize", "title": 4, "ts-idn": 4}, {"ts": "Menu\u0308", "title": 2, "ts-idn": 2}, {"ts": "Metallgegenstand", "title": 1, "ts-idn": 1}, {"ts": "Mitglied", "title": 2, "ts-idn": 2}, {"ts": "Monografische Reihe", "title": 1, "ts-idn": 1}, {"ts": "Montage", "title": 2, "ts-idn": 2}, {"ts": "Negativ", "title": 4, "ts-idn": 4}, {"ts": "Neujahrswunsch", "title": 20, "ts-idn": 20}, {"ts": "Notiz", "title": 15, "ts-idn": 15}, {"ts": "Ornament", "title": 5, "ts-idn": 5}, {"ts": "Papier", "title": 5, "ts-idn": 5}, {"ts": "Paratext", "title": 2, "ts-idn": 2}, {"ts": "Plakat", "title": 13, "ts-idn": 13}, {"ts": "Postkarte", "title": 3, "ts-idn": 3}, {"ts": "Postsendung", "title": 13, "ts-idn": 13}, {"ts": "Pre-press", "title": 5, "ts-idn": 5}, {"ts": "Privatdruck", "title": 1, "ts-idn": 1}, {"ts": "Probedruck", "title": 44, "ts-idn": 44}, {"ts": "Programmheft", "title": 13, "ts-idn": 13}, {"ts": "Prospekt", "title": 24, "ts-idn": 24}, {"ts": "Quittung", "title": 1, "ts-idn": 1}, {"ts": "Radierung", "title": 1, "ts-idn": 1}, {"ts": "Reproduktion", "title": 3, "ts-idn": 3}, {"ts": "Satz", "title": 2, "ts-idn": 2}, {"ts": "Scheck", "title": 1, "ts-idn": 1}, {"ts": "Schild", "title": 1, "ts-idn": 1}, {"ts": "Schmalfilm", "title": 1, "ts-idn": 1}, {"ts": "Schmutztitel", "title": 4, "ts-idn": 4}, {"ts": "Schreibu\u0308bung", "title": 7, "ts-idn": 7}, {"ts": "Schrift", "title": 14, "ts-idn": 14}, {"ts": "Schriftprobe", "title": 17, "ts-idn": 17}, {"ts": "Schrifttum", "title": 3, "ts-idn": 3}, {"ts": "Schuber", "title": 3, "ts-idn": 3}, {"ts": "Schulheft", "title": 1, "ts-idn": 1}, {"ts": "Schulzeugnis", "title": 1, "ts-idn": 1}, {"ts": "Schutzumschlag", "title": 143, "ts-idn": 143}, {"ts": "Seite", "title": 16, "ts-idn": 16}, {"ts": "Siegel", "title": 1, "ts-idn": 1}, {"ts": "Skizze", "title": 20, "ts-idn": 20}, {"ts": "Skizzenbuch", "title": 4, "ts-idn": 4}, {"ts": "Speisekarte", "title": 1, "ts-idn": 1}, {"ts": "Stadtwappen", "title": 1, "ts-idn": 1}, {"ts": "Stempel", "title": 3, "ts-idn": 3}, {"ts": "Stereotypie", "title": 8, "ts-idn": 8}, {"ts": "Studie", "title": 1, "ts-idn": 1}, {"ts": "Tafel", "title": 1, "ts-idn": 1}, {"ts": "Telegramm", "title": 1, "ts-idn": 1}, {"ts": "Text", "title": 3, "ts-idn": 3}, {"ts": "Titelblatt", "title": 227, "ts-idn": 227}, {"ts": "Titelschild", "title": 33, "ts-idn": 33}, {"ts": "Titelseite", "title": 9, "ts-idn": 9}, {"ts": "Tu\u0308rschild", "title": 1, "ts-idn": 1}, {"ts": "Typografie", "title": 7, "ts-idn": 7}, {"ts": "Typoskript", "title": 4, "ts-idn": 4}, {"ts": "Umschlag", "title": 152, "ts-idn": 152}, {"ts": "Unvero\u0308ffentlichtes Werk", "title": 2, "ts-idn": 2}, {"ts": "Urkunde", "title": 8, "ts-idn": 8}, {"ts": "U\u0308berschrift", "title": 4, "ts-idn": 4}, {"ts": "Verkaufskatalog", "title": 1, "ts-idn": 1}, {"ts": "Verlagsprogramm", "title": 3, "ts-idn": 3}, {"ts": "Verlegermarke", "title": 35, "ts-idn": 35}, {"ts": "Verlo\u0308bnis", "title": 1, "ts-idn": 1}, {"ts": "Verpackung", "title": 1, "ts-idn": 1}, {"ts": "Versand", "title": 1, "ts-idn": 1}, {"ts": "Visitenkarte", "title": 12, "ts-idn": 12}, {"ts": "Vita", "title": 1, "ts-idn": 1}, {"ts": "Wahlplakat", "title": 1, "ts-idn": 1}, {"ts": "Wappenschild", "title": 1, "ts-idn": 1}, {"ts": "Werbebeilage", "title": 5, "ts-idn": 5}, {"ts": "Werbedrucksache", "title": 2, "ts-idn": 2}, {"ts": "Werbegrafik", "title": 1, "ts-idn": 1}, {"ts": "Werbeplakat", "title": 22, "ts-idn": 22}, {"ts": "Werbeschild", "title": 11, "ts-idn": 11}, {"ts": "Werbestempel", "title": 2, "ts-idn": 2}, {"ts": "Zeitschriftenaufsatz", "title": 7, "ts-idn": 7}, {"ts": "Zeitschriftentitel", "title": 1, "ts-idn": 1}, {"ts": "Zeitungsausschnitt", "title": 5, "ts-idn": 5}, {"ts": "Zeitungskopf", "title": 6, "ts-idn": 6}, {"ts": "Zettel", "title": 1, "ts-idn": 1}, {"ts": "Zitat", "title": 1, "ts-idn": 1}]}};
var embedOpt = {"mode": "vega-lite"};
function showError(el, error){
el.innerHTML = ('<div class="error" style="color:red;">'
+ '<p>JavaScript Error: ' + error.message + '</p>'
+ "<p>This usually means there's a typo in your chart specification. "
+ "See the javascript console for the full traceback.</p>"
+ '</div>');
throw error;
}
const el = document.getElementById('vis');
vegaEmbed("#vis", spec, embedOpt)
.catch(error => showError(el, error));
})(vegaEmbed);
</script>
</body>
</html>