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:
parent
183c620890
commit
eb31c796e5
1 changed files with 7 additions and 2 deletions
|
@ -813,7 +813,12 @@ function getNormalizedWidth(entity, sum){
|
||||||
|
|
||||||
normalizedWidth = Math.floor(225 * (sum / maxValueOfComparisonParameter));
|
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){
|
function renderLineGraph(renderedObjects, entity){
|
||||||
|
|
Loading…
Add table
Reference in a new issue