Skip to content

Commit

Permalink
Merge pull request #1316 from hypoclone/master
Browse files Browse the repository at this point in the history
Update ChartReportPage.jsx
  • Loading branch information
tananaev authored Dec 28, 2024
2 parents 8a36147 + dbf8397 commit 9f85b7b
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/reports/ChartReportPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
FormControl, InputLabel, Select, MenuItem, useTheme,
} from '@mui/material';
import {
CartesianGrid, Line, LineChart, ResponsiveContainer, Tooltip, XAxis, YAxis,
Brush, CartesianGrid, Line, LineChart, ResponsiveContainer, Tooltip, XAxis, YAxis,
} from 'recharts';
import ReportFilter from './components/ReportFilter';
import { formatTime } from '../common/util/formatter';
Expand Down Expand Up @@ -161,7 +161,19 @@ const ChartReportPage = () => {
formatter={(value, key) => [value, positionAttributes[key]?.name || key]}
labelFormatter={(value) => formatTime(value, 'seconds')}
/>
<Line type="monotone" dataKey={type} stroke={theme.palette.primary.main} />
<Brush
dataKey={timeType}
height={30}
stroke={theme.palette.primary.main}
tickFormatter={() => ''}
/>
<Line
type="monotone"
dataKey={type}
stroke={theme.palette.primary.main}
dot={false}
activeDot={{ r: 6 }}
/>
</LineChart>
</ResponsiveContainer>
</div>
Expand Down

0 comments on commit 9f85b7b

Please sign in to comment.