Skip to content

[Feature Request] Make the pressure Y-axis maximum configurable/dynamic (support offset profiles exceeding 12 bar) #830

Description

@vasto7

Describe the feature

Currently the pressure axis on the profile/shot graph is fixed at a maximum of 12 bar. When building profiles that offset all pressure values upward — as required for DeLonghi machines due to mushroom valve - where every pressure target is shifted up by ~4 bar — the resulting curve exceeds 12 bar and gets clipped at the top of the chart, so the peak of the curve can't be seen.

I'd like the pressure axis maximum to be either a) adjustable (a configurable upper value) or b) dynamic (auto-scale to fit the highest target pressure in the profile, plus a little headroom).

This is essentially the pressure-axis counterpart to #278, which requests the same kind of flexibility for the temperature Y-axis.

Note: This is intended as an interim improvement. PR #625 adds a settings-based pressure offset (modeled on the existing temperature offset), which would remove the need to bake the offset into profiles at all. Until that lands, offset profiles still exceed the 12 bar axis and get clipped, so a configurable/dynamic axis would help in the meantime.

Why is this feature useful?

Offset profiles (e.g. DeLonghi machine with mushroom value requiring a +4 bar offset) legitimately need to display pressures above 12 bar. Right now those curves are clipped, making the graph inaccurate and hard to read for exactly the range the user cares about. Making the axis adjustable or dynamic lets these profiles render fully and gives a more accurate, detailed view of the pressure curve — at least until the settings-based pressure offset (#625) makes offset profiles unnecessary.

How complex is this feature?

Low - Simple enhancement

Additional context

Related: #278 (same request for the temperature Y-axis). Also related: PR #625 ("Add pressure offset using temperature offset as a template") and its predecessor #624 — these implement a settings-based pressure offset for mushroom-valve machines (e.g. DeLonghi ECP), which would ultimately supersede the need for this axis change. This affects users who create or edit a profile whose pressure peak exceeds 12 bar (for example a +4 bar offset profile for a DeLonghi/mushroom-valve machine); in the profile editor graph in the Web UI, the portion of the pressure curve above 12 bar is clipped at the top of the axis.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions