SPB Git
656 B · 19 lines tsx
1'use client';23import { SeriesChart } from '@/components/charts/SeriesChart';45export function BgpSeriesChart({ series }: { series: { ts: string; announcements: number; withdrawals: number }[] }) {6  return (7    <SeriesChart8      lines={[9        { name: 'Announcements / min', color: '#5B8DEF', points: series.map((p) => ({ ts: p.ts, value: p.announcements })), area: true },10        { name: 'Withdrawals / min', color: '#E76F51', points: series.map((p) => ({ ts: p.ts, value: p.withdrawals })), yAxisIndex: 1, width: 1.5 },11      ]}12      height={240}13      yMax="auto"14      bands={false}15      y2={{ max: 'auto', name: 'withdrawals' }}16    />17  );18}19
Files · 2ad054aee22a11bbac5c2a273c5d186a8a903b50
Menu

Theme