dbs_annotator.utils.report_chart_utils
Shared chart utilities for report generation.
Provides reusable functions for building matplotlib-based scale timeline charts used by both the session and longitudinal exporters. Centralising the chart logic avoids code duplication and guarantees consistent styling across report types.
Functions
|
Insert a PNG chart into a Word document. |
|
Build a scale-trend chart and return it as PNG bytes. |
|
Compute a weighted aggregate-index value per x-point. |
|
Return the x-points with the best and second-best aggregate-index scores. |
|
Return overall (min, max) from declared per-scale ranges. |
|
Convert user preference tuples into a look-up dict. |