Skip to content

Commit

Permalink
reduce chart height
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Nov 18, 2020
1 parent 957882a commit c2c47db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { ChartEmptyState } from './chart_empty_state';
import { DurationAnomaliesBar } from './duration_line_bar_list';
import { AnomalyRecords } from '../../../state/actions';
import { UptimeThemeContext } from '../../../contexts';
import { MONITOR_CHART_HEIGHT } from '../../monitor';

interface DurationChartProps {
/**
Expand Down Expand Up @@ -86,7 +87,7 @@ export const DurationChartComponent = ({
};

return (
<ChartWrapper height="400px" loading={loading}>
<ChartWrapper height={MONITOR_CHART_HEIGHT} loading={loading}>
{hasLines ? (
<Chart>
<Settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { MonitorDuration } from './monitor_duration/monitor_duration_container';
interface MonitorChartsProps {
monitorId: string;
}
export const MONITOR_CHART_HEIGHT = '250px';

export const MonitorCharts = ({ monitorId }: MonitorChartsProps) => {
return (
Expand All @@ -20,7 +21,7 @@ export const MonitorCharts = ({ monitorId }: MonitorChartsProps) => {
<MonitorDuration monitorId={monitorId} />
</EuiFlexItem>
<EuiFlexItem>
<PingHistogram height="400px" isResponsive={false} />
<PingHistogram height={MONITOR_CHART_HEIGHT} isResponsive={false} />
</EuiFlexItem>
</EuiFlexGroup>
);
Expand Down

0 comments on commit c2c47db

Please sign in to comment.