From 2a366c176d17a5dd366217faa2b211979fc82e3f Mon Sep 17 00:00:00 2001 From: t0ng7u Date: Mon, 21 Jul 2025 22:34:07 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20chore:=20remove=20useless=20ui?= =?UTF-8?q?=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/common/charts/TrendChart.jsx | 74 ------------------- 1 file changed, 74 deletions(-) delete mode 100644 web/src/components/common/charts/TrendChart.jsx diff --git a/web/src/components/common/charts/TrendChart.jsx b/web/src/components/common/charts/TrendChart.jsx deleted file mode 100644 index d81285ae..00000000 --- a/web/src/components/common/charts/TrendChart.jsx +++ /dev/null @@ -1,74 +0,0 @@ -/* -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 { VChart } from '@visactor/react-vchart'; - -const TrendChart = ({ - data, - color, - width = 100, - height = 40, - config = { mode: 'desktop-browser' } -}) => { - const getTrendSpec = (data, color) => ({ - type: 'line', - data: [{ id: 'trend', values: data.map((val, idx) => ({ x: idx, y: val })) }], - xField: 'x', - yField: 'y', - height: height, - width: width, - axes: [ - { - orient: 'bottom', - visible: false - }, - { - orient: 'left', - visible: false - } - ], - padding: 0, - autoFit: false, - legends: { visible: false }, - tooltip: { visible: false }, - crosshair: { visible: false }, - line: { - style: { - stroke: color, - lineWidth: 2 - } - }, - point: { - visible: false - }, - background: { - fill: 'transparent' - } - }); - - return ( - - ); -}; - -export default TrendChart; \ No newline at end of file