-
-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
68 additions
and
61 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
packages/@ourworldindata/components/src/IndicatorProcessing/IndicatorProcessing.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import React from "react" | ||
import { SimpleMarkdownText } from "../SimpleMarkdownText.js" | ||
|
||
export interface IndicatorProcessingProps { | ||
descriptionProcessing: string | undefined | ||
} | ||
|
||
export const IndicatorProcessing = (props: IndicatorProcessingProps) => { | ||
return ( | ||
<> | ||
<div className="data-processing grid span-cols-12"> | ||
<h3 className="data-processing__heading span-cols-2 span-lg-cols-3 col-md-start-2 span-md-cols-10 col-sm-start-1 span-sm-cols-12"> | ||
How we process data at Our World in Data | ||
</h3> | ||
<div className="col-start-4 span-cols-6 col-lg-start-5 span-lg-cols-7 col-md-start-2 span-md-cols-10 col-sm-start-1 span-sm-cols-12"> | ||
<div className="data-processing__content"> | ||
<p className="data-processing__paragraph"> | ||
All data and visualizations on Our World in Data | ||
rely on data sourced from one or several original | ||
data providers. Preparing this original data | ||
involves several processing steps. Depending on the | ||
data, this can include standardizing country names | ||
and world region definitions, converting units, | ||
calculating derived indicators such as per capita | ||
measures, as well as adding or adapting metadata | ||
such as the name or the description given to an | ||
indicator. | ||
</p> | ||
<p className="data-processing__paragraph"> | ||
At the link below you can find a detailed | ||
description of the structure of our data pipeline, | ||
including links to all the code used to prepare data | ||
across Our World in Data. | ||
</p> | ||
</div> | ||
<a | ||
href="https://docs.owid.io/projects/etl/" | ||
target="_blank" | ||
rel="nopener noreferrer" | ||
className="data-processing__link" | ||
> | ||
Read about our data pipeline | ||
</a> | ||
</div> | ||
</div> | ||
{props.descriptionProcessing && ( | ||
<div className="variable-processing-info col-start-4 span-cols-6 col-lg-start-5 span-lg-cols-7 col-md-start-2 span-md-cols-10 col-sm-start-1 span-sm-cols-12"> | ||
<h5 className="variable-processing-info__header"> | ||
Notes on our processing step for this indicator | ||
</h5> | ||
<div className="variable-processing-info__description"> | ||
<SimpleMarkdownText | ||
text={props.descriptionProcessing} | ||
/> | ||
</div> | ||
</div> | ||
)} | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters