移除图表 Brush 缩放拖拽组件,简化交互
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user