Public
Edited
Nov 7, 2023
3 forks
3 stars
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
viewof auswahl = Inputs.select([null].concat(names.labels), {label: "Darzustellende Zielwerte", value:names.labels[1]})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Zielwertberechnung
SELECT * FROM "Zielwertberechnung"
WHERE "Gemeinde" = ${document.getElementById("mySearch").value}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Zielwertberechnung
SELECT "Bezirk",
SUM("SQ_WuD") as "GesamtSQ_WuD", SUM("SQ_Mob") as "GesamtSQ_Mob", SUM("SQ_IuG") as "GesamtSQ_IuG", SUM("SQ_LuF") as "GesamtSQ_LuF",
SUM("SQ_EE_WAKA") as "GesamtSQ_WAKA", SUM("SQ_EE_WIKA") as "GesamtSQ_WIKA", SUM("SQ_EE_PV") as "GesamtSQ_PV", SUM("SQ_EE_Solartherm") as "GesamtSQ_Solartherm", SUM("SQ_EE_Biomasse") as "GesamtSQ_BM", SUM("SQ_EE_Biogas") as "GesamtSQ_Biogas", SUM("SQ_EE_Umweltw") as "GesamtSQ_Umweltw", SUM("PeG_WuD") as "GesamtPeG_WuD", SUM("PeG_Mob") as "GesamtPeG_Mob", SUM("PeG_IuG") as "GesamtPeG_IuG", SUM("PeG_LuF") as "GesamtPeG_LuF",
SUM("PeG_WAKA") as "GesamtPeG_WAKA", SUM("PeG_WIKA") as "GesamtPeG_WIKA", SUM("PeG_PV") as "GesamtPeG_PV", SUM("PeG_Solartherm") as "GesamtPeG_Solartherm", SUM("PeG_Biomasse") as "GesamtPeG_BM", SUM("PeG_Biogas") as "GesamtPeG_Biogas", SUM("PeG_Umweltw") as "GesamtPeG_Umweltw",
FROM "Zielwertberechnung"
WHERE "Bezirk" = (SELECT "Bezirk" FROM "Zielwertberechnung" WHERE "Gemeinde" = ${document.getElementById("mySearch").value})
GROUP BY "Bezirk"
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// Inputs.table(ZielwertberechnungEW)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
gols2 = FileAttachment("Gols2@6.xlsx").xlsx()
Insert cell
Gols2 = gols2.sheet(0, { headers: true})
Insert cell
// Inputs.table(Gols2)
Insert cell
Insert cell
Insert cell
Insert cell
import { StackedBarChart } from "@d3/diverging-stacked-bar-chart"
Insert cell
Insert cell
G2 = require("@antv/g2@3")
Insert cell
https://observablehq.com/@d3/diverging-stacked-bar-chart
https://observablehq.com/@douglyuckling/diverging-stacked-bar-chart
https://observablehq.com/@pearmini/g2-bar-chart-groupedg2-stacked-bar-chart-diverging
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
<style>
h2, h3, h4 {
max-width: 100%;
}
p, ul, ol, li {
text-align: justify; /* Blocksatz für Text */
max-width: 100%;
}
h1 {
text-align: center; /* Zentriert den Text horizontal */
max-width: 100%; /* Nimmt die gesamte verfügbare Breite */
}
</style>
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more