vivo/productMods/js/visualization/entitycomparison/constants.js
cdtank 49116a20b2 1. Changed wordings for CSV file downloads & Network Image files for co-author & co-investigator networks.
2. Changed Temporal Graph legend links to be save as other clickable links (blue-ish)
3. Changed wordings on temporal graph vis.
4. Changed default sorting to be first on counts (desc) & then entity names (asc)
5. Changed how the constants were intiated for temporal vis, this is preparation for other tasks.
6. Since now if no URI is provided to the tmeporal graph vis it defaults to the highest levbel org. Removed the AJAX call to a utilites servlet that calculated this beforehand.
2011-02-02 21:04:36 +00:00

104 lines
No EOL
2.1 KiB
JavaScript

/* $This file is distributed under the terms of the license in /doc/license.txt$ */
//Hard coded color constants
var TURQUOISE = "#8DD3C7";
var DARK_TURQUOISE = "#009999";
var LIGHT_YELLOW = "#FFFFB3";
var LIGHT_VIOLET = "#BEBADA";
var RED = "#CC0000";
var LIGHT_RED = "#FB8072";
var DARK_RED = "#520000";
var SKY_BLUE = "#80B1D3";
var DARK_BLUE = "#80B1D3";
var NAVY_BLUE = "#003366";
var LIGHT_BLUE = "#3399FF";
var ORANGE = "#FDB462";
var DARK_ORANGE = "#FF9900";
var LIGHT_GREEN = "#B3DE69";
var DARK_GREEN = "#006600";
var VIBRANT_GREEN = "#99CC00";
var LIGHT_PINK = "#FCCDE5";
var LIGHT_GREY = "#D9D9D9";
var PURPLE = "#BC80BD";
var DARK_PURPLE = "#6600CC";
var PINK_PURPLE = "#CC00CC";
var HOT_PINK = "#FF00B4";
var MEHENDI_GREEN = "#7A7900";
var colorConstantQueue = [ LIGHT_BLUE, DARK_ORANGE, VIBRANT_GREEN,
NAVY_BLUE, RED, PINK_PURPLE,
DARK_TURQUOISE, MEHENDI_GREEN, HOT_PINK,
DARK_RED ];
var freeColors;
var globalDateObject;
var year;
var colors, prevColor, colorToAssign,
colorToRemove, renderedObjects, labelToEntityRecord,
setOfLabels, labelToCheckedEntities, stopWordsToCount;
var graphContainer;
var tableDiv;
var entityLevel;
//options for Flot
var FlotOptions;
function initConstants() {
freeColors = colorConstantQueue.slice();
globalDateObject = new Date();
year = {
min: globalDateObject.getFullYear() - 9,
max: globalDateObject.getFullYear(),
globalMin: globalDateObject.getFullYear() - 9,
globalMax: globalDateObject.getFullYear()
};
colors = {};
prevColor = {};
colorToAssign, colorToRemove;
renderedObjects = [];
labelToEntityRecord = {};
setOfLabels = [];
labelToCheckedEntities = {};
stopWordsToCount = {};
//options for Flot
FlotOptions = {
legend : {
show : false
},
lines : {
show : true
},
points : {
show : false
},
xaxis : {
tickDecimals : 0,
tickSize : 10
},
series : {
lines : {
lineWidth : 7
}
},
yaxis : {
tickSize : 1,
tickDecimals : 0,
min : 0
},
grid : {
borderColor : "#D9D9D9"
}
};
FlotOptions.colors = colorConstantQueue;
}