Skip to content

Commit

Permalink
fix(graph): Add titles
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Oct 16, 2023
1 parent ff071f8 commit 6256cd7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ function useGetData(observationSnaps, domain = '', isPercent = false) {
const oaData = [];
buckets.forEach((item) => {
const retracted = item.by_retraction.buckets.find((i2) => i2.key === 1);
const closedPubs = retracted.by_oa.buckets.find((i2) => i2.key === 0)?.doc_count ?? 0;
closedData.push((closedPubs / item.doc_count) * 100);
const oaPubs = retracted.by_oa.buckets.find((i2) => i2.key === 0)?.doc_count ?? 0;
oaData.push((oaPubs / item.doc_count) * 100);
const closedPublications = retracted.by_oa.buckets.find((i2) => i2.key === 0)?.doc_count ?? 0;
closedData.push((closedPublications / item.doc_count) * 100);
const oaPublications = retracted.by_oa.buckets.find((i2) => i2.key === 1)?.doc_count ?? 0;
oaData.push((oaPublications / item.doc_count) * 100);
});
const dataGraph = [
{
Expand Down
4 changes: 3 additions & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,9 @@
"app.health-publi.data.hosted-documents-pmc": "of the publications in the health field from {publicationYear} are hosted on PubMed Central",
"app.national-publi.data.documents-by-types-by-oa": "of the journal articles are open access, compared to {oaBooksRate}% of books",
"app.national-publi.others.collaborations.international-collaborations.title": "Top 10 of the international collaborations with France",
"app.national-publi.others.retractions.chart-by-publisher.tooltip": "<b>{point.publisher}</b><br>• Share of retracted publications :<br>{point.y_rel:.1f} ‱ ({point.y_abs} / {point.y_tot})",
"app.national-publi.others.retractions.chart-by-year.title": "Rate of retracted publications by year of publication",
"app.national-publi.others.retractions.chart-by-field.title": "Rate of retracted publications by scientific field",
"app.navigation.objet-recherche": "Research object navigation",
"app.flyer.presentation": "General presentation leaflet of the French Open Science Monitor",
"app.flyer.presentation.description-fr": "General presentation leaflet of the French Open Science Monitor in French (pdf)",
Expand Down Expand Up @@ -945,7 +948,6 @@
"app.publi.navigation.voies": "The opening routes",
"app.publi.nb-publications": "Number of publications",
"app.publi.nb-publications-retracted": "Number of retracted publications",
"app.national-publi.others.retractions.chart-by-publisher.tooltip": "<b>{point.publisher}</b><br>• Share of retracted publications :<br>{point.y_rel:.1f} ‱ ({point.y_abs} / {point.y_tot})",
"app.publi.percent-publications-retracted": "Percent of retracted publications",
"app.publi.pertenthousand-publications-retracted": "Share of retracted publications (per ten thousand)",
"app.publi.part-publications-archive": "Share of publications in open access on archive",
Expand Down
4 changes: 3 additions & 1 deletion src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,9 @@
"app.health-publi.data.hosted-documents-pmc": "des publications en santé de {publicationYear} sont hébergées sur PubMed Central",
"app.national-publi.data.documents-by-types-by-oa": "des articles de revue sont en accès ouvert, contre {oaBooksRate} % des ouvrages",
"app.national-publi.others.collaborations.international-collaborations.title": "Top 10 des collaborations internationales avec la France",
"app.national-publi.others.retractions.chart-by-publisher.tooltip": "<b>{point.publisher}</b><br>• Part de publications retirées :<br>{point.y_rel:.1f} ‱ ({point.y_abs} / {point.y_tot})",
"app.national-publi.others.retractions.chart-by-year.title": "Taux de publications retirées par année de publication",
"app.national-publi.others.retractions.chart-by-field.title": "Taux de publications retirées par discipline",
"app.navigation.objet-recherche": "Navigation par objet de recherche",
"app.navigation.methodologies": "Navigation dans les méthodologies",
"app.flyer.presentation": "Plaquette de présentation générale du Baromètre de la Science Ouverte",
Expand Down Expand Up @@ -1107,7 +1110,6 @@
"app.publi.navigation.voies": "Les voies d'ouverture",
"app.publi.nb-publications": "Nombre de publications",
"app.publi.nb-publications-retracted": "Nombre de publications retirées",
"app.national-publi.others.retractions.chart-by-publisher.tooltip": "<b>{point.publisher}</b><br>• Part de publications retirées :<br>{point.y_rel:.1f} ‱ ({point.y_abs} / {point.y_tot})",
"app.publi.percent-publications-retracted": "Pourcentage de publications retirées",
"app.publi.pertenthousand-publications-retracted": "Part des publications retirées (pour dix mille)",
"app.publi.part-publications-archive": "Part des publications en accès ouvert sur archive",
Expand Down

0 comments on commit 6256cd7

Please sign in to comment.