diff --git a/src/components/Canvas.tsx b/src/components/Canvas.tsx index 22e6146..4644239 100644 --- a/src/components/Canvas.tsx +++ b/src/components/Canvas.tsx @@ -28,7 +28,7 @@ const Canvas: React.FC = ({ const chartRef = useRef([]); const seriesRef = useRef<(TimeSeries | null)[]>([]); const [isChartInitialized, setIsChartInitialized] = useState(false); - const [isGlobalPaused, setIsGlobalPaused] = useState(!isDisplay); + const [isGlobalPaused, setIsGlobalPaused] = useState(true); const batchSize = 10; const batchBuffer = useMemo>( () => [], @@ -117,12 +117,6 @@ const Canvas: React.FC = ({ ) as HTMLCanvasElement, 500 ); - - if (isGlobalPaused) { - chart.stop(); - } else { - chart.start(); - } } }); }, [