cms statistik
This commit is contained in:
parent
ad55e152d1
commit
0cd2c2dee0
@ -149,8 +149,7 @@ aliases:
|
|||||||
locale: "DE"
|
locale: "DE"
|
||||||
});
|
});
|
||||||
var option;
|
var option;
|
||||||
jQuery.get(
|
jQuery.get("/data/abiturdurchschnitte.json",
|
||||||
"https://cantorgymnasium.de/data/abiturdurchschnitte.json",
|
|
||||||
function (data) {
|
function (data) {
|
||||||
chart.setOption(
|
chart.setOption(
|
||||||
(option = {
|
(option = {
|
||||||
@ -161,8 +160,8 @@ aliases:
|
|||||||
trigger: "axis"
|
trigger: "axis"
|
||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
data: data.map(function (item) {
|
data: data['abiturdurchschnitte'].map(function (item) {
|
||||||
return item[0];
|
return item['jahr'];
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
@ -225,8 +224,8 @@ aliases:
|
|||||||
series: {
|
series: {
|
||||||
name: "Abiturdurchschnitt",
|
name: "Abiturdurchschnitt",
|
||||||
type: "line",
|
type: "line",
|
||||||
data: data.map(function (item) {
|
data: data['abiturdurchschnitte'].map(function (item) {
|
||||||
return item[1];
|
return item['schnitt'];
|
||||||
}),
|
}),
|
||||||
markLine: {
|
markLine: {
|
||||||
silent: true,
|
silent: true,
|
||||||
|
@ -8,9 +8,8 @@ gallery: false
|
|||||||
aliases:
|
aliases:
|
||||||
- /schulchronik/pages/schülerzahlen
|
- /schulchronik/pages/schülerzahlen
|
||||||
---
|
---
|
||||||
|
|
||||||
|Schuljahr|Schülerzahlen gesamt|davon Mädchen|Anteil Mädchen in %|
|
|Schuljahr|Schülerzahlen gesamt|davon Mädchen|Anteil Mädchen in %|
|
||||||
|-|-|-|-|
|
|---|---|---|---|
|
||||||
|1988/1989|54|11|20,3|
|
|1988/1989|54|11|20,3|
|
||||||
|1989/1990|101|14|13,8|
|
|1989/1990|101|14|13,8|
|
||||||
|1990/1991|173|36|20,8|
|
|1990/1991|173|36|20,8|
|
||||||
|
@ -1 +1,119 @@
|
|||||||
[[1992,1.4],[1993,1.5],[1994,1.5],[1995,1.7],[1996,1.7],[1997,1.7],[1998,2],[2000,2.1],[2002,1.9],[2003,1.8],[2004,1.9],[2005,1.8],[2006,1.7],[2007,1.8],[2008,1.9],[2009,1.7],[2010,1.9],[2011,2.25],[2012,2.09],[2013,1.96],[2014,1.9],[2015,2.02],[2016,2],[2017,1.91],[2018,1.9],[2019,1.8],[2020,1.9],[2021,1.81],[2022,1.74]]
|
{
|
||||||
|
"abiturdurchschnitte": [
|
||||||
|
{ "jahr": 1992,
|
||||||
|
"schnitt": 1.4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 1993,
|
||||||
|
"schnitt": 1.5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 1994,
|
||||||
|
"schnitt": 1.5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 1995,
|
||||||
|
"schnitt": 1.7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 1996,
|
||||||
|
"schnitt": 1.7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 1997,
|
||||||
|
"schnitt": 1.7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 1998,
|
||||||
|
"schnitt": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2000,
|
||||||
|
"schnitt": 2.1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2002,
|
||||||
|
"schnitt": 1.9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2003,
|
||||||
|
"schnitt": 1.8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2004,
|
||||||
|
"schnitt": 1.9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2005,
|
||||||
|
"schnitt": 1.8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2006,
|
||||||
|
"schnitt": 1.7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2007,
|
||||||
|
"schnitt": 1.8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2008,
|
||||||
|
"schnitt": 1.9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2009,
|
||||||
|
"schnitt": 1.7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2010,
|
||||||
|
"schnitt": 1.9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2011,
|
||||||
|
"schnitt": 2.25
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2012,
|
||||||
|
"schnitt": 2.09
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2013,
|
||||||
|
"schnitt": 1.96
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2014,
|
||||||
|
"schnitt": 1.9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2015,
|
||||||
|
"schnitt": 2.02
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2016,
|
||||||
|
"schnitt": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2017,
|
||||||
|
"schnitt": 1.91
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2018,
|
||||||
|
"schnitt": 1.9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2019,
|
||||||
|
"schnitt": 1.8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2020,
|
||||||
|
"schnitt": 1.9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2021,
|
||||||
|
"schnitt": 1.81
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"jahr": 2022,
|
||||||
|
"schnitt": 1.74
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -87,6 +87,24 @@ collections:
|
|||||||
name: "alias"
|
name: "alias"
|
||||||
widget: "string"
|
widget: "string"
|
||||||
- {label: "Text", name: "body", widget: "markdown", required: false}
|
- {label: "Text", name: "body", widget: "markdown", required: false}
|
||||||
|
- name: "statistik"
|
||||||
|
icon: "stats"
|
||||||
|
label: "Statistik"
|
||||||
|
editor:
|
||||||
|
preview: false
|
||||||
|
files:
|
||||||
|
- name: "abiturdurchschnitte"
|
||||||
|
label: "Abiturdurchschnitte"
|
||||||
|
file: "static/data/abiturdurchschnitte.json"
|
||||||
|
fields:
|
||||||
|
- label: "Abiturdurchschnitte"
|
||||||
|
label_singular: "Abiturdurchschnitt"
|
||||||
|
name: "abiturdurchschnitte"
|
||||||
|
widget: "list"
|
||||||
|
required: false
|
||||||
|
fields:
|
||||||
|
- {label: "Jahr", name: "jahr", widget: "number", required: true}
|
||||||
|
- {label: "Schnitt", name: "schnitt", widget: "number", value_type: "float", step: 0.01, required: true}
|
||||||
- name: "cantorpreis"
|
- name: "cantorpreis"
|
||||||
icon: "award"
|
icon: "award"
|
||||||
label: "Cantor-Preisträger"
|
label: "Cantor-Preisträger"
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
CMS.init();
|
CMS.init();
|
||||||
</script>
|
</script>
|
||||||
<script id="icons">
|
<script id="icons">
|
||||||
var icons = [['settings', 'mdi mdi-cog-outline'], ['user', 'mdi mdi-fountain-pen-tip'], ['page', 'mdi mdi-file-document-outline'], ['page-add', 'mdi mdi-file-document-plus-outline'], ['document', 'mdi mdi-file-document-multiple-outline'], ['news', 'mdi mdi-newspaper'], ['award', 'mdi mdi-seal-variant'], ['group', 'mdi mdi-crowd'], ['trophy', 'mdi mdi-trophy-outline'], ['pi', 'mdi mdi-pi-box'], ['pillar', 'mdi mdi-pillar'], ['graduation-cap', 'mdi mdi-school-outline'], ['help', 'mdi mdi-lifebuoy'], ['dash', 'mdi mdi-monitor-dashboard'], ['presentation', 'mdi mdi-presentation'], ['superhaufen', 'mdi mdi-view-dashboard']];
|
var icons = [['settings', 'mdi mdi-cog-outline'], ['user', 'mdi mdi-fountain-pen-tip'], ['page', 'mdi mdi-file-document-outline'], ['page-add', 'mdi mdi-file-document-plus-outline'], ['document', 'mdi mdi-file-document-multiple-outline'], ['news', 'mdi mdi-newspaper'], ['award', 'mdi mdi-seal-variant'], ['group', 'mdi mdi-crowd'], ['trophy', 'mdi mdi-trophy-outline'], ['pi', 'mdi mdi-pi-box'], ['pillar', 'mdi mdi-pillar'], ['graduation-cap', 'mdi mdi-school-outline'], ['help', 'mdi mdi-lifebuoy'], ['dash', 'mdi mdi-monitor-dashboard'], ['presentation', 'mdi mdi-presentation'], ['superhaufen', 'mdi mdi-view-dashboard'], ['stats', 'mdi mdi-chart-bar']];
|
||||||
icons.forEach(icon => {
|
icons.forEach(icon => {
|
||||||
CMS.registerIcon(icon[0], ({}) => { return(h('i', {className: icon[1] + " icon-md"})); });
|
CMS.registerIcon(icon[0], ({}) => { return(h('i', {className: icon[1] + " icon-md"})); });
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user