From 867afce8dae571f0db39e44dd0338faa7bc34461 Mon Sep 17 00:00:00 2001 From: bfederle Date: Wed, 4 Jan 2012 14:25:12 -0800 Subject: [PATCH] Add percent labels to dashboard charts --- ui/css/cloudstack3.css | 20 ++++++++++++++++++++ ui/index-test.html | 6 ++++-- ui/index.jsp | 7 +++++-- ui/scripts/dashboard.js | 2 +- ui/scripts/ui-custom/dashboard.js | 28 ++++++++++++++++------------ 5 files changed, 46 insertions(+), 17 deletions(-) diff --git a/ui/css/cloudstack3.css b/ui/css/cloudstack3.css index fa604bd70f5..9b20b3268ad 100644 --- a/ui/css/cloudstack3.css +++ b/ui/css/cloudstack3.css @@ -3218,6 +3218,26 @@ Dialogs*/ font-weight: bold; } +.dashboard.admin .zone-stats ul li .pie-chart-container { + width: 95px; + height: 69px; + overflow: hidden; + float: left; + position: relative; +} + +.dashboard.admin .zone-stats ul li .pie-chart-container .percent-label { + width: 52px; + color: #C98200; + /*+placement:shift 28px 31px;*/ + position: relative; + left: 28px; + top: 31px; + position: absolute; + font-weight: bold; + text-align: center; +} + .dashboard.admin .zone-stats ul li .pie-chart { width: 70px; height: 66px; diff --git a/ui/index-test.html b/ui/index-test.html index b83a161de8e..0c72fa148e3 100644 --- a/ui/index-test.html +++ b/ui/index-test.html @@ -1130,7 +1130,6 @@ -
- +