Skip to content

Commit

Permalink
Adding queries to refinery sankey to include industry transformation (
Browse files Browse the repository at this point in the history
…#4342)

* Adding queries to refinery sankey to include industry transformation

* Minor typo and syntax fix

---------

Co-authored-by: Kyra de Haan <[email protected]>
  • Loading branch information
kaskranenburgQ and kndehaan authored Sep 30, 2024
1 parent c9fb9a8 commit 71481b3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
15 changes: 15 additions & 0 deletions app/assets/javascripts/d3/sankey.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,9 @@ D3.sankey =
{id: 'heat_input', column: 0, label: 'heat_input', color: '#d62728'},
{id: 'fuel_import', column: 0, label: 'fuel_import', color: '#854321'},
{id: 'synthetic_production', column: 0, label: 'synthetic_production', color: '#BFEFFF'},
{id: 'non_refinery_products_input', column: 0, label: 'non_refinery_products', color: '#ff7f0e'}
{id: 'refinery', column: 1, label: 'refinery', color: '#854321'},
{id: 'industry_transformation', column: 1, label: 'industry_transformation', color: '#43464B'},
{id: 'distribution_diesel', column: 2, label: 'distribution_diesel', color: '#854321'},
{id: 'distribution_gasoline', column: 2, label: 'distribution_gasoline', color: '#8B0000'},
{id: 'distribution_lpg', column: 2, label: 'distribution_lpg', color: '#CCCCCC'},
Expand All @@ -948,6 +950,7 @@ D3.sankey =
{id: 'distribution_oil_products', column: 2, label: 'distribution_oil_products', color: '#854321'},
{id: 'distribution_refinery_gas', column: 2, label: 'distribution_refinery_gas', color: '#7f7f7f'},
{id: 'loss', column: 2},
{id: 'non_refinery_products_output', column: 2, label: 'non_refinery_products', color: '#ff7f0e'},
{id: 'households', column: 3, label: 'households'},
{id: 'buildings', column: 3, label: 'buildings'},
{id: 'transport', column: 3, label: 'transport'},
Expand All @@ -959,8 +962,12 @@ D3.sankey =
]
links: [
{left: 'oil_import', right: 'refinery', gquery: 'crude_oil_import_to_refinery_in_sankey', color: '#854321'},
{left: 'oil_import', right: 'industry_transformation', gquery: 'crude_oil_import_to_industry_transformation_in_sankey', color: '#854321'},
{left: 'extraction', right: 'refinery', gquery: 'crude_oil_extraction_to_refinery_in_sankey', color: '#854321'},
{left: 'extraction', right: 'industry_transformation', gquery: 'crude_oil_extraction_to_industry_transformation_in_sankey', color: '#854321'},
{left: 'heat_input', right: 'refinery', gquery: 'refinery_heat_input_in_sankey', color: '#d62728'},
{left: 'heat_input', right: 'industry_transformation', gquery: 'industry_transformation_heat_input_in_sankey', color: '#d62728'},
{left: 'non_refinery_products_input', right: 'industry_transformation', gquery: 'non_refinery_products_to_industry_transformation_in_sankey', color: '#ff7f0e'},
{left: 'refinery', right: 'distribution_diesel', gquery: 'diesel_refinery_to_distribution_in_sankey', color: '#854321'},
{left: 'refinery', right: 'distribution_gasoline', gquery: 'gasoline_refinery_to_distribution_in_sankey', color: '#8B0000'},
{left: 'refinery', right: 'distribution_lpg', gquery: 'lpg_refinery_to_distribution_in_sankey', color: '#CCCCCC'},
Expand All @@ -969,6 +976,14 @@ D3.sankey =
{left: 'refinery', right: 'distribution_oil_products',gquery: 'oil_products_refinery_to_distribution_in_sankey', color: '#854321'},
{left: 'refinery', right: 'distribution_refinery_gas',gquery: 'refinery_gas_refinery_to_distribution_in_sankey', color: '#7f7f7f'},
{left: 'refinery', right: 'loss', gquery: 'refinery_loss_in_sankey', color: '#416B86'},
{left: 'industry_transformation', right: 'distribution_diesel', gquery: 'diesel_industry_transformation_to_distribution_in_sankey', color: '#854321'},
{left: 'industry_transformation', right: 'distribution_gasoline', gquery: 'gasoline_industry_transformation_to_distribution_in_sankey', color: '#8B0000'},
{left: 'industry_transformation', right: 'distribution_lpg', gquery: 'lpg_industry_transformation_to_distribution_in_sankey', color: '#CCCCCC'},
{left: 'industry_transformation', right: 'distribution_hfo', gquery: 'hfo_industry_transformation_to_distribution_in_sankey', color: '#BA7D40'},
{left: 'industry_transformation', right: 'distribution_kerosene', gquery: 'kerosene_industry_transformation_to_distribution_in_sankey', color: '#BFEFFF'},
{left: 'industry_transformation', right: 'distribution_oil_products',gquery: 'oil_products_industry_transformation_to_distribution_in_sankey', color: '#854321'},
{left: 'industry_transformation', right: 'loss', gquery: 'industry_transformation_loss_in_sankey', color: '#416B86'},
{left: 'industry_transformation', right: 'non_refinery_products_output', gquery: 'industry_transformation_to_non_refinery_products_in_sankey', color: '#ff7f0e'},
{left: 'fuel_import', right: 'distribution_diesel', gquery: 'diesel_import_to_distribution_in_sankey', color: '#854321'},
{left: 'fuel_import', right: 'distribution_gasoline', gquery: 'gasoline_import_to_distribution_in_sankey', color: '#8B0000'},
{left: 'fuel_import', right: 'distribution_lpg', gquery: 'lpg_import_to_distribution_in_sankey', color: '#CCCCCC'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ en:
ambient_heat: "ambient heat"
ammonia: "ammonia"
biomass_products: "biomass products"
non_biogenic_carriers: "Non-biogenic carriers"
non_biogenic_carriers: "Non-biogenic carriers"
captured: "captured"
coal: "coal"
coal_households: "coal for households"
Expand Down Expand Up @@ -364,3 +364,5 @@ en:
waste_mix: "waste mix"
methanol: "methanol"
imported_methanol: "imported methanol"
non_refinery_products: "non-refinery products"
industry_transformation: "industry transformation"
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ nl:
ambient_heat: "omgevingswarmte"
ammonia: "ammoniak"
biomass_products: "biomassaproducten"
non_biogenic_carriers: "Niet-biogene dragers"
non_biogenic_carriers: "Niet-biogene dragers"
captured: "afgevangen"
coal: "kolen"
coal_households: "Kolen voor huishoudens"
Expand Down Expand Up @@ -346,3 +346,5 @@ nl:
methanol: "methanol"
imported_methanol: "geïmporteerde methanol"
not_defined: "niet gedefinieerd"
non_refinery_products: "niet-raffinage producten"
industry_transformation: "industrie transformatie"

0 comments on commit 71481b3

Please sign in to comment.