Skip to content

Emissions lineplots - #660

Draft
cjyetman wants to merge 7 commits into
mainfrom
emissions-lineplots
Draft

Emissions lineplots#660
cjyetman wants to merge 7 commits into
mainfrom
emissions-lineplots

Conversation

@cjyetman

@cjyetman cjyetman commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Dec 4, 2025

Copy link
Copy Markdown

Expected version change and release notes

🚨 WARNING: This PR is not expected to trigger a new version

To trigger a version bump, use at least one conventional commit message in this branch. See: https://www.conventionalcommits.org/en/v1.0.0/

@github-actions

github-actions Bot commented Dec 4, 2025

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://proud-glacier-0f640931e-660.westus2.2.azurestaticapps.net

@github-actions

github-actions Bot commented Dec 4, 2025

Copy link
Copy Markdown

Expected version change and release notes

🚨 WARNING: This PR is not expected to trigger a new version

To trigger a version bump, use at least one conventional commit message in this branch. See: https://www.conventionalcommits.org/en/v1.0.0/

@github-actions

github-actions Bot commented Dec 4, 2025

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://proud-glacier-0f640931e-660.westus2.2.azurestaticapps.net

@jacobvjk

jacobvjk commented Dec 5, 2025

Copy link
Copy Markdown
Collaborator

I think the plots would have to have a fixed lower bound of the y-axis at zero, at least for absolute emissions

@github-actions

github-actions Bot commented Dec 6, 2025

Copy link
Copy Markdown

Expected version change and release notes

🚨 WARNING: This PR is not expected to trigger a new version

To trigger a version bump, use at least one conventional commit message in this branch. See: https://www.conventionalcommits.org/en/v1.0.0/

@github-actions

github-actions Bot commented Dec 6, 2025

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://proud-glacier-0f640931e-660.westus2.2.azurestaticapps.net

@github-actions

github-actions Bot commented Dec 8, 2025

Copy link
Copy Markdown

Expected version change and release notes

🚨 WARNING: This PR is not expected to trigger a new version

To trigger a version bump, use at least one conventional commit message in this branch. See: https://www.conventionalcommits.org/en/v1.0.0/

@github-actions

github-actions Bot commented Dec 8, 2025

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://proud-glacier-0f640931e-660.westus2.2.azurestaticapps.net

@github-actions

Copy link
Copy Markdown

Expected version change and release notes

🚨 WARNING: This PR is not expected to trigger a new version

To trigger a version bump, use at least one conventional commit message in this branch. See: https://www.conventionalcommits.org/en/v1.0.0/

@github-actions

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://proud-glacier-0f640931e-660.westus2.2.azurestaticapps.net

Copilot AI review requested due to automatic review settings July 27, 2026 09:00
@github-actions

Copy link
Copy Markdown

Expected version change and release notes

🚨 WARNING: This PR is not expected to trigger a new version

To trigger a version bump, use at least one conventional commit message in this branch. See: https://www.conventionalcommits.org/en/v1.0.0/

@github-actions

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://proud-glacier-0f640931e-660.westus2.2.azurestaticapps.net

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the emissions visualizations to use line plots by routing emissions-related plot types through the existing MultiLineChart component and adapting MultiLineChart’s series grouping for emissions metrics.

Changes:

  • Switch absoluteEmissions and emissionsIntensity plots in PlotSelector from VerticalBarChart to MultiLineChart.
  • Adjust MultiLineChart data preprocessing to support emissions metrics by remapping the series key via technology.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/components/PlotSelector.tsx Routes emissions plot types to MultiLineChart and removes the unused VerticalBarChart import.
src/components/MultiLineChart.tsx Updates memoized filtering/grouping preparation to support emissions metrics in a line chart.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +63 to +67
if (metric == "emissionsIntensity" || metric == "absoluteEmissions") {
filtered = filtered.map((d) => ({ ...d, technology: d.metric }));
}
return filtered;
}, [data.data, sector, metric]);
@AlexAxthelm

Copy link
Copy Markdown
Collaborator

@jacobvjk is this something we can either wrap up or close out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants