Fix: reset zoom restores full energy range (0.33-3035.67 keV)

Use {x,y} data format so Chart.js linear scale uses energy values
instead of channel indices. After reset, force scale min/max to the
full energy range.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Jacquin Antoine
2026-05-20 01:25:33 +02:00
parent 6c78c13622
commit edaceae8a3
2 changed files with 37 additions and 26 deletions

View File

@ -87,7 +87,7 @@
<script src="/static/js/chart_pan.js?v=3"></script>
<script src="/static/js/spectrum.js?v=9"></script>
<script src="/static/js/history.js?v=2"></script>
<script src="/static/js/background.js?v=17"></script>
<script src="/static/js/background.js?v=30"></script>
<script src="/static/js/cps.js?v=7"></script>
<script src="/static/js/app.js?v=3"></script>
</body>