From 77e8248eed2d9d039ad6ed5843ddbba12fbfe240 Mon Sep 17 00:00:00 2001 From: Yizhe Liu <59710443+yizheliu-amazon@users.noreply.github.com> Date: Fri, 1 May 2020 09:53:16 -0700 Subject: [PATCH] Hide link label for sunburst to avoid label cut off. Known bug: https://github.com/elastic/elastic-charts/issues/633 (#83) --- public/pages/Dashboard/Components/AnomaliesDistribution.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/pages/Dashboard/Components/AnomaliesDistribution.tsx b/public/pages/Dashboard/Components/AnomaliesDistribution.tsx index 52338756..82f04699 100644 --- a/public/pages/Dashboard/Components/AnomaliesDistribution.tsx +++ b/public/pages/Dashboard/Components/AnomaliesDistribution.tsx @@ -228,6 +228,9 @@ export const AnomaliesDistributionChart = ( fillLabel: { textInvertible: true, }, + linkLabel: { + maxCount: 0, + }, // TODO: Given only 1 detector exists, the inside Index circle will have issue in following scenarios: // 1: if Linked Label is configured for identifying index, label of Index circle will be invisible; // 2: if Fill Label is configured for identifying index, label of it will be overlapped with outer Detector circle