-
Notifications
You must be signed in to change notification settings - Fork 0
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
6 changed files
with
132 additions
and
87 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -22,4 +22,8 @@ | |
font-size: 12px; | ||
color: #333; | ||
font-style: italic; | ||
} | ||
|
||
figure { | ||
margin: 0; | ||
} |
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
55 changes: 20 additions & 35 deletions
55
...projects/components/pages/analysis/overview/charts/horizon-2020-participation/options.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
7 changes: 4 additions & 3 deletions
7
...n-projects/components/pages/analysis/overview/charts/horizon-2020-participation/query.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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
const { VITE_APP_SERVER_URL } = import.meta.env; | ||
|
||
export async function GetHorizon2020Participation(params: string) { | ||
let url = `${VITE_APP_SERVER_URL}/european-projects/funding_programme`; | ||
let url = `${VITE_APP_SERVER_URL}/european-projects/analysis-synthese-funding_programme`; | ||
if (params !== '') { | ||
url = `${VITE_APP_SERVER_URL}/european-projects/funding_programme?${params}`; | ||
url = `${VITE_APP_SERVER_URL}/european-projects/analysis-synthese-funding_programme?${params}`; | ||
} | ||
|
||
return fetch(url).then((response) => (response.json())) | ||
} | ||
} | ||
|
11 changes: 11 additions & 0 deletions
11
...n-projects/components/pages/analysis/overview/charts/horizon-2020-participation/utils.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,11 @@ | ||
export function getColorByPillierName(name) { | ||
if (name === "Excellence scientifique") { | ||
return "#CECECE"; | ||
} else if (name === "Problématiques mondiales et compétitivité industrielle européenne") { | ||
return "#4B5D67"; | ||
} else if (name === "Europe plus innovante") { | ||
return "#FFCA00"; | ||
} else { | ||
return "#9EF9BE"; | ||
} | ||
} |
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