Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #792 from ammendonca/HAWKULAR-951
Browse files Browse the repository at this point in the history
HAWKULAR-951 : Limit decimal places to 1 in DS Pie Chart.
  • Loading branch information
mtho11 committed Jan 19, 2016
2 parents 9312b8d + bf92531 commit 7806730
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module HawkularMetrics {
private $routeParams:any,
private $interval:ng.IIntervalService,
private $q:ng.IQService,
private $route:any,
private $filter:any,
private HawkularInventory:any,
private HawkularMetric:any,
private HawkularNav:any,
Expand Down Expand Up @@ -508,7 +508,7 @@ module HawkularMetrics {
let used = data.inUseCount.value / (data.inUseCount.value + data.availableCount.value) * 100 || 0;
data.chartConfig = {
multiLineTitle: [
{text:used+'%', dy:-10, classed: 'donut-title-big-pf'},
{text: this.$filter('number')(used, used ? 1 : 0) + '%', dy:-10, classed: 'donut-title-big-pf'},
{text:'Connections', dy:20, classed: 'donut-title-small-pf'},
{text:'Used', dy:15, classed: 'donut-title-small-pf'}
],
Expand All @@ -533,7 +533,7 @@ module HawkularMetrics {
type: 'donut',
columns: [
['Used', used],
['Available', 100]
['Available', 100 - used]
],
groups: [
['used', 'available']
Expand Down

0 comments on commit 7806730

Please sign in to comment.