[VIVO-1114] Fix sparkling not rendering problems.

This commit is contained in:
grahamtriggs 2015-10-21 23:15:12 +01:00
parent 84d2811512
commit 349bd4a847
2 changed files with 26 additions and 14 deletions

View file

@ -48,11 +48,7 @@
minValue: '${sparklineVO.earliestRenderedPublicationYear?c}',
maxValue: '${sparklineVO.latestRenderedPublicationYear?c}'
}]));
<#else>
</#if>
var visualizationOptions = {
width: 150,
height: 60,
@ -60,7 +56,18 @@
chartType: 'ls',
chartLabel: 'r'
}
<#else>
var visualizationOptions = {
width: 250,
height: 75,
color: '3399CC',
chartType: 'ls',
chartLabel: 'r'
}
</#if>
/*
This means that all the publications have unknown years & we do not need to display
the sparkline.
@ -168,7 +175,7 @@
* Sparks that will be rendered will always be the one's which has
* any year associated with it. Hence.
* */
var renderedSparks = ${sparklineVO.renderedSparks};
var renderedSparks = ${sparklineVO.renderedSparks?c};
/*
In case that there are only unknown publications we want the text to mention these counts,

View file

@ -49,12 +49,7 @@
minValue: '${sparklineVO.earliestRenderedPublicationYear?c}',
maxValue: '${sparklineVO.latestRenderedPublicationYear?c}'
}]));
<#else>
</#if>
var visualizationOptions = {
width: 150,
height: 60,
@ -62,7 +57,17 @@
chartType: 'ls',
chartLabel: 'r'
}
<#else>
var visualizationOptions = {
width: 250,
height: 75,
color: '3399CC',
chartType: 'ls',
chartLabel: 'r'
}
</#if>
/*
This means that all the publications have unknown years & we do not need to display
the sparkline.
@ -171,7 +176,7 @@
* Sparks that will be rendered will always be the one's which has
* any year associated with it. Hence.
* */
var renderedSparks = ${sparklineVO.renderedSparks};
var renderedSparks = ${sparklineVO.renderedSparks?c};
/*
In case that there are only unknown publications we want the text to mention these counts,