Skip to content

Commit

Permalink
fix: Use number of municipality for price histogram since it is more …
Browse files Browse the repository at this point in the history
…understandable than number of producers

Really what's counted is the couples municipality - netzbetreiber since a municipality can be served by multiple operators.
  • Loading branch information
ptbrowne committed Jan 8, 2024
1 parent 8893c77 commit 784df3e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/detail-page/price-distribution-histogram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,16 +159,17 @@ export const PriceDistributionHistograms = ({

const getEntityLabelId = (entity: Entity): string => {
switch (entity) {
case "operator":
return t({
id: "histogram.operator-count",
message: "Anzahl Netzbetreiber",
});
case "canton":
return t({
id: "histogram.canton-count",
message: "Anzahl Kanton",
});

// We use the same translation whether we are looking at operator or municipality
// To be completely true, the label should be "Number of operator-municipality" since a municipality
// can be served by multiple operators, but for the sake of simplicity and comprehension, municipality
// is used here.
case "operator":
case "municipality":
return t({
id: "histogram.municipality-count",
Expand Down

1 comment on commit 784df3e

@vercel
Copy link

@vercel vercel bot commented on 784df3e Jan 8, 2024

Choose a reason for hiding this comment

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

Please sign in to comment.