Skip to content

Commit

Permalink
Merge pull request #76 from earthrise-media/update-crop-information-data
Browse files Browse the repository at this point in the history
Update crop information
  • Loading branch information
Martin Bernard authored Nov 29, 2023
2 parents fecea36 + 3a4c678 commit 1994994
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 34 deletions.
4 changes: 2 additions & 2 deletions vacs-map-app/public/data/crop-info-general.csv
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mungbean,Mung Bean,Legumes,0,"Also known as green gram, this legume is a staple
groundnut,Groundnut,Seeds & Nuts,0,"Commonly known as peanut, this crop produces edible seeds in underground pods and is valued for its high oil and protein content."
soybean,Soy Bean,Legumes,1,"A globally important legume, soybeans are a major source of protein and oil, used in a variety of food products and animal feeds."
maize,Maize,Cereals,1,"A staple food and primary crop worldwide, maize is versatile in its uses, from direct human consumption to animal feed and industrial products."
fonio,Fonio,Cereals,0,
fonio,Fonio,Cereals,0,"An ancient African grain known for its fast-growing and drought-resistant properties, fonio is highly nutritious and gluten-free."
tef,Tef,Cereals,0,"An Ethiopian staple, tef is a small grain known for its high nutritional value, gluten-free status, and ability to grow in various environmental conditions."
fingermillet,Finger Millet,Cereals,0,"Highly nutritious and gluten-free, finger millet is valued for its high calcium content and ability to thrive in arid conditions."
sorghum,Sorghum,Cereals,0,"A versatile and drought-resistant grain, sorghum is used for food, fodder, and biofuels, especially in arid regions."
Expand All @@ -21,4 +21,4 @@ cassava,Cassava,Roots & Tubers,1,"A major source of carbohydrates, cassava is a
tomato,Tomato,Vegetables,1,"A widely cultivated fruit, tomatoes are versatile in culinary uses and valued for their rich flavor and nutritional content."
okra,Okra,Vegetables,0,"Known for its edible green seed pods, okra is commonly used in soups, stews, and as a thickening agent, particularly in African and Asian cuisines."
josephscoat,Joseph's Coat,Vegetables,0,"A nutritious leafy green, amaranth is known for its colorful foliage and grain-like seeds, used in various cultural dishes worldwide."
africaneggplant,African Eggplant,Vegetables,0,
africaneggplant,African Eggplant,Vegetables,0,"Varieties of African eggplant include small, bitter fruits often used in traditional African dishes, valued for their nutritional and medicinal properties."
48 changes: 24 additions & 24 deletions vacs-map-app/public/data/crop-info-nutritional.csv
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
id,Protein,Calcium,Iron,Zinc,Vitamin A,Folate,Storage Potential
grasspea,7,1,5,5,5,3,
pigeonpea,3,4,3,2,8,5,
bambaragroundnut,2,1,0,1,0,0,
lablab,4,1,8,2,0,0,
cowpea,4,2,6,5,1,7,5
mungbean,6,6,9,2,9,10,
groundnut,4,0,2,3,3,2,
soybean,8,10,10,9,0,6,
maize,0,1,10,5,,5,
fonio,9,5,2,9,,9,
tef,1,1,0,0,,0,
okra,,,,,,,
fingermillet,6,0,2,2,7,0,
sorghum,,,,,,,
sesame,,,,,,,
cocoyam,8,1,1,1,0,8,
taro,7,3,7,3,0,7,
yams,5,1,2,1,0,4,
sweetpotato,2,9,3,3,10,1,
cassava,3,5,7,10,0,8,
tomato,2,0,0,3,2,0,
africaneggplant,3,0,1,3,0,0,
josephscoat,8,10,7,9,10,1,
id,Protein,Calcium,Iron,Zinc,Vitamin A,Folate
grasspea,7,1,5,5,5,3
pigeonpea,3,4,3,2,8,5
bambaragroundnut,2,1,0,1,0,0
lablab,4,1,8,2,0,0
cowpea,4,2,6,5,1,7
mungbean,6,6,9,2,9,10
groundnut,4,0,2,3,3,2
soybean,8,10,10,9,0,6
maize,0,1,10,5,0,5
fonio,9,5,2,9,0,9
tef,1,1,0,0,0,0
okra,3,2,0,8,2,2
fingermillet,6,0,2,2,7,0
sorghum,1,1,3,3,0,1
sesame,3,10,10,7,0,2
cocoyam,8,1,1,1,0,8
taro,7,3,7,3,0,7
yams,5,1,2,1,0,4
sweetpotato,2,9,3,3,10,1
cassava,3,5,7,10,0,8
tomato,2,0,0,3,2,0
africaneggplant,3,0,1,3,0,0
josephscoat,8,10,7,9,10,1
1 change: 1 addition & 0 deletions vacs-map-app/src/components/CropFilters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ const scenarioOptions = computed(() => {
text-transform: uppercase;
color: var(--ui-blue);
padding: 0.5rem;
padding-right: 2rem;
background-image: url('../assets/img/select-arrow-blue.svg');
background-position: 95% center;
Expand Down
10 changes: 2 additions & 8 deletions vacs-map-app/src/components/CropFingerprint.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
v-for="indicator in selectedIndicators"
:key="indicator.key"
:fill="fingerprintScheme[indicator.category]"
stroke="#17191b"
stroke-width="0.5"
:d="arc(indicator)"
:class="{
highlighted: hovered?.key === indicator.key,
Expand All @@ -43,14 +45,6 @@
<g class="chart-overlay">
<g class="axes" fill="none" stroke="#17191b">
<circle v-for="d in d3.range(11)" :key="d" :r="y(d)" />

<line
v-for="metric in indicatorMetrics"
:key="metric"
:transform="`rotate(${xDegrees(metric) + xDegrees.bandwidth() / 2})`"
:x1="0"
:x2="y(10)"
/>
</g>

<g v-if="showBenchmark">
Expand Down

0 comments on commit 1994994

Please sign in to comment.