From 55ee1007b21e8547f1d2fd4a85ac3c0be8f80892 Mon Sep 17 00:00:00 2001 From: scespinoza Date: Thu, 14 Nov 2024 17:32:20 -0300 Subject: [PATCH] fixes share button theme and tooltip --- src/vizbuilder/components/ChartCard.tsx | 1 - src/vizbuilder/hooks/useD3plusConfig.ts | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vizbuilder/components/ChartCard.tsx b/src/vizbuilder/components/ChartCard.tsx index f530716..c6348ac 100644 --- a/src/vizbuilder/components/ChartCard.tsx +++ b/src/vizbuilder/components/ChartCard.tsx @@ -138,7 +138,6 @@ export function ChartCard(props: { }} size="sm" variant={isShared ? "filled" : "light"} - color={isShared ? "green" : "blue"} > {isShared ? translate("vizbuilder.share_copied") diff --git a/src/vizbuilder/hooks/useD3plusConfig.ts b/src/vizbuilder/hooks/useD3plusConfig.ts index b0bdcdd..545d5f8 100644 --- a/src/vizbuilder/hooks/useD3plusConfig.ts +++ b/src/vizbuilder/hooks/useD3plusConfig.ts @@ -364,6 +364,9 @@ function _buildTooltipTbody( if (column.type === "measure") return null; if (column.type === "level" && column.hasID && column.isID) return null; const {caption, name} = getColumnEntity(column); + + if(Array.isArray(d[name])) return null; + return [caption, d[name]] as [string, string]; }).concat([[meaCaption, measureFormatter(d[meaName] as number, locale)]]); };