Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored VulnerabilityBarChart to show severity level in the order …
…of criticality (CRASM-783) (#690) * Refactored to include objects in mappedData array, and sorting from Null to Critical * removed hardcoded test values * removed console log * changed from Null to null to match the DMZ * Refactored Severity Levels Bar Graph x-axis - Added filtering and sorting logic to ensure the following: -- Incoming Severity Level data is formatted into Type Case. -- null values are placed in their own category. -- Values containing special characters are placed in the 'Other' category. -- The label 'Other' is recognized as a special case and is always placed at the end of the x-axis. - Added 'Other' category and the color blue to getSeverityColor util function. - Ensured those colors are used on the x-axis of the Severity Levels Bar Graph. * Removed console.log * Added logic for additional severity labels. * Cleaned up logic - Reduced the number of loops in the code. - Removed unnecessary code. - Edited color of "Other" bar in the bar chart. - null bar is now labeled "N/A" --------- Co-authored-by: Thomas <[email protected]>
- Loading branch information