1. Improved the logic that displayed counts in cases of collaboration sparklines.

This commit is contained in:
cdtank 2011-02-08 22:09:01 +00:00
parent 1f92138ee9
commit a298ede830
2 changed files with 3 additions and 5 deletions

View file

@ -146,7 +146,7 @@ public class CoAuthorshipVisCodeGenerator {
yearToUniqueCoauthorsCountDataTable.add(new YearToEntityCountDataElement(uniqueCoAuthorCounter,
publicationYearAsString,
currentUniqueCoAuthors));
renderedFullSparks += currentUniqueCoAuthors;
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
* associated with it. Hence.
* */
renderedFullSparks = allCoAuthorsWithKnownAuthorshipYears.size();
sparklineData.setRenderedSparks(renderedFullSparks);
sparklineData.setYearToEntityCountDataTable(yearToUniqueCoauthorsCountDataTable);

View file

@ -155,6 +155,8 @@ public class CoPIVisCodeGenerator {
yearToUniqueInvestigatorsCountDataTable.add(new YearToEntityCountDataElement(uniqueCoPICounter,
grantYearAsString,
currentUniqueCoPIs));
renderedFullSparks += currentUniqueCoPIs;
uniqueCoPICounter++;
}
@ -164,8 +166,6 @@ public class CoPIVisCodeGenerator {
* rendered in full mode will always be the one's which have any year
* associated with it. Hence.
*/
renderedFullSparks = allCoPIsWithKnownGrantShipYears.size();
sparklineData.setRenderedSparks(renderedFullSparks);
sparklineData.setYearToEntityCountDataTable(yearToUniqueInvestigatorsCountDataTable);