visualization-tool icon indicating copy to clipboard operation
visualization-tool copied to clipboard

Y-axis scale adjustment (BLW)

Open florelina opened this issue 1 year ago • 3 comments

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.

florelina avatar Nov 13 '24 13:11 florelina

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

Image

sosiology avatar Jan 14 '25 09:01 sosiology

@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

Rdataflow avatar Jan 14 '25 10:01 Rdataflow

Moving to blocked as additional clarification is needed. Also see: https://gitlab.ldbar.ch/bafu/visualize/-/issues/720#note_18026

sosiology avatar Jan 14 '25 10:01 sosiology