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

Min/Max option that combines soft bounds and absolute value #670

Closed
3 tasks done
WPettersson opened this issue Feb 25, 2024 · 5 comments
Closed
3 tasks done

Min/Max option that combines soft bounds and absolute value #670

WPettersson opened this issue Feb 25, 2024 · 5 comments
Labels
feature-request New feature or request Stale

Comments

@WPettersson
Copy link

Checklist

  • I am running the latest version of the card
  • I checked if there isn't another feature request opened with the same request
  • I checked that the feature is not already available in the dev branch

Is your feature request related to a problem? Please describe.

I currently use min: ~17 and max: ~22 for temperatures in my house, which for most days gives a good graph of the temperature. However, when the indoor temperature drops below 17 (usually if I'm away and heating is off) or goes above 22 (summers), the line graph sits on the top or bottom of the chart. I would prefer for there to always be a 0.5 gap above/below. I can achieve this with min: |-0.5| and max: |+0.5| but then the soft boundaries are lost.

Describe the solution you'd like

A new type, minmax_type.SOFTABSOLUTE, could be added. It could be specified with min: ~17|-0.5| and max: ~22|+0.5|. Parsing these shouldn't be hard, adding an extra if (value.startsWith('~') && value.endsWith('|') before the if statement at

if (value.startsWith('~')) {
(or running a regex match). It would mean that yaxis.min and yaxis.max couldn't just be a number though, but possibly an array or something.

Describe alternatives you've considered

I haven't got an alternative solutions in the current apexcharts-card that I've tried.

Additional context

@WPettersson WPettersson added the feature-request New feature or request label Feb 25, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Apr 26, 2024
@WPettersson
Copy link
Author

Hmm, this repo is feeling abandoned. No commits this year, loads of issues going closed as stale. Anyone know of either a fork, or alternative?

@github-actions github-actions bot removed the Stale label Apr 27, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Jun 26, 2024
@RomRider RomRider removed the Stale label Jul 5, 2024
Copy link

github-actions bot commented Sep 4, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Sep 4, 2024
Copy link

This issue was closed because it has been stalled for 10 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request Stale
Projects
None yet
Development

No branches or pull requests

2 participants