[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

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

View file

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