chart and list added

This commit is contained in:
2026-04-16 12:52:15 +10:00
parent f04dbb46d6
commit d76de64a90
8 changed files with 284 additions and 135 deletions

View File

@@ -3,18 +3,18 @@ import { DataGrid } from "@mui/x-data-grid";
import type { GridRowsProp, GridColDef } from "@mui/x-data-grid";
import Container from '@mui/material/Container';
import { ruRU } from '@mui/x-data-grid/locales';
import type { tGroup } from "../groupdata";
import { gropuedPrices } from "../../data";
type GroupProps = {
data: tGroup;
data: typeof gropuedPrices[number];
};
function GroupGrid({ data }: GroupProps) {
const rows: GridRowsProp = data;
const columns: GridColDef[] = [
{ field: 'Группа', headerName: 'Группа', flex: 1},
{ field: 'Минимальная высота', flex: 0.5},
{ field: 'Максимальная высота', flex: 0.5},
{ field: 'Средняя высота', flex: 0.5},
{ field: 'group', headerName: 'Group', flex: 1},
{ field: 'min', headerName: 'Price min', flex: 0.5},
{ field: 'max', headerName: 'Price max', flex: 0.5},
{ field: 'mean',headerName: 'Price mean',flex: 0.5},
]
return (
<Container maxWidth="lg" sx={{height: '700px', mt: '20px'}}>