Skip to content

Commit

Permalink
Make sure all technologies are in subgroups
Browse files Browse the repository at this point in the history
  • Loading branch information
MonikaFu committed Sep 24, 2024
1 parent 34c30be commit 497848c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/techmix_sector.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ export class techmix_sector {
);
});
// TODO: make sure that this captures all possible technologies
let subgroups = d3.map(subdataTechPerYear[0].stackedData, (d) => d.key).keys();
let subgroups0 = new Set(d3.map(subdataTechPerYear[0].stackedData, (d) => d.key).keys());
let subgroups1 = new Set(d3.map(subdataTechPerYear[1].stackedData, (d) => d.key).keys())

let subgroups = Array.from(subgroups0.union(subgroups1));

// Declare the x scale
const x = d3
Expand Down

0 comments on commit 497848c

Please sign in to comment.