Skip to content

Commit

Permalink
[AI Ops] Fix chart display
Browse files Browse the repository at this point in the history
- remove unused `css` prop on column
- fix chart not appearing due to unset width
  • Loading branch information
cee-chen committed Jul 11, 2023
1 parent b80ae3e commit 06c14a1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ export const ChangePointsTable: FC<ChangePointsTableProps> = ({
height: '80px',
truncateText: false,
valign: 'middle',
css: { display: 'block', padding: 0 },
render: (annotation: ChangePointAnnotation) => {
return <MiniChartPreview annotation={annotation} fieldConfig={fieldConfig} />;
},
Expand Down Expand Up @@ -319,7 +318,7 @@ export const MiniChartPreview: FC<ChartComponentProps> = ({ fieldConfig, annotat
});

return (
<div data-test-subj={'aiopChangePointPreviewChart'}>
<div data-test-subj={'aiopChangePointPreviewChart'} css={{ width: '100%' }}>
<EmbeddableComponent
id={`mini_changePointChart_${annotation.group ? annotation.group.value : annotation.label}`}
style={{ height: 80 }}
Expand Down

0 comments on commit 06c14a1

Please sign in to comment.