Skip to content

Commit

Permalink
add grid
Browse files Browse the repository at this point in the history
  • Loading branch information
SejoB committed May 6, 2024
1 parent cdaa27c commit ccc5559
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/molecules/GenericBarChart.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FC } from 'react';
import { ResponsiveContainer, BarChart, LabelList, XAxis, Bar, Tooltip, Legend, YAxis } from 'recharts';
import { ResponsiveContainer, BarChart, LabelList, XAxis, Bar, Tooltip, Legend, YAxis, CartesianGrid } from 'recharts';
import { roseColor, blackColor, ColorScheme, whiteColor } from 'style';
import tinycolor from 'tinycolor2';
import { useTheme } from '@material-ui/core/styles';
Expand Down Expand Up @@ -72,9 +72,11 @@ const BarChartContainer: FC<IBarChartBaseProps> = ({ data, textLabel, subtitle,
style={{ fill: (theme.palette.primary as ColorScheme).fontColor }}
mirror
tickLine={false}
tickMargin={-5}
tickMargin={-10}
interval={0}
/>
)}
{isStacked && <CartesianGrid vertical={false} />}
{children}
</BarChart>
</ResponsiveContainer>
Expand Down

0 comments on commit ccc5559

Please sign in to comment.