Skip to content

Commit

Permalink
Add tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Mar 15, 2022
1 parent bfe6cfb commit abb1e2a
Showing 1 changed file with 21 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,30 @@ export function FailedTransactionsCorrelations({
width: '116px',
field: 'normalizedScore',
name: (
<>
{i18n.translate(
'xpack.apm.correlations.failedTransactions.correlationsTable.scoreLabel',
<EuiToolTip
content={i18n.translate(
'xpack.apm.correlations.failedTransactions.correlationsTable.scoreTooltip',
{
defaultMessage: 'Score',
defaultMessage:
'The score [0-1] of an attribute; the greater the score, the more an attribute contributes to failed transactions.',
}
)}
</>
>
<>
{i18n.translate(
'xpack.apm.correlations.failedTransactions.correlationsTable.scoreLabel',
{
defaultMessage: 'Score',
}
)}
<EuiIcon
size="s"
color="subdued"
type="questionInCircle"
className="eui-alignTop"
/>
</>
</EuiToolTip>
),
render: (_, { normalizedScore }) => {
return <div>{asPreciseDecimal(normalizedScore, 2)}</div>;
Expand Down

0 comments on commit abb1e2a

Please sign in to comment.