import { Bar, BarChart, Cell, Legend, ResponsiveContainer, Tooltip, XAxis, YAxis, } from 'recharts'; import type { HydrogenMonthlyPoint } from '../../types'; import { formatYuan as fmtYuan } from '../model'; type MonthlyChartPoint = HydrogenMonthlyPoint & { monthLabel: string }; interface MonthlyChartsProps { activeYear: number; monthly: HydrogenMonthlyPoint[]; monthlyDual: MonthlyChartPoint[]; } export function MonthlyCharts({ activeYear, monthly, monthlyDual }: MonthlyChartsProps) { return ( <> {monthly.length > 0 && (