Skip to content

Commit

Permalink
Verify data
Browse files Browse the repository at this point in the history
  • Loading branch information
brodysmith1 committed Feb 19, 2024
1 parent 8fa25a4 commit 8ceab51
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/lib/components/ArticleMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@
display: flex
flex-wrap: wrap
font-size: 1rem
margin-top: 1rem
margin: 1rem auto 0
border-radius: 0 0.25rem 0.25rem 0
overflow: hidden
max-width: 750px
&.grid
display: grid
Expand Down
1 change: 1 addition & 0 deletions src/routes/learn/(posts)/country-foodprints/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<ChartStackedBar
height="2.5rem"
max={1.5}
nTicks={6}
data={o.emissions.map((o) => o.value)}
{colorClasses}
/>
Expand Down
14 changes: 7 additions & 7 deletions src/routes/learn/(posts)/country-foodprints/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const footprints = [
emissions: [
{
label: "Plant-based foods",
value: 0.25
value: 0.2
},
{
label: "Other animal-based foods",
Expand All @@ -53,29 +53,29 @@ export const footprints = [
},
{
label: "Beef",
value: 0.65
value: 0.7
}
]
},
{
title: "World average",
totals: { calories: 2433, landUse: 0.5, emissions: 600 },
totals: { calories: 2433, landUse: 0.49, emissions: 800 },
calories: [
{
label: "Plant-based foods",
value: 80
value: 84
},
{
label: "Other animal-based foods",
value: 15
value: 10
},
{
label: "Dairy",
value: 4
value: 4.5
},
{
label: "Beef",
value: 1
value: 1.5
}
],
landUse: [
Expand Down

0 comments on commit 8ceab51

Please sign in to comment.