1. Improved the logic that displayed counts in cases of collaboration sparklines.
This commit is contained in:
parent
1f92138ee9
commit
a298ede830
2 changed files with 3 additions and 5 deletions
|
@ -146,7 +146,7 @@ public class CoAuthorshipVisCodeGenerator {
|
||||||
yearToUniqueCoauthorsCountDataTable.add(new YearToEntityCountDataElement(uniqueCoAuthorCounter,
|
yearToUniqueCoauthorsCountDataTable.add(new YearToEntityCountDataElement(uniqueCoAuthorCounter,
|
||||||
publicationYearAsString,
|
publicationYearAsString,
|
||||||
currentUniqueCoAuthors));
|
currentUniqueCoAuthors));
|
||||||
|
renderedFullSparks += currentUniqueCoAuthors;
|
||||||
uniqueCoAuthorCounter++;
|
uniqueCoAuthorCounter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -156,8 +156,6 @@ public class CoAuthorshipVisCodeGenerator {
|
||||||
* Sparks that will be rendered in full mode will always be the one's which have any year
|
* Sparks that will be rendered in full mode will always be the one's which have any year
|
||||||
* associated with it. Hence.
|
* associated with it. Hence.
|
||||||
* */
|
* */
|
||||||
renderedFullSparks = allCoAuthorsWithKnownAuthorshipYears.size();
|
|
||||||
|
|
||||||
sparklineData.setRenderedSparks(renderedFullSparks);
|
sparklineData.setRenderedSparks(renderedFullSparks);
|
||||||
|
|
||||||
sparklineData.setYearToEntityCountDataTable(yearToUniqueCoauthorsCountDataTable);
|
sparklineData.setYearToEntityCountDataTable(yearToUniqueCoauthorsCountDataTable);
|
||||||
|
|
|
@ -155,6 +155,8 @@ public class CoPIVisCodeGenerator {
|
||||||
yearToUniqueInvestigatorsCountDataTable.add(new YearToEntityCountDataElement(uniqueCoPICounter,
|
yearToUniqueInvestigatorsCountDataTable.add(new YearToEntityCountDataElement(uniqueCoPICounter,
|
||||||
grantYearAsString,
|
grantYearAsString,
|
||||||
currentUniqueCoPIs));
|
currentUniqueCoPIs));
|
||||||
|
|
||||||
|
renderedFullSparks += currentUniqueCoPIs;
|
||||||
uniqueCoPICounter++;
|
uniqueCoPICounter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,8 +166,6 @@ public class CoPIVisCodeGenerator {
|
||||||
* rendered in full mode will always be the one's which have any year
|
* rendered in full mode will always be the one's which have any year
|
||||||
* associated with it. Hence.
|
* associated with it. Hence.
|
||||||
*/
|
*/
|
||||||
renderedFullSparks = allCoPIsWithKnownGrantShipYears.size();
|
|
||||||
|
|
||||||
sparklineData.setRenderedSparks(renderedFullSparks);
|
sparklineData.setRenderedSparks(renderedFullSparks);
|
||||||
|
|
||||||
sparklineData.setYearToEntityCountDataTable(yearToUniqueInvestigatorsCountDataTable);
|
sparklineData.setYearToEntityCountDataTable(yearToUniqueInvestigatorsCountDataTable);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue