Skip to content

Add manual y axis range to the chart - #10

Merged
vudongpham merged 1 commit into
mainfrom
claude/magical-planck-2c05jp
Nov 6, 2026
Merged

vudongpham merged 1 commit into
mainfrom
claude/magical-planck-2c05jp

Conversation

@vudongpham

Copy link
Copy Markdown
Owner

Summary

  • New Y axis button in the chart header (next to PNG/JPEG) opens Y min / Y max boxes.
  • The chart redraws as soon as a valid value is typed. An empty box keeps the automatic value (shown greyed out as placeholder); Auto restores the automatic range.
  • Invalid input (not a number, min ≥ max) is outlined in red with a short message and leaves the chart unchanged. With only one bound set, the other automatic bound shifts if needed to keep the axis valid.
  • The manual range is kept for new extractions of the same band and reset when the band changes.
  • Enter in these boxes no longer triggers "View time series".
  • Values outside a manual range are counted in the note below the chart ("Outside the set y axis range: …"). PNG/JPEG exports use the manual range.

Testing

  • Checked in headless Chromium with synthetic data: auto → manual (2500–4000) → crossed values rejected → Auto → min-only, no page errors.
  • Python test suite not run locally (rasterio wheel would not build in this environment); backend is unchanged.

Generated by Claude Code

A "Y axis" button above the chart opens Min / Max boxes. The chart
redraws as soon as a valid value is typed; an empty box keeps the
automatic value (shown as placeholder), "Auto" restores the automatic
range. Invalid input (not a number, min >= max) is flagged and leaves
the chart unchanged. The range is kept for new extractions of the same
band and reset when the band changes. Enter in these boxes no longer
starts an extraction. Values outside a manual range are counted in the
note below the chart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HUYE7g1T5BiypXNzVkLexg
@vudongpham
vudongpham merged commit d3347ed into main Nov 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants