US energy flow, 2024
Two-thirds of the energy the US used in 2024 ended as rejected energy. Each link's width is its flow in quadrillion BTU, set by encoding.value.
US energy from source to end use in 2024. This chart is drawn in the browser.
{
"type": "sankey",
"data": "\u0000demo-fold:0",
"encoding": {
"source": {
"field": "source",
"type": "nominal"
},
"target": {
"field": "target",
"type": "nominal"
},
"value": {
"field": "value",
"type": "quantitative",
"format": ".2f"
}
},
"chrome": {
"title": "Rejected energy was 66% of US energy consumption in 2024",
"subtitle": "Energy from each fuel through electricity generation and end-use sectors, 2024 (quadrillion BTU)"
}
}
{
"type": "sankey",
"data": [
{
"source": "Solar",
"target": "Electricity generation",
"value": 0.75
},
{
"source": "Nuclear",
"target": "Electricity generation",
"value": 8.17
},
{
"source": "Hydro",
"target": "Electricity generation",
"value": 0.83
},
{
"source": "Wind",
"target": "Electricity generation",
"value": 1.54
},
{
"source": "Natural gas",
"target": "Electricity generation",
"value": 13.94
},
{
"source": "Coal",
"target": "Electricity generation",
"value": 7.01
},
// … 36 more rows; Copy includes them
],
"encoding": {
"source": {
"field": "source",
"type": "nominal"
},
"target": {
"field": "target",
"type": "nominal"
},
"value": {
"field": "value",
"type": "quantitative",
"format": ".2f"
}
},
"chrome": {
"title": "Rejected energy was 66% of US energy consumption in 2024",
"subtitle": "Energy from each fuel through electricity generation and end-use sectors, 2024 (quadrillion BTU)"
}
}import { Sankey } from "@opendata-ai/openchart-react";
import type { SankeySpec } from "@opendata-ai/openchart-core";
import "@opendata-ai/openchart-core/styles.css";
const data = "\u0000demo-fold:0";
const spec: SankeySpec = {
data,
"type": "sankey",
"encoding": {
"source": {
"field": "source",
"type": "nominal"
},
"target": {
"field": "target",
"type": "nominal"
},
"value": {
"field": "value",
"type": "quantitative",
"format": ".2f"
}
},
"chrome": {
"title": "Rejected energy was 66% of US energy consumption in 2024",
"subtitle": "Energy from each fuel through electricity generation and end-use sectors, 2024 (quadrillion BTU)"
}
};
export function Example() {
return <Sankey spec={spec} />;
}
import { Sankey } from "@opendata-ai/openchart-react";
import type { SankeySpec } from "@opendata-ai/openchart-core";
import "@opendata-ai/openchart-core/styles.css";
const data = [/* 42 rows; Copy includes them */];
const spec: SankeySpec = {
data,
"type": "sankey",
"encoding": {
"source": {
"field": "source",
"type": "nominal"
},
"target": {
"field": "target",
"type": "nominal"
},
"value": {
"field": "value",
"type": "quantitative",
"format": ".2f"
}
},
"chrome": {
"title": "Rejected energy was 66% of US energy consumption in 2024",
"subtitle": "Energy from each fuel through electricity generation and end-use sectors, 2024 (quadrillion BTU)"
}
};
export function Example() {
return <Sankey spec={spec} />;
}
<script setup lang="ts">
import { Sankey } from "@opendata-ai/openchart-vue";
import type { SankeySpec } from "@opendata-ai/openchart-core";
import "@opendata-ai/openchart-core/styles.css";
const data = "\u0000demo-fold:0";
const spec: SankeySpec = {
data,
"type": "sankey",
"encoding": {
"source": {
"field": "source",
"type": "nominal"
},
"target": {
"field": "target",
"type": "nominal"
},
"value": {
"field": "value",
"type": "quantitative",
"format": ".2f"
}
},
"chrome": {
"title": "Rejected energy was 66% of US energy consumption in 2024",
"subtitle": "Energy from each fuel through electricity generation and end-use sectors, 2024 (quadrillion BTU)"
}
};
</script>
<template>
<Sankey :spec="spec" />
</template>
<script setup lang="ts">
import { Sankey } from "@opendata-ai/openchart-vue";
import type { SankeySpec } from "@opendata-ai/openchart-core";
import "@opendata-ai/openchart-core/styles.css";
const data = [/* 42 rows; Copy includes them */];
const spec: SankeySpec = {
data,
"type": "sankey",
"encoding": {
"source": {
"field": "source",
"type": "nominal"
},
"target": {
"field": "target",
"type": "nominal"
},
"value": {
"field": "value",
"type": "quantitative",
"format": ".2f"
}
},
"chrome": {
"title": "Rejected energy was 66% of US energy consumption in 2024",
"subtitle": "Energy from each fuel through electricity generation and end-use sectors, 2024 (quadrillion BTU)"
}
};
</script>
<template>
<Sankey :spec="spec" />
</template>
<script lang="ts">
import { Sankey } from "@opendata-ai/openchart-svelte";
import type { SankeySpec } from "@opendata-ai/openchart-core";
import "@opendata-ai/openchart-core/styles.css";
const data = "\u0000demo-fold:0";
const spec: SankeySpec = {
data,
"type": "sankey",
"encoding": {
"source": {
"field": "source",
"type": "nominal"
},
"target": {
"field": "target",
"type": "nominal"
},
"value": {
"field": "value",
"type": "quantitative",
"format": ".2f"
}
},
"chrome": {
"title": "Rejected energy was 66% of US energy consumption in 2024",
"subtitle": "Energy from each fuel through electricity generation and end-use sectors, 2024 (quadrillion BTU)"
}
};
</script>
<Sankey {spec} />
<script lang="ts">
import { Sankey } from "@opendata-ai/openchart-svelte";
import type { SankeySpec } from "@opendata-ai/openchart-core";
import "@opendata-ai/openchart-core/styles.css";
const data = [/* 42 rows; Copy includes them */];
const spec: SankeySpec = {
data,
"type": "sankey",
"encoding": {
"source": {
"field": "source",
"type": "nominal"
},
"target": {
"field": "target",
"type": "nominal"
},
"value": {
"field": "value",
"type": "quantitative",
"format": ".2f"
}
},
"chrome": {
"title": "Rejected energy was 66% of US energy consumption in 2024",
"subtitle": "Energy from each fuel through electricity generation and end-use sectors, 2024 (quadrillion BTU)"
}
};
</script>
<Sankey {spec} />
import { createSankey } from "@opendata-ai/openchart-vanilla";
import type { SankeySpec } from "@opendata-ai/openchart-core";
import "@opendata-ai/openchart-core/styles.css";
const data = "\u0000demo-fold:0";
const spec: SankeySpec = {
data,
"type": "sankey",
"encoding": {
"source": {
"field": "source",
"type": "nominal"
},
"target": {
"field": "target",
"type": "nominal"
},
"value": {
"field": "value",
"type": "quantitative",
"format": ".2f"
}
},
"chrome": {
"title": "Rejected energy was 66% of US energy consumption in 2024",
"subtitle": "Energy from each fuel through electricity generation and end-use sectors, 2024 (quadrillion BTU)"
}
};
const container = document.getElementById("chart");
if (!container) throw new Error('Add <div id="chart"></div> to the page first.');
createSankey(container, spec);
import { createSankey } from "@opendata-ai/openchart-vanilla";
import type { SankeySpec } from "@opendata-ai/openchart-core";
import "@opendata-ai/openchart-core/styles.css";
const data = [/* 42 rows; Copy includes them */];
const spec: SankeySpec = {
data,
"type": "sankey",
"encoding": {
"source": {
"field": "source",
"type": "nominal"
},
"target": {
"field": "target",
"type": "nominal"
},
"value": {
"field": "value",
"type": "quantitative",
"format": ".2f"
}
},
"chrome": {
"title": "Rejected energy was 66% of US energy consumption in 2024",
"subtitle": "Energy from each fuel through electricity generation and end-use sectors, 2024 (quadrillion BTU)"
}
};
const container = document.getElementById("chart");
if (!container) throw new Error('Add <div id="chart"></div> to the page first.');
createSankey(container, spec);