- Folder Groups Found
+ Affected Folder Groups
@@ -10704,10 +10700,13 @@ ChartFGPageIF.render();
// Folder Group Page: Chart - Risk Levels
// --------------------------
+// Set series data
+const dataSeriesfg = [$RiskLevelFolderGroupCountCritical, $RiskLevelFolderGroupCountHigh, $RiskLevelFolderGroupCountMedium , $RiskLevelFolderGroupCountLow];
+
// Initialize ApexCharts
const ChartFGRiskOptionsa = {
series: [{
- data: [$RiskLevelFolderGroupCountCritical, $RiskLevelFolderGroupCountHigh, $RiskLevelFolderGroupCountMedium , $RiskLevelFolderGroupCountLow]
+ data: dataSeriesfg
}],
chart: {
type: 'bar',
@@ -10736,6 +10735,9 @@ const ChartFGRiskOptionsa = {
show: false
},
xaxis: {
+ min: 0, // Set minimum value to 0
+ max: Math.max(...dataSeriesfg), // Set maximum value to the largest count from the data series
+ tickAmount: dataSeriesfg.length, // Ensure unique labels by setting the number of ticks equal to the number of data points
categories: ['Critical','High','Medium','Low']
},
title: {
@@ -10811,10 +10813,13 @@ ChartSharePageIF.render();
// Share Names Page: Chart - Risk Levels
// --------------------------
-// Initialize ApexCharts
+// Example data series variable
+const dataSeries = [$RiskLevelShareNameCountCritical, $RiskLevelShareNameCountHigh, $RiskLevelShareNameCountMedium, $RiskLevelShareNameCountLow]; // You can dynamically update this array as needed
+
+// Initialize ApexCharts with variable data series
const ChartShareNameRiskOptionsa = {
series: [{
- data: [$RiskLevelShareNameCountCritical, $RiskLevelShareNameCountHigh, $RiskLevelShareNameCountMedium, $RiskLevelShareNameCountLow]
+ data: dataSeries // Use the data series variable here
}],
chart: {
type: 'bar',
@@ -10843,20 +10848,24 @@ const ChartShareNameRiskOptionsa = {
show: false
},
xaxis: {
+ min: 0, // Set minimum value to 0
+ max: Math.max(...dataSeries), // Set maximum value to the largest count from the data series
+ tickAmount: dataSeries.length, // Ensure unique labels by setting the number of ticks equal to the number of data points
categories: ['Critical','High','Medium','Low']
},
- title: {
- text: 'Share Name Count by Risk Level',
- align: 'center', // Aligns the title, can be 'left', 'center', or 'right'
- margin: 10, // Adjusts the space between the title and the chart
- style: {
- fontSize: '16px',
- fontWeight: 'bold',
- color: 'gray'
- }
- }
+ title: {
+ text: 'Share Name Count by Risk Level',
+ align: 'center', // Aligns the title, can be 'left', 'center', or 'right'
+ margin: 10, // Adjusts the space between the title and the chart
+ style: {
+ fontSize: '16px',
+ fontWeight: 'bold',
+ color: 'gray'
+ }
+ }
};
+
const ChartShareNameRiska = new ApexCharts(document.querySelector("#ChartShareNameRiska"), ChartShareNameRiskOptionsa);
ChartShareNameRiska.render();
@@ -10877,7 +10886,7 @@ const ChartDashboardIFOptions = {
data: data
},
{
- name: 'Files with Extracted Secrets',
+ name: 'Files Discovered & Extracted Secrets',
data: verifiedData
}
],