Back to Supabase

Logs Bar Chart

apps/design-system/content/docs/fragments/logs-bar-chart.mdx

1.26.04338 B
Original Source
<ComponentPreview name="logs-bar-chart" peekCode wide />

Usage

This component is used to display the bar chart in logs pages.

It requires that the data prop is an array of objects with the following shape:

ts
type LogsBarChartDatum = {
  timestamp: string
  ok_count: number
  error_count: number
  warning_count: number
}