Skip to content

Commit

Permalink
added maxBarSize
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinju1017 committed Apr 27, 2020
1 parent bcbbaf6 commit 754c9f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/charts/src/components/ComposedChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ const ComposedChart: FC<ComposedChartProps> = forwardRef((props: ComposedChartPr
tick={index === 0 ? XAxisLabel : SecondaryDimensionLabel}
tickLine={index < 1}
axisLine={index < 1}
padding={{ left: paddingCharts, right: paddingCharts }}
padding={{ left: paddingCharts / 2, right: paddingCharts / 2 }}
/>
);
})}
Expand Down Expand Up @@ -312,6 +312,7 @@ const ComposedChart: FC<ComposedChartProps> = forwardRef((props: ComposedChartPr
chartElementProps.onClick = onDataPointClickInternal;
chartElementProps.stackId = element.stackId ?? undefined;
chartElementProps.labelPosition = element.stackId ? 'insideTop' : 'top';
chartElementProps.maxBarSize = 40;
break;
case 'area':
chartElementProps.dot = !isBigDataSet;
Expand Down

0 comments on commit 754c9f8

Please sign in to comment.