Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b197ec50
authored
Jul 21, 2025
by
t0ng7u
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🔖
chore: remove useless ui component
parent
466b4193
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
75 deletions
+0
-75
web/src/components/common/charts/TrendChart.jsx
+0
-75
No files found.
web/src/components/common/charts/TrendChart.jsx
deleted
100644 → 0
View file @
466b4193
/*
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 <https://www.gnu.org/licenses/>.
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
(
<
VChart
spec=
{
getTrendSpec
(
data
,
color
)
}
option=
{
config
}
/>
);
};
export
default
TrendChart
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment