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:
cdtank 2011-04-13 16:23:02 +00:00
parent a98b77762c
commit 3aa9d2879f
3 changed files with 9 additions and 4 deletions

View file

@ -83,6 +83,11 @@ function initConstants() {
show : false
},
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,
tickSize : 10
},

View file

@ -230,8 +230,8 @@ function init(graphContainer) {
var defaultFlotOptions = {
xaxis : {
min : globalDateObject.getFullYear() - 9,
max : globalDateObject.getFullYear(),
min : globalDateObject.getFullYear() - 10,
max : globalDateObject.getFullYear() - 1,
tickDecimals : 0,
tickSize : 2
},