upd: menu home
Deskripsi : - tampilan grafik NO Issues
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import apiFetch from "@/lib/apiFetch";
|
import apiFetch from "@/lib/apiFetch";
|
||||||
import { Card, Divider, Flex, Stack, Title } from "@mantine/core";
|
import { Card, Divider, Flex, Stack, Text, Title } from "@mantine/core";
|
||||||
import { IconSettings } from "@tabler/icons-react";
|
import { IconChartBar } from "@tabler/icons-react";
|
||||||
import type { EChartsOption } from "echarts";
|
import type { EChartsOption } from "echarts";
|
||||||
import EChartsReact from "echarts-for-react";
|
import EChartsReact from "echarts-for-react";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
@@ -21,7 +21,7 @@ export default function DashboardGrafik() {
|
|||||||
darkMode: true,
|
darkMode: true,
|
||||||
animation: true,
|
animation: true,
|
||||||
legend: {
|
legend: {
|
||||||
textStyle: { color: "#fff" } // warna legend putih
|
textStyle: { color: "#fff" }
|
||||||
},
|
},
|
||||||
tooltip: {},
|
tooltip: {},
|
||||||
dataset: {
|
dataset: {
|
||||||
@@ -34,7 +34,8 @@ export default function DashboardGrafik() {
|
|||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
type: "value",
|
type: "value",
|
||||||
minInterval: 1
|
minInterval: 1,
|
||||||
|
axisLabel: { color: "#fff" }
|
||||||
},
|
},
|
||||||
color: ["#1abc9c", "#10816aff"],
|
color: ["#1abc9c", "#10816aff"],
|
||||||
series: [
|
series: [
|
||||||
@@ -62,20 +63,19 @@ export default function DashboardGrafik() {
|
|||||||
boxShadow: "0 0 25px rgba(0,255,200,0.08)",
|
boxShadow: "0 0 25px rgba(0,255,200,0.08)",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Stack gap="md">
|
<Stack gap="sm">
|
||||||
<Flex align="center" justify="space-between">
|
<Flex align="center" justify="space-between">
|
||||||
<Title order={4} c="gray.0">
|
<Flex direction={"column"}>
|
||||||
System Performance
|
<Title order={4} c="gray.0">
|
||||||
</Title>
|
Grafik Pengaduan dan Pelayanan Surat
|
||||||
<IconSettings size={20} color="gray" />
|
</Title>
|
||||||
|
<Text size="sm">7 Hari Terakhir</Text>
|
||||||
|
</Flex>
|
||||||
|
<IconChartBar size={20} color="gray" />
|
||||||
</Flex>
|
</Flex>
|
||||||
<Divider my="xs" />
|
<Divider my="xs" />
|
||||||
<Stack gap="sm">
|
<Stack gap="sm">
|
||||||
<EChartsReact style={{ height: 400, width: "100%" }} option={options} />
|
<EChartsReact style={{ height: 400 }} option={options} />
|
||||||
{/* <ProgressSection label="CPU Usage" value={68} color="teal" />
|
|
||||||
<ProgressSection label="Memory Usage" value={75} color="cyan" />
|
|
||||||
<ProgressSection label="Network Load" value={42} color="blue" />
|
|
||||||
<ProgressSection label="Disk Space" value={88} color="red" /> */}
|
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Reference in New Issue
Block a user