Skip to content

Bug in Radar Plot: "Threshold" display linked to number of treatment lines and parameters #386

@soaubier

Description

@soaubier

Describe the bug

Reported by INRAE.
The issue occurs when plotting with the Radar Plot in Data Plotly.
I am working with a layer containing 6 treatment trains and 4 constraint parameters (MES, DCO, DBO5, NTK), with normalized values coming from the Processes module.

The number of displayed treatment trains in the Radar Plot seems to be correlated with the number of constraint parameters (axes).

  • With 4 axes → max 4 treatment trains + threshold.

  • To display 6 treatment trains + threshold → need at least 6 axes.

  • The behavior of "Threshold" is confusing: If the condition above is not met, "Threshold" appears to act as if it were one of the treatment trains.

To Reproduce

  1. In Data Plotly, select the layer with treatment trains and the 4 parameters, and enable the "Threshold" display.

    Result: The Radar Plot shows 4 parameters, 5 treatment trains, and no threshold.

Image
  1. Uncheck "Threshold", clear the plot, and recreate it.
    Result: 4 axes and 4 treatment trains, still no threshold (it seems as if previously "VdNS1" was treated as the threshold).
Image
  1. Select 4 of the 6 treatment trains in the layer (any combination), check "Use only selected features", and re-enable "Threshold"

Result: The Radar Plot correctly shows 4 axes, the 4 selected treatment trains, and the threshold.

Image
  1. Add extra normalized values (NO3, TN, P), enable "Threshold", clear and recreate the plot.

    Result: Correct display with 7 parameters, 6 treatment trains + threshold.

Image
  1. Remove "P" from the parameters (reducing to 6 axes).

    Result: Still shows 6 treatment trains + threshold.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions