Skip to content

Commit

Permalink
change stack bar color order and x axis label to be fully horizontal (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsh28 authored May 21, 2022
1 parent 3f1e72d commit 0f64738
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/molecules/GenericBarChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { roseColor, honeyColor, yellowColor, blackColor, whiteColor } from 'styl
import { Typography } from 'components/atoms';
import tinycolor from 'tinycolor2';

const colors = [yellowColor, honeyColor, roseColor];
const colors = [roseColor, honeyColor, yellowColor];
const Y_AXIS_OFFSET = 20;
const MIN_BAR_HEIGHT = 20;

export const BAR_CHART_X_LABEL = 'xLabel'
export const BAR_CHART_X_LABEL = 'xLabel';

export type BarDataMap = {
[key: string]: string | number;
Expand Down Expand Up @@ -55,7 +55,7 @@ const BarChartContainer: FC<IBarChartBaseProps> = ({ data, textLabel, children }
<ResponsiveContainer>
<BarChart data={data} margin={{ bottom: 20 }}>
<XAxis
angle={-7}
angle={0}
interval={0}
dataKey={BAR_CHART_X_LABEL}
tickLine={false}
Expand Down

0 comments on commit 0f64738

Please sign in to comment.