Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import Chart, { Props } from "react-apexcharts";
const state: Props["series"] = [
{
name: "Series1",
data: [31, 40, 28, 51, 42, 109, 100],
},
{
name: "Series2",
data: [11, 32, 45, 32, 34, 52, 41],
},
];
const options: Props["options"] = {
chart: {
type: "area",
animations: {
easing: "linear",
speed: 300,
},
sparkline: {
enabled: false,
},
brush: {
enabled: false,
},
id: "basic-bar",
foreColor: "hsl(var(--nextui-default-800))",
stacked: true,
toolbar: {
show: false,
},
},
xaxis: {
categories: [1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999],
labels: {
// show: false,
style: {
colors: "hsl(var(--nextui-default-800))",
},
},
axisBorder: {
color: "hsl(var(--nextui-nextui-default-200))",
},
axisTicks: {
color: "hsl(var(--nextui-nextui-default-200))",
},
},
yaxis: {
labels: {
style: {
// hsl(var(--nextui-content1-foreground))
colors: "hsl(var(--nextui-default-800))",
},
},
},
tooltip: {
enabled: false,
},
grid: {
show: true,
borderColor: "hsl(var(--nextui-default-200))",
strokeDashArray: 0,
position: "back",
},
stroke: {
curve: "smooth",
fill: {
colors: ["red"],
},
},
// markers: false,
};
export const ChartTest = () => {
return (
<>
<div className="w-full z-20">
<div id="chart">
<Chart options={options} series={state} type="area" height={425} />
</div>
</div>
</>
);
};