Skip to content

Pass to yaxis max/min property the min/max values on the selected timeframe #566

@AurelReb

Description

@AurelReb

Is your feature request related to a problem? Please describe.
Create a function with the min / max properties of yaxis, which would allow us to zoom automatically on the yaxis when we change the xaxis selection.

Describe the solution you'd like
In the function, it would be interesting to add an argument named minOnSelection so that the function looks like this:

{
  yaxis: {
    min: (min, minOnSelection) => //...
    max: (max, maxOnSelection) => //...
  }
}

for example, if a series includes y-values between 1 and 10, but the x-axis scale on this series includes only y-values between 5 and 7, min should be equal to 1 and minOnSelection should be equal to 5

The feature would be handy for many people I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions