You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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: