Skip to content

Commit 1084dd6

Browse files
authored
Merge pull request #551 from falox/fix-timelines-domain
NO-JIRA: Improve incidents timeline chart domain and loading UX
2 parents 9d3e929 + a995651 commit 1084dd6

File tree

3 files changed

+229
-192
lines changed

3 files changed

+229
-192
lines changed

web/src/components/Incidents/IncidentsChart/IncidentsChart.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626
import '../incidents-styles.css';
2727
import { IncidentsTooltip } from '../IncidentsTooltip';
2828
import { Incident } from '../model';
29-
import { createIncidentsChartBars, generateDateArray } from '../utils';
29+
import { calculateChartDomain, createIncidentsChartBars, generateDateArray } from '../utils';
3030
import { dateTimeFormatter } from '../../console/utils/datetime';
3131
import { useTranslation } from 'react-i18next';
3232

@@ -172,6 +172,7 @@ const IncidentsChart = ({
172172
tickLabelComponent={
173173
<ChartLabel style={{ fill: theme === 'light' ? '#1b1d21' : '#e0e0e0' }} />
174174
}
175+
domain={calculateChartDomain(dateValues, chartData)}
175176
/>
176177
<ChartGroup horizontal>
177178
{chartData.map((bar) => {

0 commit comments

Comments
 (0)