Skip to content

Add support for fixed Y-axis min/max values in Dataviz plots #662

@ghost

Description

Hello
Currently, in Lizmap Dataviz (QGIS Plugin and Web Client), the Y-axis of scatter and line plots is automatically scaled based on the data values.

It is not possible to set a fixed minimum and maximum value for the Y-axis in the JSON configuration. This makes it difficult to compare multiple plots with the same scale or to create standardized visualizations.

Proposed feature:

  • Add support for optional y_axis_min and y_axis_max parameters in the JSON configuration for each trace or plot.
  • When specified, these values should override the automatic scaling of the Y-axis, while still keeping all other Dataviz features intact.
  • Ideally, the feature should be available for scatter and line plots, both in the plugin GUI and when editing the JSON configuration directly.

Use cases:

  • Standardizing Y-axis across multiple plots for comparison.
  • Avoiding misleading visualizations when datasets have very different ranges.
  • Enabling consistent dashboards for monitoring environmental, engineering, or geospatial data.

Thank you for considering this enhancement. It would greatly improve usability and flexibility of Lizmap Dataviz.

Best regards
Andreas

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions