Commit ecd38ea
Show query counts in cost bar chart hover tooltips
Each bar segment (DRC, PS→DRC, PS) in the per-iteration cost breakdown
panel now shows both the number of queries and the dollar cost on hover,
e.g. 'DRC / 10 queries / $100'.
- loop.py: compute iter_n_drc_new, iter_n_drc_upgrade, iter_n_ps from
new_records and forward them to dashboard.update()
- dashboard.py: update() accepts iter_n_drc_new, iter_n_upgrades,
iter_n_ps (default 0 for backwards compat); stores counts in the
per-iteration snapshot; adds customdata + hovertemplate to the three
go.Bar traces in _build_figure()
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 200d2e4 commit ecd38ea
2 files changed
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
350 | 353 | | |
351 | 354 | | |
352 | 355 | | |
| |||
363 | 366 | | |
364 | 367 | | |
365 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
366 | 375 | | |
367 | 376 | | |
368 | 377 | | |
| |||
390 | 399 | | |
391 | 400 | | |
392 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
393 | 405 | | |
394 | 406 | | |
395 | 407 | | |
| |||
841 | 853 | | |
842 | 854 | | |
843 | 855 | | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
844 | 859 | | |
845 | 860 | | |
846 | 861 | | |
| |||
880 | 895 | | |
881 | 896 | | |
882 | 897 | | |
| 898 | + | |
| 899 | + | |
883 | 900 | | |
884 | 901 | | |
885 | 902 | | |
| |||
891 | 908 | | |
892 | 909 | | |
893 | 910 | | |
| 911 | + | |
| 912 | + | |
894 | 913 | | |
895 | 914 | | |
896 | 915 | | |
| |||
902 | 921 | | |
903 | 922 | | |
904 | 923 | | |
| 924 | + | |
| 925 | + | |
905 | 926 | | |
906 | 927 | | |
907 | 928 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
378 | 393 | | |
379 | 394 | | |
380 | 395 | | |
| |||
508 | 523 | | |
509 | 524 | | |
510 | 525 | | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
511 | 529 | | |
512 | 530 | | |
513 | 531 | | |
| |||
0 commit comments