Skip to content

Commit dadeda7

Browse files
fix: Correct citation field name in Citation Distribution chart
- Change from 'citation_count' to 'citations' to match dashboard-data.js schema - Fixes Citation Distribution chart showing all papers in 0-9 range - Data uses 'citations' field, not 'citation_count' - Chart will now correctly display citation distribution across ranges
1 parent a2f11d0 commit dadeda7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ISR-submission/dashboard/dashboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1945,7 +1945,7 @@ <h4 style="margin-top: 0; margin-bottom: 15px; color: var(--primary);">📊 Filt
19451945
const binCounts = new Array(bins.length - 1).fill(0);
19461946

19471947
papers.forEach(p => {
1948-
const citations = p.citation_count || 0;
1948+
const citations = p.citations || 0;
19491949
for (let i = 0; i < bins.length - 1; i++) {
19501950
if (citations >= bins[i] && citations < bins[i + 1]) {
19511951
binCounts[i]++;

0 commit comments

Comments
 (0)