-
Notifications
You must be signed in to change notification settings - Fork 81
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
Comments
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. |
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? |
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. |
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. |
This issue was closed because it has been stalled for 10 days with no activity. |
Checklist
dev
branchIs your feature request related to a problem? Please describe.
I currently use
min: ~17
andmax: ~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 withmin: |-0.5|
andmax: |+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 withmin: ~17|-0.5|
andmax: ~22|+0.5|
. Parsing these shouldn't be hard, adding an extraif (value.startsWith('~') && value.endsWith('|')
before the if statement atapexcharts-card/src/apexcharts-card.ts
Line 1264 in 1b63c0f
yaxis.min
andyaxis.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
The text was updated successfully, but these errors were encountered: