refactor: overhaul UI for streamlined user experience
Redesign navigation, home overview, user portrait, and valuation pages with improved functionality and responsive design. Co-authored-by: null <4804959+fnvtk@users.noreply.github.com>
This commit is contained in:
47
components/Charts.tsx
Normal file
47
components/Charts.tsx
Normal file
@@ -0,0 +1,47 @@
|
||||
"use client"
|
||||
|
||||
import { Line } from "@ant-design/plots"
|
||||
|
||||
interface LineChartProps {
|
||||
data: { date: string; value: number }[]
|
||||
xField: string
|
||||
yField: string
|
||||
}
|
||||
|
||||
export function LineChart({ data, xField, yField }: LineChartProps) {
|
||||
const config = {
|
||||
data,
|
||||
xField,
|
||||
yField,
|
||||
smooth: true,
|
||||
color: "#1677ff",
|
||||
point: {
|
||||
size: 4,
|
||||
shape: "circle",
|
||||
style: {
|
||||
fill: "#1677ff",
|
||||
stroke: "#fff",
|
||||
lineWidth: 2,
|
||||
},
|
||||
},
|
||||
tooltip: {
|
||||
showMarkers: false,
|
||||
},
|
||||
state: {
|
||||
active: {
|
||||
style: {
|
||||
shadowBlur: 4,
|
||||
stroke: "#000",
|
||||
fill: "red",
|
||||
},
|
||||
},
|
||||
},
|
||||
interactions: [
|
||||
{
|
||||
type: "marker-active",
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
return <Line {...config} />
|
||||
}
|
||||
Reference in New Issue
Block a user