Y-axis scale adjustment (BLW)
Description
Add the option to adjust the Y-axis scale (ymin and ymax) for better control over data display. Automated scaling: https://gitlab.ldbar.ch/bafu/visualize/-/issues/599
Examples
Charts where users need to focus on a specific data range.
Possible Approaches
- Provide min and max input fields for the Y-axis in chart settings.
- Add validation to ensure ymin < ymax.
Definition of Done
- [ ] Users can set custom minimum (ymin) and maximum (ymax) values for the Y-axis through dedicated input fields in settings.
- [ ] Input validation prevents ymin from being equal to or greater than ymax.
- [ ] Default Y-axis scale automatically applies when custom ymin and ymax values are not specified.
- [ ] Custom Y-axis settings persist across page reloads or chart updates.
- [ ] Y-axis scale adjustments are functional across all languages supported by the platform.
Notes
- We want to make sure the user enables the option as a concious decision.
- We propose having a similar toggle as for the x-axis "Interactive"
- Should be similar to what we already have for the horizontal axis
- Example chart: https://test.visualize.admin.ch/en/v/qp1UmLVprJYJ?dataSource=Prod
@sosiology @florelina dieser punkt erfordert weitere Abklärungen und Absprachen mit dem PO. gemäss bestehenden entscheidungen ist gewünscht, dass der data publisher die skalierung festlegt - nicht jedoch der chart creator.
cc @zellersabine @kronmar-bafu
Moving to blocked as additional clarification is needed. Also see: https://gitlab.ldbar.ch/bafu/visualize/-/issues/720#note_18026