#14063 Scale of axis on Data Quality Chart (#15368)

* #14063 Scale of axis on Data Quality Chart

* miner fix
This commit is contained in:
Shailesh Parmar 2024-02-29 18:40:43 +05:30 committed by GitHub
parent a694cc5cc9
commit 065dc4be42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 4 deletions

View File

@ -254,10 +254,11 @@ const CustomMetricGraphs = ({
/> />
<YAxis <YAxis
domain={['min', 'max']}
padding={{ top: 16, bottom: 16 }} padding={{ top: 16, bottom: 16 }}
tick={{ fontSize: 12 }} tick={{ fontSize: 12 }}
tickFormatter={(props) => axisTickFormatter(props)} tickFormatter={(props) => axisTickFormatter(props)}
type="category" type="number"
/> />
<Tooltip <Tooltip
formatter={(value: number | string) => formatter={(value: number | string) =>

View File

@ -327,6 +327,7 @@ const TestSummary: React.FC<TestSummaryProps> = ({ data }) => {
/> />
<YAxis <YAxis
allowDataOverflow allowDataOverflow
domain={['min', 'max']}
padding={{ top: 8, bottom: 8 }} padding={{ top: 8, bottom: 8 }}
tickFormatter={(value) => axisTickFormatter(value)} tickFormatter={(value) => axisTickFormatter(value)}
/> />

View File

@ -12,7 +12,7 @@
*/ */
import { Card, Typography } from 'antd'; import { Card, Typography } from 'antd';
import { entries, isNumber, isString, omit, startCase } from 'lodash'; import { entries, isNumber, isString, omit, startCase } from 'lodash';
import React from 'react'; import React, { Fragment } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { TooltipProps } from 'recharts'; import { TooltipProps } from 'recharts';
@ -40,7 +40,7 @@ const TestSummaryCustomTooltip = (
]) => { ]) => {
if (key === 'task' && !isString(value) && !isNumber(value)) { if (key === 'task' && !isString(value) && !isNumber(value)) {
return value?.task ? ( return value?.task ? (
<> <Fragment key={`item-${key}`}>
<li <li
className="d-flex items-center justify-between gap-6 p-b-xss text-sm" className="d-flex items-center justify-between gap-6 p-b-xss text-sm"
key="item-incident"> key="item-incident">
@ -66,7 +66,7 @@ const TestSummaryCustomTooltip = (
<OwnerLabel owner={value.task.assignees[0]} /> <OwnerLabel owner={value.task.assignees[0]} />
</span> </span>
</li> </li>
</> </Fragment>
) : null; ) : null;
} }