diff --git a/.last-branch b/.last-branch index 1bc53e5..4ff2b08 100644 --- a/.last-branch +++ b/.last-branch @@ -1 +1 @@ -v20260104-17-reports-html-trend-match-status-size +v20260104-18-reports-html-trend-visual-alignment-fix diff --git a/containers/backupchecks/src/backend/app/main/routes_reporting_api.py b/containers/backupchecks/src/backend/app/main/routes_reporting_api.py index 749e993..3dd0e2d 100644 --- a/containers/backupchecks/src/backend/app/main/routes_reporting_api.py +++ b/containers/backupchecks/src/backend/app/main/routes_reporting_api.py @@ -1724,8 +1724,9 @@ def _export_html_response(report: ReportDefinition, report_id: int, view: str): }}, options: {{ responsive: true, + maintainAspectRatio: false, plugins: {{ - legend: {{ display: true }} + legend: {{ display: false }} }}, scales: {{ y: {{ min: 0, max: 100 }} diff --git a/docs/changelog.md b/docs/changelog.md index dc024df..5c6b9b1 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -329,6 +329,15 @@ - Adjusted the **Success rate trend** chart to match the exact size of the Status distribution chart. - Aligned both charts to use the same column width and fixed canvas height to ensure a consistent layout without gaps. +--- + +## v20260104-19-reports-html-trend-visual-alignment-fix + +- Aligned the **Success rate trend** card visually with the **Status distribution** card. +- Disabled the legend and aspect ratio on the Success rate trend chart so it fully utilizes the available card height. +- Kept the Status distribution chart unchanged to preserve its correct size. +- Ensured both highlighted cards are consistent with the overall report layout. + ================================================================================================================================================ ## v0.1.15