diff --git a/src/pages/statistics/AccountsStatistics.js b/src/pages/statistics/AccountsStatistics.js index 02d978489a313beb42d371378bc521dc711853d8..f7a228ba1276dafc25241322cabc3dc8952312cd 100644 --- a/src/pages/statistics/AccountsStatistics.js +++ b/src/pages/statistics/AccountsStatistics.js @@ -70,7 +70,7 @@ const TransactionsGraphPanel = ({ data }) => { return ('transactions' in data ? ( <Grid item xs={12}> <CardHeader title={translate('dashboard.transactions.title')} /> - <ResponsiveContainer width="100%" height={400}> + <ResponsiveContainer width={'99%'} height={400}> <LineChart data={data.transactions.data} width={600} height={300} margin={{ top: 10, right: 30, left: 0, bottom: 0 }}> <XAxis domain={[Math.floor(start.getTime() / 1000), Math.floor(Date.now() / 1000)]} type="number" dataKey={data.transactions.date_field} tickFormatter={dateFormatter} /> diff --git a/src/pages/statistics/ProductsStatistics.js b/src/pages/statistics/ProductsStatistics.js index 0ccb280e6f51b7fbc61c8f14699c4c41ed9422e3..d68657b32f70519ad622c1e70e7927972d2e0361 100644 --- a/src/pages/statistics/ProductsStatistics.js +++ b/src/pages/statistics/ProductsStatistics.js @@ -30,7 +30,7 @@ const BestProductsBarPanel = ({ data }) => { <> <Grid item xs={12}> <CardHeader title={translate('dashboard.products.title')} /> - <ResponsiveContainer width="100%" height={products.length * 20 + 40}> + <ResponsiveContainer width={'99%'} height={products.length * 20 + 40}> <BarChart width={100} height={800} data={products} layout="vertical"> <XAxis type="number" /> <YAxis type="category" dataKey="name" tick={false} /> diff --git a/src/pages/statistics/SellersStatistics.js b/src/pages/statistics/SellersStatistics.js index 03c25cc338a73d023fd17e55f06a26a19ca37c41..189e799c7ffd0646b822e5b2a68715cebb66db6b 100644 --- a/src/pages/statistics/SellersStatistics.js +++ b/src/pages/statistics/SellersStatistics.js @@ -30,7 +30,7 @@ const BestSellersBarPanel = ({ data }) => { <> <Grid item xs={12}> <CardHeader title={translate('dashboard.sellers.title')} /> - <ResponsiveContainer width="100%" height={sellers.length * 20 + 40}> + <ResponsiveContainer width={'99%'} height={sellers.length * 20 + 40}> <BarChart width={100} height={800} data={sellers} layout="vertical"> <XAxis type="number" /> <YAxis type="category" dataKey="name" tick={false} />