移除图表 Brush 缩放拖拽组件,简化交互

This commit is contained in:
2569718930@qq.com
2026-05-26 09:52:09 +08:00
parent 4d103a7a38
commit fbd00df72f
@@ -4,7 +4,6 @@ import clsx from "clsx";
import { useEffect, useMemo, useState } from "react"; import { useEffect, useMemo, useState } from "react";
import { LoadingSignal } from "@/components/dashboard/scan-terminal/LoadingSignal"; import { LoadingSignal } from "@/components/dashboard/scan-terminal/LoadingSignal";
import { import {
Brush,
CartesianGrid, CartesianGrid,
Line, Line,
LineChart as ReLineChart, LineChart as ReLineChart,
@@ -1798,17 +1797,6 @@ export function LiveTemperatureThresholdChart({
isAnimationActive={false} isAnimationActive={false}
/> />
))} ))}
{!compact && (timeframe === "1D" || timeframe === "3D") && (
<Brush
dataKey="label"
height={18}
stroke="#64748b"
fill="#f8fafc"
travellerWidth={8}
startIndex={0}
endIndex={data.length - 1}
/>
)}
</ReLineChart> </ReLineChart>
</ResponsiveContainer> </ResponsiveContainer>
</div> </div>