nhra_gt.visualization.interactive¶
Interactive Plotly Visualizations for the Dashboard.
Dynamic charts for risk, pressure, stability, and workforce dynamics.
Classes¶
Functions¶
plot_risk_pressure(combined_data, y_col, title, ylabel, config=None)
¶
Plots a dual-line comparison (usually Baseline vs Scenario) for risk or pressure.
Source code in src/nhra_gt/visualization/interactive.py
plot_what_if_overlay(baseline, scenario, metric, title, config=None)
¶
Standardizes what-if overlays with shaded confidence intervals if available.
Source code in src/nhra_gt/visualization/interactive.py
plot_share_drift(drift_df, threshold, config=None)
¶
Plots Nominal vs Effective Commonwealth Share with a threshold line.
Source code in src/nhra_gt/visualization/interactive.py
plot_strategic_stability(traj, config=None)
¶
Plots solver stability telemetry (Strategic Ambiguity vs. Convergence).
Source code in src/nhra_gt/visualization/interactive.py
plot_patient_choice(traj, config=None)
¶
Plots the endogenous demand split (Probability of choosing ED over GP).
Source code in src/nhra_gt/visualization/interactive.py
plot_ghost_overlay(overlay_df, metric_name, config=None)
¶
Plots historical data vs model backtest predictions.
Source code in src/nhra_gt/visualization/interactive.py
plot_stability_heatmap(pivot_table, config=None)
¶
Plots a heatmap of Nash Equilibrium stability regions.
Source code in src/nhra_gt/visualization/interactive.py
plot_vfi_waterfall(nominal_share, indexation_loss, cap_loss, audit_loss, adjustment_loss, effective_share, title='VFI Funding Leakage (Waterfall)', config=None)
¶
Visualises the 'leakage' from nominal funding to effective share.
Source code in src/nhra_gt/visualization/interactive.py
plot_phase_space(traj, x_col='pressure_mean', y_col='occupancy_mean', title='System Phase-Space (Hysteresis Loop)')
¶
Plots a 2D phase-space trajectory of the system state, colored by System Mode.
Source code in src/nhra_gt/visualization/interactive.py
333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 | |
plot_workforce_dynamics(traj, config=None)
¶
Plots the average workforce pool availability over time.
Source code in src/nhra_gt/visualization/interactive.py
plot_agreement_cycle(traj, config=None)
¶
Plots the 5-year Agreement cycle dynamics (Contribution Share vs. Clock).