As of 2024-06-05, some companies get the unit metric ton CO2e and others tCO2e.
Ideally, the unit could be normalized and formatted as tCO₂e to improve consistency.
This could of course be handled on the frontend, but would be nice to correct as close to the data source as possible which is in the data layer.
One implementation could be to use a Set with common unit variations. These could then be replaced with the expected formatted unit tCO₂e (using the unicode subscript 2 to ensure it works well in all contexts and not just with html formatting). Alternatively, this could be done with a regex to match variations.
As of 2024-06-05, some companies get the unit
metric ton CO2e
and otherstCO2e
.Ideally, the unit could be normalized and formatted as
tCO₂e
to improve consistency.This could of course be handled on the frontend, but would be nice to correct as close to the data source as possible which is in the data layer.
One implementation could be to use a
Set
with common unit variations. These could then be replaced with the expected formatted unittCO₂e
(using the unicode subscript 2 to ensure it works well in all contexts and not just with html formatting). Alternatively, this could be done with a regex to match variations.