1. Fix for bar display bug in temporal graph vis (see NIHVIVO-1971). A minimum of 1 pixel is assigned to any bar.

This commit is contained in:
cdtank 2011-02-01 16:14:11 +00:00
parent 183c620890
commit eb31c796e5

View file

@ -813,7 +813,12 @@ function getNormalizedWidth(entity, sum){
normalizedWidth = Math.floor(225 * (sum / maxValueOfComparisonParameter));
return normalizedWidth;
/*
* This will make sure that the entites that have very low <parameter> count have at least
* 1 pixel width bar. This happens when the highest count organization has a very high count
* compared to the lowest count organization.
* */
return normalizedWidth === 0 ? 1 : normalizedWidth;
}
function renderLineGraph(renderedObjects, entity){