diff --git a/pkg/app/web/src/components/deployment-frequency-chart.tsx b/pkg/app/web/src/components/deployment-frequency-chart.tsx index 3727ed7284..4f93d13dd2 100644 --- a/pkg/app/web/src/components/deployment-frequency-chart.tsx +++ b/pkg/app/web/src/components/deployment-frequency-chart.tsx @@ -8,6 +8,7 @@ import { XAxis, CartesianGrid, Tooltip, + ResponsiveContainer, } from "recharts"; import dayjs from "dayjs"; import { theme } from "../theme"; @@ -15,10 +16,7 @@ import { theme } from "../theme"; const useStyles = makeStyles((theme) => ({ root: { padding: theme.spacing(3), - width: 680, - }, - chart: { - flex: 1, + minWidth: 600, }, })); @@ -26,9 +24,6 @@ interface Props { data: InsightDataPoint.AsObject[]; } -const CHART_WIDTH = 600; -const CHART_HEIGHT = 400; - export const DeploymentFrequencyChart: FC = ({ data }) => { const classes = useStyles(); @@ -44,38 +39,37 @@ export const DeploymentFrequencyChart: FC = ({ data }) => { {data.length === 0 ? ( No data ) : ( - - - - - - - + + + + + + + + + )} );