re-integrating the branch /branches/iu-vis-dev-branches/vivo-post-1.1
This commit is contained in:
parent
3488c43f55
commit
67d14f3212
49 changed files with 4796 additions and 921 deletions
75
productMods/js/visualization/entityComparison/constants.js
Normal file
75
productMods/js/visualization/entityComparison/constants.js
Normal file
|
@ -0,0 +1,75 @@
|
|||
|
||||
//Hard coded color constants
|
||||
var TURQUOISE = "#8DD3C7";
|
||||
var LIGHT_YELLOW = "#FFFFB3";
|
||||
var LIGHT_VIOLET = "#BEBADA";
|
||||
var LIGHT_RED = "#FB8072";
|
||||
var SKY_BLUE = "#80B1D3";
|
||||
var ORANGE = "#FDB462";
|
||||
var LIGHT_GREEN = "#B3DE69";
|
||||
var LIGHT_PINK = "#FCCDE5";
|
||||
var LIGHT_GREY = "#D9D9D9";
|
||||
var PURPLE = "#BC80BD";
|
||||
|
||||
var colorConstantQueue =
|
||||
[
|
||||
TURQUOISE, LIGHT_YELLOW, LIGHT_VIOLET, LIGHT_RED,
|
||||
SKY_BLUE, ORANGE, LIGHT_GREEN, LIGHT_PINK, LIGHT_GREY,
|
||||
PURPLE
|
||||
];
|
||||
|
||||
var freeColors = [
|
||||
TURQUOISE, LIGHT_YELLOW, LIGHT_VIOLET, LIGHT_RED,
|
||||
SKY_BLUE, ORANGE, LIGHT_GREEN, LIGHT_PINK, LIGHT_GREY,
|
||||
PURPLE
|
||||
];
|
||||
|
||||
var year = {
|
||||
min: 1998,
|
||||
max: 2018,
|
||||
globalMin: 1995,
|
||||
globalMax: 2025
|
||||
};
|
||||
|
||||
var colors = {};
|
||||
var prevColor = {};
|
||||
var colorToAssign, colorToRemove;
|
||||
var renderedObjects = [];
|
||||
var labelToEntityRecord = {};
|
||||
var setOfLabels = [];
|
||||
var labelToCheckedEntities = {};
|
||||
var stopWordsToCount = {};
|
||||
|
||||
var graphContainer;
|
||||
var tableDiv;
|
||||
var entityLevel;
|
||||
|
||||
//options for Flot
|
||||
var 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
|
||||
}
|
||||
};
|
||||
|
||||
FlotOptions.colors = colorConstantQueue;
|
||||
|
1032
productMods/js/visualization/entityComparison/util.js
Normal file
1032
productMods/js/visualization/entityComparison/util.js
Normal file
File diff suppressed because it is too large
Load diff
|
@ -256,6 +256,7 @@ function createTable(tableID, tableContainer, tableData) {
|
|||
$('#' + tableContainer + " #loadingData").remove();
|
||||
}
|
||||
|
||||
//renderStatsOnNodeClicked, CoRelations, noOfCoRelations
|
||||
function nodeClickedJS(json){
|
||||
|
||||
var obj = jQuery.parseJSON(json);
|
||||
|
@ -309,6 +310,11 @@ function nodeClickedJS(json){
|
|||
|
||||
}
|
||||
|
||||
function encodeURL(url){
|
||||
var domainURL = 'http://vivo-vis-bkoniden.slis.indiana.edu/';
|
||||
return domainURL + url.replace(/&/g,'%26');
|
||||
}
|
||||
|
||||
function renderCoAuthorshipVisualization() {
|
||||
|
||||
// Version check for the Flash Player that has the ability to start Player
|
||||
|
@ -330,13 +336,13 @@ function renderCoAuthorshipVisualization() {
|
|||
AC_FL_RunContent(
|
||||
"src", "playerProductInstall",
|
||||
"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
|
||||
"width", "600",
|
||||
"width", "800",
|
||||
"height", "840",
|
||||
"align", "middle",
|
||||
"id", "CoAuthor",
|
||||
"id", "EgoCentric",
|
||||
"quality", "high",
|
||||
"bgcolor", "#ffffff",
|
||||
"name", "CoAuthor",
|
||||
"name", "EgoCentric",
|
||||
"allowScriptAccess","sameDomain",
|
||||
"type", "application/x-shockwave-flash",
|
||||
"pluginspage", "http://www.adobe.com/go/getflashplayer"
|
||||
|
@ -344,16 +350,17 @@ function renderCoAuthorshipVisualization() {
|
|||
} else if (hasRequestedVersion) {
|
||||
// if we've detected an acceptable version
|
||||
// embed the Flash Content SWF when all tests are passed
|
||||
//coAuthorUrl=/vivo1/visualization?vis=coauthorship%26render_mode=data%26uri=http%3A%2F%2Fvivo.iu.edu%2Findividual%2FBrnerKaty&labelField=label&coPIUrl=/vivo1/visualization?vis=coprincipalinvestigator%26render_mode=data%26uri=http%3A%2F%2Fvivo.iu.edu%2Findividual%2FBrnerKaty&labelField=label
|
||||
AC_FL_RunContent(
|
||||
"src", swfLink,
|
||||
"flashVars", "graphmlUrl=" + egoCoAuthorshipDataFeederURL,
|
||||
"width", "600",
|
||||
"flashVars", 'coAuthorUrl='+ encodeURL(egoCoAuthorshipDataFeederURL) + '&coPIUrl=' + encodeURL(egoCoPIDataFeederURL) ,
|
||||
"width", "800",
|
||||
"height", "850",
|
||||
"align", "top",
|
||||
"id", "CoAuthor",
|
||||
"id", "EgoCentric",
|
||||
"quality", "high",
|
||||
"bgcolor", "#ffffff",
|
||||
"name", "CoAuthor",
|
||||
"name", "EgoCentric",
|
||||
"allowScriptAccess","sameDomain",
|
||||
"type", "application/x-shockwave-flash",
|
||||
"pluginspage", "http://www.adobe.com/go/getflashplayer"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue