From c7914747137d7a59d54c9da240096b54f39214d0 Mon Sep 17 00:00:00 2001 From: Kate Pimenova Date: Thu, 24 Dec 2015 16:07:07 +0300 Subject: [PATCH] Inner labels for hypervisor pie chart fixed - labels with values lower than 5% are hidden now Closes-Bug: #1516660 Change-Id: I6e2637dda5f283c1fac0bd82c08b058cbe2c36f1 --- analytics/static/js/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/analytics/static/js/app.js b/analytics/static/js/app.js index 9a62689..f506f72 100644 --- a/analytics/static/js/app.js +++ b/analytics/static/js/app.js @@ -430,6 +430,10 @@ function($, d3, D3pie, d3tip, nv, elasticsearch) { format: 'label-value2', pieDistance: 10 }, + inner: { + format: "percentage", + hideWhenLessThanPercentage: 5 + }, mainLabel: { fontSize: 14 }, @@ -529,6 +533,10 @@ function($, d3, D3pie, d3tip, nv, elasticsearch) { format: 'label-value2', pieDistance: 10 }, + inner: { + format: "percentage", + hideWhenLessThanPercentage: 5 + }, mainLabel: { fontSize: 14 },