From 64acd415b4ae97c2d5e0624c0438f3e705930068 Mon Sep 17 00:00:00 2001
From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
Date: Tue, 21 May 2024 14:31:27 -0300
Subject: [PATCH] remove unnecessary Box component
---
.../dashboard/components/PageViewsChart.tsx | 208 +++++++++---------
1 file changed, 103 insertions(+), 105 deletions(-)
diff --git a/docs/data/material/getting-started/templates/dashboard/components/PageViewsChart.tsx b/docs/data/material/getting-started/templates/dashboard/components/PageViewsChart.tsx
index 86aa28a612dbd0..27379c72d38e2e 100644
--- a/docs/data/material/getting-started/templates/dashboard/components/PageViewsChart.tsx
+++ b/docs/data/material/getting-started/templates/dashboard/components/PageViewsChart.tsx
@@ -50,110 +50,108 @@ export default function PageViewsChart() {
const colorPalette = mode === 'dark' ? colorPaletteDark : colorPaletteLight;
return (
-
-
-
-
- Page views and downloads
-
- (i + 1) % 5 === 0,
- },
- ]}
- series={[
- {
- id: 'page-views',
- label: 'Page views',
- showMark: false,
- curve: 'linear',
- stack: 'total',
- stackOrder: 'ascending',
- data: [
- 6234, 6087, 6421, 6312, 6190, 6400, 6357, 6029, 6173, 6482, 6215,
- 6051, 6338, 6142, 6018, 6247, 6463, 6371, 6060, 6100, 6389, 6203,
- 6497, 6036, 6156, 6470, 6269, 6091, 6445, 6121,
- ],
- area: true,
- },
- {
- id: 'downloads',
- label: 'Downloads',
- showMark: false,
- curve: 'linear',
- stack: 'total',
- area: true,
- stackOrder: 'ascending',
- data: [
- 4486, 4255, 4046, 4316, 4418, 4498, 4421, 4474, 4036, 4049, 4206,
- 4458, 4259, 4353, 4496, 4178, 4265, 4424, 4186, 4003, 4204, 4467,
- 4120, 4410, 4292, 4143, 4403, 4373, 4079, 4291,
- ],
- },
- {
- id: 'conversions',
- label: 'Conversions',
- showMark: false,
- curve: 'linear',
- stack: 'total',
- area: true,
- stackOrder: 'ascending',
- data: [
- 2238, 2172, 2305, 2140, 2135, 2100, 2465, 2053, 2342, 2494, 2497,
- 2277, 2356, 2012, 2309, 2301, 2029, 2028, 2129, 2324, 2152, 2235,
- 2430, 2027, 2168, 2111, 2235, 2166, 2309, 2268,
- ],
- },
- ]}
- height={320}
- margin={{ left: 50, right: 0, top: 60, bottom: 30 }}
- grid={{ horizontal: true }}
- sx={{
- '& .MuiAreaElement-series-page-views': {
- fill: "url('#page-views')",
- },
- '& .MuiAreaElement-series-downloads': {
- fill: "url('#conversions')",
- },
- '& .MuiAreaElement-series-conversions': {
- fill: "url('#conversions')",
- },
- }}
- slotProps={{
- legend: {
- labelStyle: { fontSize: 14 },
- itemMarkWidth: 10,
- itemMarkHeight: 10,
- itemGap: 24,
- position: { vertical: 'top', horizontal: 'right' },
- },
- }}
- >
-
-
-
-
-
-
-
+
+
+
+ Page views and downloads
+
+ (i + 1) % 5 === 0,
+ },
+ ]}
+ series={[
+ {
+ id: 'page-views',
+ label: 'Page views',
+ showMark: false,
+ curve: 'linear',
+ stack: 'total',
+ stackOrder: 'ascending',
+ data: [
+ 6234, 6087, 6421, 6312, 6190, 6400, 6357, 6029, 6173, 6482, 6215,
+ 6051, 6338, 6142, 6018, 6247, 6463, 6371, 6060, 6100, 6389, 6203,
+ 6497, 6036, 6156, 6470, 6269, 6091, 6445, 6121,
+ ],
+ area: true,
+ },
+ {
+ id: 'downloads',
+ label: 'Downloads',
+ showMark: false,
+ curve: 'linear',
+ stack: 'total',
+ area: true,
+ stackOrder: 'ascending',
+ data: [
+ 4486, 4255, 4046, 4316, 4418, 4498, 4421, 4474, 4036, 4049, 4206,
+ 4458, 4259, 4353, 4496, 4178, 4265, 4424, 4186, 4003, 4204, 4467,
+ 4120, 4410, 4292, 4143, 4403, 4373, 4079, 4291,
+ ],
+ },
+ {
+ id: 'conversions',
+ label: 'Conversions',
+ showMark: false,
+ curve: 'linear',
+ stack: 'total',
+ area: true,
+ stackOrder: 'ascending',
+ data: [
+ 2238, 2172, 2305, 2140, 2135, 2100, 2465, 2053, 2342, 2494, 2497,
+ 2277, 2356, 2012, 2309, 2301, 2029, 2028, 2129, 2324, 2152, 2235,
+ 2430, 2027, 2168, 2111, 2235, 2166, 2309, 2268,
+ ],
+ },
+ ]}
+ height={320}
+ margin={{ left: 50, right: 0, top: 60, bottom: 30 }}
+ grid={{ horizontal: true }}
+ sx={{
+ '& .MuiAreaElement-series-page-views': {
+ fill: "url('#page-views')",
+ },
+ '& .MuiAreaElement-series-downloads': {
+ fill: "url('#conversions')",
+ },
+ '& .MuiAreaElement-series-conversions': {
+ fill: "url('#conversions')",
+ },
+ }}
+ slotProps={{
+ legend: {
+ labelStyle: { fontSize: 14 },
+ itemMarkWidth: 10,
+ itemMarkHeight: 10,
+ itemGap: 24,
+ position: { vertical: 'top', horizontal: 'right' },
+ },
+ }}
+ >
+
+
+
+
+
+
);
}