diff --git a/resources/js/components/charts/revenue-vs-profit-chart.tsx b/resources/js/components/charts/revenue-vs-profit-chart.tsx index a08610a..1b0a589 100644 --- a/resources/js/components/charts/revenue-vs-profit-chart.tsx +++ b/resources/js/components/charts/revenue-vs-profit-chart.tsx @@ -1,6 +1,6 @@ "use client" -import { CartesianGrid, Line, LineChart, XAxis } from "recharts" +import { CartesianGrid, Line, LineChart, XAxis, YAxis } from "recharts" import { Card, @@ -15,7 +15,7 @@ import { ChartTooltipContent, type ChartConfig, } from "@/components/ui/chart" -import { formatCurrency } from "@/lib/formatters" +import { formatCurrency, formatShortCurrency } from "@/lib/formatters" export const description = "Perbandingan Pendapatan vs Laba Bersih per bulan." @@ -55,6 +55,13 @@ export function RevenueVsProfitChart({ data }: { data: any[] }) { tickMargin={8} tickFormatter={(value) => value.slice(0, 3)} /> + value.slice(0, 3)} /> + + } diff --git a/resources/js/components/charts/transaction-volume-chart.tsx b/resources/js/components/charts/transaction-volume-chart.tsx index 7489387..f69c72c 100644 --- a/resources/js/components/charts/transaction-volume-chart.tsx +++ b/resources/js/components/charts/transaction-volume-chart.tsx @@ -1,7 +1,7 @@ "use client" import { GitCommitVertical, TrendingUp } from "lucide-react" -import { CartesianGrid, Line, LineChart, XAxis } from "recharts" +import { CartesianGrid, Line, LineChart, XAxis, YAxis } from "recharts" import { Card, @@ -57,6 +57,12 @@ export function TransactionVolumeChart({ data }: { data: any[] }) { tickMargin={8} tickFormatter={(value) => value.slice(0, 3)} /> +