+
+
+ Total Bookings Stats
+
+
+
+ {/* Input fields for start and end date */}
+
+ setStartDateBookings(e.target.value)}
+ sx={{
+ backgroundColor: "#202020",
+ borderRadius: "8px",
+ "& .MuiInputBase-input": {
+ color: "#F2F2F2",
+ },
+ }}
+ />
+ setEndDateBookings(e.target.value)}
+ sx={{
+ backgroundColor: "#202020",
+ borderRadius: "8px",
+ "& .MuiInputBase-input": {
+ color: "#F2F2F2",
+ },
+ }}
+ />
+
+
+
+ {/* Line Chart */}
+ data.label), // Use intervals as x-axis labels
+ },
+ ]}
+ series={[
+ {
+ id: "totalBookings",
+ showMark: false,
+ curve: "linear",
+ area: true,
+ data: chartData.map((data) => data.value), // Use interval data for y-axis
+ color: theme.palette.primary.main,
+ },
+ ]}
+ height={getChartHeight()}
+ margin={getChartMargin()}
+ grid={{ horizontal: true }}
+ sx={{
+ "& .MuiAreaElement-series-totalBookings": {
+ fill: "url('#totalBookings')",
+ },
+ }}
+ >
+
+
+
+