From 415670e28dd0a5727e5e63418c43d44730fc3c58 Mon Sep 17 00:00:00 2001 From: bkoniden Date: Tue, 23 Nov 2010 19:43:53 +0000 Subject: [PATCH] Fixed the problem of Axis text not being in the middle. --- .../js/visualization/entityComparison/util.js | 2 -- .../templates/visualization/entity_comparison.jsp | 14 +++++++------- .../css/visualization/entityComparison/layout.css | 6 ++++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/productMods/js/visualization/entityComparison/util.js b/productMods/js/visualization/entityComparison/util.js index 8c29b75e..b91489fe 100644 --- a/productMods/js/visualization/entityComparison/util.js +++ b/productMods/js/visualization/entityComparison/util.js @@ -12,8 +12,6 @@ function init(graphContainer) { // TODO: make use of the id on the select field instead of a generic one. $("#comparisonParameter").text("Total Number of " + $("select.comparisonValues option:selected").val()); $('#yaxislabel').html("Number of " + optionSelected).mbFlipText(false); - $("span#paramdesc").text($("select.comparisonValues option:selected").val() + ' (desc)'); - $("span#paramasc").text($("select.comparisonValues option:selected").val() + ' (asc)'); var defaultFlotOptions = { xaxis : { diff --git a/productMods/templates/visualization/entity_comparison.jsp b/productMods/templates/visualization/entity_comparison.jsp index 7305133c..441ae5dd 100644 --- a/productMods/templates/visualization/entity_comparison.jsp +++ b/productMods/templates/visualization/entity_comparison.jsp @@ -20,19 +20,21 @@

Temporal Graph Visualization School Level

-

How do you want to compare?

-

Select

+

How do you want to compare?

+
+

Select

+

-

Choose

+

Choose

@@ -80,9 +82,7 @@ $("select.comparisonValues").click(function(){ var selectedValue = $("select.comparisonValues option:selected").val(); $("#comparisonParameter").text("Total Number of " + selectedValue); - $('#yaxislabel').html("Number of " + selectedValue ).mbFlipText(false); - $("span#paramdesc").text($("select.comparisonValues option:selected").val() + ' (desc)'); - $("span#paramasc").text($("select.comparisonValues option:selected").val() + ' (asc)'); + $('#yaxislabel').html("Number of " + selectedValue).mbFlipText(false); }); //click event handler for clear button diff --git a/themes/vivo-basic/css/visualization/entityComparison/layout.css b/themes/vivo-basic/css/visualization/entityComparison/layout.css index 28c7f380..ac4c5f31 100644 --- a/themes/vivo-basic/css/visualization/entityComparison/layout.css +++ b/themes/vivo-basic/css/visualization/entityComparison/layout.css @@ -43,13 +43,15 @@ form{ background-color: white; color:black; display: block; - + height: 150px; + text-align: center; + padding-top: 50px; } #xaxislabel{ font-size: 12px; margin-top: -5px; - margin-left: 250px; + text-align: center; } #functions{