From 1c6bece3be1dd67586d2caf83bc534da75b50e5b Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Mon, 9 Dec 2024 19:04:30 +0100 Subject: [PATCH 1/4] Fix PieChart legend visual issue The "chart" class was braking Vega's CSS --- .../WorkflowInvocationState/VegaWrapper.vue | 7 +------ .../WorkflowInvocationMetrics.vue | 13 +------------ 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/client/src/components/WorkflowInvocationState/VegaWrapper.vue b/client/src/components/WorkflowInvocationState/VegaWrapper.vue index ec4ce67b8586..fb76e6e4875f 100644 --- a/client/src/components/WorkflowInvocationState/VegaWrapper.vue +++ b/client/src/components/WorkflowInvocationState/VegaWrapper.vue @@ -1,5 +1,5 @@ - - diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue index cb32e4f11288..a3e530696926 100644 --- a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue +++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue @@ -275,18 +275,7 @@ function itemToPieChartSpec(item: piechartData) { type: "nominal", legend: { type: "symbol", - title: "", // should be item.category_title but it doesn't align right so just hide it - direction: "vertical", - titleAlign: "right", - padding: 10, - // rowPadding: 3, - labelOffset: 40, - // symbolOffset: 50, - labelLimit: 120, - // labelAlign: 'center', - columnPadding: 5, - // clipHeight: 20, - titleOrient: "top", + title: item.category_title, }, }, tooltip: [ From e3ac780d64c7483bf9cce5a0b51136bef2d45567 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Mon, 9 Dec 2024 19:06:33 +0100 Subject: [PATCH 2/4] Increase PieChart legend font size Slightly increase for improved visibility --- .../WorkflowInvocationState/WorkflowInvocationMetrics.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue index a3e530696926..2298d1880cd5 100644 --- a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue +++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue @@ -276,6 +276,8 @@ function itemToPieChartSpec(item: piechartData) { legend: { type: "symbol", title: item.category_title, + titleFontSize: 16, + labelFontSize: 14, }, }, tooltip: [ From 631da6456d42d417d0ee85ecba5030f337bd919a Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Mon, 9 Dec 2024 19:08:42 +0100 Subject: [PATCH 3/4] Fix label for 'Group By' dropdown in Workflow Invocation Metrics Make it dynamic like the other one for time. --- .../WorkflowInvocationState/WorkflowInvocationMetrics.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue index 2298d1880cd5..3a1a1bbf8e19 100644 --- a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue +++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue @@ -372,6 +372,10 @@ function getTimingInTitle(timing: string): string { const timingInTitles = computed(() => { return getTimingInTitle(timing.value); }); + +const groupByInTitles = computed(() => { + return attributeToLabel[groupBy.value]; +});