From f8429fbb4d22f0f832e8e662f25ab2f884788061 Mon Sep 17 00:00:00 2001 From: nickofthyme Date: Sat, 16 Mar 2024 15:53:59 -0500 Subject: [PATCH 1/2] fix(legend): custom legend covered by background --- packages/charts/src/components/_global.scss | 1 + storybook/stories/legend/16_custom_legend.story.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/charts/src/components/_global.scss b/packages/charts/src/components/_global.scss index 2b68010552..d2aa044add 100644 --- a/packages/charts/src/components/_global.scss +++ b/packages/charts/src/components/_global.scss @@ -13,4 +13,5 @@ bottom: 0; left: 0; right: 0; + z-index: -1; } diff --git a/storybook/stories/legend/16_custom_legend.story.tsx b/storybook/stories/legend/16_custom_legend.story.tsx index f633261963..8b0f55d0aa 100644 --- a/storybook/stories/legend/16_custom_legend.story.tsx +++ b/storybook/stories/legend/16_custom_legend.story.tsx @@ -42,7 +42,7 @@ const allMetrics = [...data3, ...data2, ...data1]; export const Example: ChartsStory = (_, { title, description }) => { const customLegend: CustomLegend = ({ items, pointerValue }) => ( -
+

{pointerValue ? moment(pointerValue?.value).format('HH:mm') : 'System Load'}

{items.map((i) => (