Fix forecast chart bar order and snapshot month derivation
Flip stacked bar chart so non-compliant (orange) renders on top and compliant (blue) on bottom for better visual emphasis. Use the file's report_date for compliance_snapshots month instead of the current date, so historical uploads land in the correct monthly bucket. Also fix rollback to delete the correct month's snapshot. Remove cve-frontend systemd service ( Express serves theredundant built frontend on port 3001).
This commit is contained in:
@@ -1486,16 +1486,6 @@ function ForecastBurndownChart({ metricId }) {
|
||||
label={{ value: 'Forecast →', position: 'top', style: { fontSize: 9, fill: PURPLE } }}
|
||||
/>
|
||||
)}
|
||||
<Bar
|
||||
yAxisId="left"
|
||||
dataKey="non_compliant"
|
||||
name="Non-Compliant"
|
||||
stackId="devices"
|
||||
fill="#F97316"
|
||||
shape={renderNonCompliantBar}
|
||||
label={renderNonCompliantLabel}
|
||||
barSize={36}
|
||||
/>
|
||||
<Bar
|
||||
yAxisId="left"
|
||||
dataKey="compliant"
|
||||
@@ -1506,6 +1496,16 @@ function ForecastBurndownChart({ metricId }) {
|
||||
label={renderTotalLabel}
|
||||
barSize={36}
|
||||
/>
|
||||
<Bar
|
||||
yAxisId="left"
|
||||
dataKey="non_compliant"
|
||||
name="Non-Compliant"
|
||||
stackId="devices"
|
||||
fill="#F97316"
|
||||
shape={renderNonCompliantBar}
|
||||
label={renderNonCompliantLabel}
|
||||
barSize={36}
|
||||
/>
|
||||
<Line
|
||||
yAxisId="right"
|
||||
type="monotone"
|
||||
|
||||
Reference in New Issue
Block a user