diff --git a/src/components/chart-elements/AreaChart/AreaChart.tsx b/src/components/chart-elements/AreaChart/AreaChart.tsx index 57426b026..8dce26ed6 100644 --- a/src/components/chart-elements/AreaChart/AreaChart.tsx +++ b/src/components/chart-elements/AreaChart/AreaChart.tsx @@ -241,7 +241,7 @@ const AreaChart = React.forwardRef((props, ref) )} ((props, ref) => )} ((props, ref /> ) : null} */} ( className={tremorTwMerge( "absolute top-0 pointer-events-none", tooltip.data ? "visible" : "hidden", + "z-50", )} tabIndex={-1} role="dialog" diff --git a/src/components/chart-elements/LineChart/LineChart.tsx b/src/components/chart-elements/LineChart/LineChart.tsx index ded14f8df..5b167661f 100644 --- a/src/components/chart-elements/LineChart/LineChart.tsx +++ b/src/components/chart-elements/LineChart/LineChart.tsx @@ -237,7 +237,7 @@ const LineChart = React.forwardRef((props, ref) )} ((props, ) : null} = { @@ -387,3 +388,38 @@ export const AxisLabels: Story = { yAxisLabel: "Amount (USD)", }, }; + +export function LongTooltip() { + return ( + <> +
+
+ +
+
+ +
+
+ + ); +} diff --git a/src/stories/chart-elements/helpers/testData.tsx b/src/stories/chart-elements/helpers/testData.tsx index 879569ad2..042bc6dae 100644 --- a/src/stories/chart-elements/helpers/testData.tsx +++ b/src/stories/chart-elements/helpers/testData.tsx @@ -1751,3 +1751,12 @@ export const singleAndMultipleData = [ Sales: 3612, }, ]; + +export const longDataName = [ + { + name: 'Very very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong Topic 1', + 'Group A': 890, + 'Group B': 338, + 'Group C': 538, + }, +];