fix(charts): единый стиль AreaChart с градиентом
CI / test (push) Successful in 1m8s
CI / push-image (push) Successful in 6m9s
CI / ci-done (push) Successful in 0s
Deploy stage (admin) / deploy-stage-admin (push) Successful in 4m46s

Общий AreaTrendChart для мониторинга и daily-графиков, StatisticSparklineCard на дашборде.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-13 17:55:24 +03:00
parent d056b63e1b
commit de379e28bf
4 changed files with 143 additions and 42 deletions
+8 -20
View File
@@ -1,16 +1,7 @@
import React from 'react';
import { Card, Col } from 'antd';
import {
LineChart,
Line,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend,
ResponsiveContainer,
} from 'recharts';
import { DayCount } from '../types/api';
import AreaTrendChart from './AreaTrendChart';
interface Props {
title: string;
@@ -32,16 +23,13 @@ const DailyLineChartCard: React.FC<Props> = ({ title, data, color, lg = 12 }) =>
return (
<Col xs={24} lg={lg}>
<Card title={title}>
<ResponsiveContainer width="100%" height={300}>
<LineChart data={chartData}>
<CartesianGrid strokeDasharray="3 3" />
<XAxis dataKey="date" />
<YAxis allowDecimals={false} />
<Tooltip />
<Legend />
<Line type="monotone" dataKey="count" stroke={color} name={title} />
</LineChart>
</ResponsiveContainer>
<AreaTrendChart
data={chartData}
xKey="date"
series={[{ key: 'count', color, name: title }]}
height={300}
yAllowDecimals={false}
/>
</Card>
</Col>
);