Skip to content

Commit

Permalink
Show the percentage of requests that result in a PREreview
Browse files Browse the repository at this point in the history
Refs #26
  • Loading branch information
thewilkybarkid committed Jul 2, 2024
1 parent 9bb21fa commit c7be725
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ const requestsBySubfield = requestsSelected
${requestsWithAReviewGroupedByPreprint.size !== requestsWithAReview.length ? html`
<span class="muted">for ${requestsWithAReviewGroupedByPreprint.size.toLocaleString("en-US")} preprints</span>
` : ''}
${requestsWithAReviewGroupedByPreprint.size === 0 ? '' :
chosenField ? html`
<div>${d3.format(".1%")(requestsWithAReview.length / requests.filter(d => d.fields.includes(chosenField)).length)} of all ${openAlexFields[chosenField].name} requests</div>
` : chosenDomain ? html`
<div>${d3.format(".1%")(requestsWithAReview.length / requests.filter(d => d.domains.includes(chosenDomain)).length)} of all ${openAlexDomains[chosenDomain]} requests</div>
` : html`
<div>${d3.format(".1%")(requestsWithAReview.length / requests.length)} of all requests</div>
`}
</div>
</div>

Expand Down

0 comments on commit c7be725

Please sign in to comment.