We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adbaba8 commit 7e23c71Copy full SHA for 7e23c71
ui/src/components/ChartCard.tsx
@@ -37,7 +37,7 @@ export const ChartCard = ({summary}: { summary: Summary }) => {
37
{x: 'Medium', y: medium},
38
{x: 'Low', y: low},
39
] : [{x: 'Empty', y: 1e-10}]}
40
- labels={({datum}) => `${datum.x}: ${datum.y}`}
+ labels={({datum}) => hasValues ? `${datum.x}: ${datum.y}` : 'No vulnerabilities'}
41
legendData={legendData}
42
legendOrientation="vertical"
43
legendPosition="right"
0 commit comments