SPB Git forge
15commits 1branches 0releases
29.7 MBsize
maindefault branch
10 days agolast push
TypeScript 36.3% Python 31.8% Go 18% JavaScript 9.8% Shell 1.9% SQL 1.4% CSS 0.5%
580 B · 18 lines tsx
Raw Blame History
1'use client';23import { SeriesChart } from '@/components/charts/SeriesChart';45export function AsnBgpChart({ series }: { series: { ts: string; announcements: number; withdrawals: number }[] }) {6  return (7    <SeriesChart8      lines={[9        { name: 'Announcements', color: '#5B8DEF', points: series.map((p) => ({ ts: p.ts, value: p.announcements })), type: 'bar' },10        { name: 'Withdrawals', color: '#E76F51', points: series.map((p) => ({ ts: p.ts, value: p.withdrawals })), type: 'bar' },11      ]}12      height={180}13      yMax="auto"14      bands={false}15    />16  );17}18