#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
domain={['min', 'max']}
padding={{ top: 16, bottom: 16 }}
tick={{ fontSize: 12 }}
tickFormatter={(props) => axisTickFormatter(props)}
type="category"
type="number"
/>
<Tooltip
formatter={(value: number | string) =>

View File

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

View File

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