Published
Edited
Jul 8, 2022
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
### Types of plant output vs. input
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
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
facilitiesKeys = _.uniq(deposits_input_output_parsed.map(d => d.Type))
Insert cell
barchartData = []
Insert cell
selectedFacility.forEach((d) => {
barchartData.push({"Zeit": d.Zeit, "Type": d.Type, "El": d.Input, "BL": d.BL})
barchartData.push({"Zeit": d.Zeit, "Type": d.Type, "El": d.Output, "BL": d.BL})
})
Insert cell
selectedFacility = typesoffacilities[facilityRadio]
Insert cell
typesoffacilities = _.groupBy((d) => d.Type, region_inout[selectinout[0].label])
Insert cell
region_inout = _.groupBy((d) => d.BL, input_output_regions[selectinout[0].label])
Insert cell
input_output_regions = _.groupBy((d) => d.BL, deposits_input_output_parsed)
Insert cell
deposits_input_output_parsed = deposits_input_output.map((d) => {
return {
Zeit: d.Zeit,
Type: d["2_Auspraegung_Label"],
Input: +d["ABF001__Input_von_Abfallentsorgungsanlagen__1000_t"],
Output: +d["ABF005__Output_von_Abfallentsorgungsanlagen__1000_t"],
BL: d["1_Auspraegung_Label"]
}
})
Insert cell
deposits_input_output = FileAttachment("StatesDepositsOutputInput@1.csv").csv()
Insert cell
Insert cell
Insert cell
Insert cell
import {StackedBarChart} from "@d3/stacked-bar-chart"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more