Skip to content

Commit

Permalink
open-metadata#14063 Scale of axis on Data Quality Chart (open-metadat…
Browse files Browse the repository at this point in the history
…a#15368)

* open-metadata#14063 Scale of axis on Data Quality Chart

* miner fix
  • Loading branch information
ShaileshParmar11 authored Feb 29, 2024
1 parent a694cc5 commit 065dc4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ const TestSummary: React.FC<TestSummaryProps> = ({ data }) => {
/>
<YAxis
allowDataOverflow
domain={['min', 'max']}
padding={{ top: 8, bottom: 8 }}
tickFormatter={(value) => axisTickFormatter(value)}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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">
Expand All @@ -66,7 +66,7 @@ const TestSummaryCustomTooltip = (
<OwnerLabel owner={value.task.assignees[0]} />
</span>
</li>
</>
</Fragment>
) : null;
}

Expand Down

0 comments on commit 065dc4b

Please sign in to comment.