/* Copyright (C) 2025 QuantumNous This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . For commercial licensing, please contact support@quantumnous.com */ import React from 'react'; import { Card, Tabs, TabPane } from '@douyinfe/semi-ui'; import { PieChart } from 'lucide-react'; import { VChart } from '@visactor/react-vchart'; const ChartsPanel = ({ activeChartTab, setActiveChartTab, spec_line, spec_model_line, spec_pie, spec_rank_bar, CARD_PROPS, CHART_CONFIG, FLEX_CENTER_GAP2, hasApiInfoPanel, t, }) => { return (
{t('模型数据分析')}
{t('消耗分布')}} itemKey='1' /> {t('消耗趋势')}} itemKey='2' /> {t('调用次数分布')}} itemKey='3' /> {t('调用次数排行')}} itemKey='4' /> } bodyStyle={{ padding: 0 }} >
{activeChartTab === '1' && ( )} {activeChartTab === '2' && ( )} {activeChartTab === '3' && ( )} {activeChartTab === '4' && ( )}
); }; export default ChartsPanel;