1. Partial fix for NIHVIVO-2150, now the temporal vis only shows line graph only for the last complete 10 years.
This commit is contained in:
parent
a98b77762c
commit
3aa9d2879f
3 changed files with 9 additions and 4 deletions
|
@ -71,7 +71,7 @@
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<entry key="entity_comparison">
|
<entry key="entity_comparison">
|
||||||
<ref bean="entity_comparison"></ref>
|
<ref bean="pub_temporal"></ref>
|
||||||
</entry>
|
</entry>
|
||||||
|
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
</entry>
|
</entry>
|
||||||
|
|
||||||
<entry key="entity_grant_count">
|
<entry key="entity_grant_count">
|
||||||
<ref bean="entity_grant_count"></ref>
|
<ref bean="grant_temporal"></ref>
|
||||||
</entry>
|
</entry>
|
||||||
|
|
||||||
<entry key="grant_temporal">
|
<entry key="grant_temporal">
|
||||||
|
|
|
@ -83,6 +83,11 @@ function initConstants() {
|
||||||
show : false
|
show : false
|
||||||
},
|
},
|
||||||
xaxis : {
|
xaxis : {
|
||||||
|
/*
|
||||||
|
* This is done to guarantee no-downward-trend on account of no content added for the
|
||||||
|
* current year.
|
||||||
|
* */
|
||||||
|
max : globalDateObject.getFullYear() - 1,
|
||||||
tickDecimals : 0,
|
tickDecimals : 0,
|
||||||
tickSize : 10
|
tickSize : 10
|
||||||
},
|
},
|
||||||
|
|
|
@ -230,8 +230,8 @@ function init(graphContainer) {
|
||||||
|
|
||||||
var defaultFlotOptions = {
|
var defaultFlotOptions = {
|
||||||
xaxis : {
|
xaxis : {
|
||||||
min : globalDateObject.getFullYear() - 9,
|
min : globalDateObject.getFullYear() - 10,
|
||||||
max : globalDateObject.getFullYear(),
|
max : globalDateObject.getFullYear() - 1,
|
||||||
tickDecimals : 0,
|
tickDecimals : 0,
|
||||||
tickSize : 2
|
tickSize : 2
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue