Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MudChart Line Y Axis - Allow fixed range of values #8864

Open
1 of 2 tasks
AlessandroMartinelli opened this issue May 3, 2024 · 0 comments
Open
1 of 2 tasks

MudChart Line Y Axis - Allow fixed range of values #8864

AlessandroMartinelli opened this issue May 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@AlessandroMartinelli
Copy link
Contributor

Feature request type

Enhance component

Component name

MudChart

Is your feature request related to a problem?

It would be useful to have the possibility to establish fixed minimum and maximum values displayed on y axis, e.g. from 0 to 100, regardless of the data actual range.
This is useful e.g. if you want to display a subset of a long sequence of values. In that case, you'll likely add some "move left" and "move right" buttons for showing previous or next values on the chart. In such cases, one may want the interval of values shown not to change.

Describe the solution you'd like

Maybe you could add in the chart options a "isYRangeFixed" and, if true, the user is expected to fill also some minY and a maxY options. Of course min and max can be slightly modified in order to take into account the scale. If the user want those exact values, he/she has to set the chart y axis scale accordingly.

Have you seen this feature anywhere else?

I see this feature a lot in industrial automation softwares, but I cannot provide links.

Describe alternatives you've considered

An alternative would be to add a data series having values in the range I'm interested in (e.g. all 0 and the last value set to 100). However, it should be possibile to hide this ChartSeries both from the chart and from the legend too. There has to be no trace of it.

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct
@AlessandroMartinelli AlessandroMartinelli added enhancement New feature or request triage labels May 3, 2024
@AlessandroMartinelli AlessandroMartinelli changed the title MudChart Line Y Axis Labels - Allow fixed values MudChart Line Y Axis - Allow fixed range of values May 3, 2024
@henon henon removed the triage label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants