Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fixed tooltip label color

TzeYiing585e9cb4e013
diff --git a/studio/components/ui/Charts/StackedAreaChart.stories.tsx b/studio/components/ui/Charts/StackedAreaChart.stories.tsx
index 7c5910d3099..994f2bd02cb 100644
--- a/studio/components/ui/Charts/StackedAreaChart.stories.tsx
+++ b/studio/components/ui/Charts/StackedAreaChart.stories.tsx
@@ -6,16 +6,26 @@ import StackedAreaChart from './StackedAreaChart'
export default {
title: 'Charts/StackedAreaChart',
component: StackedAreaChart,
- parameters: {
- // More on Story layout: https://storybook.js.org/docs/react/configure/story-layout
- layout: 'fullscreen',
- },
} as ComponentMeta<typeof StackedAreaChart>
const Template: ComponentStory<typeof StackedAreaChart> = (args) => <StackedAreaChart {...args} />
export const Default = Template.bind({})
Default.args = {
+ stackKey: 'status_code',
+ xAxisKey: 'timestamp',
+ yAxisKey: 'count',
+ isLoading: false,
+ xAxisFormatAsDate: true,
+ size: 'large',
+ dateFormat: 'MMM D, ha',
+
data: [
- ]
+ { count: 18, status_code: 200, timestamp: 1647864000000000 },
+ { count: 1, status_code: 303, timestamp: 1647864000000000 },
+ { count: 4, status_code: 201, timestamp: 1647864000000000 },
+ { count: 18, status_code: 200, timestamp: 1647860000000000 },
+ { count: 1, status_code: 303, timestamp: 1647860000000000 },
+ { count: 4, status_code: 201, timestamp: 1647864000000000 },
+ ],
}
diff --git a/studio/components/ui/Charts/StackedAreaChart.tsx b/studio/components/ui/Charts/StackedAreaChart.tsx
index f4b8cb24830..5a3f4539fcf 100644
--- a/studio/components/ui/Charts/StackedAreaChart.tsx
+++ b/studio/components/ui/Charts/StackedAreaChart.tsx
@@ -109,7 +109,7 @@ const StackedAreaChart: React.FC<Props> = ({
))}
<Tooltip
labelFormatter={xAxisFormatAsDate ? formatToDate : undefined}
- labelClassName="text-gray-100"
+ labelClassName="text-white"
contentStyle={{ backgroundColor: '#444444', borderColor: '#444444', fontSize: '12px' }}
wrapperClassName="bg-gray-600"
/>