mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
4560a79787
commit
100613950d
1 changed files with 25 additions and 25 deletions
|
@ -66,32 +66,32 @@ export const DurationChart = ({
|
|||
</h4>
|
||||
</EuiTitle>
|
||||
<ChartWrapper height="400px" loading={loading}>
|
||||
<Chart>
|
||||
<Settings xDomain={{ min, max }} showLegend={true} legendPosition={Position.Bottom} />
|
||||
<Axis
|
||||
id="bottom"
|
||||
position={Position.Bottom}
|
||||
showOverlappingTicks={true}
|
||||
tickFormat={timeFormatter(getChartDateLabel(min, max))}
|
||||
title={i18n.translate('xpack.uptime.monitorCharts.durationChart.bottomAxis.title', {
|
||||
defaultMessage: 'Timestamp',
|
||||
})}
|
||||
/>
|
||||
<Axis
|
||||
domain={{ min: 0 }}
|
||||
id="left"
|
||||
position={Position.Left}
|
||||
tickFormat={d => getTickFormat(d)}
|
||||
title={i18n.translate('xpack.uptime.monitorCharts.durationChart.leftAxis.title', {
|
||||
defaultMessage: 'Duration ms',
|
||||
})}
|
||||
/>
|
||||
{hasLines ? (
|
||||
{hasLines ? (
|
||||
<Chart>
|
||||
<Settings xDomain={{ min, max }} showLegend={true} legendPosition={Position.Bottom} />
|
||||
<Axis
|
||||
id="bottom"
|
||||
position={Position.Bottom}
|
||||
showOverlappingTicks={true}
|
||||
tickFormat={timeFormatter(getChartDateLabel(min, max))}
|
||||
title={i18n.translate('xpack.uptime.monitorCharts.durationChart.bottomAxis.title', {
|
||||
defaultMessage: 'Timestamp',
|
||||
})}
|
||||
/>
|
||||
<Axis
|
||||
domain={{ min: 0 }}
|
||||
id="left"
|
||||
position={Position.Left}
|
||||
tickFormat={d => getTickFormat(d)}
|
||||
title={i18n.translate('xpack.uptime.monitorCharts.durationChart.leftAxis.title', {
|
||||
defaultMessage: 'Duration ms',
|
||||
})}
|
||||
/>
|
||||
<DurationLineSeriesList lines={locationDurationLines} meanColor={meanColor} />
|
||||
) : (
|
||||
<DurationChartEmptyState />
|
||||
)}
|
||||
</Chart>
|
||||
</Chart>
|
||||
) : (
|
||||
<DurationChartEmptyState />
|
||||
)}
|
||||
</ChartWrapper>
|
||||
</EuiPanel>
|
||||
</>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue