diff --git a/src/pages/ClientDetails.tsx b/src/pages/ClientDetails.tsx index f2b7a9d..2f4da4d 100644 --- a/src/pages/ClientDetails.tsx +++ b/src/pages/ClientDetails.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from 'react'; import { useParams, Link, useOutletContext } from 'react-router-dom'; import { ArrowLeft, User, Tag, Package, DollarSign, Clock, Phone, ChevronLeft, ChevronRight, ShoppingBag, ReceiptText } from 'lucide-react'; -import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer } from 'recharts'; +import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer } from 'recharts'; import DateRangePicker from '../components/DateRangePicker'; import type { ClientDetailsAnalytics, DateRange, OrderData } from '../types'; import { fetchClientDetailsAnalytics } from '../dataService'; @@ -219,7 +219,13 @@ const ClientDetails = () => { ) : (
- + + + + + + + { /> formatCurrency(Number(value))} /> } cursor={{ fill: CHART_CURSOR_COLOR }} /> - - + +
)} diff --git a/src/pages/ProductDetails.tsx b/src/pages/ProductDetails.tsx index e9d91a4..63aeb00 100644 --- a/src/pages/ProductDetails.tsx +++ b/src/pages/ProductDetails.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from 'react'; import { useParams, Link, useOutletContext } from 'react-router-dom'; import { ArrowLeft, Package, DollarSign } from 'lucide-react'; -import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer } from 'recharts'; +import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer } from 'recharts'; import DateRangePicker from '../components/DateRangePicker'; import type { DateRange, ProductDetailsAnalytics } from '../types'; import { fetchProductDetailsAnalytics } from '../dataService'; @@ -142,7 +142,13 @@ const ProductDetails = () => {

Volume de Vendas por Data

- + + + + + + + { /> } cursor={{ fill: CHART_CURSOR_COLOR }} /> - - + +